CN108616689B - Portrait-based high dynamic range image acquisition method, device and equipment - Google Patents

Portrait-based high dynamic range image acquisition method, device and equipment Download PDF

Info

Publication number
CN108616689B
CN108616689B CN201810327419.6A CN201810327419A CN108616689B CN 108616689 B CN108616689 B CN 108616689B CN 201810327419 A CN201810327419 A CN 201810327419A CN 108616689 B CN108616689 B CN 108616689B
Authority
CN
China
Prior art keywords
compensation value
image
overexposure
camera
portrait
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810327419.6A
Other languages
Chinese (zh)
Other versions
CN108616689A (en
Inventor
刘凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201810327419.6A priority Critical patent/CN108616689B/en
Publication of CN108616689A publication Critical patent/CN108616689A/en
Application granted granted Critical
Publication of CN108616689B publication Critical patent/CN108616689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

The application discloses a high dynamic range image acquisition method, a device and equipment based on portrait, wherein the method comprises the following steps: determining a first color channel histogram corresponding to a background area in a current shooting scene; determining a first overexposure compensation value and a first underexposure compensation value according to the first color channel histogram; and acquiring a high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value. The method realizes that the underexposure compensation value and the overexposure compensation value corresponding to the current shooting scene are determined according to the background area in the shooting picture when the HDR image including the portrait is shot, and then the corresponding high dynamic range image is obtained, thereby effectively avoiding the condition that the contrast of the portrait in the shooting image is not enough or the background area is too bright, improving the quality of the HDR image and improving the user experience.

Description

Portrait-based high dynamic range image acquisition method, device and equipment
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method, an apparatus, and a device for obtaining a high dynamic range image based on a portrait.
Background
At present, when a picture is taken in a backlight shooting environment, the light receiving surface of a subject is smaller than the backlight surface, so that the light ratio of the light receiving surface to the backlight surface of the subject is large, and the contrast is strong. In particular, when a person image is included in a subject, if the backlight surface of the person image area is large, the person image is darker than the subject of the surrounding environment, so that the quality of the captured image is poor.
In order to acquire a good-quality image, in the related art, a plurality of images with different exposure levels are captured by using a High Dynamic Range (HDR) capture mode, so that the plurality of images with different exposure levels are subjected to fusion processing to acquire a good-quality image.
However, when the captured image includes a portrait, the terminal device automatically uses the face AE to control the brightness of the face so that the dark part of the face in the captured image is not too dark, and in the HDR capture mode, in order to obtain an image with a high dynamic range, it is necessary to ensure a certain contrast of the portrait. This makes it difficult to determine the exposure compensation value when acquiring an HDR image including a portrait, and the HDR image has a low quality because the face contrast in the portrait image is insufficient.
Disclosure of Invention
The present application aims to address at least to some extent one of the above-mentioned technical drawbacks.
Therefore, a first objective of the present application is to provide a method for acquiring a high dynamic range image based on a portrait, which realizes that when an HDR image including the portrait is photographed, an underexposure compensation value and an overexposure compensation value corresponding to a current photographing scene are determined according to a background area in a photographed picture, and then a corresponding high dynamic range image is acquired, thereby effectively avoiding a situation that a contrast of the portrait in the photographed image is insufficient or the background area is too bright, improving quality of the HDR image, and improving user experience.
A second object of the present application is to provide a high dynamic range image capturing apparatus based on a portrait.
A third object of the present application is to provide a terminal device.
A fourth object of the present application is to propose a computer readable storage medium.
In order to achieve the above object, a method for acquiring a high dynamic range image based on a portrait according to an embodiment of the first aspect of the present application includes: determining a first color channel histogram corresponding to a background area in a current shooting scene; determining a first overexposure compensation value and a first underexposure compensation value according to the first color channel histogram; and acquiring a high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value.
In order to achieve the above object, a high dynamic range image capturing apparatus based on a portrait according to an embodiment of the second aspect of the present application includes: the first determining module is used for determining a first color channel histogram corresponding to a background area in a current shooting scene; the second determining module is used for determining a first overexposure compensation value and a first underexposure compensation value according to the first color channel histogram; and the acquisition module is used for acquiring a high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value.
In order to achieve the above object, a terminal device according to an embodiment of the third aspect of the present application includes: the device comprises a memory, a processor and a camera module; the camera module is used for acquiring an image in a current shooting scene; the memory for storing executable program code; the processor is configured to read the executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement the method for acquiring a high dynamic range image based on a portrait according to the embodiment of the first aspect.
In order to achieve the above object, a computer-readable storage medium of an embodiment of a fourth aspect of the present application has a computer program stored thereon, and the computer program is executed by a processor to implement the portrait-based high dynamic range image acquisition method according to the embodiment of the first aspect.
The technical scheme disclosed in the application has the following beneficial effects:
the method comprises the steps of firstly determining a first color channel histogram corresponding to a background area in a current shooting scene, determining a first overexposure compensation value and a first underexposure compensation value according to the first color channel histogram, and then acquiring a high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value. Therefore, when the HDR image including the portrait is shot, the underexposure compensation value and the overexposure compensation value corresponding to the current shooting scene are determined according to the background area in the shot picture, and the corresponding high dynamic range image is further obtained, so that the condition that the contrast of the portrait in the shot image is insufficient or the background area is too bright is effectively avoided, the quality of the HDR image is improved, and the user experience is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which,
FIG. 1 is a flow diagram of a portrait-based high dynamic range image acquisition method according to one embodiment of the present application;
FIG. 2(a) is a schematic diagram of a red channel histogram according to one embodiment of the present application;
FIG. 2(b) is a schematic diagram of a green channel histogram according to one embodiment of the present application;
FIG. 2(c) is a schematic diagram of a blue channel histogram according to one embodiment of the present application;
FIG. 3 is a flow diagram of a portrait-based high dynamic range image acquisition method according to another embodiment of the present application;
FIG. 4 is a flow diagram of a portrait based high dynamic range image acquisition method according to yet another embodiment of the present application;
FIG. 5 is a schematic diagram of a high dynamic range image capture device based on human images, according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
In order to solve the problems that in the related art, when an HDR image comprising a portrait is obtained, the difficulty of determining an exposure compensation value is high, the face contrast in the portrait image is not enough, and the quality of the HDR image is low, a high dynamic range image obtaining method based on the portrait is provided.
According to the high dynamic range image obtaining method based on the portrait, a first color channel histogram corresponding to a background area in a current shooting scene is determined, a first overexposure compensation value and a first underexposure compensation value are determined according to the first color channel histogram, and then a high dynamic range image is obtained according to the first overexposure compensation value and the first underexposure compensation value. Therefore, when the HDR image including the portrait is shot, the underexposure compensation value and the overexposure compensation value corresponding to the current shooting scene are determined according to the background area in the shot picture, and the corresponding high dynamic range image is further obtained, so that the condition that the contrast of the portrait in the shot image is insufficient or the background area is too bright is effectively avoided, the quality of the HDR image is improved, and the user experience is improved.
The method, apparatus and device for obtaining a high dynamic range image based on a portrait according to the embodiments of the present application are described below with reference to the accompanying drawings.
First, a method for acquiring a high dynamic range image based on a portrait according to the present application will be specifically described with reference to fig. 1.
FIG. 1 is a flow chart of a portrait-based high dynamic range image acquisition method according to one embodiment of the present application.
As shown in fig. 1, the method for acquiring a high dynamic range image based on a portrait according to the present application may include the following steps:
step 101, determining a first color channel histogram corresponding to a background area in a current shooting scene.
Specifically, the method for acquiring a high dynamic range image based on a portrait provided by the embodiment of the present application may be executed by the terminal device provided by the present application. The terminal equipment is provided with a high dynamic range image acquisition device based on a portrait so as to realize management or control of the acquired picture in the current shooting scene.
In this embodiment, the terminal device may be any hardware device having a photographing function, such as a smart phone, a camera, a Personal Computer (PC), and the like, which is not limited in this application.
It should be noted that, in the prior art, when acquiring a high dynamic range image including a portrait, a terminal device may first use face AE to perform brightness adjustment on the portrait in an image corresponding to a shooting scene so that a face area in the image is not too dark, then acquire an underexposure image, an overexposure image, and a normal exposure image with different exposure amounts according to an HDR shooting mode, and perform fusion processing on the three images with different exposure amounts to obtain a high dynamic image corresponding to the shooting scene; or, the terminal device may further obtain an underexposure image, a normal exposure image, and a normal exposure image with different exposure amounts according to the HDR shooting mode, then perform fusion processing on the three images with different exposure amounts to obtain a high dynamic range image corresponding to the shooting scene, and then perform brightness adjustment on the portrait in the image corresponding to the shooting scene by using face AE, so that the face in the image is not too dark.
However, when the HDR image including the portrait is obtained in the first manner, the background area in the finally obtained HDR image may be too bright because the exposure compensation value determined according to the brightness-adjusted face area is not appropriate in the HDR capturing stage; or, when the HDR image including the portrait is acquired by the second method, the face area may have insufficient contrast in the finally acquired high dynamic range image because the face AE adjusts the brightness of the face area subjected to exposure compensation. That is, when the HDR image of the portrait is captured at present, the background area is often excessive, or the contrast of the portrait is often insufficient.
In practical application, when the terminal device shoots an image including a portrait, the face AE generally only adjusts brightness or contrast of a portrait area in the image, but does not process a background area in the image, that is, shooting parameters of the background area are all original data. Therefore, in order to effectively avoid the problem that the face area is darker or the contrast is insufficient in the acquired high dynamic range image including the portrait, the acquired image including the portrait can be segmented to distinguish the portrait area from the background area, and then the exposure compensation value of the image in the current shooting scene is determined by using the histogram of the background area.
To more clearly illustrate the above manner, the following describes in detail a process of determining a histogram corresponding to a background area in a current shooting scene:
in the specific implementation, firstly, a camera of the control terminal device acquires a picture under a current shooting scene based on the high dynamic range image acquisition device of the portrait, identifies the acquired picture, segments the portrait and the area except the portrait in the acquired picture, and then takes the segmented portrait as a foreground area and the area except the portrait as a background area.
That is to say, before determining the first color channel maps corresponding to the background area in the current shooting scene, the high dynamic range image acquisition device based on the portrait can also perform portrait recognition on the current shooting scene to determine the portrait area included in the current shooting scene.
Further, after obtaining the background region, the high dynamic range image capturing device based on the portrait may determine the first color channel histogram corresponding to the background region by analyzing the background region.
Specifically, the first color channel histogram corresponding to the background area may be determined according to the RGB data, which is not described in detail in this embodiment.
It should be noted that, if the RGB data acquired in this embodiment includes three color channels, namely, red (R), green (G), and blue (B), the histograms of the color channels determined correspondingly are three, namely, the red channel histogram, the green channel histogram, and the blue channel histogram.
Further, the three color channel histograms determined above can be specifically shown in fig. 2, where fig. 2(a) is a red channel histogram, fig. 2(b) is a green channel histogram, and fig. 2(c) is a blue channel histogram. In each color channel histogram, the x-axis represents the image brightness, and the y-axis represents the pixel proportion of each pixel in the image at the brightness.
If the RGB data obtained in this embodiment includes four color channels R, Gr, Gb, and B, the number of the corresponding determined color channel histograms is four, and the color channel histograms are a red channel histogram, a green (Gr) channel histogram, a green (Gb) channel histogram, and a blue channel histogram.
Step 102, determining a first overexposure compensation value and a first underexposure compensation value according to the first color channel histogram.
Specifically, after the histogram of each first color channel is determined, the high dynamic range image acquisition device based on the portrait can determine a first underexposure compensation value and a first overexposure compensation value in the current shooting scene according to the corresponding relationship between different brightness and pixel ratios in each first color channel and a normal exposure brightness threshold preset by the terminal device.
Further, since in practical applications the response of the image sensor is nearly linear, for the image that we want to render, if not corrected, but displayed directly on the display screen, it is possible that overexposure will occur in the image presented on the display screen even if the image whose brightness is adjusted according to the preset normal exposure brightness threshold is not overexposed. Therefore, in order to correctly output a response image corresponding to the brightness of human eyes on various devices, a corresponding correction operation is required, and the function of the correction can be a gamma curve.
That is, the present embodiment may first determine the normal exposure luminance threshold value according to the gamma curve corresponding to the image pickup device. Then, a first overexposure compensation value and a first underexposure compensation value are determined by using the normal exposure brightness threshold value and the corresponding relation between different brightness and pixel proportions of the first color channel.
And 103, acquiring a high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value.
Specifically, after the first exposure compensation value and the first underexposure compensation value are obtained, the camera can be controlled to obtain the corresponding underexposure image and the corresponding overexposure image according to the first overexposure compensation value and the first underexposure compensation value, the camera is controlled to obtain the normal exposure image, and then the obtained underexposure image, the obtained overexposure image and the obtained normal exposure image are subjected to fusion processing to obtain the corresponding high dynamic range image.
The device for acquiring the high dynamic range image based on the portrait can be understood as that the device for acquiring the high dynamic range image based on the portrait firstly controls the camera to acquire a normal exposure image of a current shooting scene, then performs portrait recognition on the image to determine whether a portrait area is included in the current shooting scene, when the portrait area is determined to be included, performs segmentation on the acquired normal exposure image and the area except the portrait, takes the segmented portrait as a foreground area and the area except the portrait as a background area, then determines first color channel histograms corresponding to the background area, determines a first overexposure compensation value and a first underexposure compensation value according to the first color channel histograms, and then acquires the high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value. The first color channel histogram corresponding to the background area can truly reflect the illumination condition in the current shooting scene, so the underexposure compensation value and the overexposure compensation value determined according to the first color channel histogram are more suitable for the current shooting scene, the contrast of the portrait can be effectively ensured by the finally obtained image, and the condition of insufficient brightness of the face area can be avoided.
According to the method for acquiring the high dynamic range image based on the portrait, the first color channel histogram corresponding to the background area in the current shooting scene is determined, the first overexposure compensation value and the first underexposure compensation value are determined according to the first color channel histogram, and then the high dynamic range image is acquired according to the first overexposure compensation value and the first underexposure compensation value. Therefore, when the HDR image including the portrait is shot, the underexposure compensation value and the overexposure compensation value corresponding to the current shooting scene are determined according to the background area in the shot picture, and the corresponding high dynamic range image is further obtained, so that the condition that the contrast of the portrait in the shot image is insufficient or the background area is too bright is effectively avoided, the quality of the HDR image is improved, and the user experience is improved.
Through the analysis, the first overexposure compensation value and the first underexposure compensation value are determined by analyzing the first color channel histogram corresponding to the background area, so that the corresponding high dynamic range image is obtained according to the determined first overexposure compensation value and the determined first underexposure compensation value. In a specific implementation, because the colors of the portrait dressed in the portrait are different under the same illumination condition, the brightness corresponding to the portrait area is also different, and therefore, when the corresponding underexposed image is acquired by determining the first overexposure compensation value only according to the first color channel histogram of the background area, the brightness of the portrait in the finally acquired high-dynamic image may be too high.
Therefore, in order to avoid the above situation, in the present application, after the first overexposure compensation value is determined according to the first color channel histogram of the background region, the second color channel histogram corresponding to the portrait region may be further analyzed, so as to determine the corresponding overexposure compensation value according to the analysis result of the second color channel histogram and the first color channel histogram, and obtain the underexposed image with the contrast satisfying the requirement according to the overexposure compensation value, so that the portrait in the finally obtained high dynamic range image is not pulled to be too bright. The above-mentioned case of the portrait-based high dynamic range image acquisition method according to the present application will be specifically described with reference to fig. 3.
FIG. 3 is a flow chart of another portrait-based high dynamic range image acquisition method of the present application.
As shown in fig. 3, the method for acquiring a high dynamic range image based on a portrait according to the present application may include the following steps:
step 301, performing portrait identification on the current shooting scene, and determining a portrait area included in the current shooting scene.
In specific implementation, the Face detection operation may be performed on the shot picture of the current scene through a Face Recognition Technology (Face Recognition Technology).
The face recognition technology may include various face detection modes, such as feature-based face detection, face detection by a template matching method, face detection by an adaboost algorithm, and the like, which is not specifically limited in the present application.
Step 302, determining a first color channel histogram corresponding to a background area in a current shooting scene.
Step 303, determining a first overexposure compensation value and a first underexposure compensation value according to the first histogram of each color channel.
And step 304, determining second color channel histograms corresponding to the portrait area in the current shooting scene.
Specifically, since the manner of determining the second color channel histogram corresponding to the portrait area is similar to the manner of determining the first color channel histogram corresponding to the background area in the above example, redundant description is not repeated, and refer to the determination manner in the above example specifically.
Step 305, determining a second overexposure compensation value according to the second color channel histogram.
Step 306, determine whether the first overexposure compensation value is greater than the second overexposure compensation value, if yes, go to step 307, otherwise go to step 308.
Specifically, after the second overexposure compensation value is determined, the high dynamic range image acquisition device based on the portrait may perform a difference between the first overexposure compensation value and the second overexposure compensation value to determine whether the difference is greater than zero. If the difference value is greater than zero, it indicates that the brightness of the portrait may be pulled too bright when the first overexposure compensation value is used to obtain the underexposed image; if the first overexposure compensation value is smaller than the second overexposure compensation value, the brightness of the portrait area can be in a reasonable range when the underexposure image is acquired by using the first overexposure compensation value.
That is to say, the overexposure compensation value suitable for the brightness of the portrait area in the current scene can be determined by comparing the second color channel histogram corresponding to the portrait area, the determined second overexposure compensation value with the first color channel histogram corresponding to the background area, and the determined first overexposure compensation value.
And 307, acquiring an underexposure image according to the second overexposure compensation value.
And 308, acquiring an underexposure image according to the first overexposure compensation value.
Step 309, obtaining an overexposure image according to the first underexposure compensation value.
And 310, fusing the normal exposure image, the underexposure image and the overexposure image to generate a high dynamic range image of the current scene.
The method for obtaining high dynamic range image based on portrait includes determining a first histogram of each color channel corresponding to a background region in a current shooting scene, determining a first overexposure compensation value and a first underexposure compensation value according to the first histogram of each color channel, determining a second histogram of each color channel corresponding to a portrait region in the current shooting scene, determining a second overexposure compensation value according to the second histogram of each color channel, determining whether the first overexposure compensation value is greater than the second overexposure compensation value, obtaining an underexposure image according to the second overexposure compensation value if the first overexposure compensation value is greater than the second overexposure compensation value, obtaining an underexposure image according to the first overexposure compensation value if the second overexposure compensation value is less than the first overexposure compensation value, obtaining an overexposure image according to the first underexposure compensation value, and fusing the normal exposure image, the underexposure image and the overexposure image, a high dynamic range image of the current scene is generated. Therefore, the overexposure compensation value is limited according to the color channel histograms of the portrait areas, so that the fact that the portrait is not pulled too bright in the finally obtained high-dynamic-range image is guaranteed, the contrast of the portrait meets the requirement, and user experience is improved.
Through the analysis, the second overexposure compensation value is determined by utilizing the second color channel histogram corresponding to the portrait area, and the overexposure compensation value suitable for the current scene is determined according to the difference value between the second overexposure compensation value and the first overexposure compensation value, so that the high dynamic range image is obtained according to the overexposure compensation value and the underexposure compensation value. In a specific implementation, since the method for acquiring a high dynamic range image based on a portrait can also be applied to a terminal device with two cameras, the process of applying the method to the terminal device with two cameras is described for clarity. The following describes, with reference to fig. 4, a process of applying the method for acquiring a high dynamic range image based on a portrait to a terminal device with two cameras.
FIG. 4 is a flow chart of yet another portrait-based high dynamic range image acquisition method of the present application.
As shown in fig. 4, the method for acquiring a high dynamic range image based on a portrait according to the present application may include the following steps:
step 401, determining a first color channel histogram corresponding to a background area in a current shooting scene.
The terminal device with dual cameras in this embodiment may be, but is not limited to, a smart phone, a camera, a Personal Computer (PC), and the like, and this is not limited in this application.
Optionally, the dual cameras may refer to two cameras with the same orientation in the terminal device, for example, two rear cameras in a mobile phone, or two front cameras, and so on.
It should be noted that, in this embodiment, the two rear cameras may be arranged in the following manner, but are not limited to the following manner:
the first method is as follows: arranged in the horizontal direction.
The second method comprises the following steps: arranged in a vertical direction.
The horizontal direction is a direction parallel to the short side of the terminal device, and the vertical direction is a direction parallel to the long side of the terminal device.
In specific implementation, the first camera and/or the second camera are/is controlled to collect the picture under the current shooting scene, and then the collected picture is subjected to portrait recognition to determine whether the current shooting scene comprises a portrait area. When the human image area is determined to be included, the acquired picture is subjected to segmentation processing so as to segment the human image area and other areas except the human image area, the segmented human image area is used as a foreground area, and the other areas except the human image area are used as background areas.
It should be noted that in practical application, the two cameras in the terminal device may be divided into a main camera and a sub-camera, and therefore in this embodiment, the first camera may be the main camera or the sub-camera; correspondingly, the second camera may be a main camera or a sub-camera, which is not specifically limited in this embodiment.
That is, when the first camera is the main camera, the second camera is the sub camera; when the first camera is the auxiliary camera, the second camera is the main camera.
It can be understood that when the method is used for collecting the picture in the current shooting scene, the picture can be obtained by using the first camera; or, the second camera can be used for obtaining; alternatively, the first camera and the second camera may be used for obtaining the image together, and the present application is not limited to this specifically.
Further, after obtaining the background region, the high dynamic range image capturing device based on the portrait may determine the first color channel histogram corresponding to the background region by analyzing the background region.
In specific implementation, the first color channel histogram corresponding to the background area in the current shooting scene can be determined in the following manner.
The first implementation mode comprises the following steps:
determining a first color channel histogram corresponding to a background area in a current shooting scene according to a first preview picture currently acquired by a first camera;
the second implementation mode comprises the following steps:
determining a first color channel histogram corresponding to a background area in a current shooting scene according to a second preview picture currently acquired by a second camera;
the third implementation mode comprises the following steps:
and determining a first color channel histogram corresponding to a background area in the current shooting scene according to a third preview picture which is currently and jointly acquired and formed by the first camera and the second camera.
Further, in another embodiment of the present application, when determining the first color channel histogram corresponding to the background area in the current shooting scene, the first color channel histogram corresponding to the background area in the current shooting scene may also be determined according to the picture acquired by the second camera when the picture acquired by the first camera is a preview picture.
Step 402, determining a first overexposure compensation value and a first underexposure compensation value according to the first histogram of each color channel.
Specifically, after the first color channel histogram is determined, a first overexposure compensation value and a first underexposure compensation value in the current shooting scene can be determined according to the corresponding relation between different brightness and pixel proportions in the first color channel histogram and a normal exposure brightness threshold value preset by the terminal.
Further, since in practical applications the response of the image sensor is nearly linear, for the image that we want to render, if not corrected, but displayed directly on the display screen, it is possible that overexposure will occur in the image presented on the display screen even if the image whose brightness is adjusted according to the preset normal exposure brightness threshold is not overexposed. Therefore, in order to correctly output a response image corresponding to the brightness of human eyes on various devices, a corresponding correction operation is required, and the function of the correction can be a gamma curve.
That is, the present embodiment may first determine the normal exposure luminance threshold value according to the gamma curve corresponding to the image pickup device. And then, determining a first underexposure compensation value and a first overexposure compensation value of the current scene by using the normal exposure brightness threshold value and the corresponding relation between different brightness and pixel proportions of the first color channels.
In an embodiment of the present application, a first overexposure compensation value and a first underexposure compensation value are determined according to the first color channel histogram, and an exposure value of the second camera may be further adjusted until it is determined that the picture acquired by the second camera corresponds to the first overexposure compensation value and the first underexposure compensation value respectively corresponding to each color channel histogram meeting a preset condition.
The preset condition may be adaptively set according to an actual shooting scene, which is not specifically limited in the present application. For example, as the luminance value increases in the histogram of each color channel, the sum of the pixel ratios reaches a pixel ratio threshold, and so on.
In practical application, the image brightness range which can be represented in the horizontal axis by each color channel histogram is displayed in a truncated manner, namely, only the pixel distribution condition with the brightness range between 0 and 255 can be displayed. For example, if the luminance in the red channel histogram is 255 and the number of corresponding pixels is 1000, it can only be stated that the number of pixels whose luminance range corresponding to the red channel in the current picture is greater than or equal to 255 is 1000, at this time, the luminance corresponding to the number of 800 pixels is 500 or more and the luminance corresponding to only 200 pixels is 255, which makes the accuracy of the determined value insufficient when determining the underexposure compensation value or the overexposure compensation value according to each color channel histogram only, thereby affecting the dynamic range of the HDR image. Therefore, in the embodiment of the application, when the underexposure compensation value and the overexposure compensation value are determined, the underexposure compensation value and the overexposure compensation value in the current shooting scene are dynamically determined by using the pictures acquired by the camera which are not used for preview display.
Specifically, when the terminal device displays the preview picture in the display interface, the terminal device may perform statistical analysis on the picture acquired by the second camera, so as to determine the underexposure compensation value and the overexposure compensation value in the current shooting scene according to each color channel histogram corresponding to the picture acquired by the second camera. And then controlling the second camera to respectively acquire corresponding overexposure compensation pictures and underexposure compensation pictures according to the determined underexposure compensation values and overexposure compensation values, and respectively re-analyzing the newly acquired pictures so as to judge whether the color channel histograms respectively corresponding to the newly acquired pictures meet preset conditions.
If so, determining the determined underexposure compensation value and overexposure compensation value as final underexposure compensation value and overexposure compensation value; if the preset conditions are met, determining a new underexposure compensation value and a new overexposure compensation value again according to the color channel histograms respectively corresponding to the newly acquired pictures, then controlling the second camera to acquire the corresponding pictures according to the new underexposure compensation value and the new overexposure compensation value which are determined again, and repeating the steps until the color channel histograms corresponding to the acquired pictures meet the preset conditions, and then determining the corresponding underexposure compensation value and overexposure compensation value as the underexposure compensation value and the overexposure compensation value under the current shooting scene when the preset conditions are met.
After the first overexposure compensation value and the first underexposure compensation value are determined in the above manner, the high dynamic range image acquisition device based on the portrait can acquire the corresponding high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value.
For example, the high dynamic range image obtaining apparatus based on a portrait according to the embodiment may obtain an underexposed image by controlling the first camera according to the first overexposure compensation value; controlling a second camera to obtain an overexposed image according to the first underexposure compensation value; controlling the first camera and/or the second camera to acquire a normal exposure image; and carrying out fusion processing on the normal exposure image, the underexposure image and the overexposure image to generate a high dynamic range image of the current scene.
Wherein, controlling the first camera and/or the second camera to acquire the normal exposure image may include: controlling a first camera to obtain a normal exposure image; or controlling a second camera to acquire a normal exposure image; or, the first camera and the second camera are controlled to jointly acquire a normal exposure image, which is not specifically limited in this application.
It should be noted that in this embodiment, not only the first camera may be controlled to obtain the underexposed image according to the first underexposure compensation value, but also the first camera may be controlled to obtain the overexposed image according to the first underexposure compensation value; similarly, the embodiment may control the second camera to obtain the underexposed image according to the first underexposure compensation value, and may also control the second camera to obtain the overexposed image according to the first underexposure compensation value, which is not limited herein.
That is to say, in the present application, acquiring an underexposed image and an overexposed image may be accomplished by one camera or may be accomplished by two different cameras together.
Further, in an embodiment of the present application, since there is a difference in the shooting parameters of the first camera and the second camera during the actual shooting process, parameters such as exposure or exposure amount are different. Therefore, in this embodiment, after the first overexposure compensation value and the first underexposure compensation value are determined according to the first color channel histogram corresponding to the background area in the picture acquired by the second camera, the third overexposure compensation value and/or the second underexposure compensation value corresponding to the first camera are also determined according to the exposure amount and sensitivity corresponding to the first camera and the exposure amount and sensitivity corresponding to the second camera.
That is to say, when the two cameras are used for respectively acquiring images with different exposure parameters, it is required to ensure that the exposure parameters corresponding to the cameras are matched with the shooting parameters of the cameras, so that both the underexposed images and the overexposed images acquired by the first camera and the second camera meet the requirements.
In this embodiment, the exposure amount obtaining manner of the first camera and the second camera may be determined according to the formulas (1) and (2):
specifically, the exposure amount is the speed at which the photoreceptor receives light x the exposure time … … … … … … (1)
The speed of light received by the photoreceptor is equal to the intensity of ambient light × aperture … … … … … … … … (2)
Then, by combining the above equations (1) and (2), the intensity of the ambient light × the diaphragm × the exposure time (referred to as equation (3)) can be obtained.
In practical applications, the exposure time is the time when the shutter is opened, i.e. the shutter. Then the above equation (3) can be transformed into: the exposure amount is the intensity of ambient light × aperture × shutter.
That is, when in natural light and without the help of a flash and a reflector, the ambient light cannot be changed, so that in most cases, the exposure amount can be controlled by changing the lens aperture of the camera and changing the shutter time.
Further, since the sensitivity (ISO) is a photosensitive speed of a Charge-coupled Device (CCD) or a Complementary Metal Oxide Semiconductor (CMOS) in the terminal Device, the sensitivity can be determined by formula (4). Therefore, the present application can acquire the first camera and the second assumed sensitivity according to formula (4).
Specifically, the sensitivity is calculated as in formula (4):
H*S=0.8…………………………………………(4)
where H denotes exposure and S denotes sensitivity.
That is, the higher the ISO value, the stronger the light sensing capability of the light sensing component.
Furthermore, after the exposure and the sensitivity of the first camera and the second camera are obtained, the high dynamic range image obtaining device based on the portrait in the application can determine the third overexposure compensation value and/or the second underexposure compensation value corresponding to the first camera according to the obtained exposure and the obtained sensitivity of the first camera and the obtained exposure and the obtained sensitivity of the second camera.
And step 403, controlling the first camera to acquire an underexposure image according to the third overexposure compensation value.
And step 404, controlling the second camera to acquire an overexposed image according to the first underexposure compensation value.
And step 405, controlling the first camera and/or the second camera to acquire a normal exposure image.
Wherein, controlling the first camera and/or the second camera to acquire the normal exposure image may include: controlling a first camera to obtain a normal exposure image; or controlling a second camera to acquire a normal exposure image; or, the first camera and the second camera are controlled to jointly acquire a normal exposure image, which is not specifically limited in this application.
It can be understood that, in the embodiment of the present application, the first camera may also be controlled to obtain an overexposed image, and the second camera may also be controlled to obtain an underexposed image; or, an underexposure image and an overexposure image can be acquired by controlling the first camera; or the second camera can be controlled to acquire an underexposed image and an overexposed image.
It should be noted that, the execution sequence of the steps 403 to 405 may be to execute the step 403, then execute the step 404, and then execute the step 405; alternatively, step 404 may be executed first, step 403 may be executed, and step 405 may be executed; step 403 and step 404 are executed at the same time, and then step 405 is executed, and so on, which is not particularly limited in this embodiment.
And 406, fusing the normal exposure image, the underexposure image and the overexposure image to generate a high dynamic range image of the current scene.
According to the high dynamic range image obtaining method based on the portrait, the two cameras are used for shooting the multiple images needed by the HDR image, the condition that the contrast of the portrait in the shot image is not enough is effectively avoided, the overall quality of the image is improved, the image shooting time is shortened, the high dynamic range image with the high dynamic range effect is obtained, and the user experience is improved.
In order to implement the above embodiments, the present application further provides a high dynamic range image capturing apparatus based on a portrait.
Fig. 5 is a schematic structural diagram of a high dynamic range image capturing device based on a portrait according to an embodiment of the present application.
As shown in fig. 5, the high dynamic range image capturing apparatus based on a portrait according to the present application includes: a first determining module 110, a second determining module 120, and an obtaining module 130.
The first determining module 110 is configured to determine a first color channel histogram corresponding to a background area in a current shooting scene;
the second determining module 120 is configured to determine a first overexposure compensation value and a first underexposure compensation value according to the first color channel histogram;
the obtaining module 130 is configured to obtain a high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value.
In an alternative implementation form, the high dynamic range image capturing apparatus based on portrait further includes: and a third determining module.
The third determining module is used for identifying the portrait of the current shooting scene and determining the portrait area included in the current shooting scene.
The obtaining module 11 is specifically configured to: and acquiring the normal exposure image by using the first camera and/or the second camera.
It should be noted that the foregoing explanation of the embodiment of the method for obtaining a high dynamic range image based on a portrait is also applicable to the apparatus for obtaining a high dynamic range image based on a portrait in this embodiment, and the implementation principle is similar, and is not repeated here.
The device for acquiring a high dynamic range image based on a portrait according to this embodiment first determines a first histogram of each color channel corresponding to a background area in a current shooting scene, to determine a first overexposure compensation value and a first underexposure compensation value according to the first histogram of each color channel, and then acquires the high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value. Therefore, when the HDR image including the portrait is shot, the underexposure compensation value and the overexposure compensation value corresponding to the current shooting scene are determined according to the background area in the shot picture, and the corresponding high dynamic range image is further obtained, so that the condition that the contrast of the portrait in the shot image is insufficient or the background area is too bright is effectively avoided, the quality of the HDR image is improved, and the user experience is improved.
In an alternative implementation form, the portrait-based high dynamic range image capturing apparatus according to the embodiment of the present application may include:
the first determining module 110 is configured to determine a first color channel histogram corresponding to a background area in a current shooting scene;
the second determining module 120 is configured to determine a first overexposure compensation value and a first underexposure compensation value according to the first color channel histogram;
in an alternative implementation form, the high dynamic range image capturing apparatus based on portrait according to the present application may further include:
the fourth determining module is used for determining second color channel histograms corresponding to the portrait area in the current shooting scene;
a fifth determining module, configured to determine a second overexposure compensation value according to the second color channel histogram;
the judging module is used for judging whether the first overexposure compensation value is larger than the second overexposure compensation value;
the first control module is used for acquiring an underexposure image according to the second overexposure compensation value if the first control module is used for acquiring the underexposure image according to the second overexposure compensation value;
and the second control module is used for acquiring an underexposure image according to the first overexposure compensation value if the first overexposure compensation value is not the first overexposure compensation value.
The obtaining module 130 is configured to obtain a high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value.
It should be noted that the foregoing explanation of the embodiment of the method for obtaining a high dynamic range image based on a portrait is also applicable to the apparatus for obtaining a high dynamic range image based on a portrait in this embodiment, and the implementation principle is similar, and is not repeated here.
The high dynamic range image obtaining apparatus based on human image provided in this embodiment first determines a first histogram of each color channel corresponding to a background region in a current shooting scene to determine a first overexposure compensation value and a first underexposure compensation value according to the first histogram of each color channel, and determines a second histogram of each color channel corresponding to a human image region in the current shooting scene to determine a second overexposure compensation value according to the second histogram of each color channel, and then determines whether the first overexposure compensation value is greater than the second overexposure compensation value, if so, obtains an underexposure image according to the second overexposure compensation value, if not, obtains an underexposure image according to the first overexposure compensation value, and obtains an overexposure image according to the first underexposure compensation value, and then performs a fusion process on a normal exposure image, an underexposure image, and an overexposure image, a high dynamic range image of the current scene is generated. Therefore, the overexposure compensation value is limited according to the color channel histograms of the portrait areas, so that the fact that the portrait is not pulled too bright in the finally obtained high-dynamic-range image is guaranteed, the contrast of the portrait meets the requirement, and user experience is improved.
In an alternative implementation form, the portrait-based high dynamic range image capturing apparatus according to the embodiment of the present application may include:
the first determining module 110 is configured to determine a first color channel histogram corresponding to a background area in a current shooting scene;
the second determining module 120 is configured to determine a first overexposure compensation value and a first underexposure compensation value according to the first color channel histogram;
the obtaining module 130 is configured to obtain a high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value.
In an optional implementation form, the first determining module 110 is specifically configured to: determining a first color channel histogram corresponding to a background area in a current shooting scene according to a first preview picture currently acquired by the first camera; or determining a first color channel histogram corresponding to a background area in the current shooting scene according to a second preview picture currently acquired by the second camera; or determining a first color channel histogram corresponding to a background area in the current shooting scene according to a third preview picture which is currently and jointly acquired and formed by the first camera and the second camera.
In an optional implementation form, the first determining module 110 is specifically configured to: and when the picture acquired by the first camera is a preview picture, determining a first color channel histogram corresponding to a background area in the current shooting scene according to the picture acquired by the second camera.
In an alternative implementation form, the second determining module 120 further includes:
and the adjusting subunit is used for adjusting the exposure value of the second camera until the images collected by the second camera correspond to a first overexposure compensation value and a first underexposure compensation value which respectively correspond to the color channel histograms and meet the preset conditions.
In an alternative implementation form, the high dynamic range image capturing apparatus based on portrait according to the present application may further include:
and the sixth determining module is used for determining a third overexposure compensation value and/or a second underexposure compensation value corresponding to the first camera according to the exposure and the sensitivity corresponding to the first camera and the exposure and the sensitivity corresponding to the second camera.
In an optional implementation form, the obtaining module 130 further includes:
the first control subunit is used for controlling the first camera to acquire an underexposure image according to the first overexposure compensation value;
the second control subunit is used for controlling the second camera to acquire an overexposure image according to the first underexposure compensation value;
the third control subunit is used for controlling the first camera and/or the second camera to acquire a normal exposure image;
and the generating subunit is used for carrying out fusion processing on the normal exposure image, the underexposure image and the overexposure image to generate a high dynamic range image of the current scene.
It should be noted that the foregoing explanation of the embodiment of the method for obtaining a high dynamic range image based on a portrait is also applicable to the apparatus for obtaining a high dynamic range image based on a portrait in this embodiment, and the implementation principle is similar, and is not repeated here.
The high dynamic range image acquisition device based on the portrait provided by the embodiment shoots a plurality of images required by the HDR image by utilizing the double cameras simultaneously, thereby not only effectively avoiding the condition that the contrast of the portrait is not enough in the shot image, improving the overall quality of the image, but also shortening the shooting time of the image, obtaining the high dynamic range image with higher dynamic range effect, and improving the user experience.
In order to implement the above embodiments, the present application further provides a terminal device.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Referring to fig. 6, the terminal device 100 of the present application includes a memory 210, a processor 220, and a camera module 230;
the camera module 230 is configured to obtain an image in a current shooting scene;
the memory 210 is used for storing executable program codes;
the processor 220 is configured to read the executable program code stored in the memory 210 to run a program corresponding to the executable program code, so as to implement the method for acquiring a portrait-based high dynamic range image according to the embodiment of the first aspect.
In this embodiment, the terminal device may be any hardware device having a photographing function, such as a smart phone, a camera, a Personal Computer (PC), and the like, which is not limited in this application.
Optionally, in this embodiment, the terminal device may have a hardware device with two cameras.
It should be noted that the foregoing explanation of the embodiment of the method for obtaining a high dynamic range image based on a portrait is also applicable to the terminal device of the embodiment, and the implementation principle is similar, and is not repeated here.
In the terminal device provided in this embodiment, first each color channel histogram corresponding to a background area in a current shooting scene is determined, so as to determine a first overexposure compensation value and a first underexposure compensation value according to the first each color channel histogram, and then obtain a high dynamic range image according to the first overexposure compensation value and the first underexposure compensation value. Therefore, when the HDR image including the portrait is shot, the underexposure compensation value and the overexposure compensation value corresponding to the current shooting scene are determined according to the background area in the shot picture, and the corresponding high dynamic range image is further obtained, so that the condition that the contrast of the portrait in the shot image is insufficient or the background area is too bright is effectively avoided, the quality of the HDR image is improved, and the user experience is improved.
In order to implement the above embodiments, the present application also proposes a computer-readable storage medium.
The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the portrait-based high dynamic range image acquisition method of the first aspect.
In this application, unless expressly stated or limited otherwise, the terms "disposed," "connected," and the like are to be construed broadly and include, for example, mechanical and electrical connections; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (9)

1. A high dynamic range image acquisition method based on portrait is characterized by comprising the following steps:
determining a first color channel histogram corresponding to a background area in a current shooting scene;
determining a first overexposure compensation value and a first underexposure compensation value according to the first color channel histogram;
determining second color channel histograms corresponding to the portrait areas in the current shooting scene;
determining a second overexposure compensation value according to the second color channel histogram;
judging whether the first overexposure compensation value is larger than the second overexposure compensation value or not, and if so, acquiring an underexposed image according to the second overexposure compensation value; if not, acquiring an underexposure image according to the first overexposure compensation value;
acquiring an overexposure image according to the first underexposure compensation value;
and carrying out fusion processing on the normal exposure image, the underexposure image and the overexposure image to generate a high dynamic range image of the current shooting scene.
2. The method of claim 1, wherein before determining the first color channel histogram corresponding to the background region in the current captured scene, the method further comprises:
and identifying the portrait of the current shooting scene, and determining the portrait area included in the current shooting scene.
3. The method according to any of claims 1-2, wherein the method is applied in a terminal with dual cameras;
controlling a first camera to obtain an underexposure image according to the first overexposure compensation value;
controlling a second camera to obtain an overexposed image according to the first underexposure compensation value;
and controlling the first camera and/or the second camera to acquire a normal exposure image.
4. The method of claim 3, wherein determining the first color channel histogram corresponding to the background region in the current captured scene comprises:
determining a first color channel histogram corresponding to a background area in a current shooting scene according to a first preview picture currently acquired by the first camera;
alternatively, the first and second electrodes may be,
determining a first color channel histogram corresponding to a background area in a current shooting scene according to a second preview picture currently acquired by the second camera;
alternatively, the first and second electrodes may be,
and determining a first color channel histogram corresponding to a background area in the current shooting scene according to a third preview picture which is currently and jointly acquired and formed by the first camera and the second camera.
5. The method of claim 3, wherein determining the first color channel histogram corresponding to the background region in the current captured scene comprises:
when the picture collected by the first camera is a preview picture, determining a first color channel histogram corresponding to a background area in the current shooting scene according to the picture collected by the second camera;
determining a first overexposure compensation value and a first underexposure compensation value according to the first color channel histogram, including:
and adjusting the exposure value of the second camera until determining that the pictures acquired by the second camera correspond to a first overexposure compensation value and a first underexposure compensation value which respectively correspond to each color channel histogram and satisfy a preset condition.
6. The method of claim 4 or 5, wherein after determining the first overexposure compensation value and the first underexposure compensation value, further comprising:
and determining a third overexposure compensation value and/or a second underexposure compensation value corresponding to the first camera according to the exposure and the sensitivity corresponding to the first camera and the exposure and the sensitivity corresponding to the second camera.
7. A portrait-based high dynamic range image capture device, comprising:
the first determining module is used for determining a first color channel histogram corresponding to a background area in a current shooting scene;
the second determining module is used for determining a first overexposure compensation value and a first underexposure compensation value according to the first color channel histogram;
the fourth determining module is used for determining second color channel histograms corresponding to the portrait area in the current shooting scene;
a fifth determining module, configured to determine a second overexposure compensation value according to the second color channel histogram;
the judging module is used for judging whether the first overexposure compensation value is larger than the second overexposure compensation value;
the first control module is used for acquiring an underexposure image according to the second overexposure compensation value if the first control module is used for acquiring the underexposure image according to the second overexposure compensation value;
the second control module is used for acquiring an underexposure image according to the first overexposure compensation value if the first overexposure compensation value is not the same as the first overexposure compensation value;
acquiring an overexposure image according to the first underexposure compensation value;
and the acquisition module is used for carrying out fusion processing on the normal exposure image, the underexposure image and the overexposure image to generate a high dynamic range image of the current shooting scene.
8. A terminal device, comprising: the device comprises a memory, a processor and a camera module;
the camera module is used for acquiring an image in a current shooting scene;
the memory for storing executable program code;
the processor is used for reading the executable program codes stored in the memory to run programs corresponding to the executable program codes, so as to realize the portrait-based high dynamic range image acquisition method according to any one of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the portrait-based high dynamic range image acquisition method according to any one of claims 1 to 6.
CN201810327419.6A 2018-04-12 2018-04-12 Portrait-based high dynamic range image acquisition method, device and equipment Active CN108616689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810327419.6A CN108616689B (en) 2018-04-12 2018-04-12 Portrait-based high dynamic range image acquisition method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810327419.6A CN108616689B (en) 2018-04-12 2018-04-12 Portrait-based high dynamic range image acquisition method, device and equipment

Publications (2)

Publication Number Publication Date
CN108616689A CN108616689A (en) 2018-10-02
CN108616689B true CN108616689B (en) 2020-10-02

Family

ID=63659967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810327419.6A Active CN108616689B (en) 2018-04-12 2018-04-12 Portrait-based high dynamic range image acquisition method, device and equipment

Country Status (1)

Country Link
CN (1) CN108616689B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040603A (en) * 2018-10-15 2018-12-18 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device and mobile terminal
CN109120862A (en) * 2018-10-15 2019-01-01 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device and mobile terminal
CN109862282B (en) * 2019-02-18 2021-04-30 Oppo广东移动通信有限公司 Method and device for processing person image
CN110062160B (en) 2019-04-09 2021-07-02 Oppo广东移动通信有限公司 Image processing method and device
CN110177221B (en) * 2019-06-25 2021-02-26 维沃移动通信有限公司 Shooting method and device for high dynamic range image
CN110493538B (en) * 2019-08-16 2021-08-24 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111445439B (en) * 2020-02-26 2024-05-07 北京大米未来科技有限公司 Image analysis method, device, electronic equipment and medium
CN114007020B (en) * 2021-10-12 2022-11-29 深圳创维-Rgb电子有限公司 Image processing method and device, intelligent terminal and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349068A (en) * 2013-08-08 2015-02-11 联想(北京)有限公司 Shooting method and electronic equipment
CN104869320A (en) * 2014-02-21 2015-08-26 三星电子株式会社 Electronic device and control method of the same
CN106408518A (en) * 2015-07-30 2017-02-15 展讯通信(上海)有限公司 Image fusion method and apparatus, and terminal device
CN107241557A (en) * 2017-06-16 2017-10-10 广东欧珀移动通信有限公司 Image exposure method, device, picture pick-up device and storage medium
CN107623818A (en) * 2017-10-30 2018-01-23 维沃移动通信有限公司 A kind of image exposure method and mobile terminal
CN108174118A (en) * 2018-01-04 2018-06-15 珠海格力电器股份有限公司 Image processing method, device and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5647209B2 (en) * 2012-11-07 2014-12-24 オリンパスイメージング株式会社 Imaging apparatus and imaging method
CN105872148B (en) * 2016-06-21 2019-05-17 维沃移动通信有限公司 A kind of generation method and mobile terminal of high dynamic range images
CN106161967B (en) * 2016-09-13 2020-03-17 维沃移动通信有限公司 Backlight scene panoramic shooting method and mobile terminal
CN107172353B (en) * 2017-06-16 2019-08-20 Oppo广东移动通信有限公司 Automatic explosion method, device and computer equipment
CN107241559B (en) * 2017-06-16 2020-01-10 Oppo广东移动通信有限公司 Portrait photographing method and device and camera equipment
CN107635102B (en) * 2017-10-30 2020-02-14 Oppo广东移动通信有限公司 Method and device for acquiring exposure compensation value of high-dynamic-range image
CN107888840B (en) * 2017-10-30 2019-10-15 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method and device
CN107707827B (en) * 2017-11-14 2020-05-01 维沃移动通信有限公司 High-dynamic image shooting method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349068A (en) * 2013-08-08 2015-02-11 联想(北京)有限公司 Shooting method and electronic equipment
CN104869320A (en) * 2014-02-21 2015-08-26 三星电子株式会社 Electronic device and control method of the same
CN106408518A (en) * 2015-07-30 2017-02-15 展讯通信(上海)有限公司 Image fusion method and apparatus, and terminal device
CN107241557A (en) * 2017-06-16 2017-10-10 广东欧珀移动通信有限公司 Image exposure method, device, picture pick-up device and storage medium
CN107623818A (en) * 2017-10-30 2018-01-23 维沃移动通信有限公司 A kind of image exposure method and mobile terminal
CN108174118A (en) * 2018-01-04 2018-06-15 珠海格力电器股份有限公司 Image processing method, device and electronic equipment

Also Published As

Publication number Publication date
CN108616689A (en) 2018-10-02

Similar Documents

Publication Publication Date Title
CN107635102B (en) Method and device for acquiring exposure compensation value of high-dynamic-range image
CN108616689B (en) Portrait-based high dynamic range image acquisition method, device and equipment
CN111028189B (en) Image processing method, device, storage medium and electronic equipment
CN108683862B (en) Imaging control method, imaging control device, electronic equipment and computer-readable storage medium
CN110225248B (en) Image acquisition method and device, electronic equipment and computer readable storage medium
CN108337446B (en) High dynamic range image acquisition method, device and equipment based on double cameras
CN108337445B (en) Photographing method, related device and computer storage medium
US8106965B2 (en) Image capturing device which corrects a target luminance, based on which an exposure condition is determined
CN107948538B (en) Imaging method, imaging device, mobile terminal and storage medium
US11431915B2 (en) Image acquisition method, electronic device, and non-transitory computer readable storage medium
US8937677B2 (en) Digital photographing apparatus, method of controlling the same, and computer-readable medium
CN107846556B (en) Imaging method, imaging device, mobile terminal and storage medium
CN108156369B (en) Image processing method and device
CN107888839B (en) high dynamic range image acquisition method, device and equipment
US20120127336A1 (en) Imaging apparatus, imaging method and computer program
CN108337449A (en) High-dynamic-range image acquisition method, device based on dual camera and equipment
US11601600B2 (en) Control method and electronic device
CN110290325B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110881108B (en) Image processing method and image processing apparatus
JP2018056702A (en) Image processing device, image processing method and program
CN107682611B (en) Focusing method and device, computer readable storage medium and electronic equipment
US11496694B2 (en) Dual sensor imaging system and imaging method thereof
CN111434104A (en) Image processing device, imaging device, image processing method, and program
CN110891145B (en) Method for obtaining image by photographing and electronic equipment
CN110266965B (en) Image processing method, image processing device, storage medium and electronic 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
GR01 Patent grant
GR01 Patent grant