[go: up one dir, main page]

CN112954196B - Shooting method, shooting device, electronic equipment and readable storage medium - Google Patents

Shooting method, shooting device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112954196B
CN112954196B CN202110113958.1A CN202110113958A CN112954196B CN 112954196 B CN112954196 B CN 112954196B CN 202110113958 A CN202110113958 A CN 202110113958A CN 112954196 B CN112954196 B CN 112954196B
Authority
CN
China
Prior art keywords
preview
image
sub
images
target image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110113958.1A
Other languages
Chinese (zh)
Other versions
CN112954196A (en
Inventor
张学熙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110113958.1A priority Critical patent/CN112954196B/en
Publication of CN112954196A publication Critical patent/CN112954196A/en
Application granted granted Critical
Publication of CN112954196B publication Critical patent/CN112954196B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a readable storage medium, belongs to the technical field of shooting, and can solve the problem that time consumption for selecting a preview effect picture and checking images with different shooting effects is long. The method comprises the following steps: receiving a first input of a user under the condition of displaying a shooting preview interface, wherein the shooting preview interface comprises N preview sub-areas, and each preview sub-area comprises a preview image acquired by a camera; responding to the first input, controlling N cameras to shoot, obtaining N images, and generating a first target image; and N is an integer larger than 1, the first target image is synthesized based on the N preview images displayed by the N preview sub-areas, and the first target image is used for displaying any one of the N images. The method and the device are applied to scenes shot by the electronic equipment.

Description

拍摄方法、装置、电子设备及可读存储介质Shooting method, device, electronic device and readable storage medium

技术领域technical field

本申请属于摄像技术领域,具体涉及一种拍摄方法、装置、电子设备及可读存储介质。The present application belongs to the technical field of photographing, and in particular relates to a photographing method, device, electronic equipment and a readable storage medium.

背景技术Background technique

电子设备中的拍照功能通常用于记录日常生活动态,为了满足人们日益增长的记录需求,电子设备的拍摄模式越来越多,拍摄效果也要越来越好。通过在电子设备中安装多个摄像头,以摄像头的多样性,和摄像头组合的多样性,呈现更多不同的拍照效果,以满足人们的拍摄需求,给人以赏心悦目的视觉盛宴效果。The camera function in electronic devices is usually used to record daily life dynamics. In order to meet people's increasing recording needs, electronic devices have more and more shooting modes, and the shooting effects are getting better and better. By installing multiple cameras in the electronic device, with the diversity of cameras and combinations of cameras, more different photo effects can be presented to meet people's shooting needs and give people a pleasing visual feast effect.

虽然电子设备的摄像头越来越多,但是无论预览还是拍照,在显示屏上呈现的画面大都是单个摄像头捕捉到的画面,当用户需要从多个摄像头采集的预览图像对应的预览图像中,选取需求的预览图像时,则需要在多个摄像头之间切换,对多个摄像头的预览图像进行反复翻页展示逐个对比才能选取预览图像,导致预览图像选取过程耗时较长。Although there are more and more cameras in electronic devices, most of the images displayed on the display screen are images captured by a single camera, whether previewing or taking pictures. When the preview image is required, it is necessary to switch between multiple cameras, and to select the preview image by repeatedly turning the pages of the preview images of multiple cameras and comparing them one by one, resulting in a long time-consuming preview image selection process.

发明内容Contents of the invention

本申请实施例的目的是提供一种拍摄方法、装置、电子设备及可读存储介质,能够解决选取预览效果画面耗时较长的问题。The purpose of the embodiment of the present application is to provide a photographing method, device, electronic device and readable storage medium, which can solve the problem that it takes a long time to select a preview effect picture.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above-mentioned technical problems, the application is implemented as follows:

第一方面,本申请实施例提供了一种拍摄方法,该方法包括:在显示拍摄预览界面的情况下,接收用户的第一输入,拍摄预览界面包括N个预览子区域,每个预览子区域包括一个摄像头采集的预览图像;响应于第一输入,控制N个摄像头拍摄,得到N张图像,并生成第一目标图像;其中,N为大于1的整数,第一目标图像是基于N个预览子区域显示的N张预览图像合成得到的,第一目标图像用于显示N张图像中的任一个。In a first aspect, an embodiment of the present application provides a shooting method. The method includes: receiving a first input from the user when a shooting preview interface is displayed. The shooting preview interface includes N preview sub-areas, and each preview sub-area Including a preview image collected by a camera; in response to the first input, control N cameras to shoot, obtain N images, and generate a first target image; wherein, N is an integer greater than 1, and the first target image is based on N previews The N preview images displayed in the sub-areas are synthesized, and the first target image is used to display any one of the N images.

第二方面,本申请实施例提供了一种拍摄装置。所述装置包括:接收模块和获取模块,其中:接收模块,用于在显示拍摄预览界面的情况下,接收用户的第一输入,拍摄预览界面包括N个预览子区域,每个预览子区域包括一个摄像头采集的预览图像;获取模块,用于响应于接收模块接收到的第一输入,控制N个摄像头拍摄,得到N张图像,并生成第一目标图像;其中,N为大于1的整数,第一目标图像是基于N个预览子区域显示的N张预览图像合成得到的,第一目标图像用于显示N张图像中的任一个。In a second aspect, the embodiment of the present application provides a photographing device. The device includes: a receiving module and an acquiring module, wherein: the receiving module is configured to receive the user's first input when the shooting preview interface is displayed, the shooting preview interface includes N preview sub-areas, and each preview sub-area includes A preview image collected by a camera; the acquisition module is used to control N cameras to shoot in response to the first input received by the receiving module, obtain N images, and generate the first target image; wherein, N is an integer greater than 1, The first target image is synthesized based on N preview images displayed in the N preview sub-areas, and the first target image is used to display any one of the N images.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在该存储器上并可在该处理器上运行的程序或指令,该程序或指令被该处理器执行时实现如第一方面提供的方法的步骤。In the third aspect, the embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is executed by the processor During execution, the steps of the method provided in the first aspect are realized.

第四方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,该程序或指令被处理器执行时实现如第一方面提供的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method provided in the first aspect are implemented.

第五方面,本申请实施例提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序或指令,实现如第一方面提供的方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method provided in the first aspect.

在本申请实施例中,在显示拍摄预览界面的情况下,由于该拍摄预览界面的N个预览子区域中能够分别显示N个摄像头中每个摄像头的预览图像,从而使得用户能够在该拍摄预览界面中进行预览图像的筛选;进而在接收用户的第一输入后,能够响应第一输入得到上述N个摄像头拍摄的N张图像,并基于N个预览子区域中的N张预览图像合成得到第一目标图像,然后可以通过该第一目标图像快速显示N个摄像头拍摄的N张图像。如此,在拍摄预览界面中进行预览图像的筛选,以及,通过第一目标图像快速显示不同摄像头拍摄的图像,不仅降低客户挑选拍摄预览图像以及预览不同摄像头拍摄的图像的时间,使得用户可以快速选取需求的预览图像以及快速查看不同摄像效果的图像,提高了用户的操作效率。In the embodiment of the present application, when the shooting preview interface is displayed, since the preview images of each of the N cameras can be displayed in the N preview sub-areas of the shooting preview interface, the user can Screen the preview images in the interface; then, after receiving the first input from the user, it can respond to the first input to obtain the N images captured by the above N cameras, and synthesize the N preview images based on the N preview sub-areas to obtain the first A target image, and then quickly display N images captured by N cameras through the first target image. In this way, screening preview images in the shooting preview interface, and quickly displaying images captured by different cameras through the first target image not only reduces the time for customers to select and preview images captured by different cameras, but also enables users to quickly select The required preview images and quick viewing of images with different camera effects improve the user's operating efficiency.

附图说明Description of drawings

图1为本申请实施例提供的一种拍摄方法的流程示意图;FIG. 1 is a schematic flowchart of a photographing method provided in an embodiment of the present application;

图2为本申请实施例提供的一种拍摄预览界面的示意图之一;Fig. 2 is one of the schematic diagrams of a shooting preview interface provided by the embodiment of the present application;

图3为本申请实施例提供的一种拍摄预览界面的示意图之二;Fig. 3 is the second schematic diagram of a shooting preview interface provided by the embodiment of the present application;

图4为本申请实施例提供的一种拍摄预览界面的示意图之三;Fig. 4 is the third schematic diagram of a shooting preview interface provided by the embodiment of the present application;

图5为本申请实施例提供的一种拍摄预览界面的示意图之四;Fig. 5 is the fourth schematic diagram of a shooting preview interface provided by the embodiment of the present application;

图6为本申请实施例提供的一种拍摄预览界面的示意图之五;Fig. 6 is the fifth schematic diagram of a shooting preview interface provided by the embodiment of the present application;

图7为本申请实施例提供的一种拍摄装置的结构示意图;FIG. 7 is a schematic structural diagram of a photographing device provided in an embodiment of the present application;

图8为本申请实施例提供的电子设备的硬件示意图之一;FIG. 8 is one of the hardware schematic diagrams of the electronic device provided by the embodiment of the present application;

图9为本申请实施例提供的电子设备的硬件示意图之二。FIG. 9 is a second schematic diagram of hardware of the electronic device provided by the embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.

需要说明的是,本申请实施例中的标识用于指示信息的文字、符号、图像等,可以以控件或者其他容器作为显示信息的载体,包括但不限于文字标识、符号标识、图像标识。It should be noted that the logos in the embodiments of the present application are used to indicate text, symbols, images, etc. of information, and controls or other containers may be used as carriers for displaying information, including but not limited to text logos, symbol logos, and image logos.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的拍摄方法进行详细地说明。The photographing method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.

本申请实施例提供的拍摄方法可以应用于具有多个摄像头的电子设备拍摄照片的场景。The shooting method provided in the embodiment of the present application may be applied to a scene where an electronic device with multiple cameras takes a picture.

针对具有多个摄像头的电子设备拍摄同一景物的场景,用户为了获取符合自身需求的景物照片可以采用如下方式:用户甲使用电子设备对该景物A拍照,在预览模式中在电子设备的显示屏上呈现单个摄像头捕捉到的画面,用户甲通过反复选取不同的摄像头,以比较不同摄像头捕捉的照片效果最终选取摄像头B拍摄的照片。在照片选取过程中,用户甲需要通过反复展示逐个对比不同设备头捕捉到的预览画面,才能选取符合需求的预览画面,并拍摄符合需求的照片,导致选取过程耗时较长。For the scene where an electronic device with multiple cameras takes pictures of the same scene, in order to obtain a photo of the scene that meets the user's needs, the user can adopt the following method: User A uses the electronic device to take a photo of the scene A, and in the preview mode, displays the scene on the display screen of the electronic device. The images captured by a single camera are presented. User A repeatedly selects different cameras to compare the effects of photos captured by different cameras and finally selects the photos taken by camera B. During the photo selection process, User A needs to repeatedly display and compare the preview images captured by different device heads one by one, in order to select a preview image that meets the requirements and take photos that meet the requirements, resulting in a long selection process.

结合上述场景,在本申请实施例中,用户甲在使用电子设备对景物A进行拍照之前,该电子设备显示的拍摄预览界面中可以同时显示N个摄像头中每个摄像头捕捉到的景物A的预览画面。这样,当电子设备接收到用户的第一输入后,便可根据第一输入对拍摄预览界面中的预览画面进行筛选,以获取上述N个摄像头中的部分摄像头拍摄的景物A的图像。如此,在拍摄预览界面中进行预览画面的筛选过程中,由于用户甲能够同时浏览到N个摄像头捕捉到的景物A的预览画面,使得用户甲无需来回反复翻动浏览各个摄像头对应的预览画面,便可达到降低客户挑选拍摄效果画面的时间,为后续艺术创作提供更大的操作空间,以及增加了拍照的趣味性的效果。In combination with the above scenario, in the embodiment of the present application, before user A uses the electronic device to take pictures of the scene A, the shooting preview interface displayed by the electronic device can simultaneously display the preview of the scene A captured by each of the N cameras screen. In this way, when the electronic device receives the user's first input, it can filter the preview images in the shooting preview interface according to the first input, so as to obtain images of the scene A captured by some of the N cameras. In this way, in the screening process of the preview screen in the shooting preview interface, since user A can browse the preview screens of scene A captured by N cameras at the same time, user A does not need to flip back and forth to browse the preview screens corresponding to each camera. It can reduce the time for customers to select and shoot pictures, provide greater operation space for subsequent artistic creation, and increase the fun of taking pictures.

本申请实施例应用于包含多个摄像头的电子设备。电子设备连接的摄像头包括集成在电子设备内部的内置摄像头,以及在使用电子设备过程中连接的外接摄像头。需要说明的是,摄像头类型包括但不限于彩色摄像头、黑白摄像头、红外摄像头、月光摄像头、星光摄像头和普通摄像头。The embodiments of the present application are applied to an electronic device including multiple cameras. The camera connected to the electronic device includes a built-in camera integrated inside the electronic device, and an external camera connected during the use of the electronic device. It should be noted that the types of cameras include but are not limited to color cameras, black and white cameras, infrared cameras, moonlight cameras, starlight cameras and ordinary cameras.

示例性地,集成在电子设备内部的内置摄像头,包括笔记本电脑的内置摄像头、手机的前置摄像头、手机的后置摄像头、人脸识别考勤机的摄像头、监控系统中的红外摄像头等等。Exemplarily, the built-in camera integrated in the electronic device includes a built-in camera of a laptop computer, a front camera of a mobile phone, a rear camera of a mobile phone, a camera of a face recognition attendance machine, an infrared camera in a monitoring system, and the like.

示例性地,在使用电子设备过程中连接的外接摄像头,可采用有线连接和无线连接两者方式。有线连接方式是指电子设备通过的USB接口、Type-C接口、lightning接口或串口等接口,与外界摄像头连接。无线连接方式是指电子设备通过蓝牙、红外或无线局域网等方式与外界摄像头建立信息交互通道,以实现与外界摄像头连接。在本申请实施例中对外接摄像头的连接方式不做限定。无论采用哪种连接方式,电子设备和外接摄像头,都包含相应的硬件元件。Exemplarily, the external camera connected during the use of the electronic device may adopt both wired connection and wireless connection. The wired connection means that the electronic device is connected to an external camera through an interface such as a USB interface, a Type-C interface, a lightning interface, or a serial port. The wireless connection means that the electronic device establishes an information exchange channel with the external camera through Bluetooth, infrared or wireless local area network, etc., so as to realize the connection with the external camera. In the embodiment of the present application, there is no limitation on the connection mode of the external camera. No matter which connection method is adopted, the electronic device and the external camera all contain corresponding hardware components.

如图1所示,本申请实施例提供一种拍摄方法,该方法可以包括下述的步骤101和步骤102。As shown in FIG. 1 , an embodiment of the present application provides a photographing method, and the method may include the following steps 101 and 102 .

步骤101:在显示拍摄预览界面的情况下,拍摄装置接收用户的第一输入。Step 101: When a shooting preview interface is displayed, the shooting device receives a first input from a user.

其中,上述拍摄预览界面包括N个预览子区域,每个预览子区域包括一个摄像头采集的预览图像。Wherein, the shooting preview interface includes N preview sub-areas, and each preview sub-area includes a preview image collected by a camera.

在本申请实施例中,每个预览子区域中摄像头采集的预览图像可以实时更新,即,预览子区域中显示有预览画面。In this embodiment of the present application, the preview image captured by the camera in each preview sub-area may be updated in real time, that is, a preview image is displayed in the preview sub-area.

在本申请实施例中,上述拍摄预览界面中可以显示有N个摄像头中每个摄像头的预览图像,N为大于1的整数。上述摄像头可以为电子设备的内置摄像头和外界摄像头中任选的摄像头,因此N不大于电子设备的内置摄像头和外界摄像头的总数。In the embodiment of the present application, the preview image of each of the N cameras may be displayed on the shooting preview interface, where N is an integer greater than 1. The above-mentioned camera can be an optional camera among the built-in camera of the electronic device and the external camera, so N is not greater than the total number of the built-in camera and the external camera of the electronic device.

可选地,在本申请实施例中,上述的拍摄预览界面为多摄像头预览模式下的拍摄预览界面。示例性地,拍摄装置启动相机应用端后,会从相机应用端的多种拍照预览模式(通常包括单一摄像头预览模式和多摄像头预览模式)中选择多摄像头预览模式,然后,显示该多摄像头预览模式对应的拍摄预览界面。进一步地,上述多摄像头预览模式可以是用户在模式选择界面上手动选择的,也可以是拍摄装置启动相机应用端后默认的拍照预览模式。Optionally, in the embodiment of the present application, the above shooting preview interface is a shooting preview interface in a multi-camera preview mode. Exemplarily, after the shooting device starts the camera application end, it will select a multi-camera preview mode from a variety of photo preview modes (usually including a single camera preview mode and a multi-camera preview mode) on the camera application end, and then display the multi-camera preview mode The corresponding shooting preview interface. Further, the above-mentioned multi-camera preview mode may be manually selected by the user on the mode selection interface, or may be a default photo preview mode after the camera application is started by the shooting device.

可选地,在本申请实施例中,上述N个摄像头可以是为该多摄像头预览模式下对应的N个预置摄像头,也可以是用户在该多摄像头预览模式下手动选择的摄像头,本申请实施例对此不做限定。进一步的,上述N个预置摄像头可以为该电子设备中的N个默认摄像头,也可以为前一次显示的拍摄预览界面中显示预览图像对应的摄像头。Optionally, in the embodiment of the present application, the aforementioned N cameras may be the corresponding N preset cameras in the multi-camera preview mode, or may be cameras manually selected by the user in the multi-camera preview mode. The embodiment does not limit this. Further, the N preset cameras mentioned above may be the N default cameras in the electronic device, or may be the cameras corresponding to the preview images displayed in the shooting preview interface displayed last time.

可选地,在本申请实施例中,用户可以自主选择每个拍摄预览界面对应的摄像头,使得拍摄装置可以将用户为拍摄预览界面选取的多个摄像头的预览图像同时显示在拍摄预览界面中。可以理解的是,用户可以在选多摄像头预览模式下选取摄像头,也可以在显示拍摄预览界面的情况下选取预览图像对应的摄像头。Optionally, in this embodiment of the application, the user can independently select the camera corresponding to each shooting preview interface, so that the shooting device can simultaneously display the preview images of multiple cameras selected by the user for the shooting preview interface in the shooting preview interface. It can be understood that the user can select a camera in the multi-camera preview mode, or select a camera corresponding to a preview image when the shooting preview interface is displayed.

可选地,在本申请实施例中,上述N个预览子区域中的多个预览子区域可以显示同一摄像头的预览图像,以增强不同摄像头显示的预览图像的可比性,以便于近距离地对比不同摄像头显示的预览图像。Optionally, in the embodiment of the present application, multiple preview sub-areas in the above-mentioned N preview sub-areas may display preview images of the same camera, so as to enhance the comparability of preview images displayed by different cameras, so as to facilitate close comparison Preview images displayed by different cameras.

可选地,在本申请实施例中,在每个预览子区域中,除了显示预览图像以外,还可以显示该预览图像对应的摄像头的摄像头信息(例如,摄像头名称、摄像头简称、图像特征等等简单的文字或图案),以标识该预览图像的特点,便于后续对预览图像或者拍摄图像的进一步处理。Optionally, in this embodiment of the application, in addition to displaying the preview image, in each preview sub-area, camera information (for example, camera name, camera abbreviation, image features, etc.) of the camera corresponding to the preview image may also be displayed. Simple text or patterns) to identify the characteristics of the preview image, so as to facilitate subsequent further processing of the preview image or captured image.

可选地,在本申请实施例中,拍摄装置可以按照预定显示顺序,在上述拍摄预览界面中显示每个摄像头对应的预览图像。示例性地,上述预定显示顺序可以是根据摄像头的使用频率,与当前景物的适配程度或者摄像头的使用优先级确定的。Optionally, in this embodiment of the present application, the photographing device may display a preview image corresponding to each camera in the foregoing photographing preview interface according to a predetermined display order. Exemplarily, the aforementioned predetermined display order may be determined according to the frequency of use of the camera, the degree of adaptation to the current foreground, or the priority of use of the camera.

示例性地,假设用户乙想要拍摄夜景,由于与当前夜景适配的摄像头包括月光摄像头、广角摄像头、普通摄像头及远望摄像头这4个摄像头,因此,拍摄装置可以按照这4个摄像头与当前夜景的适配程度的高低,依次将这4个摄像头的预览图像显示在拍摄预览界面中。例如,可以按照从左到右、从上到下的顺序,依次在拍摄预览界面中显示上述预览图像。如,以拍摄预览界面一行显示两个预览图像为例,则可以在拍摄预览界面的第一行左侧显示月光摄像头的预览图像,第一行右侧显示广角摄像头的预览图像,第二行左侧显示普通摄像头的预览图像,第二行右侧显示远望摄像头的预览图像。Exemplarily, assuming that user B wants to take pictures of night scenes, since the cameras adapted to the current night scene include four cameras: a moonlight camera, a wide-angle camera, a normal camera, and a telephoto camera, the shooting device can compare the four cameras with the current one. Depending on the degree of adaptation of the night scene, the preview images of these 4 cameras are displayed in the shooting preview interface in turn. For example, the above-mentioned preview images may be sequentially displayed in the shooting preview interface in order from left to right and from top to bottom. For example, taking two preview images displayed in one line on the shooting preview interface as an example, the preview image of the moonlight camera can be displayed on the left side of the first line of the shooting preview interface, the preview image of the wide-angle camera can be displayed on the right side of the first line, and the preview image of the wide-angle camera can be displayed on the left side of the second line. The preview image of the ordinary camera is displayed on the side, and the preview image of the telescopic camera is displayed on the right side of the second row.

可选地,在本申请实施例中,上述拍摄预览界面中的预览图像以预设区域排布结构进行排布的。Optionally, in the embodiment of the present application, the preview images in the shooting preview interface are arranged in a preset area arrangement structure.

示例性地,上述的预设区域排布结构可以为4宫格、9宫格等。例如,如图2所示,以电子设备中包含9个摄像头为例,则可以按照9宫格结构显示9个摄像头的预览图像。Exemplarily, the arrangement structure of the above preset areas may be 4 grids, 9 grids and so on. For example, as shown in FIG. 2 , taking the electronic device including 9 cameras as an example, the preview images of the 9 cameras may be displayed according to a 9-square grid structure.

可选地,在本申请实施例中,上述第一输入用于触发电子设备执行拍摄操作。示例性地,上述第一输入可以为:用户对拍摄预览界面的触控输入,或者,其他可行性输入,本申请实施例对此不做限定。进一步地,上述第一输入可以为:用户在拍摄预览界面上的点击输入,滑动输入,按压输入等。进一步地,上述点击操作可以为任意次数的点击操作,也可以为长按的点击(点击时间大于或等于预设时间的)操作,也可以是短按的点击(点击时间小于预设时间的)操作等。上述滑动操作可以为向任意方向的滑动操作,例如向上滑动、向下滑动、向左滑动或者向右滑动等。类似的,摄像头选择输入的输入方式可以是长按、点触、拖动或滑动等等触控方式,或者其他可行性输入,在本申请实施例中对此不做限定。Optionally, in this embodiment of the present application, the above-mentioned first input is used to trigger the electronic device to perform a shooting operation. Exemplarily, the above-mentioned first input may be: a user's touch input on the shooting preview interface, or other feasible input, which is not limited in this embodiment of the present application. Further, the above-mentioned first input may be: the user's click input, slide input, press input, etc. on the shooting preview interface. Further, the above-mentioned click operation can be any number of click operations, and can also be a long-press click (the click time is greater than or equal to the preset time) operation, or a short-press click (the click time is less than the preset time) operation etc. The above-mentioned sliding operation may be a sliding operation in any direction, such as sliding up, sliding down, sliding to the left, or sliding to the right. Similarly, the input method of camera selection input may be a touch method such as long press, touch, drag or slide, or other feasible input, which is not limited in this embodiment of the present application.

可选地,在本申请实施例中,拍摄装置可以按照多种显示形式显示上述拍摄预览界面。例1:全屏显示以便于更清晰地对比各个摄像头的预览图像;例2:与其他应用分屏显示,以便于进行多界面的操作,满足用户同时启动不同应用程序的需求;例3:与其他应用或菜单栏同屏显示,以便于更改当前拍摄预览界面的界面显示参数。Optionally, in this embodiment of the present application, the photographing device may display the foregoing photographing preview interface in various display forms. Example 1: full-screen display for a clearer comparison of the preview images of each camera; example 2: split-screen display with other applications to facilitate multi-interface operations and meet the needs of users to start different applications at the same time; example 3: and other applications The application or menu bar is displayed on the same screen, so as to change the interface display parameters of the current shooting preview interface.

示例性地,拍摄预览界面可以为电子设备显示屏的全屏显示,也可以为电子设备显示屏的预置比例显示。在拍摄预览界面中除了预览图像,还可以包括功能触发控件,如拍照、编辑、手势识别等等。Exemplarily, the shooting preview interface may be a full-screen display of the display screen of the electronic device, or may be a display with a preset ratio of the display screen of the electronic device. In addition to previewing images, the shooting preview interface can also include function trigger controls, such as taking pictures, editing, gesture recognition, and so on.

如此,按照显示区域大小、最大化铺满拍摄预览界面、固定单页最大区域数量等显示目标,划分拍摄预览界面的显示区域,使得显示区域的排列具有特定的规律性,以便于后续对预览图像进行重排列、选择、提取、删除、复制、优化等画面编辑操作。In this way, the display area of the shooting preview interface is divided according to the display goals such as the size of the display area, maximizing the coverage of the shooting preview interface, and fixing the maximum number of areas on a single page, so that the arrangement of the display areas has a specific regularity, so that the subsequent preview image Perform screen editing operations such as rearranging, selecting, extracting, deleting, copying, and optimizing.

步骤102:拍摄装置响应于第一输入,控制N个摄像头拍摄,得到N张图像,并生成第一目标图像。Step 102: The photographing device controls N cameras to photograph in response to the first input, obtains N images, and generates a first target image.

其中,N为大于1的整数,上述第一目标图像是基于上述N个预览子区域显示的N张预览图像合成得到的,上述第一目标图像用于显示上述N张图像中的任一个。Wherein, N is an integer greater than 1, the first target image is synthesized based on N preview images displayed in the N preview sub-areas, and the first target image is used to display any one of the N preview images.

在本申请实施例中,上述第一目标图像用于在用户选择其中的任一个图像子区域的情况下,显示所选择的图像子区域关联的原图。In the embodiment of the present application, the above-mentioned first target image is used to display the original image associated with the selected image sub-region when the user selects any one of the image sub-regions.

可选地,在本申请实施例中,上述N个摄像头可以为电子设备根据当前的拍摄模式自动确定的摄像头,也可以为用户选择的一个或多个摄像头。Optionally, in the embodiment of the present application, the aforementioned N cameras may be cameras automatically determined by the electronic device according to the current shooting mode, or may be one or more cameras selected by the user.

可选地,在本申请实施例中,上述N张图像为N个摄像头对同一目标对象拍摄得到的图像。示例性地,上述N张图像为同一目标对象的不同画面效果的图像。例如,同一目标对象的广角画面效果和夜景画面效果。Optionally, in the embodiment of the present application, the above N images are images captured by N cameras on the same target object. Exemplarily, the above N images are images of different picture effects of the same target object. For example, a wide-angle picture effect and a night scene picture effect of the same target object.

在本申请实施例中,第一目标图像包括上述N张图像中的图像内容。In this embodiment of the present application, the first target image includes image content in the above N images.

可选地,在本申请实施例中,拍摄装置接收用户的第一输入后,控制N个摄像头进行拍摄得到N张图像,并对拍摄得到N张图像时,N个图像子区域中显示的N张预览图像进行合成,得到第一目标图像。Optionally, in this embodiment of the application, after receiving the user's first input, the shooting device controls N cameras to capture N images, and when N images are captured, the N images displayed in the N image sub-regions The preview images are synthesized to obtain the first target image.

如此,拍摄装置可以同时通过不同摄像头进行拍摄,得到同一物体用不同摄像头拍摄的多种拍摄效果的图像,并生成包括该不同摄像头对应的预览子界面中的预览图像的一张图像,使得用户可以通过该一张图像快捷灵活地查看不同拍摄头拍摄得到的多张图像,从而使得用户不需要在相册中的海量图像中查找不同摄像头拍摄的同一物体的多张图像,提高了图像查找的效率。In this way, the shooting device can shoot through different cameras at the same time, obtain images of the same object with multiple shooting effects taken by different cameras, and generate an image including the preview images in the preview sub-interface corresponding to the different cameras, so that the user can Through this one image, multiple images captured by different cameras can be quickly and flexibly viewed, so that users do not need to search for multiple images of the same object captured by different cameras among the massive images in the album, and the efficiency of image search is improved.

可选地,在本申请实施例中,拍摄装置可以调整拍摄预览界面中预览图像的大小或位置,以使得获取到的目标摄像头的预览图像更符合用户需要。示例性地,拍摄装置可以根据用户调整预览图像的输入,对拍摄预览界面中的预览图像的显示位置进行调整及编辑操作。Optionally, in this embodiment of the present application, the shooting device may adjust the size or position of the preview image in the shooting preview interface, so that the acquired preview image of the target camera is more in line with the needs of the user. Exemplarily, the shooting device may adjust and edit the display position of the preview image in the shooting preview interface according to the user's input of adjusting the preview image.

例1,拍摄装置可以将拍摄预览界面中的某一预览图像进行全屏显示,以便于查看画面细节。Example 1, the shooting device can display a certain preview image in the shooting preview interface in full screen, so as to view the details of the picture.

例2,拍摄装置可以将拍摄预览界面中不同摄像头的预览图像移动至相邻位置,以避免比对选择目标摄像头时看错预览图像。Example 2, the shooting device can move the preview images of different cameras in the shooting preview interface to adjacent positions, so as to avoid misreading the preview images when comparing and selecting the target camera.

例3,拍摄装置可以复制拍摄预览界面中的预览图像,并将复制的预览图像移动至需要比对的其他预览图像的相邻位置,以避免比对选择目标摄像头时看错预览图像。Example 3, the shooting device can copy the preview image in the shooting preview interface, and move the copied preview image to the adjacent position of other preview images that need to be compared, so as to avoid misreading the preview image when comparing and selecting the target camera.

在本申请实施例提供的拍摄方法中,在显示拍摄预览界面的情况下,由于该拍摄预览界面的N个预览子区域中能够分别显示N个摄像头中每个摄像头的预览图像,从而使得用户能够在该拍摄预览界面中进行预览图像的筛选;进而在接收用户的第一输入后,能够响应第一输入得到上述N个摄像头拍摄的N张图像,并基于N个预览子区域中的N张预览图像合成得到第一目标图像,然后可以通过该第一目标图像快速显示N个摄像头拍摄的N张图像。如此,在拍摄预览界面中进行预览图像的筛选,以及,通过第一目标图像快速显示不同摄像头拍摄的图像,不仅降低客户挑选拍摄预览图像以及预览不同摄像头拍摄的图像的时间,使得用户可以快速选取需求的预览图像以及快速查看不同摄像效果的图像,提高了用户的操作效率,还为后续艺术创作提供更大的操作空间,增加了拍照的趣味性。In the shooting method provided in the embodiment of the present application, when the shooting preview interface is displayed, since the preview images of each of the N cameras can be displayed in the N preview sub-areas of the shooting preview interface, the user can Screening of preview images is carried out in the shooting preview interface; and then after receiving the first input from the user, the N images captured by the above N cameras can be obtained in response to the first input, and based on the N previews in the N preview sub-areas The first target image is obtained by image synthesis, and then N images captured by N cameras can be quickly displayed through the first target image. In this way, screening preview images in the shooting preview interface, and quickly displaying images captured by different cameras through the first target image not only reduces the time for customers to select and preview images captured by different cameras, but also enables users to quickly select The required preview images and quick viewing of images with different camera effects improve the user's operating efficiency, and provide a larger operating space for subsequent artistic creation, increasing the fun of taking pictures.

可选地,在本申请实施例中,在显示拍摄预览界面之前,本申请实施例提供的拍摄方法还包括如下步骤A1:Optionally, in the embodiment of the present application, before displaying the shooting preview interface, the shooting method provided in the embodiment of the present application further includes the following step A1:

步骤A1:拍摄装置按照目标划分参数,将上述拍摄预览界面划分为N个预览子区域。Step A1: The shooting device divides the shooting preview interface into N preview sub-areas according to the target division parameters.

示例性地,上述目标划分参数包括以下至少一项:摄像头数量、单个显示区域尺寸、单页最大区域数量(如,单页最大区域包括9个预览子区域)、上述拍摄预览界面的界面尺寸。Exemplarily, the target division parameters include at least one of the following: the number of cameras, the size of a single display area, the maximum number of areas on a single page (for example, the maximum area on a single page includes 9 preview sub-areas), and the interface size of the shooting preview interface.

示例性地,在目标划分参数包括摄像头数量、单页最大区域数量、上述拍摄预览界面的界面尺寸的情况下,拍摄装置可以计算上述显示区域的显示页数量。然后,根据上述显示页数量,确定每个显示页中划分的预览子区域数量,最后,根据当前显示页的预览子区域数量,按照拍摄预览界面的界面尺寸,划分上述拍摄预览界面生成上述预览子区域。Exemplarily, in the case where the target division parameters include the number of cameras, the maximum number of areas on a single page, and the interface size of the above-mentioned shooting preview interface, the shooting device may calculate the number of display pages in the above-mentioned display area. Then, according to the above-mentioned number of display pages, determine the number of preview sub-regions divided in each display page, and finally, according to the number of preview sub-regions of the current display page, according to the interface size of the shooting preview interface, divide the above-mentioned shooting preview interface to generate the above-mentioned preview sub-regions area.

示例性地,拍摄装置可以通过计算摄像头数量与单页最大区域数量的商值和余数,来得到显示页数量。例如,若上述余数为0,则确定上述拍摄预览图像的展示页数量为上述商值,若上述余数不为0,则确定上述展示页数量为上述商值加1。Exemplarily, the photographing device may obtain the number of display pages by calculating the quotient and remainder of the number of cameras and the maximum area number of a single page. For example, if the remainder is 0, it is determined that the number of display pages of the shooting preview image is the above-mentioned quotient value, and if the above-mentioned remainder is not 0, then it is determined that the number of display pages is the above-mentioned quotient value plus 1.

示例性地,如果上述显示页数量等于1,则确定上述拍摄预览界面的显示页划分的预览子区域数量为上述摄像头数量。如果上述显示页数量大于1,则确定上述摄预览界面的最末显示页划分的预览子区域数量为上述余数,确定上述拍摄预览界面的其他显示页划分的预览子区域数量为单页最大区域数量。举例说明,以上述显示页数量为1为例,假设摄像头数量为9,则预览子区域数量为9个;以上述显示页数量为2为例,假设摄像头数量为12,拍摄预览界面中单页最大区域数量为9,则第一个显示页的预览子区域的数量为9个,第二个显示页的预览子区域数量为3个。Exemplarily, if the above-mentioned number of display pages is equal to 1, it is determined that the number of preview sub-areas divided by the display pages of the above-mentioned shooting preview interface is the above-mentioned number of cameras. If the above-mentioned number of display pages is greater than 1, then determine that the number of preview sub-areas divided by the last display page of the above-mentioned shooting preview interface is the above remainder, and determine that the number of preview sub-areas divided by other display pages of the above-mentioned shooting preview interface is the maximum number of areas on a single page . For example, taking the above-mentioned number of displayed pages as 1, assuming that the number of cameras is 9, the number of preview sub-areas is 9; taking the above-mentioned number of displayed pages as 2, assuming that the number of cameras is 12, a single page If the maximum number of areas is 9, then the number of preview sub-areas of the first display page is 9, and the number of preview sub-areas of the second display page is 3.

示例性地,在上述目标划分参数包括摄像头数量、拍摄预览界面的界面尺寸和单个预览子区域尺寸的情况下,拍摄装置还可以计算拍摄预览界面中的单页最大区域数量,然后,基于根据单页最大区域数量确定显示页数量,最后根据显示页数量确定拍摄预览界面的显示页的预览子区域数量。例如,若摄像头数量为5,拍摄预览界面中单页最大区域数量为9,则显示页数量为1;若摄像头数量为5,拍摄预览界面中单页最大区域数量为4,则显示页数量为2。Exemplarily, when the above target division parameters include the number of cameras, the interface size of the shooting preview interface and the size of a single preview sub-area, the shooting device can also calculate the maximum number of single-page areas in the shooting preview interface, and then, based on the single-page The maximum number of page areas determines the number of display pages, and finally determines the number of preview sub-areas of the display page of the shooting preview interface according to the number of display pages. For example, if the number of cameras is 5 and the maximum number of areas on a single page in the shooting preview interface is 9, then the number of displayed pages is 1; if the number of cameras is 5, the maximum number of areas on a single page in the shooting preview interface is 4, then the number of displayed pages is 2.

示例性地,拍摄装置可以通过计算拍摄预览界面的界面尺寸与单个预览子区域尺寸的商值,来得到上述单页最大区域数量。Exemplarily, the photographing device may obtain the maximum number of areas on a single page by calculating the quotient of the interface size of the photographing preview interface and the size of a single preview sub-area.

需要说明的是,上述拍摄预览界面的预览子区域的数量是不固定的,预览子区域的尺寸大小也是不固定的。此外,在区域划分过程中,可以将采用竖等分、横等分、预览子区域的长宽比例固定、预览子区域大小固定等方式,将拍摄预览界面划分为5个预览子区域。It should be noted that, the number of preview sub-areas in the shooting preview interface is not fixed, and the size of the preview sub-areas is also not fixed. In addition, in the process of area division, the shooting preview interface can be divided into five preview sub-areas by adopting methods such as vertical equal division, horizontal equal division, fixed aspect ratio of preview sub-area, and fixed size of preview sub-area.

如此,拍摄装置可以根据电子设备中实际的摄像头数量,以及拍摄预览界面的界面尺寸等因素,灵活地对拍摄预览界面进行区域划分,从而便于用户对拍摄预览界面中的预览子区域的查看以及操作。In this way, the shooting device can flexibly divide the shooting preview interface into areas according to the actual number of cameras in the electronic device, the interface size of the shooting preview interface, etc., so as to facilitate the user to view and operate the preview sub-areas in the shooting preview interface .

可选地,在本申请实施例中,上述第一目标图像包括N个图像子区域,每个图像子区域分别与上述拍摄预览界面中的每个预览子区域的显示位置对应;在步骤102之后,本申请实施例提供的拍摄方法还包括如下步骤E1:Optionally, in the embodiment of the present application, the above-mentioned first target image includes N image sub-areas, and each image sub-area corresponds to the display position of each preview sub-area in the above-mentioned shooting preview interface; after step 102 , the photographing method provided by the embodiment of the present application further includes the following step E1:

步骤E1:建立上述第一目标图像中的N个图像子区域与上述N张图像之间的关联关系,并将第一目标图像与N张图像关联存储。Step E1: Establish an association relationship between the N image sub-regions in the first target image and the N images, and store the first target image and the N images in association.

其中,一个图像子区域与N张图像中一个图像子区域对应显示位置的预览子区域对应的摄像头拍摄的图像相关联。Wherein, one image sub-region is associated with the image captured by the camera corresponding to the preview sub-region corresponding to the display position of one image sub-region among the N images.

示例性地,拍摄装置在得到N个摄像头拍摄的N张图像和第一目标图像后,可以将上述第一目标图像与上述N张图像,或者N张图像的图像数据关联存储。Exemplarily, after obtaining N images captured by N cameras and the first target image, the photographing device may store the first target image in association with the N images, or the image data of the N images.

进一步地,上述图像的图像数据的格式可以包括以下至少一项:RAW,YUV或JPEG。需要说明的是,RAW(RAW Image Format)格式是未经处理、也未经压缩的格式,即,RAW格式的图像数据为图像的源数据。Further, the image data format of the above image may include at least one of the following: RAW, YUV or JPEG. It should be noted that the RAW (RAW Image Format) format is an unprocessed and uncompressed format, that is, the image data in the RAW format is the source data of the image.

示例性地,拍摄装置可以按照拍摄预览界面中N个预览子区域与N个摄像头相对应的区域排布信息,依次获取并存储每个目标摄像头拍摄的图像对应的预览图像。Exemplarily, the photographing device may sequentially acquire and store preview images corresponding to images captured by each target camera according to the area arrangement information of N preview sub-areas corresponding to N cameras in the photographing preview interface.

示例性地,拍摄装置可以建立第一目标图像中的一个图像子区域与N张图像中该图像子区域对应显示位置的预览子区域对应的摄像头拍摄的图像的映射关系,并保存该映射关系。For example, the shooting device may establish a mapping relationship between an image sub-region in the first target image and an image captured by a camera corresponding to a preview sub-region corresponding to a display position of the image sub-region in N images, and save the mapping relationship.

如此,在用户对第一目标图像中的任一图像子区域进行触发操作的情况下,能够触发显示该图像子区域对应的原始拍摄图像,以实现通过第一目标图像中的图像子区域快速查看对应的原始拍摄图像。In this way, when the user performs a trigger operation on any image sub-region in the first target image, the original captured image corresponding to the image sub-region can be triggered to be displayed, so as to realize quick viewing through the image sub-region in the first target image Corresponding original captured image.

进一步地,上述建立映射关系可以包括以下任一项:建立图像子区域与其对应的图像之间的地址映射关系。Further, the establishment of the above-mentioned mapping relationship may include any of the following: establishing an address mapping relationship between an image sub-region and its corresponding image.

示例性地,拍摄装置还可以为每个缩略图设置各自对应的图像的摄像头的摄像头标识。进一步的,拍摄装置还可以在每个图像子区域或者每个图像子区域对应的图像上增加对应的摄像头标识。Exemplarily, the photographing device may also set, for each thumbnail, the camera identifier of the camera corresponding to the image. Further, the photographing device may also add a corresponding camera identification on each image sub-area or the image corresponding to each image sub-area.

进一步可选地,在本申请实施例中,结合上述步骤E1,拍摄装置在将上第一目标图像与上述N个图像关联存储后,用户可以通过对上述第一目标图像中的任一图像子区域的触控输入,来查看该图像子区域对应的图像的图像内容。Further optionally, in this embodiment of the present application, in combination with the above step E1, after the photographing device associates and stores the above first target image with the above N images, the user can sub-select any image in the above first target image The touch input of the area is used to view the image content of the image corresponding to the image sub-area.

示例性地,上述步骤102之后,本申请实施例提供的拍摄方法还包括如下步骤F1和步骤F2:Exemplarily, after the above step 102, the photographing method provided in the embodiment of the present application further includes the following steps F1 and F2:

步骤F1:接收用户对第一目标图像中的目标图像子区域的第五输入。Step F1: Receive a fifth input from the user on the sub-region of the target image in the first target image.

步骤F2:响应于第五输入,显示目标图像子区域关联的图像。Step F2: In response to the fifth input, display the image associated with the target image sub-region.

示例性地,上述目标图像子区域为上述图像子区域中的一个或者多个图像子区域。Exemplarily, the above-mentioned target image sub-area is one or more image sub-areas in the above-mentioned image sub-area.

示例性地,上述目标图像子区域关联的图像为上述N个图像中,该目标图像子区域对应的图像,即,摄像头拍摄得到的原始图像。进一步地,上述目标图像子区域关联的图像包括至少两张图像。Exemplarily, the image associated with the target image sub-region is an image corresponding to the target image sub-region among the N images, that is, the original image captured by the camera. Further, the images associated with the target image sub-region include at least two images.

示例性地,拍摄装置可以将当前界面的显示内容更新为与目标图像子区域关联的图像,或者,在当前界面上悬浮显示该图像,或者生成新的界面显示该图像。Exemplarily, the photographing device may update the display content of the current interface to an image associated with the target image sub-region, or display the image in a floating manner on the current interface, or generate a new interface to display the image.

如此,用户可以通过该一张图像,快捷灵活地查看不同拍摄头拍摄得到的多张图像,从而使得用户不需要在相册中的海量图像中查找不同摄像头拍摄的同一物体的多张原图,提高了图像查找的效率。In this way, users can quickly and flexibly view multiple images captured by different cameras through this one image, so that users do not need to search for multiple original images of the same object captured by different cameras in the massive images in the album, improving improve the efficiency of image search.

举例说明,如图3中的(a)所示,第一目标图像包括9个缩略图,用户在点击其中的广角摄像头对应的缩略图31后,如图3中的(b)所示,拍摄装置获取该广角摄像头拍摄的图像,并呈现该图像的图像内容。For example, as shown in (a) in Figure 3, the first target image includes 9 thumbnails, and after the user clicks the thumbnail 31 corresponding to the wide-angle camera therein, as shown in (b) in Figure 3, the shooting The device acquires the image captured by the wide-angle camera, and presents the image content of the image.

需要说明的是,第一目标图像包括每个目标摄像头拍摄得到的的图像的图像内容,并且第一目标图像中的各个图像子区域与摄像头、图像之间具有关联关系,因此,可以通过删除、复制、移动等方式在第一目标图像内改变图像子区域的排布,修改目标摄像头对应的图像的排布,以挑选符合用户需要的图像。It should be noted that the first target image includes the image content of the image captured by each target camera, and each image sub-region in the first target image has an association relationship with the camera and the image. Therefore, it can be deleted, Change the arrangement of image sub-regions in the first target image by means of copying, moving, etc., and modify the arrangement of images corresponding to the target camera, so as to select an image that meets the needs of the user.

如此,通过对应存储第一目标图像和目标摄像头拍摄的图像的图像数据,使得用户可以便捷地通过对第一目标图像的输入,查看上述任一图像。In this way, by correspondingly storing the image data of the first target image and the image captured by the target camera, the user can conveniently view any of the above images by inputting the first target image.

进一步可选地,在本申请实施例中,上述步骤E1中获取第一目标图像的过程,可以包括如下步骤E2:Further optionally, in the embodiment of the present application, the process of acquiring the first target image in the above step E1 may include the following step E2:

步骤E2:拍摄装置按照上述N个预览子区域的区域排布信息,将N个预览子区域显示的N张预览图像进行图像合成,得到第一目标图像。Step E2: The photographing device synthesizes the N preview images displayed in the N preview sub-areas according to the area arrangement information of the N preview sub-areas to obtain the first target image.

其中,上述区域排布信息包括以下至少一项:显示位置、显示面积、显示内容。Wherein, the above area layout information includes at least one of the following: display position, display area, and display content.

示例性地,上述区域排布信息可以包括:拍摄预览界面中的N个预览子区域的区域位置信息、区域数量信息、区域尺寸信息等。进一步地,区域排布信息可以为4宫格、9宫格等,本申请实施例对此不做限定。Exemplarily, the above area arrangement information may include: area position information, area number information, area size information, etc. of the N preview sub-areas in the shooting preview interface. Further, the area arrangement information may be 4 grids, 9 grids, etc., which is not limited in this embodiment of the present application.

举例说明,结合上述图2,在图2中的9个预览子区域中,依次显示有预览图像1至预览图像9这9个预览图像。当用户点击界面上的“拍摄”控件23(即,上述第一输入)时,如图4所示,拍摄装置可以获取上述每个预览图像对应的图像,并按照每个图像子区域在拍摄预览界面中的区域排布信息,将每个预览子区域中的预览图像进行合成,得到包括上述各个预览子区域的预览图像的图像内容的图像41(即,第一目标图像)。For example, with reference to the above-mentioned FIG. 2 , in the nine preview sub-regions in FIG. 2 , nine preview images, namely preview image 1 to preview image 9 , are sequentially displayed. When the user clicks the "shoot" control 23 on the interface (that is, the above-mentioned first input), as shown in FIG. The area layout information in the interface synthesizes the preview images in each preview sub-area to obtain an image 41 (ie, the first target image) including the image content of the preview images in each preview sub-area.

如此,拍摄装置可以根据第一目标图像中图像子区域的排布信息(如,区域位置),对预览图像进行合成以生成第一目标图像,使得用户能够根据对预览图像的既定印象快速熟悉第一目标图像,以便于对第一目标图像中的多个图像内容进行再次编辑。In this way, the shooting device can synthesize the preview image to generate the first target image according to the arrangement information of the image sub-regions in the first target image (such as the location of the region), so that the user can quickly get familiar with the first target image based on the predetermined impression of the preview image. A target image, so as to re-edit multiple image contents in the first target image.

进一步可选地,在本申请实施例中,拍摄装置在获取到第一目标图像之后,拍摄装置可以通过第一目标图像,对N个图像中的部分或全部图像执行第一目标操作,或,对第一目标图像执行第二目标操作。其中,上述第一目标操作包括以下至少一项:查看、修改、保存、复制或删除图像的图像数据,和/或,上述图像对应的第一目标图像中的图像子区域中的图像内容。上述第二目标操作可以包括以下至少一项:查看、修改、保存、复制或删除上述第一目标图像中的图像子区域。Further optionally, in the embodiment of the present application, after the photographing device acquires the first target image, the photographing device may perform the first target operation on some or all of the N images through the first target image, or, A second target operation is performed on the first target image. Wherein, the above-mentioned first target operation includes at least one of the following: viewing, modifying, saving, copying or deleting the image data of the image, and/or, the image content in the image sub-region in the first target image corresponding to the above-mentioned image. The second target operation may include at least one of the following: viewing, modifying, saving, copying or deleting an image sub-region in the first target image.

示例性地,如果拍摄装置接收到删除第一目标图像中超广角镜头对应的图像子区域的输入,则删除第一目标图像中超广角镜头对应的图像子区域,或者图像子区域中的图像内容,同时删除超广角镜头对应的(即,超广角镜头拍摄的图像)图像的图像数据,反之,如果接收到删除超广角镜头对应的图像的图像数据的操作指令,则删除超广角镜头对应的图像的图像数据,同时删除第一目标图像中的超广角镜头对应的图像子区域,或者图像子区域中的图像内容。For example, if the photographing device receives an input to delete the image subregion corresponding to the super wide-angle lens in the first target image, then delete the image subregion corresponding to the super wide-angle lens in the first target image, or the image content in the image subregion, and delete the super wide-angle lens at the same time. The image data of the image corresponding to the wide-angle lens (that is, the image taken by the ultra-wide-angle lens), otherwise, if an operation instruction is received to delete the image data of the image corresponding to the ultra-wide-angle lens, then delete the image data of the image corresponding to the ultra-wide-angle lens, and delete the first The image sub-area corresponding to the ultra-wide-angle lens in the target image, or the image content in the image sub-area.

进一步可选地,在本申请实施例中,在步骤102之后,本申请实施例提供的拍摄方法还包括如下步骤G1至步骤G5:Further optionally, in the embodiment of the present application, after step 102, the photographing method provided in the embodiment of the present application further includes the following steps G1 to G5:

步骤G1:拍摄装置接收用户的第二输入。Step G1: The photographing device receives a second input from the user.

步骤G2:拍摄装置响应于上述第二输入,显示上述第一目标图像。Step G2: The photographing device displays the above-mentioned first target image in response to the above-mentioned second input.

步骤G3:拍摄装置接收用户对第一目标图像中的N个图像子区域中的T个图像子区域的第三输入。Step G3: The photographing device receives a third input from the user on T image sub-areas in the N image sub-areas in the first target image.

步骤G4:拍摄装置响应于上述第三输入,将上述T个图像子区域显示的T张预览图像进行图像合成,得到第二目标图像。Step G4: In response to the third input, the photographing device performs image synthesis on the T preview images displayed in the T image sub-regions to obtain a second target image.

步骤G5:建立第二目标图像中的T个图像子区域与T张图像之间的关联关系,并将第二目标图像与T张图像关联存储。Step G5: Establish an association relationship between T image sub-regions in the second target image and T images, and store the second target image and T images in association.

其中,一个图像子区域与T张图像中所述一个图像子区域对应显示位置的预览子区域对应的摄像头拍摄的图像相关联;其中,T为正整数,T<N。Wherein, one image sub-region is associated with the image captured by the camera corresponding to the preview sub-region corresponding to the display position of the one image sub-region in the T images; wherein, T is a positive integer, T<N.

可以理解的是,拍摄装置在获取第一目标图像之后,可以先显示第一目标图像,然后根据用户对该第一目标图像的输入,对该第一目标图像进行二次图像处理(即,上述图像合成),以获取符合用户需要的图像。例如,删除第一目标图像、复制第一目标图像、调整第一目标图像的图像参数、对第一目标图像进行图像融合等等。It can be understood that after the photographing device acquires the first target image, it may first display the first target image, and then perform secondary image processing on the first target image according to the user's input (that is, the above-mentioned image synthesis) to obtain images that meet user needs. For example, delete the first target image, copy the first target image, adjust image parameters of the first target image, perform image fusion on the first target image, and so on.

在一种示例中,在对第一目标图像中的T个图像子区域中的T张预览图像进行图像合成的情况下,拍摄装置可以根据T个图像子区域的区域排布情况,对T个图像子区域中的T张预览图像进行图像融合。即,融合后的图像(即,第二目标图像)中的各个图像子区域对应的预览图像的排布,与融合前的图像(即,第一目标图像)的排布相同。In an example, in the case of performing image synthesis on T preview images in T image sub-regions in the first target image, the photographing device may, according to the regional arrangement of the T image sub-regions, Image fusion is performed on T preview images in the image sub-region. That is, the arrangement of the preview image corresponding to each image sub-region in the fused image (ie, the second target image) is the same as that of the pre-fused image (ie, the first target image).

在另一种示例中,拍摄装置可以根据预定模板,对各个缩略图对应的图像进行融合,以得到预定排布样式的图像。进一步地,上述预定模板可以为2宫格图像模板,4宫格图像模板等。In another example, the photographing device may fuse images corresponding to each thumbnail according to a predetermined template to obtain images in a predetermined layout style. Further, the aforementioned predetermined template may be a 2-grid image template, a 4-grid image template, and the like.

举例说明,结合上述图4,在用户依次点击九宫格图像41(即,第一目标图像)中的图像子区域42,图像子区域43,图像子区域44和图像子区域45后,可以在当前界面上的进行滑动输入,以触发对上述缩略图进行重新排布,如图5所示,拍摄装置调取4宫格图像模板并根据该图像模板对上述4个图像子区域进行图像融合,得到将图像子区域进行重新排布的四宫格图像51(即,上述第二目标图像)。Illustrate, in conjunction with above-mentioned Fig. 4, after the user successively clicks the image sub-region 42 in the nine-square grid image 41 (that is, the first target image), the image sub-region 43, the image sub-region 44 and the image sub-region 45, the current interface can be Sliding input on the above-mentioned thumbnails to trigger the rearrangement of the above-mentioned thumbnails, as shown in Figure 5, the shooting device calls a 4-grid image template and performs image fusion on the above-mentioned 4 image sub-regions according to the image template, and obtains the The four-grid image 51 (that is, the above-mentioned second target image) in which the image sub-regions are rearranged.

示例性地,在得到第二目标图像之后,拍摄装置可以建立第二目标图像中的T个图像子区域与T张图像之间的关联关系,并将第二目标图像与T张图像关联存储。如此,便于用户通过第二目标图像快速查看第二目标图像的图像子区域对应的任一原始图像。Exemplarily, after obtaining the second target image, the photographing device may establish an association relationship between T image sub-regions in the second target image and T images, and store the second target image and the T images in association. In this way, it is convenient for the user to quickly view any original image corresponding to the image sub-region of the second target image through the second target image.

如此,在实际拍摄过程中,在获取包括多个预览图像的第一目标图像之后,当第一预览图像不满足用户需求时,拍摄装置可以对该第一目标图像中的图像子区域进行重新组合以及图像合成,从而生成满足用户需求的新的图像。由于第一目标图像是作为查看与第一目标图像的多个图像子区域关联的多张图像的原图的媒介,基于第一目标图像,用户可以自定义选取多张图像中的任意至少两张进行重新组合,从而得到包括用户需求的至少两张图像对应的预览图像的第二目标图像,不需要重新拍摄一次,仅需要在已经生成的包括多个预览图像的第一目标图像的基础上进行选择,即可得到包括用户需求查看的多张图像对应的预览图像的第二目标图像,操作便捷,图像的生成的灵活性更高。In this way, in the actual shooting process, after acquiring the first target image including multiple preview images, when the first preview image does not meet the user's needs, the shooting device can recombine the image sub-regions in the first target image And image synthesis to generate new images that meet user needs. Since the first target image is used as a medium for viewing the original images of multiple images associated with multiple image sub-regions of the first target image, based on the first target image, the user can select any at least two of the multiple images Perform recombination to obtain the second target image including the preview images corresponding to at least two images required by the user, without needing to take another shot, and only need to be based on the generated first target image including multiple preview images By selecting, the second target image including the preview images corresponding to the multiple images that the user needs to view can be obtained, the operation is convenient, and the flexibility of image generation is higher.

可选地,在本申请实施例中,拍摄装置可以根据用户需求,在拍摄预览界面中显示用户选择的一个或者多个显示区域中的预览图像。Optionally, in this embodiment of the present application, the photographing device may display preview images in one or more display areas selected by the user in the photographing preview interface according to user requirements.

示例性地,上述显示拍摄预览界面之后,本申请实施例提供的拍摄方法还包括如下步骤H1和步骤H2:Exemplarily, after the shooting preview interface is displayed above, the shooting method provided by the embodiment of the present application further includes the following steps H1 and H2:

步骤H1:接收用户对N个预览子区域中的M个预览子区域的第四输入。Step H1: Receive the user's fourth input on the M preview sub-areas in the N preview sub-areas.

步骤H2:响应于第四输入,将N个预览子区域中的预览图像更新为M个预览子区域中的预览图像。Step H2: In response to the fourth input, update the preview images in the N preview sub-areas to the preview images in the M preview sub-areas.

其中,M为正整数,M<N。Wherein, M is a positive integer, M<N.

示例性地,上述X个第一显示区域可以是用户从M个显示区域中选择的,其选择方式包括但不限于单击、双击、长按、手势和语音。Exemplarily, the above-mentioned X first display areas may be selected by the user from M display areas, and the selection methods include but not limited to single click, double click, long press, gesture and voice.

示例性地,拍摄装置在接收用户的第四输入后,可以对拍摄预览界面进行更新。进一步地,拍摄装置可以将拍摄预览界面中的Y个显示区域更新为X个显示区域,并将拍摄预览界面中显示的预览图像更新为上述X个第一显示区域内的预览图像。Exemplarily, after receiving the user's fourth input, the shooting device may update the shooting preview interface. Further, the shooting device may update the Y display areas in the shooting preview interface to X display areas, and update the preview images displayed in the shooting preview interface to the preview images in the X first display areas.

举例说明,结合上述图2,用户在点击拍摄预览界面中的显示区域21和显示区域22后,如图6所示,拍摄装置将图2中的9个显示区域中的预览图像,更新为图6中的2个显示区域中的预览图像。即,拍摄装置在显示区域61中显示显示区域21中的预览图像,在显示区域62中显示显示区域22中的预览图像。For example, in conjunction with the above-mentioned FIG. 2, after the user clicks the display area 21 and the display area 22 in the shooting preview interface, as shown in FIG. 6, the shooting device updates the preview images in the nine display areas in FIG. 2 of 6 preview images in the display area. That is, the imaging device displays the preview image in the display area 21 in the display area 61 and displays the preview image in the display area 22 in the display area 62 .

如此,在拍摄预览界面中显示有多个预览图像的情况下,拍摄装置可以根据用户的实际需求,将拍摄预览界面中的多个预览图像更新为用户需要查看的预览图像,提高用户操作的灵活性。In this way, when multiple preview images are displayed in the shooting preview interface, the shooting device can update the multiple preview images in the shooting preview interface to the preview images that the user needs to view according to the actual needs of the user, thereby improving the flexibility of user operations sex.

示例性地,上述第二显示区域为上述X个第一显示区域中的至少一个。Exemplarily, the second display area is at least one of the X first display areas.

进一步地,第二显示区域是指用户X个第一显示区域中选择的,其选择方式包括但不限于单击、双击、长按、手势和语音。Further, the second display area refers to the one selected by the user from the X first display areas, and the selection methods include but not limited to single click, double click, long press, gesture and voice.

可选地,在本申请实施例中,拍摄装置可以接收用户在拍摄预览界面中的任一预览子区域的输入,调整该预览子区域中展示的预览图像的参数。Optionally, in this embodiment of the present application, the shooting device may receive user input in any preview sub-area in the shooting preview interface, and adjust parameters of the preview image displayed in the preview sub-area.

示例性地,拍摄装置可以将原画面参数对应的预览图像在调整图像参数之前进行保存,以便于与调整参数后的预览图像进行比较。Exemplarily, the photographing device may save the preview image corresponding to the original picture parameters before adjusting the image parameters, so as to compare with the preview image after adjusting the parameters.

示例性地,如果发现原画面参数对应的预览图像更符合用户需求,可以通过设置画面参数的一键还原控件,以原画面参数捕捉预览图像。For example, if it is found that the preview image corresponding to the original image parameters is more in line with the user's needs, the preview image can be captured with the original image parameters by setting the one-key restoration control of the image parameters.

如此,在拍摄过程中,拍摄装置可以根据用户需求,对任一预览子区域中的预览图像的图像参数进行调整,以满足用户对于预览图像的精准性要求。In this way, during the shooting process, the shooting device can adjust the image parameters of the preview image in any preview sub-area according to the needs of the user, so as to meet the accuracy requirements of the user for the preview image.

需要说明的是,本申请实施例提供的拍摄方法,执行主体可以为拍摄装置,或者该拍摄装置中的用于执行拍摄方法的控制模块。本申请实施例中以拍摄装置执行拍摄方法为例,说明本申请实施例提供的拍摄装置。It should be noted that, the shooting method provided in the embodiment of the present application may be executed by a shooting device, or a control module in the shooting device for executing the shooting method. In the embodiment of the present application, taking the photographing device executing the photographing method as an example, the photographing device provided in the embodiment of the present application is described.

图7为本申请实施例提供的一种拍摄装置的结构示意图之一,如图7所示,上述拍摄装置500包括:接收模块501和获取模块502,其中:上述接收模块501,用于在显示拍摄预览界面的情况下,接收用户的第一输入,上述拍摄预览界面包括N个预览子区域,每个预览子区域包括一个摄像头采集的预览图像;上述获取模块502,用于响应于上述接收模块501接收到的上述第一输入,控制N个摄像头拍摄,得到N张图像,并生成第一目标图像;其中,N为大于1的整数,上述第一目标图像是基于上述N个预览子区域显示的N张预览图像合成得到的,上述第一目标图像用于显示上述N张图像中的任一个。FIG. 7 is one of the structural schematic diagrams of a photographing device provided in the embodiment of the present application. As shown in FIG. In the case of the shooting preview interface, the user's first input is received. The shooting preview interface includes N preview sub-areas, and each preview sub-area includes a preview image collected by a camera; the acquisition module 502 is used to respond to the above-mentioned receiving module 501 receives the above-mentioned first input, controls N cameras to shoot, obtains N images, and generates a first target image; wherein, N is an integer greater than 1, and the above-mentioned first target image is displayed based on the above-mentioned N preview sub-areas obtained by synthesizing the N preview images, and the first target image is used to display any one of the N images.

在本申请实施例提供的拍摄装置中,在显示拍摄预览界面的情况下,由于该拍摄预览界面的N个预览子区域中能够分别显示N个摄像头中每个摄像头的预览图像,从而使得用户能够在该拍摄预览界面中进行预览图像的筛选;进而在接收用户的第一输入后,能够响应第一输入得到上述N个摄像头拍摄的N张图像,并基于N个预览子区域中的N张预览图像合成得到第一目标图像,然后可以通过该第一目标图像快速显示N个摄像头拍摄的N张图像。如此,在拍摄预览界面中进行预览图像的筛选,以及,通过第一目标图像快速显示不同摄像头拍摄的图像,不仅降低客户挑选拍摄预览图像以及预览不同摄像头拍摄的图像的时间,使得用户可以快速选取需求的预览图像以及快速查看不同摄像效果的图像,提高了用户的操作效率,还为后续艺术创作提供更大的操作空间,增加了拍照的趣味性。In the shooting device provided in the embodiment of the present application, when the shooting preview interface is displayed, the preview images of each of the N cameras can be displayed in the N preview sub-areas of the shooting preview interface, so that the user can Screening of preview images is carried out in the shooting preview interface; and then after receiving the first input from the user, the N images captured by the above N cameras can be obtained in response to the first input, and based on the N previews in the N preview sub-areas The first target image is obtained by image synthesis, and then N images captured by N cameras can be quickly displayed through the first target image. In this way, screening preview images in the shooting preview interface, and quickly displaying images captured by different cameras through the first target image not only reduces the time for customers to select and preview images captured by different cameras, but also enables users to quickly select The required preview images and quick viewing of images with different camera effects improve the user's operating efficiency, and provide a larger operating space for subsequent artistic creation, increasing the fun of taking pictures.

可选地,在本申请实施例中,上述第一目标图像包括N个图像子区域,每个图像子区域分别与上述拍摄预览界面中的每个预览子区域的显示位置对应;上述装置还包括:关联模块503和存储模块504;上述关联模块503,用于建立上述第一目标图像中的N个图像子区域与上述N张图像之间的关联关系;上述存储模块504,用于将上述关联模块建立关联关系的上述第一目标图像中的N个图像子区域与上述N张图像关联存储;其中,一个图像子区域与上述N张图像中上述一个图像子区域对应显示位置的预览子区域对应的摄像头拍摄的图像相关联。Optionally, in the embodiment of the present application, the above-mentioned first target image includes N image sub-regions, and each image sub-region corresponds to the display position of each preview sub-region in the above-mentioned shooting preview interface; the above-mentioned device further includes : an association module 503 and a storage module 504; the above-mentioned association module 503 is used to establish the association relationship between the N image sub-regions in the above-mentioned first target image and the above-mentioned N images; the above-mentioned storage module 504 is used to use the above-mentioned association The N image sub-regions in the above-mentioned first target image that the module establishes an association relationship with the above-mentioned N images are stored in association; wherein, one image sub-region corresponds to the preview sub-region corresponding to the display position of the above-mentioned one image sub-region in the above-mentioned N images associated with the images captured by the camera.

如此,在用户对第一目标图像中的任一图像子区域进行触发操作的情况下,能够触发显示该图像子区域对应的原始拍摄图像,以实现通过第一目标图像中的图像子区域快速查看对应的原始拍摄图像。In this way, when the user performs a trigger operation on any image sub-region in the first target image, the original captured image corresponding to the image sub-region can be triggered to be displayed, so as to realize quick viewing through the image sub-region in the first target image Corresponding original captured image.

可选地,在本申请实施例中,上述装置还包括:显示模块505,其中:上述接收模块501,还用于接收用户对上述第一目标图像中的目标图像子区域的第五输入;上述显示模块505,用于响应于上述接收模块501接收的上述第五输入,显示上述目标图像子区域关联的图像。Optionally, in the embodiment of the present application, the above-mentioned device further includes: a display module 505, wherein: the above-mentioned receiving module 501 is also configured to receive a fifth input from the user on the target image sub-region in the above-mentioned first target image; the above-mentioned The display module 505 is configured to display an image associated with the target image sub-region in response to the fifth input received by the receiving module 501 .

如此,用户可以根据实际需求,通过第一目标图像,随时查看任意摄像头拍摄的图像,提高用户操作的便捷性。In this way, the user can view images captured by any camera at any time through the first target image according to actual needs, thereby improving the convenience of user operations.

可选地,在本申请实施例中,上述装置还包括:合成模块506;上述接收模块501,还用于接收用户的第二输入;上述显示模块505,还用于响应于上述接收模块501接收的上述第二输入,显示上述第一目标图像;上述接收模块501,还用于接收用户对上述第一目标图像的上述N个图像子区域中的T个图像子区域的第三输入;上述合成模块506,用于响应于上述接收模块501接收的上述第三输入,将上述T个图像子区域显示的T张预览图像进行图像合成,得到第二目标图像;上述关联模块503,上述第二目标图像中的T个图像子区域与T张图像之间的关联关系;上述存储模块504,还用于将上述第二目标图像与上述T张图像关联存储;其中,一个图像子区域与上述T张图像中上述一个图像子区域对应显示位置的预览子区域对应的摄像头拍摄的图像相关联,T为正整数,T<N。Optionally, in the embodiment of the present application, the above-mentioned device further includes: a synthesizing module 506; the above-mentioned receiving module 501 is also configured to receive the second input from the user; the above-mentioned display module 505 is also used to respond to the above-mentioned receiving module 501 receiving The above-mentioned second input of the above-mentioned first target image is displayed; the above-mentioned receiving module 501 is also configured to receive the third input of the user on the T image sub-regions of the above-mentioned N image sub-regions of the above-mentioned first target image; the above-mentioned synthesis Module 506, configured to, in response to the above-mentioned third input received by the above-mentioned receiving module 501, perform image synthesis on the T preview images displayed in the above-mentioned T image sub-regions to obtain a second target image; the above-mentioned associating module 503, the above-mentioned second target The association relationship between the T image sub-regions in the image and the T images; the above-mentioned storage module 504 is also used for associating and storing the above-mentioned second target image and the above-mentioned T images; The image captured by the camera corresponding to the preview sub-area corresponding to the display position of the above-mentioned one image sub-area in the image is associated, T is a positive integer, and T<N.

如此,在实际拍摄过程中,在获取包括多个预览图像的第一目标图像之后,当第一预览图像不满足用户需求时,拍摄装置可以对该第一目标图像中的图像子区域进行重新组合以及图像合成,从而生成满足用户需求的新的图像。In this way, in the actual shooting process, after acquiring the first target image including multiple preview images, when the first preview image does not meet the user's needs, the shooting device can recombine the image sub-regions in the first target image And image synthesis to generate new images that meet user needs.

可选地,在本申请实施例中,上述装置还包括:划分模块507;上述划分模块507,用于在显示拍摄预览界面之前,按照目标划分参数,将拍摄预览界面划分为N个预览子区域;其中,目标划分参数包括以下至少一项:摄像头数量、单个显示区域尺寸、单页最大区域数量、拍摄预览界面的界面尺寸。Optionally, in the embodiment of the present application, the above-mentioned device further includes: a division module 507; the above-mentioned division module 507 is used to divide the shooting preview interface into N preview sub-areas according to the target division parameters before displaying the shooting preview interface ; Wherein, the target division parameters include at least one of the following: the number of cameras, the size of a single display area, the maximum number of areas on a single page, and the interface size of the shooting preview interface.

如此,拍摄装置可以根据电子设备中实际的摄像头数量,以及拍摄预览界面的界面尺寸等因素,灵活地对拍摄预览界面进行区域划分,从而便于用户对拍摄预览界面中的预览子区域的查看以及操作。In this way, the shooting device can flexibly divide the shooting preview interface into areas according to the actual number of cameras in the electronic device, the interface size of the shooting preview interface, etc., so as to facilitate the user to view and operate the preview sub-areas in the shooting preview interface .

可选地,在本申请实施例中,上述合成模块506,还用于按照上述N个预览子区域的区域排布信息,将上述N个预览子区域显示的N张预览图像进行图像合成,得到第一目标图像;其中,上述区域排布信息包括以下至少一项:显示位置、显示面积、显示内容。Optionally, in the embodiment of the present application, the synthesis module 506 is further configured to perform image synthesis on the N preview images displayed in the N preview sub-areas according to the area arrangement information of the N preview sub-areas to obtain The first target image; wherein, the area layout information includes at least one of the following: display position, display area, and display content.

如此,拍摄装置可以根据第一目标图像中图像子区域的排布信息(如,区域位置),对预览图像进行合成以生成第一目标图像,使得用户能够根据对预览图像的既定印象快速熟悉第一目标图像,以便于对第一目标图像中的多个图像内容进行再次编辑。In this way, the shooting device can synthesize the preview image to generate the first target image according to the arrangement information of the image sub-regions in the first target image (such as the location of the region), so that the user can quickly get familiar with the first target image based on the predetermined impression of the preview image. A target image, so as to re-edit multiple image contents in the first target image.

可选地,在本申请实施例中,其特征在于,上述装置还包括:更新模块508;上述接收模块501,还用于接收用户对上述N个预览子区域中的M个预览子区域的第四输入;上述更新模块508,用于响应于上述接收模块501接收的上述第四输入,将上述N个预览子区域中的预览图像更新为上述M个预览子区域中的预览图像;其中,M为正整数,M<N。Optionally, in the embodiment of the present application, it is characterized in that the above device further includes: an update module 508; the above receiving module 501 is also configured to receive the user's first request for the M preview sub-areas in the above N preview sub-areas. Four inputs; the updating module 508 is configured to update the preview images in the N preview sub-areas to the preview images in the M preview sub-areas in response to the fourth input received by the receiving module 501; wherein, M It is a positive integer, M<N.

如此,在拍摄预览界面中显示有多个预览图像的情况下,拍摄装置可以根据用户的实际需求,将拍摄预览界面中的多个预览图像更新为用户需要查看的预览图像,提高用户操作的灵活性。In this way, when multiple preview images are displayed in the shooting preview interface, the shooting device can update the multiple preview images in the shooting preview interface to the preview images that the user needs to view according to the actual needs of the user, thereby improving the flexibility of user operations sex.

本申请实施例中的拍摄装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性地,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(networkattached storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The photographing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, tablet computer, notebook computer, palmtop computer, vehicle electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant) , PDA), etc., the non-mobile electronic device can be a server, a network attached storage (network attached storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., the embodiment of the present application Not specifically limited.

本申请实施例中的拍摄装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The photographing device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.

本申请实施例提供的拍摄装置能够实现图1至图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。The photographing device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 4 , and details are not repeated here to avoid repetition.

可选的,如图8所示,本申请实施例还提供一种电子设备700,包括处理器701,存储器702,存储在存储器702上并可在处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 8 , the embodiment of the present application also provides an electronic device 700, including a processor 701, a memory 702, and a program or instruction stored in the memory 702 and operable on the processor 701. The program Or, when the instructions are executed by the processor 701, each process of the above-mentioned photographing method embodiment can be realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.

需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图9为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、以及处理器810等部件。其中,用户输入单元807包括:触控面板8071和其他输入设备8072,显示单元806包含显示面板8061,输入单元804包括图像处理器8041和麦克风8042,存储器809可用于存储软件程序(如,操作系统、至少一个功能所需的应用程序)以及各种数据。The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. part. Wherein, the user input unit 807 includes: a touch panel 8071 and other input devices 8072, the display unit 806 includes a display panel 8061, the input unit 804 includes an image processor 8041 and a microphone 8042, and the memory 809 can be used to store software programs (such as an operating system , applications required for at least one function) and various data.

本领域技术人员可以理解,电子设备800还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图9中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 800 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 810 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 9 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .

其中,用户输入单元807,用于在显示拍摄预览界面的情况下,接收用户的第一输入,上述拍摄预览界面包括N个预览子区域,每个预览子区域包括一个摄像头采集的预览图像;上述处理器810,用于响应于上述用户输入单元807接收到的第一输入,控制N个摄像头拍摄,得到N张图像,并生成第一目标图像;其中,N为大于1的整数,上述第一目标图像是基于上述N个预览子区域显示的N张预览图像合成得到的,上述第一目标图像用于显示上述N张图像中的任一个。Wherein, the user input unit 807 is configured to receive the user's first input when the shooting preview interface is displayed, the shooting preview interface includes N preview sub-areas, and each preview sub-area includes a preview image collected by a camera; the above-mentioned The processor 810 is configured to, in response to the first input received by the above-mentioned user input unit 807, control N cameras to shoot, obtain N images, and generate a first target image; wherein, N is an integer greater than 1, and the above-mentioned first The target image is synthesized based on the N preview images displayed in the N preview sub-areas, and the first target image is used to display any one of the N preview images.

在本申请实施例提供的电子设备中,在显示拍摄预览界面的情况下,由于该拍摄预览界面的N个预览子区域中能够分别显示N个摄像头中每个摄像头的预览图像,从而使得用户能够在该拍摄预览界面中进行预览图像的筛选;进而在接收用户的第一输入后,能够响应第一输入得到上述N个摄像头拍摄的N张图像,并基于N个预览子区域中的N张预览图像合成得到第一目标图像,然后可以通过该第一目标图像快速显示N个摄像头拍摄的N张图像。如此,在拍摄预览界面中进行预览图像的筛选,以及,通过第一目标图像快速显示不同摄像头拍摄的图像,不仅降低客户挑选拍摄预览图像以及预览不同摄像头拍摄的图像的时间,使得用户可以快速选取需求的预览图像以及快速查看不同摄像效果的图像,提高了用户的操作效率,还为后续艺术创作提供更大的操作空间,增加了拍照的趣味性。In the electronic device provided in the embodiment of the present application, when the shooting preview interface is displayed, the preview images of each of the N cameras can be displayed in the N preview sub-areas of the shooting preview interface, so that the user can Screening of preview images is carried out in the shooting preview interface; and then after receiving the first input from the user, the N images captured by the above N cameras can be obtained in response to the first input, and based on the N previews in the N preview sub-areas The first target image is obtained by image synthesis, and then N images captured by N cameras can be quickly displayed through the first target image. In this way, screening preview images in the shooting preview interface, and quickly displaying images captured by different cameras through the first target image not only reduces the time for customers to select and preview images captured by different cameras, but also enables users to quickly select The required preview images and quick viewing of images with different camera effects improve the user's operating efficiency, and provide a larger operating space for subsequent artistic creation, increasing the fun of taking pictures.

可选地,在本申请实施例中,上述第一目标图像包括N个图像子区域,每个图像子区域分别与上述拍摄预览界面中的每个预览子区域的显示位置对应;上述处理器810,用于建立上述第一目标图像中的N个图像子区域与上述N张图像之间的关联关系;上述存储器809,用于将上述处理器810建立关联关系的上述第一目标图像中的N个图像子区域与上述N张图像关联存储;其中,一个图像子区域与上述N张图像中上述一个图像子区域对应显示位置的预览子区域对应的摄像头拍摄的图像相关联。Optionally, in this embodiment of the present application, the above-mentioned first target image includes N image sub-regions, and each image sub-region corresponds to the display position of each preview sub-region in the above-mentioned shooting preview interface; the above-mentioned processor 810 , for establishing the association relationship between the N image sub-regions in the first target image and the N images; the memory 809 is used for establishing the association relationship with the processor 810 for N in the first target image Image sub-regions are stored in association with the above N images; wherein, one image sub-region is associated with the image captured by the camera corresponding to the preview sub-region corresponding to the display position of the above-mentioned one image sub-region in the above-mentioned N images.

如此,在用户对第一目标图像中的任一图像子区域进行触发操作的情况下,能够触发显示该图像子区域对应的原始拍摄图像,以实现通过第一目标图像中的图像子区域快速查看对应的原始拍摄图像。In this way, when the user performs a trigger operation on any image sub-region in the first target image, the original captured image corresponding to the image sub-region can be triggered to be displayed, so as to realize quick viewing through the image sub-region in the first target image Corresponding original captured image.

可选地,在本申请实施例中,上述用户输入单元807,还用于接收用户对上述第一目标图像中的目标图像子区域的第五输入;上述显示单元806,用于响应于上述用户输入单元807接收的上述第五输入,显示上述目标图像子区域关联的图像。Optionally, in the embodiment of the present application, the above-mentioned user input unit 807 is further configured to receive a fifth input from the user on the target image sub-region in the above-mentioned first target image; the above-mentioned display unit 806 is configured to respond to the above-mentioned user The above-mentioned fifth input received by the input unit 807 displays the image associated with the above-mentioned target image sub-region.

如此,用户可以根据实际需求,通过第一目标图像,随时查看任意摄像头拍摄的图像,提高用户操作的便捷性。In this way, the user can view images captured by any camera at any time through the first target image according to actual needs, thereby improving the convenience of user operations.

可选地,在本申请实施例中,上述处理器810,还用于接收用户的第二输入;上述显示单元806,还用于响应于上述用户输入单元807接收的上述第二输入,显示上述第一目标图像;上述用户输入单元807,还用于接收用户对上述第一目标图像的上述N个图像子区域中的T个图像子区域的第三输入;上述处理器810,用于响应于上述用户输入单元807接收的上述第三输入,将上述T个图像子区域显示的T张预览图像进行图像合成,得到第二目标图像;上述处理器810,用于建立上述第二目标图像中的T个图像子区域与T张图像之间的关联关系;上述存储其806,还用于将上述第二目标图像与上述T张图像关联存储;其中,一个图像子区域与上述T张图像中上述一个图像子区域对应显示位置的预览子区域对应的摄像头拍摄的图像相关联,T为正整数,T<N。Optionally, in the embodiment of the present application, the processor 810 is further configured to receive a second input from the user; the display unit 806 is further configured to display the above-mentioned The first target image; the above-mentioned user input unit 807 is further configured to receive a third input from the user on the T image sub-regions in the above-mentioned N image sub-regions of the above-mentioned first target image; the above-mentioned processor 810 is configured to respond to The above-mentioned third input received by the above-mentioned user input unit 807 performs image synthesis on the T preview images displayed in the above-mentioned T image sub-regions to obtain a second target image; the above-mentioned processor 810 is used to establish the The association relationship between T image sub-regions and T images; the above-mentioned storage 806 is also used to associate and store the above-mentioned second target image and the above-mentioned T images; wherein, one image sub-region is associated with the above-mentioned T images in the above-mentioned An image sub-area is associated with the image captured by the camera corresponding to the preview sub-area corresponding to the display position, T is a positive integer, and T<N.

如此,在实际拍摄过程中,在获取包括多个预览图像的第一目标图像之后,当第一预览图像不满足用户需求时,拍摄装置可以对该第一目标图像中的图像子区域进行重新组合以及图像合成,从而生成满足用户需求的新的图像。In this way, in the actual shooting process, after acquiring the first target image including multiple preview images, when the first preview image does not meet the user's needs, the shooting device can recombine the image sub-regions in the first target image And image synthesis to generate new images that meet user needs.

可选地,在本申请实施例中,上述处理器810,用于在显示拍摄预览界面之前,按照目标划分参数,将拍摄预览界面划分为N个预览子区域;其中,目标划分参数包括以下至少一项:摄像头数量、单个显示区域尺寸、单页最大区域数量、拍摄预览界面的界面尺寸。Optionally, in the embodiment of the present application, the above-mentioned processor 810 is configured to divide the shooting preview interface into N preview sub-areas according to target division parameters before displaying the shooting preview interface; wherein, the target division parameters include at least the following One item: the number of cameras, the size of a single display area, the maximum number of areas on a single page, and the interface size of the shooting preview interface.

如此,拍摄装置可以根据电子设备中实际的摄像头数量,以及拍摄预览界面的界面尺寸等因素,灵活地对拍摄预览界面进行区域划分,从而便于用户对拍摄预览界面中的预览子区域的查看以及操作。In this way, the shooting device can flexibly divide the shooting preview interface into areas according to the actual number of cameras in the electronic device, the interface size of the shooting preview interface, etc., so as to facilitate the user to view and operate the preview sub-areas in the shooting preview interface .

可选地,在本申请实施例中,上述处理器810,还用于按照上述N个预览子区域的区域排布信息,将上述N个预览子区域显示的N张预览图像进行图像合成,得到第一目标图像;其中,上述区域排布信息包括以下至少一项:显示位置、显示面积、显示内容。Optionally, in the embodiment of the present application, the above-mentioned processor 810 is further configured to perform image synthesis on the N preview images displayed in the above-mentioned N preview sub-areas according to the area arrangement information of the above-mentioned N preview sub-areas, to obtain The first target image; wherein, the area layout information includes at least one of the following: display position, display area, and display content.

如此,拍摄装置可以根据第一目标图像中图像子区域的排布信息(如,区域位置),对预览图像进行合成以生成第一目标图像,使得用户能够根据对预览图像的既定印象快速熟悉第一目标图像,以便于对第一目标图像中的多个图像内容进行再次编辑。In this way, the shooting device can synthesize the preview image to generate the first target image according to the arrangement information of the image sub-regions in the first target image (such as the location of the region), so that the user can quickly get familiar with the first target image based on the predetermined impression of the preview image. A target image, so as to re-edit multiple image contents in the first target image.

可选地,在本申请实施例中,其特征在于,上述用户输入单元807,还用于接收用户对上述N个预览子区域中的M个预览子区域的第四输入,上述处理器810还用于响应于上述用户输入单元807接收的第四输入,将上述N个预览子区域中的预览图像更新为上述M个预览子区域中的预览图像;其中,M为正整数,M<N。Optionally, in this embodiment of the present application, it is characterized in that the above-mentioned user input unit 807 is further configured to receive a fourth input from the user on the M preview sub-areas in the above-mentioned N preview sub-areas, and the above-mentioned processor 810 further In response to the fourth input received by the user input unit 807, update the preview images in the N preview sub-areas to the preview images in the M preview sub-areas; wherein, M is a positive integer, M<N.

如此,在拍摄预览界面中显示有多个预览图像的情况下,拍摄装置可以根据用户的实际需求,将拍摄预览界面中的多个预览图像更新为用户需要查看的预览图像,提高用户操作的灵活性。In this way, when multiple preview images are displayed in the shooting preview interface, the shooting device can update the multiple preview images in the shooting preview interface to the preview images that the user needs to view according to the actual needs of the user, thereby improving the flexibility of user operations sex.

应理解的是,本申请实施例中,输入单元804可以包括图形处理器(graphicsprocessing unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元806可包括显示面板8061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板8061。用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器809可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。It should be understood that, in this embodiment of the present application, the input unit 804 may include a graphics processing unit (graphics processing unit, GPU) 8041 and a microphone 8042. Camera) to process the image data of still pictures or videos. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072 . The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 809 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 810 .

本申请实施例还提供一种可读存储介质,该可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned photographing method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here.

其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(read-only memory,ROM)、随机存取存储器(randomaccess memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device in the foregoing embodiments. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (read-only memory, ROM), a random access memory (random access memory, RAM), a magnetic disk or an optical disk, and the like.

本申请实施例另提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序或指令,实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned shooting method embodiments, and can To achieve the same technical effect, in order to avoid repetition, no more details are given here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器或者网络设备等)执行本申请各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server or a network device, etc.) to execute the methods of various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (12)

1. A method of photographing, the method comprising:
receiving a first input of a user under the condition of displaying a shooting preview interface, wherein the shooting preview interface comprises N preview sub-areas, and each preview sub-area comprises a preview image acquired by a camera;
responding to the first input, controlling N cameras to shoot, obtaining N images, and generating a first target image;
the first target image is obtained by synthesizing N preview images displayed on the N preview sub-areas, and the first target image is used for displaying any one of the N preview images;
the first target image comprises N image sub-areas, and each image sub-area corresponds to the display position of each preview sub-area in the shooting preview interface;
after the controlling the N cameras to capture N images and generating the first target image in response to the first input, the method further includes:
establishing an incidence relation between N image subregions in the first target image and the N images, and storing the first target image and the N images in an incidence way;
one image subregion is associated with an image shot by a camera corresponding to a preview subregion of a display position corresponding to the one image subregion in the N images;
after the responding to the first input and controlling the N cameras to shoot, obtaining N images and generating a first target image, the method further comprises:
receiving a second input of the user;
displaying the first target image in response to the second input;
receiving a third input of a user to T image sub-regions of the N image sub-regions of the first target image;
responding to the third input, and carrying out image synthesis on the T preview images displayed in the T image sub-areas to obtain a second target image;
establishing an association relation between T image subregions in the second target image and T images, and storing the second target image and the T images in an associated manner;
one image subregion is associated with an image shot by a camera corresponding to a preview subregion of a display position corresponding to the one image subregion in the T images;
wherein T is a positive integer and is less than N.
2. The method of claim 1, wherein after controlling N cameras to capture N images and generate a first target image in response to the first input, the method further comprises:
receiving a fifth input of a user to a target image subregion in the first target image;
in response to the fifth input, displaying an image associated with the target image subregion.
3. The method of claim 1, wherein prior to displaying the capture preview interface, the method further comprises:
dividing the shooting preview interface into N preview sub-areas according to target division parameters;
wherein the target partitioning parameter comprises at least one of: the number of cameras, the size of a single display area, the maximum area number of a single page and the interface size of the shooting preview interface.
4. The method of claim 1, wherein generating the first target image comprises:
according to the area arrangement information of the N preview subregions, carrying out image synthesis on the N preview images displayed by the N preview subregions to obtain a first target image;
wherein the region arrangement information includes at least one of: display position, display area, display content.
5. The method of any of claims 1 to 3, wherein after displaying the capture preview interface, the method further comprises:
receiving fourth input of the user to M preview sub-areas in the N preview sub-areas;
updating preview images in the N preview sub-regions to preview images in the M preview sub-regions in response to the fourth input;
wherein M is a positive integer, and M is less than N.
6. A camera, characterized in that the camera comprises: receiving module, acquisition module display module and synthesis module, wherein:
the receiving module is used for receiving a first input of a user under the condition that a shooting preview interface is displayed, wherein the shooting preview interface comprises N preview sub-areas, and each preview sub-area comprises a preview image acquired by a camera;
the acquisition module is used for responding to the first input received by the receiving module, controlling N cameras to shoot, obtaining N images and generating a first target image;
the first target image is synthesized based on N preview images displayed by the N preview sub-areas, and the first target image is used for displaying any one of the N preview images;
the first target image comprises N image sub-areas, and each image sub-area corresponds to the display position of each preview sub-area in the shooting preview interface; the device further comprises: the device comprises an association module and a storage module;
the association module is used for establishing association relations between the N image sub-areas in the first target image and the N images;
the storage module is used for storing the N image sub-areas in the first target image which are associated with each other by the association module in an associated manner with the N images;
one image subregion is associated with an image shot by a camera corresponding to a preview subregion of a display position corresponding to the one image subregion in the N images;
the receiving module is further used for receiving a second input of the user;
the display module is further used for responding to the second input received by the receiving module and displaying the first target image;
the receiving module is further configured to receive a third input of the user to T image sub-regions of the N image sub-regions of the first target image;
the synthesis module is used for responding to the third input received by the receiving module, and carrying out image synthesis on the T preview images displayed in the T image sub-areas to obtain a second target image;
the correlation module is used for establishing a correlation relationship between the T image subregions in the second target image and the T images;
the storage module is further used for storing the second target image and the T images in an associated manner;
one image subarea is associated with an image shot by a camera corresponding to a preview subarea of a display position corresponding to the image subarea in the T images, T is a positive integer, and T is less than N.
7. The apparatus of claim 6, further comprising: a display module, wherein:
the receiving module is further configured to receive a fifth input of a user to a target image sub-region in the first target image;
the display module is configured to display an image associated with the target image subregion in response to the fifth input received by the receiving module.
8. The apparatus of claim 6, further comprising: dividing a module;
the dividing module is used for dividing the shooting preview interface into N preview sub-areas according to target dividing parameters before the shooting preview interface is displayed;
wherein the target partitioning parameter comprises at least one of: the number of cameras, the size of a single display area, the maximum area number of a single page and the interface size of the shooting preview interface.
9. The apparatus of claim 6,
the synthesis module is further configured to perform image synthesis on the N preview images displayed by the N preview sub-areas according to the area arrangement information of the N preview sub-areas, so as to obtain a first target image;
wherein the region arrangement information includes at least one of: display position, display area, display content.
10. The apparatus of any one of claims 6 to 8, further comprising: an update module;
the receiving module is further configured to receive a fourth input of the user to M preview sub-regions of the N preview sub-regions;
the updating module is configured to update the preview images in the N preview sub-areas to the preview images in the M preview sub-areas in response to the fourth input received by the receiving module;
wherein M is a positive integer, and M is less than N.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the photographing method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the shooting method according to any one of claims 1 to 5.
CN202110113958.1A 2021-01-27 2021-01-27 Shooting method, shooting device, electronic equipment and readable storage medium Active CN112954196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110113958.1A CN112954196B (en) 2021-01-27 2021-01-27 Shooting method, shooting device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110113958.1A CN112954196B (en) 2021-01-27 2021-01-27 Shooting method, shooting device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112954196A CN112954196A (en) 2021-06-11
CN112954196B true CN112954196B (en) 2023-02-10

Family

ID=76238184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110113958.1A Active CN112954196B (en) 2021-01-27 2021-01-27 Shooting method, shooting device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112954196B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596329A (en) * 2021-07-23 2021-11-02 维沃移动通信(杭州)有限公司 Photographing method and photographing apparatus
CN113794831B (en) * 2021-08-13 2023-08-25 维沃移动通信(杭州)有限公司 Video shooting method, device, electronic equipment and medium
CN114025098B (en) * 2021-11-25 2024-09-24 Oppo广东移动通信有限公司 Image display method, device, electronic equipment and computer readable storage medium
CN114125179B (en) * 2021-12-07 2024-04-05 维沃移动通信有限公司 Shooting method and device
CN114449172B (en) * 2022-02-14 2024-10-29 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN114780004B (en) * 2022-04-11 2024-07-16 北京达佳互联信息技术有限公司 Image display method and device, electronic equipment and storage medium
CN116095464B (en) * 2022-07-15 2023-10-31 荣耀终端有限公司 Terminal photography method and terminal equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995429A (en) * 2017-12-22 2018-05-04 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN111669507A (en) * 2020-07-01 2020-09-15 维沃移动通信有限公司 Photographing method, device and electronic device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6784925B1 (en) * 1998-03-24 2004-08-31 Canon Kabushiki Kaisha System to manage digital camera images
JP4484775B2 (en) * 2005-06-29 2010-06-16 キヤノン株式会社 Playback apparatus and playback method
JP5232669B2 (en) * 2009-01-22 2013-07-10 オリンパスイメージング株式会社 camera
JP5664687B2 (en) * 2013-03-22 2015-02-04 カシオ計算機株式会社 Image processing apparatus, image processing method, and program
CN110505411B (en) * 2019-09-03 2021-05-07 RealMe重庆移动通信有限公司 Image shooting method and device, storage medium and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995429A (en) * 2017-12-22 2018-05-04 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN111669507A (en) * 2020-07-01 2020-09-15 维沃移动通信有限公司 Photographing method, device and electronic device

Also Published As

Publication number Publication date
CN112954196A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN112954196B (en) Shooting method, shooting device, electronic equipment and readable storage medium
WO2022166944A1 (en) Photographing method and apparatus, electronic device, and medium
US20240031668A1 (en) Photographing interface display method and apparatus, electronic device, and medium
US6943842B2 (en) Image browsing user interface apparatus and method
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
US20120249575A1 (en) Display device for displaying related digital images
CN111223045B (en) Puzzle method, device and terminal equipment
US20220417417A1 (en) Content Operation Method and Device, Terminal, and Storage Medium
CN113079316B (en) Image processing method, image processing device and electronic equipment
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
CN112995500A (en) Shooting method, shooting device, electronic equipment and medium
CN112486390A (en) Display control method and device and electronic equipment
CN112698775B (en) Image display method and device and electronic equipment
WO2023125273A1 (en) Image display method of electronic equipment, image processing circuit and electronic equipment
CN114520876A (en) Time-delay shooting video recording method and device and electronic equipment
CN107896306A (en) The method and system that a kind of filter is taken pictures
CN110704377B (en) Multimedia file processing method and device, processor and electronic device
WO2023143529A1 (en) Photographing method and apparatus, and electronic device
WO2022095891A1 (en) Image display method and apparatus, and device
CN112162805B (en) Screenshot method and device and electronic equipment
CN114222069A (en) Shooting method, shooting device and electronic equipment
CN111885298B (en) Image processing method and device
CN113194256A (en) Shooting method, shooting device, electronic equipment and storage medium
CN114286010B (en) Shooting method, shooting device, electronic equipment and medium
CN116628244A (en) Image display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant