[go: up one dir, main page]

CN110191274A - Imaging method, imaging device, storage medium and electronic equipment - Google Patents

Imaging method, imaging device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110191274A
CN110191274A CN201910579945.6A CN201910579945A CN110191274A CN 110191274 A CN110191274 A CN 110191274A CN 201910579945 A CN201910579945 A CN 201910579945A CN 110191274 A CN110191274 A CN 110191274A
Authority
CN
China
Prior art keywords
camera module
image
photographed
black
electronic device
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.)
Pending
Application number
CN201910579945.6A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910579945.6A priority Critical patent/CN110191274A/en
Publication of CN110191274A publication Critical patent/CN110191274A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses imaging method is applied to electronic equipment, and this electronic equipment includes colored camera module, black and white camera module and a plurality of long burnt camera module, and there is the overlapping in the shooting region of each long burnt camera module and the shooting region of target camera module, and this target camera module is this colored camera module or this black and white camera module, and this imaging method includes: receiving an image shooting request of an object to be shot; shooting the object to be shot through the target shooting module according to the image shooting request, or shooting the object to be shot through the color shooting module and the black-and-white shooting module to obtain a base image; shooting the object to be shot through the plurality of long-focus camera modules to obtain a plurality of target images; image synthesis processing is performed on the base image and the plurality of target images, and the image obtained by synthesis is used to respond to the image capturing request. The image quality of the image can be improved.

Description

成像方法、装置、存储介质及电子设备Imaging method, apparatus, storage medium and electronic device

技术领域technical field

本申请属于图像技术领域,尤其涉及一种成像方法、装置、存储介质及电子设备。The present application belongs to the field of image technology, and in particular, relates to an imaging method, an apparatus, a storage medium and an electronic device.

背景技术Background technique

目前,用户通常利用具有摄像模组的电子设备拍摄图像,能够通过这些电子设备随时随地的记录身边发生的事情、看到的景物等。然而,由于摄像模组本身的硬件缺陷,使得其拍摄的图像往往中间区域比较清晰,而边缘区域则相对模糊,导致整张图像的成像质量较差。At present, users usually use electronic devices with camera modules to capture images, and through these electronic devices, they can record what happens around them, what they see, and the like, anytime, anywhere. However, due to the hardware defects of the camera module itself, the image captured by the camera module is often clear in the middle area, while the edge area is relatively blurred, resulting in poor imaging quality of the entire image.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种成像方法、装置、存储介质及电子设备,可以提高图像的成像质量。Embodiments of the present application provide an imaging method, an apparatus, a storage medium, and an electronic device, which can improve the imaging quality of an image.

本申请实施例提供一种成像方法,应用于电子设备,所述电子设备包括彩色摄像模组、黑白摄像模组和多个长焦摄像模组,各长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域存在重叠,所述目标摄像模组为所述彩色摄像模组或所述黑白摄像模组,所述成像方法包括:The embodiment of the present application provides an imaging method, which is applied to an electronic device. The electronic device includes a color camera module, a black-and-white camera module, and a plurality of telephoto camera modules. The shooting area of each telephoto camera module is related to the target camera. The shooting areas of the modules overlap, and the target camera module is the color camera module or the black-and-white camera module, and the imaging method includes:

接收对待拍摄对象的图像拍摄请求;Receive an image capture request of the subject to be photographed;

根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像;According to the image shooting request, the object to be shot is shot by the target camera module, or the object to be shot is shot by the color camera module and the black and white camera module to obtain a base image ;

通过所述多个长焦摄像模组对所述待拍摄对象进行拍摄,得到多个目标图像;The object to be photographed is photographed by the plurality of telephoto camera modules to obtain a plurality of target images;

对所述基底图像与所述多个目标图像进行图像合成处理,并利用合成得到的图像响应所述图像拍摄请求。Perform image synthesis processing on the base image and the plurality of target images, and use the synthesized images to respond to the image capture request.

本申请实施例提供一种成像装置,应用于电子设备,所述电子设备包括彩色摄像模组、黑白摄像模组和多个长焦摄像模组,各长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域存在重叠,所述目标摄像模组为所述彩色摄像模组或所述黑白摄像模组,所述成像装置包括:The embodiment of the present application provides an imaging device, which is applied to electronic equipment. The electronic equipment includes a color camera module, a black-and-white camera module, and a plurality of telephoto camera modules. The shooting area of each telephoto camera module is related to the target camera. The shooting areas of the modules overlap, and the target camera module is the color camera module or the black-and-white camera module, and the imaging device includes:

接收模块,用于接收对待拍摄对象的图像拍摄请求;a receiving module, configured to receive an image shooting request of the object to be shot;

第一拍摄模块,用于根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像;a first photographing module, configured to photograph the object to be photographed through the target camera module according to the image photographing request, or to photograph the object to be photographed through the color camera module and the black and white camera module The object is photographed to obtain a base image;

第二拍摄模块,用于通过所述多个长焦摄像模组对所述待拍摄对象进行拍摄,得到多个目标图像;a second shooting module, configured to shoot the object to be shot through the multiple telephoto camera modules to obtain multiple target images;

响应模块,用于对所述基底图像与所述多个目标图像进行图像合成处理,并利用合成得到的图像响应所述图像拍摄请求。A response module, configured to perform image synthesis processing on the base image and the multiple target images, and use the synthesized images to respond to the image capture request.

本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行本申请实施例提供的成像方法中的流程。Embodiments of the present application provide a storage medium on which a computer program is stored, and when the computer program is executed on a computer, causes the computer to execute the procedures in the imaging method provided by the embodiments of the present application.

本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本申请实施例提供的成像方法中的流程。Embodiments of the present application further provide an electronic device, including a memory and a processor, where the processor is configured to execute the procedures in the imaging method provided by the embodiments of the present application by invoking a computer program stored in the memory.

本申请实施例提供的成像方法、装置、存储介质及电子设备,电子设备可以通过目标摄像模组对待拍摄对象进行拍摄,或者通过彩色摄像模组和黑白摄像模组对待拍摄对象进行拍摄,得到基底图像。并且,电子设备可以通过多个长焦摄像模组对待拍摄对象进行拍摄,得到多个目标图像。之后,电子设备可以对基底图像与多个目标图像进行图像合成处理,并利用合成得到的图像响应图像拍摄请求。即,本实施例中由于最终合成的图像是由基底图像和多个目标图像合成的,而该基底图像是由目标摄像模组或由彩色摄像模组和黑白摄像模组(其中一个为目标摄像模组)拍摄得到的,多个目标图像是由多个长焦摄像模组拍摄得到的,并且各长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域存在重叠,因此最终得到的合成图像的中心区域和边缘区域的清晰度均较高,从而提高了图像的整体成像质量。In the imaging method, device, storage medium, and electronic device provided by the embodiments of the present application, the electronic device can use the target camera module to shoot the object to be photographed, or use the color camera module and the black-and-white camera module to shoot the object to be photographed to obtain a substrate image. In addition, the electronic device can capture the object to be photographed through a plurality of telephoto camera modules to obtain a plurality of target images. Afterwards, the electronic device may perform image synthesis processing on the base image and the multiple target images, and use the synthesized images to respond to the image capture request. That is, in this embodiment, since the final synthesized image is synthesized by a base image and a plurality of target images, and the base image is formed by the target camera module or the color camera module and the black-and-white camera module (one of which is the target camera module) module), a plurality of target images are captured by a plurality of telephoto camera modules, and the shooting area of each telephoto camera module overlaps with the shooting area of the target camera module, so the resulting composite Both the center area and the edge area of the image are sharper, thereby improving the overall imaging quality of the image.

附图说明Description of drawings

下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其有益效果显而易见。The technical solutions of the present application and the beneficial effects thereof will be apparent through the detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings.

图1是本申请实施例提供的成像方法的流程示意图。FIG. 1 is a schematic flowchart of an imaging method provided by an embodiment of the present application.

图2是本申请实施例提供的彩色摄像模组、黑白摄像模组以及多个长焦摄像模组的第一种示意图。FIG. 2 is a first schematic diagram of a color camera module, a black-and-white camera module, and a plurality of telephoto camera modules provided by an embodiment of the present application.

图3是本申请实施例提供的目标摄像模组和多个长焦摄像模组的拍摄区域的示意图。FIG. 3 is a schematic diagram of a shooting area of a target camera module and a plurality of telephoto camera modules provided by an embodiment of the present application.

图4是本申请实施例提供的彩色摄像模组、黑白摄像模组以及多个长焦摄像模组的第二种示意图。4 is a second schematic diagram of a color camera module, a black-and-white camera module, and a plurality of telephoto camera modules provided by an embodiment of the present application.

图5是本申请实施例提供的彩色摄像模组、黑白摄像模组以及多个长焦摄像模组的第三种示意图。5 is a third schematic diagram of a color camera module, a black-and-white camera module, and a plurality of telephoto camera modules provided by an embodiment of the present application.

图6是本申请实施例提供的电子设备接收图像拍摄请求的场景示意图。FIG. 6 is a schematic diagram of a scene in which an electronic device according to an embodiment of the present application receives an image capture request.

图7是本申请实施例提供的基底图像和多个目标图像的相对位置关系的示意图。FIG. 7 is a schematic diagram of a relative positional relationship between a base image and multiple target images provided by an embodiment of the present application.

图8是本申请实施例提供的合成图像的示意图。FIG. 8 is a schematic diagram of a composite image provided by an embodiment of the present application.

图9是本申请实施例提供的成像方法的另一流程示意图。FIG. 9 is another schematic flowchart of the imaging method provided by the embodiment of the present application.

图10是本申请实施例提供的目标摄像模组和长焦摄像模组共用图像传感器的结构示意图。FIG. 10 is a schematic structural diagram of an image sensor shared by a target camera module and a telephoto camera module according to an embodiment of the present application.

图11是本申请实施例提供的成像装置的结构示意图。FIG. 11 is a schematic structural diagram of an imaging device provided by an embodiment of the present application.

图12是本申请实施例提供的电子设备的结构示意图。FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

图13是本申请实施例提供的电子设备的另一结构示意图。FIG. 13 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

请参照图示,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, wherein the same component symbols represent the same components, and the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application and should not be construed as limiting other specific embodiments of the present application not detailed herein.

可以理解的是,本申请实施例的执行主体可以是诸如智能手机或平板电脑等的电子设备。It can be understood that, the executive body of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.

请参阅图1,图1是本申请实施例提供的成像方法的流程示意图。该成像方法可以应用于电子设备,该电子设备可以包括彩色摄像模组、黑白摄像模组和多个长焦摄像模组,各长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域存在重叠,该目标摄像模组可以为彩色摄像模组或黑白摄像模组。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of an imaging method provided by an embodiment of the present application. The imaging method can be applied to electronic equipment. The electronic equipment can include a color camera module, a black-and-white camera module, and a plurality of telephoto camera modules. The shooting area of each telephoto camera module and the shooting area of the target camera module exist. Overlapping, the target camera module can be a color camera module or a black and white camera module.

以电子设备具有4个长焦摄像模组为例。在本申请实施例中,电子设备包括彩色摄像模组、黑白摄像模组和4个长焦摄像模组。其中,各长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域存在重叠。该目标摄像模组可以为彩色摄像模组或者黑白摄像模组。Take an electronic device with 4 telephoto camera modules as an example. In the embodiment of the present application, the electronic device includes a color camera module, a black-and-white camera module, and four telephoto camera modules. Wherein, the shooting area of each telephoto camera module overlaps with the shooting area of the target camera module. The target camera module can be a color camera module or a black and white camera module.

请参阅图2和图3,目标摄像模组可以为标准类型的摄像模组,或者说视场角为45度左右的摄像模组,长焦摄像模组的视场角可以为40度以内。电子设备包括四个长焦摄像模组,分别为长焦摄像模组A、长焦摄像模组B、长焦摄像模组C以及长焦摄像模组D。各长焦摄像模组的轴线朝向目标摄像模组的轴线倾斜并相交,使得长焦摄像模组A的拍摄区域a对应目标摄像模组的拍摄区域的左上角,长焦摄像模组B的拍摄区域b对应目标摄像模组的拍摄区域的右上角,长焦摄像模组C的拍摄区域c对应目标摄像模组的拍摄区域的左下角,长焦摄像模组D的拍摄区域d对应目标摄像模组的拍摄区域的右下角。由此,长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域的边缘部分重叠,且任意两个长焦摄像模组之间的重叠拍摄区域(即两个长焦摄像模组拍摄区域之间的重叠区域)与目标摄像模组的拍摄区域的中间部分重叠。Please refer to Figure 2 and Figure 3, the target camera module can be a standard type of camera module, or a camera module with a field of view angle of about 45 degrees, and the field of view of the telephoto camera module can be within 40 degrees. The electronic device includes four telephoto camera modules, which are respectively a telephoto camera module A, a telephoto camera module B, a telephoto camera module C, and a telephoto camera module D. The axis of each telephoto camera module is inclined and intersected towards the axis of the target camera module, so that the shooting area a of the telephoto camera module A corresponds to the upper left corner of the shooting area of the target camera module, and the shooting area of the telephoto camera module B is The area b corresponds to the upper right corner of the shooting area of the target camera module, the shooting area c of the telephoto camera module C corresponds to the lower left corner of the shooting area of the target camera module, and the shooting area d of the telephoto camera module D corresponds to the target camera module. The lower right corner of the group's shooting area. Thus, the shooting area of the telephoto camera module overlaps with the edge portion of the shooting area of the target camera module, and the overlapping shooting area between any two telephoto camera modules (that is, the shooting area of the two telephoto camera modules) The overlapping area between ) overlaps with the middle part of the shooting area of the target camera module.

请参阅图4,当目标摄像模组为彩色摄像模组10时,各长焦摄像模组的拍摄区域与该彩色摄像模组10的拍摄区域存在重叠。例如,彩色摄像模组10的拍摄区域可以包括长焦摄像模组的拍摄区域,长焦摄像模组的拍摄区域与彩色摄像模组10的拍摄区域的边缘部分重叠,并且任意两个长焦摄像模组之间的重叠拍摄区域与彩色摄像模组10的拍摄区域的中间部分重叠。Please refer to FIG. 4 , when the target camera module is the color camera module 10 , the shooting area of each telephoto camera module overlaps with the shooting area of the color camera module 10 . For example, the shooting area of the color camera module 10 may include the shooting area of the telephoto camera module, the shooting area of the telephoto camera module overlaps with the edge portion of the shooting area of the color camera module 10, and any two telephoto cameras The overlapping shooting area between the modules overlaps with the middle part of the shooting area of the color camera module 10 .

请参阅图5,当目标摄像模组为黑白摄像模组20时,各长焦摄像模组的拍摄区域与该黑白摄像模组20的拍摄区域存在重叠。例如,黑白摄像模组20的拍摄区域可以包括长焦摄像模组的拍摄区域,长焦摄像模组的拍摄区域与黑白摄像模组20的拍摄区域的边缘部分重叠,并且任意两个长焦摄像模组之间的重叠拍摄区域与黑白摄像模组20的拍摄区域的中间部分重叠。Please refer to FIG. 5 , when the target camera module is the black and white camera module 20 , the shooting area of each telephoto camera module and the shooting area of the black and white camera module 20 overlap. For example, the shooting area of the black and white camera module 20 may include the shooting area of the telephoto camera module, the shooting area of the telephoto camera module overlaps with the edge of the shooting area of the black and white camera module 20, and any two telephoto cameras The overlapping shooting area between the modules overlaps with the middle part of the shooting area of the black and white camera module 20 .

该成像方法的流程可以包括:The flow of the imaging method may include:

101、接收对待拍摄对象的图像拍摄请求。101. Receive an image shooting request of the object to be shot.

目前,用户通常利用具有摄像模组的电子设备拍摄图像,能够通过这些电子设备随时随地的记录身边发生的事情、看到的景物等。然而,由于摄像模组本身的硬件缺陷,使得其拍摄的图像往往中间区域比较清晰,而边缘区域则相对模糊,导致整张图像的成像质量较差。At present, users usually use electronic devices with camera modules to capture images, and through these electronic devices, they can record what happens around them, what they see, and the like, anytime, anywhere. However, due to the hardware defects of the camera module itself, the image captured by the camera module is often clear in the middle area, while the edge area is relatively blurred, resulting in poor imaging quality of the entire image.

在本申请实施例中,比如,电子设备可以先接收到对待拍摄对象的图像拍摄请求。In this embodiment of the present application, for example, the electronic device may first receive an image capture request of the object to be captured.

例如,图像拍摄请求可由用户直接输入,用于指示电子设备对待拍摄对象进行拍摄。其中,待拍摄对象即电子设备在接收到输入的图像拍摄请求时,摄像模组所对准的对象,包括但不限于人、物以及景等。For example, the image capture request may be directly input by the user to instruct the electronic device to capture the subject to be captured. The object to be shot, that is, the object that the camera module is aimed at when the electronic device receives the input image shooting request, includes but is not limited to people, objects, and scenes.

例如,用户在操作电子设备启动拍摄类应用(比如电子设备的系统应用“相机”),并通过移动电子设备,使得电子设备的摄像模组对准待拍摄对象之后,可以通过点击“相机”界面上提供的“拍照”按键(可以为虚拟按键),向电子设备输入图像拍摄请求,如图6所示。For example, after the user operates the electronic device to start a shooting application (such as the system application "camera" of the electronic device), and moves the electronic device to make the camera module of the electronic device aim at the object to be shot, he can click the "camera" interface The "photograph" button (which can be a virtual button) provided on the above is used to input an image capture request to the electronic device, as shown in FIG. 6 .

又比如,用户在操作电子设备启动拍摄类应用,并通过移动电子设备,使得电子设备的摄像模组对准待拍摄对象之后,该用户可以向电子设备发出语音指令“拍照”,从而向电子设备输入图像拍摄请求。此外,电子设备还可以通过诸如手势等指令形式向电子设备发出图像拍摄请求,本实施例对此不做限定。For another example, after a user operates an electronic device to start a shooting application, and moves the electronic device so that the camera module of the electronic device is aimed at the object to be photographed, the user can issue a voice command to the electronic device to “take a picture”, thereby sending the electronic device to the electronic device. Enter an image capture request. In addition, the electronic device may also send an image capturing request to the electronic device in the form of an instruction such as a gesture, which is not limited in this embodiment.

102、根据图像拍摄请求,通过目标摄像模组对待拍摄对象进行拍摄,或者通过彩色摄像模组和黑白摄像模组对待拍摄对象进行拍摄,得到基底图像。102. According to the image shooting request, use the target camera module to shoot the object to be shot, or use the color camera module and the black-and-white camera module to shoot the object to be shot, to obtain a base image.

比如,在接收到对待拍摄对象的图像拍摄请求后,电子设备可以通过目标摄像模组对该待拍摄对象进行拍摄,或者通过彩色摄像模组和黑白摄像模组对该待拍摄对象进行拍摄,从而得到基底图像。For example, after receiving an image capture request of the object to be captured, the electronic device can capture the object to be captured through the target camera module, or capture the object to be captured through the color camera module and the black-and-white camera module, thereby Get the base image.

即,在接收到对待拍摄对象的图像拍摄请求后,电子设备可以仅通过目标摄像模组这一个摄像模组来对该待拍摄对象进行拍摄,从而得到基底图像。或者,在接收到对待拍摄对象的图像拍摄请求后,电子设备可以通过彩色摄像模组和黑白摄像模组这两个摄像模组(其中有一个是目标摄像模组)来对该待拍摄对象进行拍摄,从而得到基底图像。That is, after receiving the image capturing request of the object to be captured, the electronic device can capture the object to be captured through only one camera module, the target camera module, so as to obtain the base image. Or, after receiving the image capturing request of the object to be photographed, the electronic device can use the two camera modules (one of which is the target camera module), the color camera module and the black-and-white camera module, to perform the image capture of the object to be shot. photographed to obtain a base image.

103、通过多个长焦摄像模组对待拍摄对象进行拍摄,得到多个目标图像。103. Shoot the object to be photographed through multiple telephoto camera modules to obtain multiple target images.

比如,在接收到对待拍摄对象的图像拍摄请求后,电子设备可以通过多个长焦摄像模组对待拍摄对象进行拍摄,从而得到多个图像,即多个目标图像。For example, after receiving an image capturing request of the object to be photographed, the electronic device may capture the object to be photographed through multiple telephoto camera modules, thereby obtaining multiple images, that is, multiple target images.

需要说明的是,在通过多个长焦摄像模组对待拍摄对象进行拍摄时,长焦摄像模组与目标摄像模组(或彩色摄像模组和黑白摄像模组)采用相同的参数(比如对比度、亮度、曝光时间等)进行拍摄。由此,长焦摄像模组的拍摄区域即为目标摄像模组(或彩色摄像模组和黑白摄像模组)的拍摄区域的局部,二者拍摄得到的图像效果相同。It should be noted that when multiple telephoto camera modules are used to shoot the object to be photographed, the telephoto camera module and the target camera module (or color camera module and black and white camera module) use the same parameters (such as contrast ratio). , brightness, exposure time, etc.) to shoot. Therefore, the shooting area of the telephoto camera module is a part of the shooting area of the target camera module (or the color camera module and the black-and-white camera module), and the image effects obtained by the two are the same.

比如,电子设备包括四个长焦摄像模组,分别为长焦摄像模组A、长焦摄像模组B、长焦摄像模组C以及长焦摄像模组D,且这四个长焦摄像模组的拍摄区域分别对应目标摄像模组拍摄区域的左上角、右上角、左下角以及右下角,通过这四个长焦摄像模组将拍摄得到四个图像,如图7所示,例如长焦摄像模组A拍摄的图像P1的图像内容对应基底图像左上角的图像内容,长焦摄像模组B拍摄的图像P2的图像内容对应基底图像右上角的图像内容,长焦摄像模组C拍摄的图像P3的图像内容对应基底图像左下角的图像内容,长焦摄像模组D拍摄的图像P4的图像内容对应基底图像右下角的图像内容。这样,不同的长焦摄像模组拍摄的图像内容即覆盖了基底图像中边缘区域的不同位置。For example, the electronic device includes four telephoto camera modules, namely telephoto camera module A, telephoto camera module B, telephoto camera module C, and telephoto camera module D, and these four telephoto camera modules The shooting area of the module corresponds to the upper left corner, the upper right corner, the lower left corner and the lower right corner of the shooting area of the target camera module. Four images will be captured through these four telephoto camera modules, as shown in Figure 7. The image content of the image P1 captured by the telephoto camera module A corresponds to the image content in the upper left corner of the base image, the image content of the image P2 captured by the telephoto camera module B corresponds to the image content in the upper right corner of the base image, and the telephoto camera module C captures the image content in the upper right corner of the base image. The image content of the image P3 corresponds to the image content of the lower left corner of the base image, and the image content of the image P4 captured by the telephoto camera module D corresponds to the image content of the lower right corner of the base image. In this way, the image contents captured by different telephoto camera modules cover different positions of the edge region in the base image.

应当说明的是,本申请实施例中对102和103的执行先后顺序不做具体限定,可以是在执行完成102后执行103,可以是执行完成103后执行102,还可以是同时执行102和103,等等。It should be noted that the order of execution of 102 and 103 is not specifically limited in this embodiment of the present application. It may be that 103 is executed after the execution of 102 is completed, 102 may be executed after the execution of 103 is completed, or 102 and 103 may be executed simultaneously. ,and many more.

104、对基底图像与多个目标图像进行图像合成处理,并利用合成得到的图像响应图像拍摄请求。104. Perform image synthesis processing on the base image and the multiple target images, and use the synthesized images to respond to the image capturing request.

比如,在拍摄得到基底图像和多个目标图像后,电子设备可以对该基底图像与该多个目标图像进行图像合成处理,从而得到对应的合成图像,并利用合成得到的图像响应图像拍摄请求。例如,将合成得到的图像确定为图像拍摄请求所对应的成像图像。For example, after capturing the base image and multiple target images, the electronic device may perform image synthesis processing on the base image and the multiple target images to obtain corresponding synthesized images, and use the synthesized images to respond to the image capturing request. For example, the synthesized image is determined as the imaging image corresponding to the image capturing request.

例如,在拍摄得到基底图像和多个目标图像后,电子设备可以将拍摄得到的多个目标图像与基底图像对齐。基于对齐后的基底图像和目标图像,对于基底图像和目标图像的重叠部分,电子设备可以计算重叠的各像素点的平均像素值。比如,电子设备除了通过目标摄像模组拍摄得到基底图像之外,还通过四个长焦摄像模组拍摄得到四个目标图像。请参照图8,各目标图像与基底图像同时重叠的重叠区域位于基底图像的中间区域,这样,对于图8所示的重叠区域,某位置W的像素点在五个图像(即基底图像和四个目标图像)中的像素值分别为108、109、110、112和111,则电子设备可以计算得到该位置的像素点的平均像素值为110。For example, after photographing the base image and the multiple target images, the electronic device may align the multiple target images obtained by photographing with the base image. Based on the aligned base image and the target image, for the overlapping portion of the base image and the target image, the electronic device can calculate the average pixel value of each overlapping pixel point. For example, in addition to the base image captured by the target camera module, the electronic device also captures four target images through the four telephoto camera modules. Please refer to FIG. 8, the overlapping area where each target image and the base image overlap at the same time is located in the middle area of the base image, so, for the overlapping area shown in FIG. The pixel values in the target image) are 108, 109, 110, 112, and 111, respectively, and the electronic device can calculate and obtain the average pixel value of the pixel points at this position as 110.

之后,电子设备可以根据基底图像中对应的各位置像素点所得到的平均像素值得到合成图像。比如,电子设备可以将基底图像的各像素点的像素值相应调整为计算得到的各平均像素值,从而得到合成图像。例如,对于位置W的像素点,电子设备可以将其像素值由108调整为110。对基底图像中像素的像素值进行调整后即可得到合成图像。Afterwards, the electronic device can obtain a composite image according to the average pixel value obtained from the corresponding pixel points in each position in the base image. For example, the electronic device may adjust the pixel value of each pixel of the base image to the calculated average pixel value, thereby obtaining a composite image. For example, for the pixel point at position W, the electronic device can adjust its pixel value from 108 to 110. The composite image is obtained by adjusting the pixel values of the pixels in the base image.

又比如,电子设备还可以根据计算得到各位置的平均像素值,重新生成一幅新的图像,即合成图像。For another example, the electronic device can also regenerate a new image, that is, a composite image, according to the average pixel value of each position obtained by calculation.

本申请实施例中,电子设备在对拍摄得到的多个目标图像与基底图像进行图像合成处理之后,将合成图像设为图像拍摄请求的成像图像。至此,电子设备即完成了对应于接收到的图像拍摄请求的一次完整拍摄操作。In the embodiment of the present application, after the electronic device performs image synthesis processing on a plurality of target images and base images obtained by shooting, the composite image is set as the imaging image of the image capturing request. So far, the electronic device has completed a complete shooting operation corresponding to the received image shooting request.

请继续参照图8,图8由此示出了基底图像到合成得到的图像的清晰度变化,其中,X轴表示由图像边缘区域到中心区域,再由中心区域到边缘区域的位置变化,Y轴表示图像的清晰度。从图中可以看出,在基底图像中,中心区域的清晰度最高,随着中心区域向边缘区域的扩散,清晰度逐渐降低,且变化较为剧烈。而在合成图像中,中心区域的清晰度最高,且相较于基底图像,合成图像的边缘区域的清晰度被整体提高,随着中心区域向边缘区域的扩散,虽然清晰度逐渐降低,但变化更为平滑,即合成图像的中心区域和边缘区域的清晰度都较高,使得合成图像的整体图像质量得以提高。Please continue to refer to FIG. 8, which shows the change in sharpness from the base image to the synthesized image, where the X axis represents the position change from the image edge area to the center area, and then from the center area to the edge area, Y The axis represents the sharpness of the image. It can be seen from the figure that in the base image, the central area has the highest definition, and as the central area spreads to the edge area, the sharpness gradually decreases, and the change is more severe. In the composite image, the central area has the highest definition, and compared with the base image, the definition of the edge area of the composite image is improved as a whole. As the center area spreads to the edge area, although the definition gradually decreases, the change Smoother, that is, the center area and edge area of the composite image are sharper, so that the overall image quality of the composite image is improved.

请参阅图9,图9为本申请实施例提供的成像方法的另一流程示意图。该成像方法可以应用于电子设备,该电子设备可以包括彩色摄像模组、黑白摄像模组和多个长焦摄像模组,各长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域存在重叠,该目标摄像模组可以为彩色摄像模组或黑白摄像模组。该成像方法的流程可以包括:Please refer to FIG. 9 , which is another schematic flowchart of the imaging method provided by an embodiment of the present application. The imaging method can be applied to electronic equipment. The electronic equipment can include a color camera module, a black-and-white camera module, and a plurality of telephoto camera modules. The shooting area of each telephoto camera module and the shooting area of the target camera module exist. Overlapping, the target camera module can be a color camera module or a black and white camera module. The flow of the imaging method may include:

201、电子设备接收对待拍摄对象的图像拍摄请求。201. The electronic device receives an image capturing request of the object to be captured.

比如,用户开启了相机应用,并将摄像头对准了拍摄场景中的待拍摄对象,之后用户点击了相机应用的预览界面上提供的拍照按钮,此时电子设备可以接收到对待拍摄对象的图像拍摄请求。For example, the user opens the camera application and points the camera at the object to be photographed in the shooting scene, and then the user clicks the camera button provided on the preview interface of the camera application. At this time, the electronic device can receive the image of the object to be photographed. ask.

202、电子设备获取环境光强度值。202. The electronic device acquires an ambient light intensity value.

203、电子设备检测环境光强度值是否小于预设第一阈值。203. The electronic device detects whether the ambient light intensity value is less than a preset first threshold.

比如,202和203可以包括:For example, 202 and 203 could include:

在接收到图像拍摄请求后,电子设备可以获取当前的环境光强度值,并检测该当前的环境光强度值是否小于预设第一阈值。其中,当环境光强度值小于预设第一阈值时,可以认为当前的环境为暗光环境,如夜景等。当环境光强度值大于或等于预设第一阈值时,可以认为当前的环境为亮光环境。After receiving the image capturing request, the electronic device may acquire the current ambient light intensity value, and detect whether the current ambient light intensity value is smaller than the preset first threshold value. Wherein, when the ambient light intensity value is less than the preset first threshold, it may be considered that the current environment is a dark light environment, such as a night scene. When the ambient light intensity value is greater than or equal to the preset first threshold, it may be considered that the current environment is a bright light environment.

若检测到当前的环境光强度值小于预设第一阈值,则进入204。If it is detected that the current ambient light intensity value is less than the preset first threshold, go to 204 .

若检测到当前的环境光强度值大于或等于预设第一阈值,则进入205。If it is detected that the current ambient light intensity value is greater than or equal to the preset first threshold, go to 205 .

204、若检测到环境光强度值小于预设第一阈值,则电子设备通过彩色摄像模组和黑白摄像模组对待拍摄对象进行拍摄,得到基底图像。204. If it is detected that the ambient light intensity value is less than the preset first threshold, the electronic device uses the color camera module and the black-and-white camera module to shoot the object to be photographed to obtain a base image.

比如,在获取到当前的环境光强度值后,电子设备检测到该环境光强度值小于预设第一阈值,则可以认为当前的环境为暗光环境,如当前为夜景。在这种情况下,电子设备可以通过其彩色摄像模组和黑白摄像模组来对待拍摄对象进行拍摄,从而得到基底图像。For example, after acquiring the current ambient light intensity value, the electronic device detects that the ambient light intensity value is smaller than the preset first threshold, and may consider the current environment to be a dark light environment, such as a night scene. In this case, the electronic device can shoot the object to be photographed through its color camera module and black and white camera module to obtain a base image.

例如,在一种实施方式中,电子设备通过彩色摄像模组和黑白摄像模组对待拍摄对象进行拍摄,得到基底图像,可以包括:For example, in one embodiment, the electronic device captures the object to be photographed through a color camera module and a black-and-white camera module to obtain a base image, which may include:

电子设备通过彩色摄像模组对待拍摄对象进行拍摄,得到第一图像,并通过黑白摄像模组对待拍摄对象进行拍摄,得到第二图像;The electronic device shoots the subject to be photographed through the color camera module to obtain a first image, and uses the black and white camera module to shoot the subject to be photographed to obtain a second image;

电子设备将第一图像和第二图像进行合成,得到基底图像。The electronic device synthesizes the first image and the second image to obtain a base image.

比如,电子设备可以通过其彩色摄像模组对待拍摄对象进行一次拍摄,得到第一图像(如彩色图像),同时,电子设备可以通过其黑白摄像模组对待拍摄对象进行一次拍摄,得到第二图像(如黑白图像)。在得到第一图像和第二图像之后,电子设备可以将该第一图像和第二图像进行合成处理,从而得到基底图像。For example, the electronic device can shoot the subject to be photographed once through its color camera module to obtain a first image (such as a color image), and at the same time, the electronic device can shoot the subject to be photographed once through its black-and-white camera module to obtain the second image. (such as black and white images). After obtaining the first image and the second image, the electronic device may perform a synthesis process on the first image and the second image, thereby obtaining a base image.

需要说明的是,在利用彩色摄像模组和黑白摄像模组拍摄得到基底图像时,彩色摄像模组可以拍摄整体的彩色画面,黑白摄像模组可以收录其余的画面信息。在成像时将第一图像和第二图像这二者叠加,由于黑白摄像模组拥有较高的进光量,可以捕捉的信息更多,所以合成的照片在细节和画面色彩上相比普通摄像头效果要好。由于通过黑白摄像模组拍摄得到的第二图像可以更好的保留图像的细节,相近颜色的过渡也会更明显自然,因此利用彩色摄像模组和黑白摄像模组得到的基底图像整体在层次感上更好,成像更清晰,尤其是夜拍成像效果好。即,电子设备将第一图像和第二图像合成后得到的基底图像的成像效果较好。It should be noted that, when the base image is obtained by using the color camera module and the black-and-white camera module, the color camera module can capture the entire color picture, and the black-and-white camera module can record the rest of the picture information. When imaging, the first image and the second image are superimposed. Because the black and white camera module has a higher amount of light, it can capture more information, so the synthesized photos are more effective than ordinary cameras in terms of details and picture color. Be good. Since the second image captured by the black and white camera module can better retain the details of the image, and the transition of similar colors will be more obvious and natural, the base image obtained by using the color camera module and the black and white camera module has an overall sense of hierarchy. The image is better, and the image is clearer, especially the night shot has a good imaging effect. That is, the imaging effect of the base image obtained by the electronic device synthesizing the first image and the second image is better.

205、若检测到环境光强度值大于或等于预设第一阈值,则电子设备获取预设参数的数值,该预设参数的数值用于表示电子设备当前的计算能力。205. If it is detected that the ambient light intensity value is greater than or equal to the preset first threshold, the electronic device acquires a value of a preset parameter, where the value of the preset parameter is used to represent the current computing capability of the electronic device.

206、若检测到预设参数的数值小于预设第二阈值,则电子设备通过目标摄像模组对待拍摄对象进行拍摄,得到基底图像。206. If it is detected that the value of the preset parameter is smaller than the preset second threshold, the electronic device uses the target camera module to photograph the object to be photographed to obtain a base image.

比如,205和206可以包括:For example, 205 and 206 could include:

在获取到当前的环境光强度值后,电子设备检测到该环境光强度值大于或等于预设第一阈值,则可以认为当前的环境为亮光环境。在这种情况下,电子设备可以进一步获取预设参数的数值,其中该预设参数的数值可以用于表示电子设备当前的计算能力。比如,预设参数的数值小于预设第二阈值时,可以认为电子设备当前的计算能力较弱,预设参数的数值大于或等于预设第二阈值时,可以认为电子设备当前的计算能力较强。例如,预设参数可以为当前的剩余运行内存容量等。After acquiring the current ambient light intensity value, the electronic device detects that the ambient light intensity value is greater than or equal to the preset first threshold value, and may consider the current environment to be a bright environment. In this case, the electronic device may further acquire the value of the preset parameter, where the value of the preset parameter may be used to represent the current computing capability of the electronic device. For example, when the value of the preset parameter is less than the preset second threshold, it can be considered that the current computing capability of the electronic device is relatively weak, and when the value of the preset parameter is greater than or equal to the preset second threshold, it can be considered that the current computing capability of the electronic device is relatively low. powerful. For example, the preset parameter may be the current remaining running memory capacity and the like.

在获取到预设参数的数值后,电子设备可以检测该预设参数的数值是否小于预设第二阈值。After acquiring the value of the preset parameter, the electronic device can detect whether the value of the preset parameter is smaller than the preset second threshold.

若该预设参数的数值小于预设第二阈值,则可以认为电子设备当前的计算能力较弱。在这种情况下,为了减轻设备计算负担,电子设备可以通过目标摄像模组对待拍摄对象进行拍摄,从而得到基底图像。即,此时电子设备仅通过目标摄像模组这一个摄像模组来对待拍摄对象进行拍摄,得到基底图像。而不会通过彩色摄像模组和黑白摄像模组这两个摄像模组来拍摄得到基底图像。If the value of the preset parameter is smaller than the preset second threshold, it may be considered that the current computing capability of the electronic device is weak. In this case, in order to reduce the computing burden of the device, the electronic device may capture the object to be photographed through the target camera module, thereby obtaining the base image. That is, at this time, the electronic device only uses one camera module, the target camera module, to shoot the object to be photographed to obtain the base image. The base image is not captured by the two camera modules of the color camera module and the black-and-white camera module.

207、电子设备通过多个长焦摄像模组对待拍摄对象进行拍摄,得到多个目标图像。207. The electronic device captures the object to be photographed through a plurality of telephoto camera modules to obtain a plurality of target images.

比如,在接收到对待拍摄对象的图像拍摄请求后,电子设备可以通过多个长焦摄像模组对待拍摄对象进行拍摄,从而得到多个图像,即多个目标图像。For example, after receiving an image capturing request of the object to be photographed, the electronic device may capture the object to be photographed through multiple telephoto camera modules, thereby obtaining multiple images, that is, multiple target images.

208、电子设备对基底图像与多个目标图像进行图像合成处理,并利用合成得到的图像响应图像拍摄请求。208. The electronic device performs image synthesis processing on the base image and the multiple target images, and uses the synthesized images to respond to the image capture request.

比如,在拍摄得到基底图像和多个目标图像后,电子设备可以对该基底图像与该多个目标图像进行图像合成处理,从而得到对应的合成图像,并利用合成得到的图像响应图像拍摄请求。例如,将合成得到的图像确定为图像拍摄请求所对应的成像图像。For example, after capturing the base image and multiple target images, the electronic device may perform image synthesis processing on the base image and the multiple target images to obtain corresponding synthesized images, and use the synthesized images to respond to the image capturing request. For example, the synthesized image is determined as the imaging image corresponding to the image capturing request.

在一种实施方式中,在上述流程205之后,若电子设备检测到预设参数的数值大于或等于预设第二阈值,则可以认为电子设备当前的计算能力较强。在这种情况下,电子设备也可以通过彩色摄像模组和黑白摄像模组对待拍摄对象进行拍摄,从而得到基底图像。In an embodiment, after the above process 205, if the electronic device detects that the value of the preset parameter is greater than or equal to the preset second threshold, it can be considered that the current computing capability of the electronic device is relatively strong. In this case, the electronic device can also use the color camera module and the black-and-white camera module to shoot the object to be photographed, so as to obtain the base image.

在另一种实施方式中,当检测到当前的环境光强度值大于或等于预设第一阈值时,可以认为电子设备当前所处的环境为亮光环境,在这种情况下,电子设备也可以直接通过目标摄像模组对待拍摄对象进行拍摄,从而得到基底图像。In another embodiment, when it is detected that the current ambient light intensity value is greater than or equal to the preset first threshold, it may be considered that the current environment of the electronic device is a bright environment. In this case, the electronic device may also The object to be photographed is photographed directly through the target camera module to obtain a base image.

在一种实施方式中,当电子设备仅通过目标摄像模组(如彩色摄像模组)对待拍摄对象进行拍摄得到基底图像时,电子设备也可以执行如下流程:In one embodiment, when the electronic device only captures the object to be photographed through the target camera module (such as a color camera module) to obtain the base image, the electronic device can also perform the following process:

电子设备通过目标摄像模组对待拍摄对象进行连续多次拍摄,得到多个第三图像;The electronic device continuously shoots the object to be photographed multiple times through the target camera module to obtain a plurality of third images;

电子设备将多个第三图像进行图像合成处理,得到基底图像。The electronic device performs image synthesis processing on the plurality of third images to obtain a base image.

比如,电子设备可以通过目标摄像模组对待拍摄对象进行两次或三次或四次拍摄,从而得到多个第三图像。之后,电子设备可以将这多个第三图像进行诸如多帧降噪等图像合成处理,从而得到基底图像。For example, the electronic device may shoot the object to be photographed twice, three times, or four times through the target camera module, so as to obtain multiple third images. Afterwards, the electronic device may perform image synthesis processing such as multi-frame noise reduction on the plurality of third images, so as to obtain a base image.

例如,当电子设备仅选择目标摄像模组对待拍摄对象进行拍摄得到基底图像,并且电子设备的计算能力较强时,电子设备可以通过目标摄像模组对待拍摄对象进行连续两次或三次或四次拍摄,从而得到多个第三图像。之后,电子设备可以将这多个第三图像进行诸如多帧降噪等图像合成处理,从而得到基底图像。For example, when the electronic device only selects the target camera module to capture the object to be photographed to obtain the base image, and the computing power of the electronic device is relatively strong, the electronic device can use the target camera module to record the object to be photographed two or three or four times in a row. shooting, thereby obtaining a plurality of third images. Afterwards, the electronic device may perform image synthesis processing such as multi-frame noise reduction on the plurality of third images, so as to obtain a base image.

可以理解的是,由于拍摄时间间隔很短,因此可以认为上述多个第三图像是在同一场景下拍摄得到的图像,这些图像的内容相同。It can be understood that since the shooting time interval is very short, it can be considered that the above-mentioned multiple third images are images obtained by shooting in the same scene, and the contents of these images are the same.

其中,电子设备在对多个第三图像进行图像合成处理时,首先将多个第三图像对齐,再计算对齐后的多个第三图像重叠的各像素点的平均像素值,最后根据计算得到的各平均像素值得到多个第三图像的合成图像,将该合成图像设为基底图像。Wherein, when the electronic device performs image synthesis processing on the plurality of third images, it first aligns the plurality of third images, and then calculates the average pixel value of each pixel overlapped by the aligned plurality of third images, and finally obtains according to the calculation Each average pixel value of , obtains a composite image of a plurality of third images, and the composite image is set as the base image.

相较于直接将目标摄像模组拍摄得到的图像设为基底图像,本申请实施例中能够获得更高清晰度的基底图像,使得最终得到的成像图像也具有更高的清晰度。Compared with directly setting the image captured by the target camera module as the base image, in the embodiment of the present application, a higher-definition base image can be obtained, so that the finally obtained imaging image also has a higher definition.

在一种实施方式中,电子设备上还可以包括用于覆盖彩色摄像模组和/或黑白摄像模组和/或长焦摄像模组的电致变色组件。在接收对待拍摄对象的图像拍摄请求之前,电子设备还可以执行如下流程:In one embodiment, the electronic device may further include an electrochromic component for covering the color camera module and/or the black and white camera module and/or the telephoto camera module. Before receiving the image capturing request of the object to be captured, the electronic device may also perform the following process:

电子设备控制电致变色组件呈现透明状态。The electronic device controls the electrochromic component to appear transparent.

那么,在利用合成得到的图像响应所述图像拍摄请求之后,电子设备还可以执行如下流程:电子设备控制电致变色组件由透明状态切换至着色状态,以隐藏彩色摄像模组和/或黑白摄像模组和/或长焦摄像模组。Then, after using the synthesized image to respond to the image capture request, the electronic device can also perform the following process: the electronic device controls the electrochromic component to switch from a transparent state to a colored state, so as to hide the color camera module and/or the black-and-white camera module and/or telephoto camera module.

比如,本申请实施例中,为了提升电子设备的完整性,还可以在彩色摄像模组和/或黑白摄像模组和/或多个长焦摄像模组之上覆盖电致变色组件,从而在需要时利用电致变色组件对摄像模组进行隐藏。For example, in the embodiment of the present application, in order to improve the integrity of the electronic device, the color camera module and/or the black-and-white camera module and/or the multiple telephoto camera modules can also be covered with electrochromic components, so that the Use electrochromic components to hide the camera module when necessary.

以下首先对电致变色组件的工作原理进行简单介绍。The working principle of the electrochromic component is briefly introduced below.

电致变色是指材料的颜色/透明度在外加电场的作用下发生稳定、可逆的变化的现象。具有电致变色性能的材料可以称为电致变色材料。而本申请实施例中的电致变色组件,就是利用电致变色材料制成。Electrochromism is a phenomenon in which the color/transparency of a material undergoes a stable and reversible change under the action of an applied electric field. Materials with electrochromic properties may be referred to as electrochromic materials. The electrochromic components in the embodiments of the present application are made of electrochromic materials.

其中,电致变色组件可以包括层叠设置的两层导电层,以及位于两个导电层之间的变色层、电解质层、离子存储层。比如,电致变色组件的两个透明导电层之上未施加电压(或者说,电压为0V)时,该电致变色组件可以呈透明状态,而当施加在其两个透明导电层之间的电压由0V变为3V时,该电致变色组件可以呈黑色,当施加在其两个透明导电层之间的电压由3V变为0V时,该电致变色组件将由黑色变为透明,等等。Wherein, the electrochromic component may include two layers of conductive layers arranged in layers, and a color-changing layer, an electrolyte layer, and an ion storage layer located between the two conductive layers. For example, when no voltage is applied on the two transparent conductive layers of the electrochromic component (or in other words, the voltage is 0V), the electrochromic component can be in a transparent state, and when a voltage is applied between the two transparent conductive layers of the electrochromic component When the voltage changes from 0V to 3V, the electrochromic component can turn black, when the voltage applied between its two transparent conductive layers changes from 3V to 0V, the electrochromic component changes from black to transparent, etc. .

这样,利用电致变色组件颜色可调的特性,可以对各摄像模组进行隐藏。In this way, each camera module can be hidden by utilizing the color-adjustable feature of the electrochromic component.

本申请实施例中,电子设备可以在启动拍摄类应用的同时,将覆盖于彩色摄像模组和/或黑白摄像模组和/或长焦摄像模组之上的电致变色组件切换至透明状态,使得彩色摄像模组和/或黑白摄像模组和/或长焦摄像模组能够对待拍摄对象进行拍摄。In the embodiment of the present application, the electronic device can switch the electrochromic component covering the color camera module and/or the black and white camera module and/or the telephoto camera module to the transparent state while starting the shooting application. , so that the color camera module and/or the black and white camera module and/or the telephoto camera module can shoot the object to be photographed.

而在获取到基底图像以及多个目标图像,并最终合成得到成像图像且退出拍摄类应用之后,电子设备可以将电致变色组件切换至着色状态,从而隐藏彩色摄像模组和/或黑白摄像模组和/或长焦摄像模组。After acquiring the base image and multiple target images, and finally synthesizing the imaging image and exiting the shooting application, the electronic device can switch the electrochromic component to a colored state, thereby hiding the color camera module and/or the black and white camera module group and/or telephoto camera modules.

在一种实施方式中,彩色摄像模组、黑白摄像模组和多个长焦摄像模组可以设置在电子设备的后盖处,那么,在着色状态下,电致变色组件的颜色可以与电子设备的后盖的颜色相同。可以理解的是,通过将电致变色组件在着色状态下的颜色设置成与电子设备的后盖的颜色相同,可以在视觉上起到更好的隐藏效果。In one embodiment, a color camera module, a black-and-white camera module, and a plurality of telephoto camera modules can be arranged at the back cover of the electronic device. Then, in a colored state, the color of the electrochromic component can be the same as that of the electronic device. The back cover of the device is the same color. It can be understood that, by setting the color of the electrochromic component in the colored state to be the same as the color of the back cover of the electronic device, a better visual concealment effect can be achieved.

比如,电子设备设置有同时覆盖彩色摄像模组和黑白摄像模组和长焦摄像模组的电致变色组件,且电子设备设置有彩色摄像模组和黑白摄像模组和长焦摄像模组的后盖一面的颜色为黑色,则电子设备在未启动拍摄类应用时,保存电致变色组件处于黑色的着色状态,使得彩色摄像模组和黑白摄像模组和长焦摄像模组被隐藏。而在启动拍摄类应用时,同步将电致变色组件切换至透明状态,使得电子设备能够通过彩色摄像模组和黑白摄像模组和长焦摄像模组进行拍摄。而在最终合成得到成像图像且退出拍摄类应用之后,电子设备将电致变色组件切换至黑色的着色状态,使得彩色摄像模组和黑白摄像模组和长焦摄像模组再次被隐藏。For example, the electronic equipment is provided with electrochromic components covering the color camera module, the black and white camera module and the telephoto camera module at the same time, and the electronic equipment is provided with a color camera module, a black and white camera module and a telephoto camera module. If the color of one side of the back cover is black, when the electronic device does not start the shooting application, the electrochromic component is kept in a black coloring state, so that the color camera module, the black and white camera module and the telephoto camera module are hidden. When starting a shooting application, the electrochromic component is switched to a transparent state synchronously, so that the electronic device can shoot through the color camera module, the black-and-white camera module, and the telephoto camera module. After the imaging image is finally synthesized and the shooting application is exited, the electronic device switches the electrochromic component to a black coloring state, so that the color camera module, the black-and-white camera module, and the telephoto camera module are hidden again.

在一些实施例中,在根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像之前,还可以包括:In some embodiments, according to the image capturing request, the object to be captured is captured by the target camera module, or the to-be-captured object is captured by the color camera module and the black-and-white camera module. Before the subject is photographed and the base image is obtained, it can also include:

电子设备检测当前是否处于抖动状态;The electronic device detects whether it is currently in a shaking state;

若当前不处于抖动状态,则电子设备根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像。If it is not currently in a shaking state, the electronic device uses the target camera module to shoot the object to be captured according to the image capture request, or uses the color camera module and the black-and-white camera module to shoot the object. The object to be photographed is photographed to obtain a base image.

根据以上实施例中的相关描述,本申请实施例是利用不同摄像模组拍摄得到的图像来最终合成得到成像图像,若在拍摄过程电子设备处于抖动状态,将导致不同摄像模组拍摄得到图像的图像内容存在明显差异,影响成像图像的合成效果。According to the relevant descriptions in the above embodiments, the embodiment of the present application uses images captured by different camera modules to finally synthesize an imaged image. If the electronic device is in a shaking state during the capturing process, it will cause images captured by different camera modules. There are obvious differences in the image content, which affects the synthesis effect of the imaged images.

因此,在本申请实施例中,电子设备在接收到输入的图像拍摄请求时,首先判断自身当前是否处于抖动状态。其中,电子设备可以通过多种不同方式进行抖动状态的判断,比如,电子设备可以判断当前在各方向的速度是否均大于预设速度,若是,则判定当前处于抖动状态,若否,则判定当前不处于抖动状态(或者说,稳定状态);又比如,电子设备可以判断当前在各方向的位移是否均大于预设位移,若是,则判定当前处于抖动状态,若否,则判定当前不处于抖动状态。此外,还可以通本申请实施例未列出的方式进行抖动状态的判断,本申请实施例对此不做具体限制。Therefore, in this embodiment of the present application, when the electronic device receives an input image capturing request, it first determines whether it is currently in a shaking state. Among them, the electronic device can judge the shaking state in a variety of ways. For example, the electronic device can judge whether the current speed in each direction is greater than the preset speed. If so, it is judged that it is currently in a shaking state. Not in a shaking state (or a stable state); for another example, the electronic device can determine whether the current displacement in each direction is greater than the preset displacement, if so, it is determined that the current is in a shaking state, if not, it is determined that the current is not shaking. state. In addition, the judgment of the jitter state may also be performed in a manner not listed in the embodiment of the present application, which is not specifically limited in the embodiment of the present application.

在判定当前不处于抖动状态时,电子设备即可以根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,从而得到基底图像。When it is determined that it is not currently in a shaking state, the electronic device can, according to the image shooting request, use the target camera module to shoot the object to be shot, or use the color camera module and the black-and-white camera module to shoot the object to be shot. The group photographs the object to be photographed, thereby obtaining a base image.

在一些实施例中,若当前不处于抖动状态,则电子设备根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像,还可以包括:In some embodiments, if it is not currently in a shaking state, the electronic device uses the target camera module to capture the object to be captured according to the image capture request, or captures the object to be captured through the color camera module and the image capture module. The black-and-white camera module captures the object to be photographed to obtain a base image, and may also include:

若当前不处于抖动状态,则电子设备检测待拍摄对象是否处于静止状态;If it is not currently in a shaking state, the electronic device detects whether the object to be photographed is in a stationary state;

若待拍摄对象处于静止状态,则电子设备根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像。If the object to be photographed is in a static state, the electronic device uses the target camera module to photograph the to-be-photographed object according to the image capture request, or uses the color camera module and the black-and-white camera module to pair The object to be photographed is photographed to obtain a base image.

根据以上相关描述,本领域普通技术人员可以理解的是,在电子设备不处于抖动状态的情况下,若待拍摄对象不处于静止状态(比如,待拍摄对象包括运动物体),电子设备通过摄像模组拍摄得到图像的图像内容也可能存在较大的差异。According to the above related descriptions, those of ordinary skill in the art can understand that, under the condition that the electronic device is not in a shaking state, if the object to be photographed is not in a static state (for example, the object to be photographed includes a moving object), the electronic device will pass the camera mode There may also be large differences in the image content of the images captured by the group.

因此,在本申请实施例中,电子设备在判定其自身当前不处于抖动状态时,并不立即通过摄像模组对待拍摄对象进行拍摄,而是进一步检测待拍摄对象是否处于静止状态,若检测到待拍摄对象处于静止状态,再根据图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像,具体可参照以上实施例中的相关描述,此处不再赘述。Therefore, in the embodiment of the present application, when the electronic device determines that it is not currently in a shaking state, it does not immediately use the camera module to shoot the object to be photographed, but further detects whether the object to be photographed is in a static state. The object to be shot is in a static state, and then according to the image shooting request, the object to be shot is shot by the target camera module, or the object to be shot is shot by the color camera module and the black and white camera module. Shooting is performed to obtain a base image. For details, reference may be made to the relevant descriptions in the above embodiments, which will not be repeated here.

其中,对于如何判断待拍摄对象是否处于静止状态,可由本领域技术人员是根据实际需要选取合适的方式进行判断,本申请实施例对此不做具体限制,比如,可以采用光流法、残差法等来判断待拍摄对象是否处于静止状态。Among them, how to judge whether the object to be photographed is in a static state can be judged by those skilled in the art by selecting an appropriate method according to actual needs, and this embodiment of the present application does not specifically limit this, for example, an optical flow method, residual error method etc. to judge whether the object to be photographed is in a stationary state.

在一些实施例中,目标摄像模组与长焦摄像模组可以共用图像传感器。In some embodiments, the target camera module and the telephoto camera module may share an image sensor.

比如,请参照图10,目标摄像头与长焦摄像头共用同一图像传感器,目标摄像模组(镜头部分)和长焦摄像模组(镜头部分)可以分时地将外部光线投射到的图像传感器的不同部分,实现对外部对象的拍摄。For example, please refer to Figure 10, the target camera and the telephoto camera share the same image sensor, and the target camera module (lens part) and the telephoto camera module (lens part) can project external light to different image sensors in time-sharing part, to achieve shooting of external objects.

相较于现有技术各摄像模组独立使用图像传感器,本申请实施例中多摄像模组共用图像传感器能够减少空间占用。Compared with the prior art in which each camera module uses an image sensor independently, the image sensor shared by multiple camera modules in the embodiment of the present application can reduce space occupation.

请参阅图11,图11为本申请实施例提供的成像装置的结构示意图。该电子设备包括彩色摄像模组、黑白摄像模组和多个长焦摄像模组,各长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域存在重叠,该目标摄像模组为所述彩色摄像模组或所述黑白摄像模组。成像装置300可以包括:接收模块301,第一拍摄模块302,第二拍摄模块303,响应模块304。Please refer to FIG. 11 , which is a schematic structural diagram of an imaging device provided by an embodiment of the present application. The electronic device includes a color camera module, a black and white camera module and a plurality of telephoto camera modules, and the shooting area of each telephoto camera module overlaps with the shooting area of the target camera module, and the target camera module is the Color camera module or the black and white camera module. The imaging device 300 may include: a receiving module 301 , a first photographing module 302 , a second photographing module 303 , and a response module 304 .

接收模块301,用于接收对待拍摄对象的图像拍摄请求。The receiving module 301 is configured to receive an image shooting request of the object to be shot.

第一拍摄模块302,用于根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像。The first shooting module 302 is configured to, according to the image shooting request, use the target camera module to shoot the object to be shot, or use the color camera module and the black and white camera module to shoot the object to be shot. The subject is photographed to obtain a base image.

第二拍摄模块303,用于通过所述多个长焦摄像模组对所述待拍摄对象进行拍摄,得到多个目标图像。The second photographing module 303 is configured to photograph the object to be photographed through the multiple telephoto camera modules to obtain multiple target images.

响应模块304,用于对所述基底图像与所述多个目标图像进行图像合成处理,并利用合成得到的图像响应所述图像拍摄请求。The response module 304 is configured to perform image synthesis processing on the base image and the multiple target images, and use the synthesized images to respond to the image capture request.

在一种实施方式中,在所述接收对待拍摄对象的图像拍摄请求之后,第一拍摄模块302可以用于:获取环境光强度值,并检测所述环境光强度值是否小于预设第一阈值;若检测到所述环境光强度值小于预设第一阈值,则通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像。In one embodiment, after receiving the image capturing request of the object to be captured, the first capturing module 302 may be configured to: acquire an ambient light intensity value, and detect whether the ambient light intensity value is less than a preset first threshold value ; If it is detected that the ambient light intensity value is less than the preset first threshold value, the object to be photographed is photographed by the color camera module and the black and white camera module to obtain a base image.

在一种实施方式中,第一拍摄模块302可以用于:In one embodiment, the first photographing module 302 may be used to:

通过所述彩色摄像模组对所述待拍摄对象进行拍摄,得到第一图像,并通过所述黑白摄像模组对所述待拍摄对象进行拍摄,得到第二图像;The object to be photographed is photographed by the color camera module to obtain a first image, and the object to be photographed is photographed by the black and white camera module to obtain a second image;

将所述第一图像和所述第二图像进行合成,得到基底图像。The first image and the second image are synthesized to obtain a base image.

在一种实施方式中,第一拍摄模块302可以用于:In one embodiment, the first photographing module 302 may be used to:

通过所述目标摄像模组对所述待拍摄对象进行连续多次拍摄,得到多个第三图像;The object to be photographed is continuously photographed multiple times by the target camera module to obtain a plurality of third images;

将所述多个第三图像进行图像合成处理,得到基底图像。Perform image synthesis processing on the plurality of third images to obtain a base image.

在一种实施方式中,在所述接收对待拍摄对象的图像拍摄请求之后,第一拍摄模块302还可以用于:获取预设参数的数值,所述预设参数的数值用于表示所述电子设备当前的计算能力;若检测到所述预设参数的数值小于预设第二阈值,则通过所述目标摄像模组对所述待拍摄对象进行拍摄,得到基底图像。In an embodiment, after receiving the image capturing request of the object to be captured, the first capturing module 302 may be further configured to: acquire the value of a preset parameter, where the value of the preset parameter is used to represent the electronic The current computing capability of the device; if it is detected that the value of the preset parameter is less than the preset second threshold, the object to be photographed is photographed by the target camera module to obtain a base image.

在一种实施方式中,所述电子设备还包括覆盖所述彩色摄像模组和/或所述黑白摄像模组和/或所述长焦摄像模组的电致变色组件;在所述接收对待拍摄对象的图像拍摄请求之前,接收模块301还可以用于:In one embodiment, the electronic device further includes an electrochromic component covering the color camera module and/or the black-and-white camera module and/or the telephoto camera module; Before capturing an image capturing request of an object, the receiving module 301 can also be used to:

控制所述电致变色组件呈现透明状态;controlling the electrochromic component to present a transparent state;

在所述利用合成得到的图像响应所述图像拍摄请求之后,响应模块304还可以用于:控制所述电致变色组件由透明状态切换至着色状态,以隐藏所述彩色摄像模组和/或所述黑白摄像模组和/或所述长焦摄像模组。After responding to the image capturing request using the synthesized image, the response module 304 may further be configured to: control the electrochromic component to switch from a transparent state to a colored state, so as to hide the color camera module and/or The black and white camera module and/or the telephoto camera module.

在一种实施方式中,所述彩色摄像模组、黑白摄像模组和多个长焦摄像模组设置在所述电子设备的后盖处,在所述着色状态下,所述电致变色组件的颜色与所述电子设备的后盖的颜色相同。In one embodiment, the color camera module, the black-and-white camera module, and a plurality of telephoto camera modules are arranged at the back cover of the electronic device, and in the colored state, the electrochromic component is the same color as the back cover of the electronic device.

本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本实施例提供的成像方法中的流程。Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, causes the computer to execute the procedures in the imaging method provided by this embodiment.

本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本实施例提供的成像方法中的流程。An embodiment of the present application further provides an electronic device, including a memory and a processor, where the processor is configured to execute the process in the imaging method provided by the present embodiment by calling a computer program stored in the memory.

例如,上述电子设备可以是诸如平板电脑或者智能手机等移动终端。请参阅图12,图12为本申请实施例提供的电子设备的结构示意图。For example, the above-mentioned electronic device may be a mobile terminal such as a tablet computer or a smart phone. Please refer to FIG. 12 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

该电子设备400可以包括摄像组件401、存储器402、处理器403等部件。本领域技术人员可以理解,图12中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The electronic device 400 may include a camera assembly 401, a memory 402, a processor 403 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 12 does not constitute a limitation on the electronic device, and may include more or less components than the one shown, or combine some components, or arrange different components.

摄像组件401可以包括彩色摄像模组、黑白摄像模组和多个长焦摄像模组,各长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域存在重叠,所述目标摄像模组为所述彩色摄像模组或所述黑白摄像模组。The camera assembly 401 may include a color camera module, a black and white camera module and a plurality of telephoto camera modules, and the shooting area of each telephoto camera module overlaps with the shooting area of the target camera module, and the target camera module is: The color camera module or the black and white camera module.

存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器403通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。Memory 402 may be used to store applications and data. The application program stored in the memory 402 contains executable code. Applications can be composed of various functional modules. The processor 403 executes various functional applications and data processing by executing the application programs stored in the memory 402 .

处理器403是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 403 is the control center of the electronic device, uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 402 and calling the data stored in the memory 402. The various functions and processing data of the device are used to monitor the electronic equipment as a whole.

在本实施例中,电子设备中的处理器403会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器402中,并由处理器403来运行存储在存储器402中的应用程序,从而执行:In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 403 executes the execution and stores it in the memory 402 in the application, thus executing:

接收对待拍摄对象的图像拍摄请求;Receive an image capture request of the subject to be photographed;

根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像;According to the image shooting request, the object to be shot is shot by the target camera module, or the object to be shot is shot by the color camera module and the black and white camera module to obtain a base image ;

通过所述多个长焦摄像模组对所述待拍摄对象进行拍摄,得到多个目标图像;The object to be photographed is photographed by the plurality of telephoto camera modules to obtain a plurality of target images;

对所述基底图像与所述多个目标图像进行图像合成处理,并利用合成得到的图像响应所述图像拍摄请求。Perform image synthesis processing on the base image and the plurality of target images, and use the synthesized images to respond to the image capture request.

请参阅图13,电子设备500可以包括摄像组件401、存储器402、处理器403、输入单元404、输出单元405、扬声器406、麦克风407等部件。Referring to FIG. 13 , the electronic device 500 may include a camera assembly 401 , a memory 402 , a processor 403 , an input unit 404 , an output unit 405 , a speaker 406 , a microphone 407 and other components.

摄像组件401可以包括彩色摄像模组、黑白摄像模组和多个长焦摄像模组,各长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域存在重叠,所述目标摄像模组为所述彩色摄像模组或所述黑白摄像模组。The camera assembly 401 may include a color camera module, a black and white camera module and a plurality of telephoto camera modules, and the shooting area of each telephoto camera module overlaps with the shooting area of the target camera module, and the target camera module is: The color camera module or the black and white camera module.

存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器403通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。Memory 402 may be used to store applications and data. The application program stored in the memory 402 contains executable code. Applications can be composed of various functional modules. The processor 403 executes various functional applications and data processing by executing the application programs stored in the memory 402 .

处理器403是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 403 is the control center of the electronic device, uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 402 and calling the data stored in the memory 402. The various functions and processing data of the device are used to monitor the electronic equipment as a whole.

输入单元404可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The input unit 404 may be used to receive input numbers, character information or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

输出单元405可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。输出单元可包括显示面板。The output unit 405 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, videos, and any combination thereof. The output unit may include a display panel.

在本实施例中,电子设备中的处理器403会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器402中,并由处理器403来运行存储在存储器402中的应用程序,从而执行:In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 403 executes the execution and stores it in the memory 402 in the application, thus executing:

接收对待拍摄对象的图像拍摄请求;Receive an image capture request of the subject to be photographed;

根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像;According to the image shooting request, the object to be shot is shot by the target camera module, or the object to be shot is shot by the color camera module and the black and white camera module to obtain a base image ;

通过所述多个长焦摄像模组对所述待拍摄对象进行拍摄,得到多个目标图像;The object to be photographed is photographed by the plurality of telephoto camera modules to obtain a plurality of target images;

对所述基底图像与所述多个目标图像进行图像合成处理,并利用合成得到的图像响应所述图像拍摄请求。Perform image synthesis processing on the base image and the plurality of target images, and use the synthesized images to respond to the image capture request.

在一种实施方式中,在所述接收对待拍摄对象的图像拍摄请求之后,处理器403可以执行:获取环境光强度值,并检测所述环境光强度值是否小于预设第一阈值;若检测到所述环境光强度值小于预设第一阈值,则通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像。In one embodiment, after receiving the image capture request of the object to be captured, the processor 403 may execute: obtain an ambient light intensity value, and detect whether the ambient light intensity value is less than a preset first threshold; if detecting When the ambient light intensity value is less than the preset first threshold, the object to be photographed is photographed by the color camera module and the black-and-white camera module to obtain a base image.

在一种实施方式中,处理器403执行通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像时,可以执行:通过所述彩色摄像模组对所述待拍摄对象进行拍摄,得到第一图像,并通过所述黑白摄像模组对所述待拍摄对象进行拍摄,得到第二图像;将所述第一图像和所述第二图像进行合成,得到基底图像。In one embodiment, when the processor 403 performs the shooting of the object to be photographed by the color camera module and the black-and-white camera module to obtain a base image, the processor 403 can perform: The object to be photographed is photographed to obtain a first image, and the black and white camera module is used to photograph the object to be photographed to obtain a second image; the first image and the second image are synthesized, Get the base image.

在一种实施方式中,处理器403执行通过所述目标摄像模组对所述待拍摄对象进行拍摄,得到基底图像时,可以执行:通过所述目标摄像模组对所述待拍摄对象进行连续多次拍摄,得到多个第三图像;将所述多个第三图像进行图像合成处理,得到基底图像。In one embodiment, when the processor 403 performs the shooting of the object to be shot through the target camera module to obtain a base image, the processor 403 may execute: the object to be shot is continuously captured by the target camera module Shooting multiple times to obtain a plurality of third images; performing image synthesis processing on the plurality of third images to obtain a base image.

在一种实施方式中,在所述接收对待拍摄对象的图像拍摄请求之后,处理器403可以执行:获取预设参数的数值,所述预设参数的数值用于表示所述电子设备当前的计算能力;若检测到所述预设参数的数值小于预设第二阈值,则通过所述目标摄像模组对所述待拍摄对象进行拍摄,得到基底图像。In an implementation manner, after receiving the image capture request of the object to be captured, the processor 403 may execute: acquiring a value of a preset parameter, where the value of the preset parameter is used to represent the current calculation of the electronic device If it is detected that the value of the preset parameter is smaller than the preset second threshold, the target camera module is used to photograph the object to be photographed to obtain a base image.

在一种实施方式中,所述电子设备还包括覆盖所述彩色摄像模组和/或所述黑白摄像模组和/或所述长焦摄像模组的电致变色组件;在所述接收对待拍摄对象的图像拍摄请求之前,处理器403可以执行:控制所述电致变色组件呈现透明状态。In one embodiment, the electronic device further includes an electrochromic component covering the color camera module and/or the black-and-white camera module and/or the telephoto camera module; Before capturing the image capturing request of the object, the processor 403 may execute: controlling the electrochromic component to present a transparent state.

那么,在所述利用合成得到的图像响应所述图像拍摄请求之后,处理器403可以执行:控制所述电致变色组件由透明状态切换至着色状态,以隐藏所述彩色摄像模组和/或所述黑白摄像模组和/或所述长焦摄像模组。Then, after using the synthesized image to respond to the image capturing request, the processor 403 may execute: control the electrochromic component to switch from a transparent state to a colored state, so as to hide the color camera module and/or The black and white camera module and/or the telephoto camera module.

在一种实施方式中,所述彩色摄像模组、黑白摄像模组和多个长焦摄像模组设置在所述电子设备的后盖处,在所述着色状态下,所述电致变色组件的颜色与所述电子设备的后盖的颜色相同。In one embodiment, the color camera module, the black-and-white camera module, and a plurality of telephoto camera modules are arranged at the back cover of the electronic device, and in the colored state, the electrochromic component is the same color as the back cover of the electronic device.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对成像方法的详细描述,此处不再赘述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the detailed description of the imaging method above, and details are not repeated here.

本申请实施例提供的所述成像装置与上文实施例中的成像方法属于同一构思,在所述成像装置上可以运行所述成像方法实施例中提供的任一方法,其具体实现过程详见所述成像方法实施例,此处不再赘述。The imaging device provided in the embodiment of the present application and the imaging method in the above embodiment belong to the same concept, and any method provided in the imaging method embodiment can be executed on the imaging device, and the specific implementation process is detailed in detail. Embodiments of the imaging method are not repeated here.

需要说明的是,对本申请实施例所述成像方法而言,本领域普通技术人员可以理解实现本申请实施例所述成像方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述成像方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the imaging methods described in the embodiments of the present application, those of ordinary skill in the art can understand that all or part of the process of implementing the imaging methods described in the embodiments of the present application can be completed by controlling the relevant hardware through a computer program. , the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process can include the flow of the embodiment of the imaging method. The storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), and the like.

对本申请实施例的所述成像装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the imaging device according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .

以上对本申请实施例所提供的一种成像方法、装置、存储介质以及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The imaging method, device, storage medium, and electronic device provided by the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described with specific examples. The descriptions of the above embodiments are only used for In order to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, the content of this specification It should not be construed as a limitation of this application.

Claims (10)

1.一种成像方法,应用于电子设备,其特征在于,所述电子设备包括彩色摄像模组、黑白摄像模组和多个长焦摄像模组,各长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域存在重叠,所述目标摄像模组为所述彩色摄像模组或所述黑白摄像模组,所述成像方法包括:1. an imaging method, is applied to electronic equipment, it is characterized in that, described electronic equipment comprises color camera module, black and white camera module and a plurality of telephoto camera modules, the shooting area and target of each telephoto camera module The shooting areas of the camera module overlap, the target camera module is the color camera module or the black and white camera module, and the imaging method includes: 接收对待拍摄对象的图像拍摄请求;Receive an image capture request of the subject to be photographed; 根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像;According to the image shooting request, the object to be shot is shot by the target camera module, or the object to be shot is shot by the color camera module and the black and white camera module to obtain a base image ; 通过所述多个长焦摄像模组对所述待拍摄对象进行拍摄,得到多个目标图像;The object to be photographed is photographed by the plurality of telephoto camera modules to obtain a plurality of target images; 对所述基底图像与所述多个目标图像进行图像合成处理,并利用合成得到的图像响应所述图像拍摄请求。Perform image synthesis processing on the base image and the plurality of target images, and use the synthesized images to respond to the image capture request. 2.根据权利要求1所述的成像方法,其特征在于,在所述接收对待拍摄对象的图像拍摄请求之后,还包括:获取环境光强度值,并检测所述环境光强度值是否小于预设第一阈值;2 . The imaging method according to claim 1 , wherein after receiving the image capturing request of the object to be captured, the method further comprises: acquiring an ambient light intensity value, and detecting whether the ambient light intensity value is smaller than a preset value. 3 . first threshold; 若检测到所述环境光强度值小于预设第一阈值,则通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像。If it is detected that the ambient light intensity value is less than the preset first threshold, the object to be photographed is photographed by the color camera module and the black-and-white camera module to obtain a base image. 3.根据权利要求2所述的成像方法,其特征在于,通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像,包括:3. The imaging method according to claim 2, wherein the object to be photographed is photographed by the color camera module and the black and white camera module to obtain a base image, comprising: 通过所述彩色摄像模组对所述待拍摄对象进行拍摄,得到第一图像,并通过所述黑白摄像模组对所述待拍摄对象进行拍摄,得到第二图像;The object to be photographed is photographed by the color camera module to obtain a first image, and the object to be photographed is photographed by the black and white camera module to obtain a second image; 将所述第一图像和所述第二图像进行合成,得到基底图像。The first image and the second image are synthesized to obtain a base image. 4.根据权利要求1所述的成像方法,其特征在于,通过所述目标摄像模组对所述待拍摄对象进行拍摄,得到基底图像,包括:4. The imaging method according to claim 1, wherein the object to be photographed is photographed by the target camera module to obtain a base image, comprising: 通过所述目标摄像模组对所述待拍摄对象进行连续多次拍摄,得到多个第三图像;The object to be photographed is continuously photographed multiple times by the target camera module to obtain a plurality of third images; 将所述多个第三图像进行图像合成处理,得到基底图像。Perform image synthesis processing on the plurality of third images to obtain a base image. 5.根据权利要求1所述的成像方法,其特征在于,在所述接收对待拍摄对象的图像拍摄请求之后,还包括:获取预设参数的数值,所述预设参数的数值用于表示所述电子设备当前的计算能力;5 . The imaging method according to claim 1 , wherein after receiving the image capturing request of the object to be captured, the method further comprises: obtaining a value of a preset parameter, wherein the value of the preset parameter is used to indicate the the current computing power of the electronic device; 若检测到所述预设参数的数值小于预设第二阈值,则通过所述目标摄像模组对所述待拍摄对象进行拍摄,得到基底图像。If it is detected that the value of the preset parameter is smaller than the preset second threshold, the object to be photographed is photographed by the target camera module to obtain a base image. 6.根据权利要求1-5中任一项所述的成像方法,其特征在于,所述电子设备还包括覆盖所述彩色摄像模组和/或所述黑白摄像模组和/或所述长焦摄像模组的电致变色组件;在所述接收对待拍摄对象的图像拍摄请求之前,还包括:6. The imaging method according to any one of claims 1-5, wherein the electronic device further comprises covering the color camera module and/or the black and white camera module and/or the long camera module. The electrochromic component of the focus camera module; before receiving the image shooting request of the object to be shot, it also includes: 控制所述电致变色组件呈现透明状态;controlling the electrochromic component to present a transparent state; 在所述利用合成得到的图像响应所述图像拍摄请求之后,还包括:控制所述电致变色组件由透明状态切换至着色状态,以隐藏所述彩色摄像模组和/或所述黑白摄像模组和/或所述长焦摄像模组。After responding to the image capturing request using the synthesized image, the method further includes: controlling the electrochromic component to switch from a transparent state to a colored state, so as to hide the color camera module and/or the black and white camera module group and/or the telephoto camera module. 7.根据权利要求6所述的成像方法,其特征在于,所述彩色摄像模组、黑白摄像模组和多个长焦摄像模组设置在所述电子设备的后盖处,在所述着色状态下,所述电致变色组件的颜色与所述电子设备的后盖的颜色相同。7. The imaging method according to claim 6, wherein the color camera module, the black and white camera module and a plurality of telephoto camera modules are arranged at the back cover of the electronic device, and the coloring In the state, the color of the electrochromic component is the same as the color of the back cover of the electronic device. 8.一种成像装置,应用于电子设备,其特征在于,所述电子设备包括彩色摄像模组、黑白摄像模组和多个长焦摄像模组,各长焦摄像模组的拍摄区域与目标摄像模组的拍摄区域存在重叠,所述目标摄像模组为所述彩色摄像模组或所述黑白摄像模组,所述成像装置包括:8. An imaging device, applied to electronic equipment, wherein the electronic equipment comprises a color camera module, a black and white camera module and a plurality of telephoto camera modules, the shooting area of each telephoto camera module and the target. The shooting areas of the camera module overlap, the target camera module is the color camera module or the black and white camera module, and the imaging device includes: 接收模块,用于接收对待拍摄对象的图像拍摄请求;a receiving module, configured to receive an image shooting request of the object to be shot; 第一拍摄模块,用于根据所述图像拍摄请求,通过所述目标摄像模组对所述待拍摄对象进行拍摄,或者通过所述彩色摄像模组和所述黑白摄像模组对所述待拍摄对象进行拍摄,得到基底图像;a first photographing module, configured to photograph the object to be photographed through the target camera module according to the image photographing request, or to photograph the object to be photographed through the color camera module and the black and white camera module The object is photographed to obtain a base image; 第二拍摄模块,用于通过所述多个长焦摄像模组对所述待拍摄对象进行拍摄,得到多个目标图像;a second shooting module, configured to shoot the object to be shot through the multiple telephoto camera modules to obtain multiple target images; 响应模块,用于对所述基底图像与所述多个目标图像进行图像合成处理,并利用合成得到的图像响应所述图像拍摄请求。A response module, configured to perform image synthesis processing on the base image and the multiple target images, and use the synthesized images to respond to the image capture request. 9.一种存储介质,其上存储有计算机程序,其特征在于,当所述计算机程序在计算机上执行时,使得所述计算机执行如权利要求1至7中任一项所述的方法。9. A storage medium on which a computer program is stored, characterized in that, when the computer program is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 7. 10.一种电子设备,包括存储器,处理器,其特征在于,所述处理器通过调用所述存储器中存储的计算机程序,用于执行如权利要求1至7中任一项所述的方法。10. An electronic device, comprising a memory and a processor, wherein the processor is configured to execute the method according to any one of claims 1 to 7 by invoking a computer program stored in the memory.
CN201910579945.6A 2019-06-28 2019-06-28 Imaging method, imaging device, storage medium and electronic equipment Pending CN110191274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910579945.6A CN110191274A (en) 2019-06-28 2019-06-28 Imaging method, imaging device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910579945.6A CN110191274A (en) 2019-06-28 2019-06-28 Imaging method, imaging device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN110191274A true CN110191274A (en) 2019-08-30

Family

ID=67724330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910579945.6A Pending CN110191274A (en) 2019-06-28 2019-06-28 Imaging method, imaging device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110191274A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020259401A1 (en) * 2019-06-28 2020-12-30 Oppo广东移动通信有限公司 Imaging method and device for apparatus, storage medium, and electronic apparatus

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152557A1 (en) * 1997-08-25 2002-10-24 David Elberbaum Apparatus for identifying the scene location viewed via remotely operated television camera
CN101646018A (en) * 2008-08-08 2010-02-10 佛山普立华科技有限公司 Photographing device and self-photographing method thereof
CN105007431A (en) * 2015-07-03 2015-10-28 广东欧珀移动通信有限公司 A picture shooting method and terminal based on multiple shooting scenes
CN105163028A (en) * 2015-09-11 2015-12-16 青岛海信移动通信技术股份有限公司 Method and device for controlling two cameras
KR20150146339A (en) * 2014-06-23 2015-12-31 김서희 Multi-camera lens
CN106210495A (en) * 2015-05-06 2016-12-07 小米科技有限责任公司 Image capturing method and device
CN207053645U (en) * 2017-08-24 2018-02-27 信利光电股份有限公司 A kind of cam device and electronic equipment
CN108712608A (en) * 2018-05-16 2018-10-26 Oppo广东移动通信有限公司 Terminal equipment shooting method and device
WO2019006762A1 (en) * 2017-07-07 2019-01-10 华为技术有限公司 Image capturing apparatus and method
CN109495622A (en) * 2018-12-28 2019-03-19 Oppo广东移动通信有限公司 Protection cover plate, shell assembly and mobile terminal
CN109639997A (en) * 2018-12-20 2019-04-16 Oppo广东移动通信有限公司 Image processing method, electronic device, and medium
EP3470918A1 (en) * 2016-06-12 2019-04-17 Apple Inc. User interface for camera effects

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152557A1 (en) * 1997-08-25 2002-10-24 David Elberbaum Apparatus for identifying the scene location viewed via remotely operated television camera
CN101646018A (en) * 2008-08-08 2010-02-10 佛山普立华科技有限公司 Photographing device and self-photographing method thereof
KR20150146339A (en) * 2014-06-23 2015-12-31 김서희 Multi-camera lens
CN106210495A (en) * 2015-05-06 2016-12-07 小米科技有限责任公司 Image capturing method and device
CN105007431A (en) * 2015-07-03 2015-10-28 广东欧珀移动通信有限公司 A picture shooting method and terminal based on multiple shooting scenes
CN105163028A (en) * 2015-09-11 2015-12-16 青岛海信移动通信技术股份有限公司 Method and device for controlling two cameras
EP3470918A1 (en) * 2016-06-12 2019-04-17 Apple Inc. User interface for camera effects
WO2019006762A1 (en) * 2017-07-07 2019-01-10 华为技术有限公司 Image capturing apparatus and method
CN207053645U (en) * 2017-08-24 2018-02-27 信利光电股份有限公司 A kind of cam device and electronic equipment
CN108712608A (en) * 2018-05-16 2018-10-26 Oppo广东移动通信有限公司 Terminal equipment shooting method and device
CN109639997A (en) * 2018-12-20 2019-04-16 Oppo广东移动通信有限公司 Image processing method, electronic device, and medium
CN109495622A (en) * 2018-12-28 2019-03-19 Oppo广东移动通信有限公司 Protection cover plate, shell assembly and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020259401A1 (en) * 2019-06-28 2020-12-30 Oppo广东移动通信有限公司 Imaging method and device for apparatus, storage medium, and electronic apparatus

Similar Documents

Publication Publication Date Title
US12184965B2 (en) Under-display camera and sensor control
CN110290324B (en) Device imaging method, device, storage medium and electronic device
RU2649773C2 (en) Controlling camera with face detection
CN103916582B (en) A kind of image processing method and device
CN110213493B (en) Device imaging method and device, storage medium and electronic device
CN106254682B (en) A kind of photographing method and mobile terminal
WO2020259445A1 (en) Device imaging method and apparatus, storage medium, and electronic device
CN109218606B (en) Image pickup control apparatus, control method thereof, and computer readable medium
CN110620873B (en) Device imaging method and device, storage medium and electronic device
CN111418202A (en) Camera zoom level and image frame capture control
CN110290299B (en) Imaging method, apparatus, storage medium and electronic device
CN107659769A (en) A kind of image pickup method, first terminal and second terminal
JP7591937B2 (en) Image processing device and image processing method
CN110213492B (en) Device imaging method and device, storage medium and electronic device
CN110166680B (en) Device imaging method, device, storage medium and electronic device
CN110312075A (en) Device imaging method and device, storage medium and electronic device
WO2019006762A1 (en) Image capturing apparatus and method
CN104994287A (en) Camera shooting method based on wide-angle camera and mobile terminal
CN110430375B (en) Imaging method, apparatus, storage medium and electronic device
US11431923B2 (en) Method of imaging by multiple cameras, storage medium, and electronic device
CN110191274A (en) Imaging method, imaging device, storage medium and electronic equipment
CN115134532A (en) Image processing method, image processing device, storage medium and electronic equipment
CN104754201B (en) A kind of electronic equipment and information processing method
JP5623247B2 (en) Imaging apparatus and control method thereof
CN116051386A (en) Image processing method and related equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190830

RJ01 Rejection of invention patent application after publication