CN115066880A - Method for generating captured image and electronic device - Google Patents

Method for generating captured image and electronic device Download PDF

Info

Publication number
CN115066880A
CN115066880A CN202080090782.6A CN202080090782A CN115066880A CN 115066880 A CN115066880 A CN 115066880A CN 202080090782 A CN202080090782 A CN 202080090782A CN 115066880 A CN115066880 A CN 115066880A
Authority
CN
China
Prior art keywords
image
electronic device
captured
light source
initial images
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
CN202080090782.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
Publication of CN115066880A publication Critical patent/CN115066880A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • 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

Landscapes

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

Abstract

A method, comprising: capturing a first initial image within a first dynamic range, wherein the first initial image is captured at a different imaging setting; generating an intermediate image of a second dynamic range from the first initial image, wherein the second dynamic range is higher than the first dynamic range; detecting a light source region according to a light detection image to generate a light source map, wherein the light detection image is at least one image in the first initial image and is suitable for detecting the light source region; a captured image is generated from the intermediate image and the light source map, wherein the position of the light source region of the captured image is determined from the light source map, and the color of the light source region of the captured image is determined from the intermediate image.

Description

生成捕获图像的方法及电子设备Method and electronic device for generating a captured image

技术领域technical field

本申请涉及一种在包括摄像头组件的电子设备中生成捕获图像的方法及这种电子设备。The present application relates to a method of generating a captured image in an electronic device including a camera assembly and such electronic device.

背景技术Background technique

智能手机、平板终端等电子设备在日常生活中被广泛使用。如今,许多电子设备都配备了摄像头组件来捕获图像。一些电子设备是便携式的,很容易携带,使其使用者可以随时随地利用电子设备的摄像头组件轻松地捕获图像。Electronic devices such as smartphones and tablet terminals are widely used in daily life. Today, many electronic devices are equipped with camera assemblies to capture images. Some electronic devices are portable and easy to carry, allowing their users to easily capture images anytime, anywhere using the camera assembly of the electronic device.

然而,如果电子设备的用户在夜间捕获图像,则所捕获的图像包括一个或多个过度曝光或光晕的光源区域。在捕获图像后,可以对捕获图像中的过度曝光的光源区域和光晕区域进行图像校正处理。However, if the user of the electronic device captures the image at night, the captured image includes one or more regions of the light source that are overexposed or haloed. After an image is captured, image correction processing may be performed on overexposed light source regions and halo regions in the captured image.

然而,即使已对捕获图像进行图像校正处理,捕获图像上的光源区域的质量有时对用户来说还是不够的,例如因为其颜色不适合光源区域或引入至捕获图像上的光源区域的散景效果(Bokeh effect)太强。因此,需要一种提高捕获图像上的光源区域质量的技术。However, even after image correction processing has been performed on the captured image, the quality of the light source area on the captured image is sometimes insufficient for the user, for example because its color is not suitable for the light source area or the bokeh effect introduced to the light source area on the captured image (Bokeh effect) is too strong. Therefore, there is a need for a technique to improve the quality of the light source area on the captured image.

发明内容SUMMARY OF THE INVENTION

本申请旨在解决上述技术问题中的至少一个。因此,本申请需要提供一种生成捕获图像的方法和电子设备。The present application aims to solve at least one of the above-mentioned technical problems. Therefore, the present application needs to provide a method and electronic device for generating a captured image.

根据本申请,一种在包括摄像头组件的电子设备中生成捕获图像的方法可以包括:According to the present application, a method of generating a captured image in an electronic device including a camera assembly may include:

通过摄像头组件捕获第一动态范围中的多个第一初始图像,其中,多个第一初始图像在不同的成像设置下被捕获;capturing, by the camera assembly, a plurality of first initial images in a first dynamic range, wherein the plurality of first initial images are captured under different imaging settings;

根据多个第一初始图像生成第二动态范围中的中间图像,其中,第二动态范围高于第一动态范围;generating an intermediate image in a second dynamic range from the plurality of first initial images, wherein the second dynamic range is higher than the first dynamic range;

根据光检测图像检测光源区域以生成光源图,其中,光检测图像为多个第一初始图像中的至少一个图像并且适用于检测光源区域;Detecting the light source area according to the light detection image to generate a light source map, wherein the light detection image is at least one image of the plurality of first initial images and is suitable for detecting the light source area;

根据中间图像和光源图生成捕获图像,其中,根据光源图确定捕获图像的光源区域的位置,并且根据中间图像确定捕获图像的光源区域的颜色。The captured image is generated from the intermediate image and the light source map, wherein the position of the light source area of the captured image is determined from the light source map, and the color of the light source area of the captured image is determined from the intermediate image.

在一些实施例中,在该方法中,捕获多个第一初始图像可包括:在不同的曝光值下捕获多个第一初始图像。In some embodiments, in the method, capturing the plurality of first initial images may include capturing the plurality of first initial images at different exposure values.

在一些实施例中,在该方法中,光检测图像可以是多个第一初始图像中在最低曝光值下捕获的一个图像。In some embodiments, in the method, the light detection image may be one of the plurality of first initial images captured at the lowest exposure value.

在一些实施例中,在该方法中,最低曝光值可以低至不足以在第一初始图像中检测到来自光源区域以外的区域的光。In some embodiments, in the method, the minimum exposure value may be low enough to detect light from areas other than the light source area in the first initial image.

在一些实施例中,在该方法中,最低曝光值可以为负值。In some embodiments, in the method, the minimum exposure value may be a negative value.

在一些实施例中,在该方法中,还可以包括:In some embodiments, in the method, can also include:

通过摄像头组件捕获第二初始图像;以及capturing a second initial image via the camera assembly; and

根据多个第一初始图像和第二初始图像计算深度图。The depth map is calculated from the plurality of first and second initial images.

在一些实施例中,在该方法中,生成捕获图像还包括:执行散景渲染处理,以根据深度图将散景效果引入捕获图像。In some embodiments, in the method, generating the captured image further comprises: performing a bokeh rendering process to introduce a bokeh effect into the captured image based on the depth map.

在一些实施例中,在该方法中,多个第一初始图像可以由摄像头组件的第一主摄像头捕获,并且第二初始图像可以由摄像头组件的第二主摄像头捕获。In some embodiments, in the method, the plurality of first initial images may be captured by a first main camera of the camera assembly, and the second initial images may be captured by a second main camera of the camera assembly.

在一些实施例中,在该方法中,所述生成捕获图像还可以包括:执行分割过程,以根据中间图像将散景效果引入捕获图像。In some embodiments, in the method, the generating the captured image may further comprise performing a segmentation process to introduce a bokeh effect into the captured image based on the intermediate image.

在一些实施例中,在该方法中,多个第一初始图像可以由电子设备的背面中的第一主摄像头捕获或者可以由电子设备的摄像头组件的正面中的副摄像头捕获。In some embodiments, in the method, the plurality of first initial images may be captured by a first primary camera in the back of the electronic device or may be captured by a secondary camera in the front of a camera assembly of the electronic device.

根据本申请,一种电子设备可以包括:According to the present application, an electronic device may include:

能够在第一动态范围内捕获图像的摄像头组件;和a camera assembly capable of capturing images within a first dynamic range; and

图像处理器,该图像处理器用于:Image processor, which is used to:

-通过摄像头组件捕获第一动态范围中的多个第一初始图像,其中,多个第一初始图像在不同的成像设置下被捕获;- capturing, by the camera assembly, a plurality of first initial images in a first dynamic range, wherein the plurality of first initial images are captured at different imaging settings;

-根据多个第一初始图像生成第二动态范围中的中间图像,其中,第二动态范围高于第一动态范围;- generating an intermediate image in a second dynamic range from the plurality of first initial images, wherein the second dynamic range is higher than the first dynamic range;

-根据光检测图像检测光源区域以生成光源图,其中,光检测图像为多个第一初始图像中的至少一个图像并且适用于检测光源区域;- detecting light source regions from a light detection image to generate a light source map, wherein the light detection image is at least one of a plurality of first initial images and is suitable for detecting light source regions;

-根据中间图像和光源图生成捕获图像,其中,根据光源图确定捕获图像的光源区域的位置,并且根据中间图像确定捕获图像的光源区域的颜色。- generating a captured image from the intermediate image and a light source map, wherein the position of the light source area of the captured image is determined from the light source map, and the color of the light source area of the captured image is determined from the intermediate image.

在一些实施例中,在该电子设备中,当捕获多个第一初始图像时,可以在不同的曝光值下捕获多个第一初始图像。In some embodiments, in the electronic device, when capturing a plurality of first initial images, the plurality of first initial images may be captured at different exposure values.

在一些实施例中,在该电子设备中,光检测图像可以是多个第一初始图像中在最低曝光值下捕获的一个图像。In some embodiments, in the electronic device, the light detection image may be an image captured at the lowest exposure value of the plurality of first initial images.

在一些实施例中,在该电子设备中,最低曝光值可以低至不足以在第一初始图像中检测到来自光源区域以外的区域的光。In some embodiments, in the electronic device, the minimum exposure value may be low enough to detect light from areas other than the light source area in the first initial image.

在一些实施例中,在该电子设备中,最低曝光值可以是负值。In some embodiments, in the electronic device, the minimum exposure value may be a negative value.

在一些实施例中,在该电子设备中,图像处理器还可以用于:In some embodiments, in the electronic device, the image processor can also be used to:

通过摄像头组件捕获第二初始图像;以及capturing a second initial image via the camera assembly; and

根据多个第一初始图像和第二初始图像计算深度图。The depth map is calculated from the plurality of first and second initial images.

在一些实施例中,在该电子设备中,当生成捕获图像时,还可以执行散景渲染处理,以根据深度图将散景效果引入捕获图像。In some embodiments, in the electronic device, when the captured image is generated, a bokeh rendering process may also be performed to introduce a bokeh effect into the captured image according to the depth map.

在一些实施例中,在电子设备中,多个第一初始图像可以由摄像头组件的第一主摄像头捕获,并且第二初始图像可以由摄像头组件的第二主摄像头捕获。In some embodiments, in the electronic device, the plurality of first initial images may be captured by a first main camera of the camera assembly, and the second initial images may be captured by a second main camera of the camera assembly.

在一些实施例中,在该电子设备中,在生成捕获图像时,还可以通过分割过程根据中间图像将散景效果引入捕获图像。In some embodiments, in the electronic device, when the captured image is generated, a bokeh effect may also be introduced into the captured image according to the intermediate image through a segmentation process.

在一些实施例中,在该电子设备中,多个第一初始图像可以由电子设备的背面中的第一主摄像头捕获或者可以由电子设备的摄像头组件的正面中的副摄像头捕获。In some embodiments, in the electronic device, the plurality of first initial images may be captured by a first primary camera in the back of the electronic device or may be captured by a secondary camera in the front of a camera assembly of the electronic device.

附图说明Description of drawings

本申请的实施例的这些和/或其他方面和优点将从以下参考附图的描述中变得明显和更容易理解,其中:These and/or other aspects and advantages of embodiments of the present application will become apparent and better understood from the following description with reference to the accompanying drawings, wherein:

图1示出了根据本申请第一实施例的电子设备的背面图;1 shows a rear view of an electronic device according to a first embodiment of the present application;

图2示出了根据本申请第一实施例的电子设备的正面图;Fig. 2 shows the front view of the electronic device according to the first embodiment of the present application;

图3示出了根据本申请第一实施例的电子设备的框图;3 shows a block diagram of an electronic device according to the first embodiment of the present application;

图4示出了由根据本申请第一实施例的电子设备执行的图像捕获处理的流程示意图;FIG. 4 shows a schematic flowchart of image capture processing performed by the electronic device according to the first embodiment of the present application;

图5示出了根据本申请第二实施例的电子设备的背面图;以及FIG. 5 shows a rear view of an electronic device according to a second embodiment of the present application; and

图6示出了由根据本申请第二实施例的电子设备执行的图像捕获处理的流程示意图。FIG. 6 shows a schematic flowchart of an image capture process performed by an electronic device according to a second embodiment of the present application.

具体实施方式Detailed ways

以下将详细描述本申请的实施例,其示例将在附图中示出。在整个说明书中,相同或相似的元件以及具有相同或相似功能的元件由相同的附图标记表示。本文中结合附图所描述的实施例是解释性的,旨在解释说明本申请,而不应理解为对本申请的限制。Embodiments of the present application will be described in detail below, examples of which are illustrated in the accompanying drawings. Throughout the specification, the same or similar elements and elements having the same or similar functions are denoted by the same reference numerals. The embodiments described herein in conjunction with the accompanying drawings are illustrative and intended to explain the present application and should not be construed as limiting the present application.

[第一实施例][First Embodiment]

图1示出了根据本申请第一实施例的电子设备的背面图。图2示出了根据本申请第一实施例的电子设备的正面图。FIG. 1 shows a rear view of an electronic device according to a first embodiment of the present application. FIG. 2 shows a front view of an electronic device according to the first embodiment of the present application.

如图1和图2所示,电子设备10可以包括显示器20和摄像头组件30。在本实施例中,摄像头组件30包括第一主摄像头32、第二主摄像头34和副摄像头36。第一主摄像头32和第二主摄像头34可以在电子设备10的背面捕获图像,而副摄像头36可以在电子设备10的正面捕获图像。因此,第一主摄像头32和第二主摄像头34称为外摄像头,而副摄像头36称为内摄像头。As shown in FIGS. 1 and 2 , the electronic device 10 may include a display 20 and a camera assembly 30 . In this embodiment, the camera assembly 30 includes a first main camera 32 , a second main camera 34 and a sub-camera 36 . The first main camera 32 and the second main camera 34 can capture images on the back of the electronic device 10 , while the secondary camera 36 can capture images on the front of the electronic device 10 . Therefore, the first main camera 32 and the second main camera 34 are referred to as outer cameras, and the secondary camera 36 is referred to as an inner camera.

第一主摄像头32和第二主摄像头34可以具有相同的性能和/或特性,或者第一主摄像头32和第二主摄像头34可以具有不同的性能和/或特性。例如,在第一主摄像头32和第二主摄像头34具有彼此不同的性能和/或特性的情况下,第一主摄像头32可以配备有全彩色图像传感器,而第二主摄像头34可以配备有黑白图像传感器。此外,第一主摄像头32可以是适合于捕获静止图像的摄像头,而第二主摄像头34可以是适合于捕获运动图像的摄像头。此外,第一主摄像头32可以是配备有广角镜头的摄像头,而第二主摄像头34可以是配备有远摄镜头的摄像头。The first main camera 32 and the second main camera 34 may have the same performance and/or characteristics, or the first main camera 32 and the second main camera 34 may have different performance and/or characteristics. For example, where the first main camera 32 and the second main camera 34 have different performance and/or characteristics from each other, the first main camera 32 may be equipped with a full color image sensor, while the second main camera 34 may be equipped with a black and white image sensor Image Sensor. Furthermore, the first main camera 32 may be a camera suitable for capturing still images, while the second main camera 34 may be a camera suitable for capturing moving images. Also, the first main camera 32 may be a camera equipped with a wide-angle lens, and the second main camera 34 may be a camera equipped with a telephoto lens.

在本实施例中,副摄像头36的性能低于第一主摄像头32和第二主摄像头34的性能。然而,副摄像头36的性能也可以与第一主摄像头32和第二主摄像头34的性能相同。In this embodiment, the performance of the sub-camera 36 is lower than that of the first main camera 32 and the second main camera 34 . However, the performance of the secondary camera 36 may also be the same as the performance of the first main camera 32 and the second main camera 34 .

尽管根据本实施例的电子设备10具有3个摄像头,但是该电子设备也可以具有3个以上的摄像头。例如,电子设备10可以具有3个、4个、5个等主摄像头。Although the electronic device 10 according to the present embodiment has three cameras, the electronic device may have more than three cameras. For example, the electronic device 10 may have 3, 4, 5, etc. main cameras.

图3示出了根据本申请第一实施例的电子设备的框图。如图3所示,除了显示器20和摄像头组件30之外,电子设备10还可以包括主处理器40、图像信号处理器42、存储器44、电源电路46及通信电路48。显示器20、摄像头组件30、主处理器40、图像信号处理器42、存储器44、电源电路46及通信电路48通过总线50连接在一起。FIG. 3 shows a block diagram of an electronic device according to the first embodiment of the present application. As shown in FIG. 3 , in addition to the display 20 and the camera assembly 30 , the electronic device 10 may further include a main processor 40 , an image signal processor 42 , a memory 44 , a power supply circuit 46 and a communication circuit 48 . The display 20 , the camera assembly 30 , the main processor 40 , the image signal processor 42 , the memory 44 , the power supply circuit 46 and the communication circuit 48 are connected together by a bus 50 .

主处理器40执行存储在存储器44中的一个或多个程序。主处理器40通过执行程序来实现电子设备10的各种应用和数据处理。主处理器40可以是一个或多个计算机处理器。主处理器40不限于一个CPU核,也可以具有多个CPU核。主处理器40可以是电子设备10的主CPU、图像处理单元(IPU)或设置有摄像头组件30的DSP。Main processor 40 executes one or more programs stored in memory 44 . The main processor 40 implements various applications and data processing of the electronic device 10 by executing programs. Main processor 40 may be one or more computer processors. The main processor 40 is not limited to one CPU core, and may have a plurality of CPU cores. The main processor 40 may be the main CPU of the electronic device 10 , an image processing unit (IPU) or a DSP provided with the camera assembly 30 .

图像信号处理器42控制摄像头组件30并处理由摄像头组件30捕获的图像。例如,图像信号处理器42可以对摄像头组件30捕获的图像进行去马赛克处理、降噪处理、自动曝光处理、自动对焦处理、自动白平衡处理、高动态范围处理等处理。Image signal processor 42 controls camera assembly 30 and processes images captured by camera assembly 30 . For example, the image signal processor 42 may perform demosaic processing, noise reduction processing, automatic exposure processing, automatic focus processing, automatic white balance processing, high dynamic range processing, etc. on the image captured by the camera assembly 30 .

在本实施例中,主处理器40和图像信号处理器42相互协作以获取摄像头组件30所捕获的图像。即就是,主处理器40和图像信号处理器42用于通过摄像头组件30捕获图像并对捕获的图像执行各种图像处理。In this embodiment, the main processor 40 and the image signal processor 42 cooperate with each other to acquire the image captured by the camera assembly 30 . That is, the main processor 40 and the image signal processor 42 are used to capture images through the camera assembly 30 and perform various image processing on the captured images.

存储器44存储将由主处理器40执行的程序和各种数据。例如,捕获图像的数据存储在存储器44中。The memory 44 stores programs to be executed by the main processor 40 and various data. For example, the data of the captured image is stored in the memory 44 .

存储器44可以是高速RAM存储器或者可以是诸如闪存、磁盘存储器等的非易失性存储器。Memory 44 may be high-speed RAM memory or may be non-volatile memory such as flash memory, disk memory, or the like.

电源电路46可以具有诸如锂离子可充电电池的电池(未示出)和用于管理电池的电池管理单元(BMU)。The power circuit 46 may have a battery (not shown) such as a lithium-ion rechargeable battery and a battery management unit (BMU) for managing the battery.

通信电路48用于接收和发送数据以通过无线通信与互联网或其他设备进行通信。无线通信可以采用任何通信标准或协议,包括但不限于:全球移动通信系统(GSM)、码分多址(CDMA)、长期演进(LTE)、增强长期演进(LTE-Advanced)、第五代移动通信系统(5G)。Communication circuitry 48 is used to receive and transmit data to communicate with the Internet or other devices via wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to: Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA), Long Term Evolution (LTE), Long Term Evolution Enhanced (LTE-Advanced), Fifth Generation Mobile Communication system (5G).

通信电路48可以包括天线和射频(RF)电路。Communication circuitry 48 may include an antenna and radio frequency (RF) circuitry.

图4示出了由根据本实施例的电子设备执行的图像捕获处理的流程示意图。在本实施例中,图像捕获处理由主处理器40与图像信号处理器42协同执行。因此,主处理器40和图像信号处理器42构成本实施方式中的图像处理器。FIG. 4 shows a schematic flowchart of image capture processing performed by the electronic device according to the present embodiment. In the present embodiment, the image capturing process is performed by the main processor 40 in cooperation with the image signal processor 42 . Therefore, the main processor 40 and the image signal processor 42 constitute the image processor in this embodiment.

如图4所示,电子设备10通过摄像头组件30的第一主摄像头32捕获第一动态范围内的多个第一初始图像(步骤S10),并通过摄像头组件30的第二主摄像头34捕获第一动态范围内的第二初始图像(步骤S32)。As shown in FIG. 4 , the electronic device 10 captures a plurality of first initial images within a first dynamic range through the first main camera 32 of the camera assembly 30 (step S10 ), and captures the first image through the second main camera 34 of the camera assembly 30 . A second initial image within a dynamic range (step S32).

在本实施例中,例如,摄像头组件30可以具有自动对焦的设置、自动曝光的设置和自动白平衡的设置。换言之,摄像头组件30可以分别具有ISO感光度的设置、曝光时间的设置、曝光值的设置等。In this embodiment, for example, the camera assembly 30 may have settings for auto focus, auto exposure, and auto white balance. In other words, the camera assemblies 30 may have settings of ISO sensitivity, settings of exposure time, settings of exposure value, and the like, respectively.

摄像头组件30的成像设置可以由电子设备10自动设置。换言之,用户可以针对摄像头组件30的成像设置选择自动设置。替代地,摄像头组件30的成像设置可以由用户预先设置。换言之,用户可以预先设置摄像头组件30的成像设置的每一项。The imaging settings of the camera assembly 30 may be automatically set by the electronic device 10 . In other words, the user may select automatic settings for the imaging settings of the camera assembly 30 . Alternatively, the imaging settings of the camera assembly 30 may be preset by the user. In other words, the user can preset each item of imaging settings of the camera assembly 30 .

此外,在本实施例中,当电子设备10在步骤S10中捕获多个第一初始图像时,电子设备10改变每个第一初始图像的曝光值,以在后续过程中生成第二动态范围内的中间图像。在本实施例中,第一动态范围对应于低动态范围,而第二动态范围对应于高动态范围。In addition, in this embodiment, when the electronic device 10 captures a plurality of first initial images in step S10, the electronic device 10 changes the exposure value of each first initial image to generate a second dynamic range in a subsequent process the intermediate image. In this embodiment, the first dynamic range corresponds to a low dynamic range, and the second dynamic range corresponds to a high dynamic range.

例如,在步骤S10中,电子设备10捕获三个第一初始图像,其中,曝光值的设置分别为-1、0和+1。也就是说,假设电子设备10已将摄像头组件30的曝光值设定为0。为了捕获另外两个第一初始图像,曝光值分别增加1和减少1。For example, in step S10, the electronic device 10 captures three first initial images, wherein the exposure values are set to -1, 0, and +1, respectively. That is, it is assumed that the electronic device 10 has set the exposure value of the camera assembly 30 to 0. To capture the other two first initial images, the exposure value is increased by 1 and decreased by 1, respectively.

然而,第一初始图像的数量是可选的。例如,在步骤S10中捕获的第一初始图像的数量可以是两个、四个、五个等。However, the number of first initial images is optional. For example, the number of the first initial images captured in step S10 may be two, four, five, and so on.

在步骤S12中捕获第二初始图像时,电子设备10捕获第二初始图像的一个图像,以在后续处理中计算深度图。在本实施例中,虽然多个第一初始图像和多个第二初始图像都是在第一动态范围内捕获的,但是第一初始图像的动态范围可以不同于第二初始动态范围的动态范围。换言之,第一动态范围是第一主摄像头32和第二主摄像头34的动态范围。When capturing the second initial image in step S12, the electronic device 10 captures one image of the second initial image to calculate the depth map in subsequent processing. In this embodiment, although the plurality of first initial images and the plurality of second initial images are captured within the first dynamic range, the dynamic range of the first initial image may be different from that of the second initial dynamic range . In other words, the first dynamic range is the dynamic range of the first main camera 32 and the second main camera 34 .

在本实施例中,曝光值为0的第一初始图像和第二初始图像是同时捕获的,因为处于0的曝光值为成像设置,由电子设备10设置。然而,曝光值为0的第一初始图像的捕获时间和第二初始图像的捕获时间可能不同。In this embodiment, the first initial image and the second initial image with the exposure value of 0 are captured simultaneously, because the exposure value at 0 is the imaging setting, which is set by the electronic device 10 . However, the capture time of the first initial image with the exposure value of 0 and the capture time of the second initial image may be different.

接下来,电子设备10执行高动态范围生成处理(步骤S14)。更具体地,在高动态范围生成处理中,电子设备10根据多个第一初始图像生成第二动态范围中的中间图像。Next, the electronic device 10 executes high dynamic range generation processing (step S14). More specifically, in the high dynamic range generation process, the electronic device 10 generates an intermediate image in the second dynamic range from the plurality of first initial images.

在本实施例中,电子设备10根据分别以-1、0和1的曝光值捕获的三个第一初始图像来生成中间图像。可以通过将多个低动态范围的第一初始图像进行组合和合成来生成高动态范围的中间图像。In this embodiment, the electronic device 10 generates the intermediate images from three first initial images captured with exposure values of -1, 0, and 1, respectively. The high dynamic range intermediate image may be generated by combining and compositing multiple low dynamic range first initial images.

接下来,如图4所示,电子设备10根据在步骤S14中生成的中间图像和在步骤S12中捕获的第二初始图像来计算深度图(步骤S16)。Next, as shown in FIG. 4 , the electronic device 10 calculates a depth map from the intermediate image generated in step S14 and the second initial image captured in step S12 (step S16 ).

更具体地,第一主摄像头32的位置与第二主摄像头34的位置不同。因此,根据通过第一主摄像头32捕获的第一初始图像生成的中间图像的视点不同于通过第二主摄像头34捕获的第二初始图像的视点。利用中间图像和第二初始图像的视差,电子设备10可以生成深度图,该深度图指示中间图像和第二主图像中电子设备10与物体表面之间的距离。More specifically, the position of the first main camera 32 is different from the position of the second main camera 34 . Therefore, the viewpoint of the intermediate image generated from the first initial image captured by the first main camera 32 is different from the viewpoint of the second initial image captured by the second main camera 34 . Using the disparity of the intermediate image and the second initial image, the electronic device 10 may generate a depth map indicating the distance between the electronic device 10 and the surface of the object in the intermediate image and the second main image.

例如,深度图可以由主处理器40和/或图像信号处理器42计算。此外,深度图可以在摄像头组件30的摄像头模块内部计算。然而,用于计算深度图的深度图计算电路可以放置在电子设备10中。For example, the depth map may be calculated by main processor 40 and/or image signal processor 42 . Additionally, the depth map may be computed inside the camera module of the camera assembly 30 . However, the depth map calculation circuit for calculating the depth map may be placed in the electronic device 10 .

接下来,如图4所示,电子设备10根据光检测图像来检测光源区域,通过检测光检测图像中的光源来产生光源图,以指示光源区域在中间图像中的位置(步骤S18)。Next, as shown in FIG. 4 , the electronic device 10 detects the light source area according to the light detection image, and generates a light source map by detecting the light source in the light detection image to indicate the position of the light source area in the intermediate image (step S18 ).

光源图可以是一种指示光源中心的图像或者可以是捕获图像上光源中心的一个或多个坐标的集合。光源图可以临时存储在存储器44中。The light source map may be an image that indicates the center of the light source or may be a collection of one or more coordinates of the center of the light source on the captured image. The light source map may be temporarily stored in memory 44 .

光检测图像为多个第一初始图像中的至少一个图像并且适用于检测光源区域。例如,在这种情况下,以-1的曝光值捕获的第一初始图像中的一个图像是光检测图像,因为以-1的曝光值捕获的图像是在步骤S10中捕获的多个第一初始图像中曝光值最低的。换言之,-1的曝光值是足够低的,以使得无法在第一初始图像中检测到来自光源区域以外的区域的光。The light detection image is at least one of the plurality of first initial images and is suitable for detecting light source regions. For example, in this case, one of the first initial images captured with an exposure value of -1 is a light detection image because the images captured with an exposure value of -1 are the first plurality of first images captured in step S10 The lowest exposure value in the initial image. In other words, an exposure value of -1 is sufficiently low that light from areas other than the light source area cannot be detected in the first initial image.

通常,为了检测光检测图像中的光源区域,曝光值(EV)优选为负值。即,光检测图像应该是在负曝光值下捕获的第一初始图像中的一个图像。在此,曝光值可以由快门速度、ISO感光度和光圈构成。Generally, in order to detect the light source area in the light detection image, the exposure value (EV) is preferably a negative value. That is, the light detection image should be one of the first initial images captured at negative exposure values. Here, the exposure value can be composed of shutter speed, ISO sensitivity, and aperture.

在本实施例中,为了生成光源图,电子设备10将光检测图像中某区域的亮度与阈值进行比较,若该区域的亮度大于该阈值,则将该区域被视为光源区域。In this embodiment, in order to generate the light source map, the electronic device 10 compares the brightness of a certain area in the light detection image with a threshold value, and if the brightness of the area is greater than the threshold value, the area is regarded as a light source area.

更具体地,电子设备10将光检测图像中每个区域的亮度与该阈值进行比较。换言之,电子设备10将光检测图像中每一像素的亮度与阈值进行比较,以检测出光检测图像中的光源区域。该阈值可以存储在存储器44中、设置在由主处理器40执行的程序中或者设置在图像信号处理器42中。More specifically, the electronic device 10 compares the brightness of each region in the light detection image with the threshold. In other words, the electronic device 10 compares the brightness of each pixel in the light detection image with a threshold value to detect the light source area in the light detection image. The threshold may be stored in the memory 44 , set in a program executed by the main processor 40 , or set in the image signal processor 42 .

例如,在光检测图像中的每个像素包括由256个灰度组成的亮度的情况下,如果像素的亮度值大于128,则电子设备10可以确定该像素在光源区域中。For example, in the case where each pixel in the light detection image includes a luminance composed of 256 grayscales, if the luminance value of the pixel is greater than 128, the electronic device 10 may determine that the pixel is in the light source area.

顺便提及,该阈值不一定设置为特定值,而是也可以设置为百分比。例如,在最大亮度为100%并且最小亮度为0%的情况下,可以将阈值设置为亮度的50%。Incidentally, the threshold is not necessarily set to a specific value, but can also be set to a percentage. For example, with a maximum brightness of 100% and a minimum brightness of 0%, the threshold can be set to 50% of the brightness.

此后,电子设备10检测亮度大于该阈值的区域的中心并将该中心确定为光源的中心,以生成光源图。Thereafter, the electronic device 10 detects the center of the area whose brightness is greater than the threshold value and determines the center as the center of the light source to generate a light source map.

此外,在本实施例中,虽然电子设备10在计算出深度图之后才检测光检测图像中的光源区域,但是电子设备10可以在计算深度图之前检测光检测图像中的光源区域。在这种情况下,步骤S18在步骤S16之前执行。In addition, in this embodiment, although the electronic device 10 detects the light source region in the light detection image after calculating the depth map, the electronic device 10 may detect the light source region in the light detection image before calculating the depth map. In this case, step S18 is performed before step S16.

例如,可以由主处理器40和/或图像信号处理器42根据光检测图像来检测光源区域。此外,可以根据摄像头组件30捕获的光检测图像来检测光源区域。For example, the light source area may be detected by the main processor 40 and/or the image signal processor 42 from the light detection image. In addition, the light source area may be detected according to the light detection image captured by the camera assembly 30 .

接下来,如图4所示,电子设备10执行图像生成处理以生成捕获图像(步骤S20)。在本实施例中,至少根据在步骤S14中生成的中间图像、在步骤S18中生成的光源图以及在步骤S16中计算出的深度图来执行图像生成处理。当然,在步骤S20的图像生成处理中,可以使用其他图像和/或任何信息来生成捕获图像。Next, as shown in FIG. 4 , the electronic device 10 performs image generation processing to generate a captured image (step S20 ). In the present embodiment, the image generation process is performed based on at least the intermediate image generated in step S14, the light source map generated in step S18, and the depth map calculated in step S16. Of course, in the image generation process of step S20, other images and/or any information may be used to generate the captured image.

在本实施方式中,图像生成处理至少包括光源区域调整处理,该光源区域调整处理将光源区域适当地渲染到捕获图像上。在光源区域调整处理中,根据光源图决定光源区域的位置,并根据中间图像决定光源区域的颜色。In the present embodiment, the image generation process includes at least a light source area adjustment process that appropriately renders the light source area onto the captured image. In the light source area adjustment process, the position of the light source area is determined according to the light source map, and the color of the light source area is determined according to the intermediate image.

此外,图像生成处理至少包括基于深度图的散景渲染处理。即,在根据多个第一初始图像生成中间图像之后,对中间图像应用散景渲染处理以根据深度图对中间图像的背景进行散焦。换句话说,中间图像的背景通过散景渲染处理被散焦以变得模糊。Furthermore, the image generation process includes at least a depth map-based bokeh rendering process. That is, after the intermediate image is generated from the plurality of first initial images, a bokeh rendering process is applied to the intermediate image to defocus the background of the intermediate image according to the depth map. In other words, the background of the intermediate image is defocused to become blurred by the bokeh rendering process.

一般来说,高动态范围的中间图像的颜色比每一个第一初始图像和每一个第二初始图像的颜色更自然、更精确。另一方面,如果将散景渲染处理应用于高动态范围的中间图像,也会将散景效果引入光源区域,从而使光源区域过于模糊。因此,在本实施例中,根据在步骤S18中生成的光源图来调整光源区域的位置,并根据中间图像的颜色来调整光源区域的颜色。In general, the colors of the high dynamic range intermediate images are more natural and accurate than the colors of each of the first initial images and each of the second initial images. On the other hand, if the bokeh rendering process is applied to a high dynamic range intermediate image, it will also introduce a bokeh effect into the light source area, making the light source area too blurry. Therefore, in this embodiment, the position of the light source area is adjusted according to the light source map generated in step S18, and the color of the light source area is adjusted according to the color of the intermediate image.

当步骤S20中的图像生成处理完成时,生成用户想要捕获的捕获图像。当然,生成捕获图像的图像生成处理可以包括应用于中间图像的除了散景渲染处理和光源区域调整处理之外的各种处理。例如,图像生成处理可以包括去马赛克处理、降噪处理、自动曝光处理、自动对焦处理、自动白平衡处理、高动态范围处理等,以生成捕获图像。When the image generation process in step S20 is completed, a captured image that the user wants to capture is generated. Of course, the image generation process for generating the captured image may include various processes other than the bokeh rendering process and the light source area adjustment process applied to the intermediate image. For example, the image generation processing may include demosaic processing, noise reduction processing, auto exposure processing, auto focus processing, automatic white balance processing, high dynamic range processing, etc. to generate the captured image.

例如,图像生成处理可以由主处理器40和/或图像信号处理器42执行。然而,用于执行散景渲染处理的散景渲染电路可以放置在电子设备10中。类似地,用于执行光源区域调整处理的光源区域调整电路可以放置在电子设备10中。For example, image generation processing may be performed by main processor 40 and/or image signal processor 42 . However, a bokeh rendering circuit for performing bokeh rendering processing may be placed in the electronic device 10 . Similarly, a light source area adjustment circuit for performing light source area adjustment processing may be placed in the electronic device 10 .

接下来,如图4所示,电子设备10输出捕获图像(步骤S22)。例如,电子设备10可以在显示器20上显示捕获图像。此外,电子设备10可以将捕获图像存储在存储器44中。Next, as shown in FIG. 4, the electronic device 10 outputs the captured image (step S22). For example, the electronic device 10 may display the captured image on the display 20 . Additionally, electronic device 10 may store captured images in memory 44 .

电子设备10在步骤S22中输出捕获图像后,本实施例的图像捕获处理完成。After the electronic device 10 outputs the captured image in step S22, the image capture process of this embodiment is completed.

如上所述,根据本实施例的电子设备10,当电子设备10生成捕获图像时,根据光源图和捕获图像的颜色来确定捕获图像上的光源区域的位置,并根据高动态范围的中间图像确定捕获图像上的光源区域。因此,捕获图像上的光源区域更美观、更自然。如此,可以使得用户对根据本实施例的电子设备10的捕获图像的质量感到满意。As described above, according to the electronic device 10 of the present embodiment, when the electronic device 10 generates the captured image, the position of the light source region on the captured image is determined according to the light source map and the color of the captured image, and is determined according to the high dynamic range intermediate image Capture the light source area on the image. As a result, the area of the light source on the captured image is more aesthetically pleasing and more natural. In this way, the user can be made satisfied with the quality of the captured image of the electronic device 10 according to the present embodiment.

此外,由于可以将多个第一初始图像中的一个图像用作光检测图像来检测光源区域,因此不需要摄像头组件30捕获额外的图像或不需要额外的机械元件。因此,在没有任何额外成本的情况下可以提高用户对捕获图像的满意度。Furthermore, since one of the plurality of first initial images can be used as the light detection image to detect the light source area, there is no need for the camera assembly 30 to capture additional images or additional mechanical elements. Therefore, the user's satisfaction with the captured image can be improved without any additional cost.

尽管上述电子设备10在步骤S10中改变用于捕获多个第一初始图像中的每一个的曝光值,以便在步骤S14中生成高动态范围内的中间图像,电子设备10可以改变除了用于捕获多个第一初始图像中的每一个图像的曝光值之外的成像设置。例如,电子设备10可改变ISO感光度、曝光时间等,以在步骤S10中捕获多个第一初始图像中的每一个图像。Although the electronic device 10 described above changes the exposure value for capturing each of the plurality of first initial images in step S10 in order to generate an intermediate image in the high dynamic range in step S14, the electronic device 10 may change the exposure value for capturing Imaging settings other than the exposure value of each of the plurality of first initial images. For example, the electronic device 10 may change ISO sensitivity, exposure time, etc. to capture each of the plurality of first initial images in step S10.

在任何情况下,在第一初始图像中用于检测光源区域并生成光源图的最合适的图像可被用作步骤S18中的光检测图像。换言之,由于电子设备10为了产生高动态范围的中间图像而捕获多个第一初始图像,则可选择最适合检测光源区域的图像作为步骤S18中的光检测图像。In any case, the most suitable image for detecting the light source area and generating the light source map in the first initial image may be used as the light detection image in step S18. In other words, since the electronic device 10 captures a plurality of first initial images in order to generate a high dynamic range intermediate image, an image most suitable for detecting the light source area may be selected as the light detection image in step S18.

[第二实施例][Second Embodiment]

尽管在本申请的第一实施例中电子设备10在其背面具有两个主摄像头,但在本申请的第二实施例中,电子设备10在其背面具有一个主摄像头。在下文中,将说明与第一实施例的不同之处。Although the electronic device 10 has two main cameras on its back in the first embodiment of the present application, in the second embodiment of the present application, the electronic device 10 has one main camera on its back. Hereinafter, differences from the first embodiment will be explained.

图5示出了根据本申请第二实施例的电子设备10的背面图。此外,图5与第一实施例中的图1相对应。根据第二实施例的电子设备10的正面图与第一实施例中的图2大致相同。FIG. 5 shows a rear view of the electronic device 10 according to the second embodiment of the present application. In addition, FIG. 5 corresponds to FIG. 1 in the first embodiment. The front view of the electronic device 10 according to the second embodiment is substantially the same as that of FIG. 2 in the first embodiment.

如图5所示,根据本实施例的电子设备10具有摄像头组件30,该摄像头组件30包括主摄像头38,但不包括其它的主摄像头。也就是说,根据本实施例的电子设备10的摄像头组件30在电子设备10的背面具有一个主摄像头38,以在电子设备10的背面捕获图像。As shown in FIG. 5 , the electronic device 10 according to the present embodiment has a camera assembly 30 that includes a main camera 38 but does not include other main cameras. That is, the camera assembly 30 of the electronic device 10 according to the present embodiment has a main camera 38 on the back of the electronic device 10 to capture images on the back of the electronic device 10 .

如图2所示,在第二实施例中,与第一实施例相同地,电子设备10具有副摄像头36。也就是说,根据第二实施例的电子设备10的摄像头组件30还包括在电子设备10正面的内置摄像头,以便其在正面捕获图像。As shown in FIG. 2 , in the second embodiment, the electronic device 10 has a sub-camera 36 as in the first embodiment. That is, the camera assembly 30 of the electronic device 10 according to the second embodiment further includes a built-in camera on the front of the electronic device 10 so that it captures images on the front.

图6示出了由根据本申请第二实施例的电子设备执行的图像捕获处理的流程示意图。在本实施例中,图像捕获处理由主处理器40与图像信号处理器42协作执行。因此,主处理器40和图像信号处理器42构成本实施例中的图像处理器。FIG. 6 shows a schematic flowchart of an image capture process performed by an electronic device according to a second embodiment of the present application. In the present embodiment, the image capturing process is performed by the main processor 40 in cooperation with the image signal processor 42 . Therefore, the main processor 40 and the image signal processor 42 constitute the image processor in this embodiment.

如图6所示,电子设备10通过摄像头组件30的主摄像头38在第一动态范围内捕获多个第一初始图像(步骤S30),其中,第一动态范围低于第二动态范围。除了由单个主摄像头38捕获多个第一初始图像之外,第二实施例中的步骤S30与第一实施例中的步骤S10基本相同。As shown in FIG. 6 , the electronic device 10 captures a plurality of first initial images within a first dynamic range through the main camera 38 of the camera assembly 30 (step S30 ), wherein the first dynamic range is lower than the second dynamic range. Step S30 in the second embodiment is basically the same as step S10 in the first embodiment, except that the plurality of first initial images are captured by a single main camera 38 .

另一方面,由于第二实施例的电子设备10的摄像头组件30不具有第二主摄像头34,因此不会捕获第二初始图像。换言之,在第二实施例中省略了第一实施例中捕获第二初始图像的步骤S12。On the other hand, since the camera assembly 30 of the electronic device 10 of the second embodiment does not have the second main camera 34, the second initial image is not captured. In other words, step S12 of capturing the second initial image in the first embodiment is omitted in the second embodiment.

接下来,如图6所示,电子设备10执行高动态范围生成处理,以便根据多个低动态范围的第一初始图像生成高动态范围的中间图像(步骤S14)。第二实施例中的步骤S14与第一实施例中相应的步骤基本相同。Next, as shown in FIG. 6 , the electronic device 10 performs a high dynamic range generation process to generate a high dynamic range intermediate image from a plurality of low dynamic range first initial images (step S14 ). Step S14 in the second embodiment is basically the same as the corresponding step in the first embodiment.

接下来,如图6所示,电子设备10根据光检测图像来检测光源区域,以通过在光检测图像中检测光源来产生光源图,从而指示光源区域在中间图像中所处的位置(步骤S18)。第二实施例中的步骤S18与第一实施例中相应的步骤基本相同。Next, as shown in FIG. 6 , the electronic device 10 detects the light source area according to the light detection image to generate a light source map by detecting the light source in the light detection image, thereby indicating the position of the light source area in the intermediate image (step S18 ) ). Step S18 in the second embodiment is basically the same as the corresponding step in the first embodiment.

接下来,如图6所示,电子设备10执行图像生成处理,以生成捕获图像(步骤S32)。在本实施例中,至少根据在步骤S14中生成的中间图像和在步骤S18中生成的光源图来执行图像生成处理。当然,在步骤S32的图像生成处理中,可以使用其他图像和/或任何信息来生成捕获图像。Next, as shown in FIG. 6 , the electronic device 10 performs image generation processing to generate a captured image (step S32 ). In the present embodiment, the image generation process is performed based on at least the intermediate image generated in step S14 and the light source map generated in step S18. Of course, in the image generation process of step S32, other images and/or any information may be used to generate the captured image.

然而,因为摄像头组件30包括单个主摄像头38,在根据本实施例的图像生成处理中没有使用深度图。也就是说,在第二实施例中省略了第一实施例中生成深度图的步骤S16。However, because the camera assembly 30 includes a single main camera 38, no depth map is used in the image generation process according to the present embodiment. That is, the step S16 of generating the depth map in the first embodiment is omitted in the second embodiment.

因此,根据本实施例的图像生成处理包含分割处理以代替散景渲染处理。在分割处理中,在无需第一实施例的步骤S16中计算的深度图的情况下,将散景效果引入捕获图像中。例如,通过分析和识别中间图像中的人脸,将散景效果引入捕获图像中,分割人体轮廓(human silhouette)并将散景效果引入中间图像中人体轮廓的背景。Therefore, the image generation processing according to the present embodiment includes segmentation processing in place of the bokeh rendering processing. In the segmentation process, the bokeh effect is introduced into the captured image without the need for the depth map calculated in step S16 of the first embodiment. For example, the bokeh effect is introduced into the captured image by analyzing and identifying the human face in the intermediate image, the human silhouette is segmented and the bokeh effect is introduced into the background of the human silhouette in the intermediate image.

与第一实施例相同地,根据本实施例的图像生成处理包括光源区域调整处理。即,在本实施例中,根据光源图决定光源区域的位置,并根据中间图像决定光源区域的颜色。Like the first embodiment, the image generation process according to the present embodiment includes the light source area adjustment process. That is, in this embodiment, the position of the light source region is determined according to the light source map, and the color of the light source region is determined according to the intermediate image.

接下来,如图4所示,电子设备10输出捕获图像(步骤S22)。第二实施例中的步骤S22与第一实施例中相应的步骤基本相同。Next, as shown in FIG. 4, the electronic device 10 outputs the captured image (step S22). Step S22 in the second embodiment is basically the same as the corresponding step in the first embodiment.

如上所述,根据本实施例的电子设备10,当电子设备10生成捕获图像时,根据光源图决定捕获图像上的光源区域的位置,并根据高动态范围的中间图像决定捕获图像上的光源颜色。因此,捕获图像上的光源区域可以更美观、更自然。如此,可以使得用户对根据本实施例的电子设备10所捕获的捕获图像的质量感到满意。As described above, according to the electronic device 10 of the present embodiment, when the electronic device 10 generates a captured image, the position of the light source region on the captured image is determined according to the light source map, and the color of the light source on the captured image is determined according to the high dynamic range intermediate image . Therefore, the light source area on the captured image can be more aesthetically pleasing and more natural. In this way, the user can be made satisfied with the quality of the captured image captured by the electronic device 10 according to the present embodiment.

此外,即使电子设备10包括单个主摄像头38,电子设备10也可以执行包括光源区域调整处理的图像生成处理。因此,本实施例可以通过摄像头组件30与电子设备10的单个主摄像头38来实施。Furthermore, even if the electronic device 10 includes a single main camera 38, the electronic device 10 can perform image generation processing including light source area adjustment processing. Therefore, the present embodiment may be implemented with the camera assembly 30 and the single main camera 38 of the electronic device 10 .

类似地,本实施例可以通过电子设备10正面的副摄像头36来实施。换言之,如果副摄像头36捕获多个第一初始图像,则可以根据副摄像头36捕获的多个第一初始图像来执行图6中的图像捕获处理。因此,还可以提高副摄像头36捕获的捕获图像的质量。Similarly, this embodiment can be implemented by the sub-camera 36 on the front of the electronic device 10 . In other words, if the sub-camera 36 captures a plurality of first initial images, the image capturing process in FIG. 6 may be performed according to the plurality of first initial images captured by the sub-camera 36 . Therefore, the quality of the captured image captured by the sub-camera 36 can also be improved.

在本申请的实施例的描述中,应当理解的是,诸如“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“后部”、“左”、“右”、“垂直”、“水平”、“顶部”、“底部”、“内部”、“外部”、“顺时针”和“逆时针”等术语应被理解为是指所描述的或所讨论的附图中所示的方向或位置。这些相对术语仅用于简化对本申请的描述,并不表示或暗示所提及的设备或元件必须具有特定的方向,或者以特定的方向构造或运行。因此,这些术语不应解释为对本申请的限制。In the description of the embodiments of the present application, it should be understood that such terms as "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front" ", "Rear", "Rear", "Left", "Right", "Vertical", "Horizontal", "Top", "Bottom", "Inner", "Outer", "Clockwise" and "Counterwise" Terms such as "hour hand" should be understood to refer to the direction or position shown in the drawings described or discussed. These relative terms are only used to simplify the description of the present application and do not indicate or imply that a referenced device or element must have a particular orientation, or be constructed or operated in a particular orientation. Therefore, these terms should not be construed as limitations on this application.

此外,诸如“第一”和“第二”之类的术语在本文中用于描述的目的,并不旨在指示或暗示相对重要性或重要性,或暗示所指示的技术特征的数量。因此,用“第一”和“第二”定义的特征可以包括一个或多个该特征。在本申请的描述中,“多个”是指两个或两个以上,除非另有说明。Furthermore, terms such as "first" and "second" are used herein for descriptive purposes and are not intended to indicate or imply relative importance or importance, or to imply the number of technical features indicated. Thus, features defined with "first" and "second" may include one or more of that feature. In the description of this application, "plurality" means two or more, unless otherwise specified.

在对本申请实施例的描述中,除非另有说明或限制,“安装”、“连接”、“联接”等术语是广义的,例如可以是固定连接、可拆卸连接或整体连接;也可以是机械或电气连接;也可以是直接连接或通过中间结构的间接连接;也可以是两个元素的内部通信,本领域技术人员可以根据具体情况来理解。In the description of the embodiments of the present application, unless otherwise stated or limited, terms such as "installation", "connection", and "coupling" are broad, for example, it may be a fixed connection, a detachable connection or an integral connection; it may also be a mechanical connection Or electrical connection; it can also be a direct connection or an indirect connection through an intermediate structure; it can also be an internal communication between two elements, which can be understood by those skilled in the art according to specific situations.

在本申请的实施例中,除非另有说明或限制,第一特征在第二特征“上”或“下”的结构可以包括第一特征与第二特征直接接触的实施例,并且还可以包括第一特征和第二特征彼此不直接接触,而是通过在它们之间形成的附加特征来接触。此外,第一特征在第二特征的“上面”、“上方”或“顶部”可以包括第一特征笔直地或倾斜地在第二特征的“上面”、“上方”或“顶部”,或仅表示第一特征的高度高于第二特征的高度;而第一特征在第二特征的“下面”、“下方”或“底部”可以包括第一特征正好或倾斜地在第二特征的“下面”、“下方”或“底部”,或者仅表示第一特征的高度低于第二特征的高度。In the embodiments of the present application, unless otherwise stated or limited, the structure in which the first feature is "on" or "under" the second feature may include embodiments in which the first feature is in direct contact with the second feature, and may also include The first and second features are not in direct contact with each other, but are in contact through additional features formed between them. Furthermore, a first feature being "above," "over," or "top" a second feature may include that the first feature is "above," "over," or "top" the second feature straight or slanted, or just Indicates that the height of the first feature is higher than the height of the second feature; while the first feature is "below", "beneath" or "bottom" of the second feature may include that the first feature is directly or obliquely "below" the second feature ”, “below” or “bottom”, or simply mean that the height of the first feature is lower than the height of the second feature.

在以上描述中提供了各种实施例和示例以实现本申请的不同结构。为了简化本申请,上面描述了某些元素和设置。然而,这些元素和设置仅作为示例,并不旨在限制本申请。此外,在本申请的不同示例中可以重复参考数字和/或参考字母。这种重复是为了简化和清楚的目的,而不是指不同实施例和/或设置之间的关系。此外,在本申请中提供了不同工艺和材料的示例。然而,本领域技术人员将理解,也可以应用其他工艺和/或材料。Various embodiments and examples have been provided in the above description to implement different structures of the present application. To simplify this application, certain elements and arrangements are described above. However, these elements and arrangements are only examples and are not intended to limit the application. Furthermore, reference numerals and/or reference letters may be repeated in different examples of the present application. This repetition is for the purpose of simplicity and clarity and does not refer to a relationship between different embodiments and/or arrangements. Additionally, examples of different processes and materials are provided in this application. However, those skilled in the art will understand that other processes and/or materials may also be used.

在整个说明书中对“一个实施例”、“一些实施例”、“一个示例性实施例”、“一个示例”、“一个具体示例”或“一些示例”是指结合实施例或示例描述的特定特征、结构、材料或特性包含在本申请的至少一个实施例或示例中。因此,上述短语在本规范中的出现不一定指本申请同一实施例或示例。此外,特定特征、结构、材料或特性可以以任何合适的方式组合在一个或多个实施例或示例中。References throughout this specification to "one embodiment," "some embodiments," "one exemplary embodiment," "one example," "one specific example," or "some examples" refer to specific aspects described in connection with the embodiments or examples. A feature, structure, material or characteristic is included in at least one embodiment or example of the present application. Thus, appearances of the above phrases in this specification are not necessarily referring to the same embodiment or example of the present application. Furthermore, the particular features, structures, materials or characteristics may be combined in any suitable manner in one or more embodiments or examples.

在流程图中描述或在此以其他方式描述的任何过程或方法可以理解为包括用于实现过程中的特定逻辑功能或步骤的可执行指令的一个或多个模块、片段或代码部分,以及本申请优选实施例的范围包括其他实施方式,本领域技术人员应该理解,这些实施方式中的功能可以以不同于所示或讨论的顺序来实现,包括以基本相同的顺序或以相反的顺序。Any process or method described in a flowchart or otherwise described herein can be understood to include one or more modules, segments or portions of code of executable instructions for implementing the specified logical functions or steps in the process, and the present The scope of the application for the preferred embodiment includes other implementations, those of ordinary skill in the art should understand that the functions of the implementations may be performed in a different order than shown or discussed, including in substantially the same order or in the reverse order.

此处以其他方式描述的或流程图所示的逻辑和/或步骤,例如用于实现该逻辑功能的可执行指令的特定序列表,可以在任何计算机可读介质中具体实现,这些计算机可读介质供指令执行系统、装置或设备(例如,基于计算机的系统,包括处理器的系统,或其他能够从指令执行系统、装置和设备中获取指令并执行指令的系统)使用,或供指令执行系统、装置和设备的结合使用。至于本说明书,“计算机可读介质”可以是适用于包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备使用或指令执行系统、装置和设备的结合使用的任何装置。计算机可读介质的更具体示例包括但不限于:具有一根或多根电线的电子连接(电子设备)、便携式计算机外壳(磁性设备)、随机存取存储器(RAM)、只读存储器存储器(ROM)、可擦除可编程只读存储器(EPROM或闪存)、光纤设备和便携式光盘只读存储器(CDROM)。此外,计算机可读介质甚至可以是纸或其他能够在其上打印程序的适当介质,这是因为,例如必要时以电子方式获取程序,对纸或其他适当介质进行光学扫描,然后用其他适当方法对其进行编辑、解密或处理,然后将程序存储在计算机内存中。Logic and/or steps otherwise described herein or shown in flowcharts, such as a specific sequence listing of executable instructions for implementing the logical functions, may be embodied in any computer-readable medium, such as For use by an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system capable of retrieving and executing instructions from an instruction execution system, apparatus, and apparatus), or for an instruction execution system, Combination of devices and equipment. With respect to this specification, a "computer-readable medium" can be any means suitable for containing, storing, communicating, propagating, or transporting the program for use by or in combination with the instruction execution system, apparatus, or apparatus. More specific examples of computer readable media include, but are not limited to: electronic connections with one or more wires (electronic devices), portable computer housings (magnetic devices), random access memory (RAM), read only memory memory (ROM) ), erasable programmable read only memory (EPROM or flash memory), fiber optic equipment and portable compact disc read only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since, for example, the program is obtained electronically, if necessary, optically scanned on the paper or other suitable medium, and then printed in other suitable ways. Edit, decrypt, or process it, and store the program in computer memory.

应当理解,本申请的各个部分可以通过硬件、软件、固件或者它们的组合来实现。在上述实施例中,多个步骤或方法可以通过存储在存储器中并由适当的指令执行系统执行的软件或固件来实现。例如,如果是通过硬件实现,同样在另一个实施例中,这些步骤或方法可以通过本领域已知的以下技术中的一种或组合来实现:具有用于实现数据信号的逻辑功能的逻辑门电路的分立逻辑电路,具有适当组合逻辑门电路、可编程门阵列(PGA),现场可编程门阵列(FPGA)等的适当组合的专用集成电路。It should be understood that various parts of the present application may be implemented by hardware, software, firmware or a combination thereof. In the above-described embodiments, various steps or methods may be implemented by software or firmware stored in memory and executed by an appropriate instruction execution system. For example, if implemented by hardware, also in another embodiment, these steps or methods may be implemented by one or a combination of the following techniques known in the art: a logic gate having a logic function for implementing a data signal Discrete logic circuits of circuits, application specific integrated circuits with appropriate combinations of combinational logic gates, Programmable Gate Arrays (PGA), Field Programmable Gate Arrays (FPGA), etc.

本领域技术人员应当理解,本申请上述示例性方法中的全部步骤或部分步骤可以通过程序指挥相关硬件来实现。该程序可以存储在计算机可读存储介质中,该程序在计算机上运行时包括本申请方法实施例中的一个或多个步骤的组合。Those skilled in the art should understand that all or part of the steps in the above-mentioned exemplary method of the present application can be implemented by programming related hardware. The program may be stored in a computer-readable storage medium, and when the program runs on a computer, includes a combination of one or more steps in the method embodiments of the present application.

另外,本申请实施例中的各个功能单元可以集成在一个处理模块中,也可以是各自独立的物理存在,也可以两个或多个单元集成在一个处理模块中。集成模块可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。当集成模块以软件功能模块的形式实现并作为独立产品销售或使用时,集成模块可以存储在计算机可读存储介质中。In addition, each functional unit in the embodiments of the present application may be integrated into one processing module, or may exist independently physically, or two or more units may be integrated into one processing module. The integrated module can be implemented in the form of hardware or in the form of software functional modules. When the integrated module is implemented in the form of a software functional module and sold or used as a stand-alone product, the integrated module may be stored in a computer-readable storage medium.

上述存储介质可以是只读存储器、磁盘、CD等。The above-mentioned storage medium may be a read-only memory, a magnetic disk, a CD, or the like.

尽管已经示出和描述了本申请的实施例,但是本领域技术人员应当理解,这些实施例是解释性的,而不能被解释为限制本申请,并且在不背离本申请范围的情况下,可以对本申请进行改变、修改、替代和变型。Although the embodiments of the present application have been shown and described, it should be understood by those skilled in the art that these embodiments are illustrative and not to be construed as limiting the present application, and that, without departing from the scope of the present application, the Variations, modifications, substitutions and variations are made to this application.

Claims (20)

1. A method of generating a captured image in an electronic device, the electronic device including a camera assembly, the method comprising:
capturing, by the camera assembly, a plurality of first initial images within a first dynamic range, wherein the plurality of first initial images are captured at different imaging settings;
generating an intermediate image of a second dynamic range from the plurality of first initial images, wherein the second dynamic range is higher than the first dynamic range;
detecting a light source region from a light detection image to generate a light source map, wherein the light detection image is at least one image of the plurality of first initial images and is adapted to detect the light source region;
generating the captured image from the intermediate image and the light source map, wherein the position of the light source region of the captured image is determined from the light source map, and the color of the light source region of the captured image is determined from the intermediate image.
2. The method of claim 1, wherein capturing the first plurality of initial images comprises: the plurality of first initial images are captured at different exposure values.
3. The method of claim 2, wherein the light detection image is one of the first plurality of initial images captured at a lowest exposure value.
4. A method according to claim 3, wherein the lowest exposure value is too low to be sufficient to detect light from regions outside the light source region in the first initial image.
5. The method of claim 4, wherein the lowest exposure value is a negative value.
6. The method of any of claims 1-5, further comprising:
capturing a second initial image by the camera assembly; and
a depth map is computed from the plurality of first initial images and the second initial image.
7. The method of claim 6, wherein the generating the captured image further comprises: performing a shot rendering process to introduce a shot effect to the captured image according to the depth map.
8. The method of claim 7, wherein the plurality of first initial images are captured by a first main camera of the camera assembly and the second initial images are captured by a second main camera of the camera assembly.
9. The method according to any one of claims 1-5, wherein the generating the captured image further comprises: a segmentation process is performed to introduce a shot effect to the captured image from the intermediate image.
10. The method of claim 9, wherein the first plurality of initial images are captured by a first primary camera in a back side of the electronic device or by a secondary camera in a front side of the camera assembly of the electronic device.
11. An electronic device, comprising:
a camera assembly capable of capturing images in a first dynamic range; and
an image processor configured to:
capturing, by the camera assembly, a plurality of first initial images within the first dynamic range, wherein the plurality of first initial images are captured at different imaging settings;
generating an intermediate image of a second dynamic range from the plurality of first initial images, wherein the second dynamic range is higher than the first dynamic range;
detecting a light source region from a light detection image to generate a light source map, wherein the light detection image is at least one image of the plurality of first initial images and is adapted to detect the light source region;
generating the captured image from the intermediate image and the light source map, wherein the position of the light source region of the captured image is determined from the light source map, and the color of the light source region of the captured image is determined from the intermediate image.
12. The electronic device of claim 11, wherein when capturing the plurality of first initial images, the plurality of first initial images are captured at different exposure values.
13. The electronic device of claim 12, wherein the light detection image is one of the plurality of first initial images captured at a lowest exposure value.
14. The electronic device of claim 13, wherein the lowest exposure value is low enough to be insufficient to detect light from regions other than the light source region in the first initial image.
15. The electronic device of claim 14, wherein the lowest exposure value is a negative value.
16. The electronic device of any one of claims 11-15, the image processor further configured to:
capturing a second initial image by the camera assembly; and
a depth map is computed from the plurality of first initial images and the second initial image.
17. The electronic device of claim 16, wherein when generating the captured image, further performs a shot rendering process to introduce a shot effect to the captured image according to the depth map.
18. The electronic device of claim 17, wherein the plurality of first initial images are captured by a first primary camera of the camera assembly and the second initial images are captured by a second primary camera of the camera assembly.
19. The electronic device according to any of claims 11-15, wherein a bokeh effect is also introduced to the captured image from the intermediate image by a segmentation process when generating the captured image.
20. The electronic device of claim 19, wherein the plurality of first initial images are captured by a first primary camera in a back side of the electronic device or by a secondary camera in a front side of the camera assembly of the electronic device.
CN202080090782.6A 2020-02-12 2020-02-12 Method for generating captured image and electronic device Pending CN115066880A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/074828 WO2021159295A1 (en) 2020-02-12 2020-02-12 Method of generating captured image and electrical device

Publications (1)

Publication Number Publication Date
CN115066880A true CN115066880A (en) 2022-09-16

Family

ID=77291986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080090782.6A Pending CN115066880A (en) 2020-02-12 2020-02-12 Method for generating captured image and electronic device

Country Status (2)

Country Link
CN (1) CN115066880A (en)
WO (1) WO2021159295A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140192227A1 (en) * 2013-01-07 2014-07-10 GM Global Technology Operations LLC Glaring reduction for dynamic rearview mirror
US20150146014A1 (en) * 2013-11-27 2015-05-28 Aptina Imaging Corporation Imaging systems and methods for location-specific image flare mitigation
CN110177221A (en) * 2019-06-25 2019-08-27 维沃移动通信有限公司 The image pickup method and device of high dynamic range images
US10554890B1 (en) * 2019-02-18 2020-02-04 Samsung Electronics Co., Ltd. Apparatus and method for generating low-light images with improved bokeh using mobile electronic device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107205629B (en) * 2015-06-30 2019-08-02 奥林巴斯株式会社 Image processing apparatus and imaging system
CN106534677B (en) * 2016-10-27 2019-12-17 成都西纬科技有限公司 Image overexposure optimization method and device
CN108088658A (en) * 2016-11-23 2018-05-29 深圳华萤光电技术有限公司 A kind of dazzle measuring method and its measuring system
EP3462410A1 (en) * 2017-09-29 2019-04-03 Thomson Licensing A user interface for manipulating light-field images

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140192227A1 (en) * 2013-01-07 2014-07-10 GM Global Technology Operations LLC Glaring reduction for dynamic rearview mirror
US20150146014A1 (en) * 2013-11-27 2015-05-28 Aptina Imaging Corporation Imaging systems and methods for location-specific image flare mitigation
US10554890B1 (en) * 2019-02-18 2020-02-04 Samsung Electronics Co., Ltd. Apparatus and method for generating low-light images with improved bokeh using mobile electronic device
CN110177221A (en) * 2019-06-25 2019-08-27 维沃移动通信有限公司 The image pickup method and device of high dynamic range images

Also Published As

Publication number Publication date
WO2021159295A1 (en) 2021-08-19

Similar Documents

Publication Publication Date Title
KR101916355B1 (en) Photographing method of dual-lens device, and dual-lens device
EP3565236B1 (en) Control method, control apparatus, mobile terminal and computer-readable storage medium
CN107948519B (en) Image processing method, device and equipment
KR102565513B1 (en) Method and apparatus for multiple technology depth map acquisition and fusion
CN107977940A (en) background blurring processing method, device and equipment
CN107948538B (en) Imaging method, imaging device, mobile terminal and storage medium
CN106993112A (en) Background virtualization method and device based on depth of field and electronic device
CN111726521B (en) Photographing method and photographing device of terminal and terminal
CN113647094B (en) Electronic device, method and computer readable medium for providing out-of-focus imaging effects in video
CN104125395A (en) Method and device for realizing automatic shooting
CN105306806B (en) A kind of mobile terminal and its method taken pictures
CN110708463B (en) Focusing method, focusing device, storage medium and electronic equipment
CN112911165A (en) Endoscope exposure method, device and computer readable storage medium
CN113674303B (en) Image processing method, device, electronic equipment and storage medium
CN111246093A (en) Image processing method, image processing device, storage medium and electronic equipment
US10937184B2 (en) Camera assembly, method for tracking target portion based on the same, and electronic device
CN115066880A (en) Method for generating captured image and electronic device
CN114946170B (en) Method and electronic device for generating image
US11368630B2 (en) Image processing apparatus and image processing method
CN116438568A (en) Method and device for generating location difference map, electronic equipment, chip and medium
WO2022222075A1 (en) Method of generating image data, electronic device, apparatus, and computer readable medium
KR20190110794A (en) Method for adjusting focus based on spread-level of display object and electronic device implementing the same
WO2021138797A1 (en) Method of adjusting captured image and electrical device
JP2007201679A (en) Imaging apparatus, image processing method, and image processing program
CN117135473A (en) Image processing method, device, electronic equipment and computer readable storage medium

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