CN108337445A - Photographic method, relevant device and computer storage media - Google Patents

Photographic method, relevant device and computer storage media Download PDF

Info

Publication number
CN108337445A
CN108337445A CN201810257073.7A CN201810257073A CN108337445A CN 108337445 A CN108337445 A CN 108337445A CN 201810257073 A CN201810257073 A CN 201810257073A CN 108337445 A CN108337445 A CN 108337445A
Authority
CN
China
Prior art keywords
camera
image
exposure
preview image
exposure parameter
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.)
Granted
Application number
CN201810257073.7A
Other languages
Chinese (zh)
Other versions
CN108337445B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201810257073.7A priority Critical patent/CN108337445B/en
Publication of CN108337445A publication Critical patent/CN108337445A/en
Application granted granted Critical
Publication of CN108337445B publication Critical patent/CN108337445B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Abstract

The embodiment of the invention discloses photographic method, relevant device and computer storage media, the method is applied to be equipped in the terminal device of at least two cameras, wherein the method includes:Preview image is obtained by the first camera;In the preview image there are in the case of overexposure, the first exposure parameter is determined by the second camera;Wherein, overexposure is not present in the image that the corresponding second camera of first exposure parameter obtains;Pass through first camera acquisition at least two field pictures;Wherein, the exposure parameter of corresponding first camera of at least two field pictures is different, and the corresponding light exposure of at least two field pictures is greater than or equal to the corresponding light exposure of first exposure parameter;By at least two field pictures synthesize high dynamic range HDR image described in acquisition.Using the embodiment of the present invention, the problems such as picture quality present in existing HDR photographic methods is poor can be solved, to which the quality for image of taking pictures can be improved.

Description

Photographic method, relevant device and computer storage media
Technical field
The present invention relates to field of terminal technology more particularly to photographic method, relevant device and computer storage medias.
Background technology
With the development of terminal industry, takes pictures and have become an indispensable critical function in terminal.Due to terminal Middle imaging sensor supports the dynamic range of detection to be far smaller than the dynamic range of real scene, therefore how to shoot high dynamic State range image (high-dynamic range, HDR) is always the problem in shooting technology.
The prior art proposes two kinds of HDR photographic methods, one is based on single camera continuous acquisition multiple image, then passes through Algorithm synthesis obtains final shooting image.Specifically, parameter (such as exposure parameter) of taking pictures used by the multiple image is After obtaining preview image using single camera, empirically analyze obtained by the preview image.In practice, it has been found that this HDR photographic methods are taken pictures by user's subjective experience completely, it is difficult to obtain the HDR image of high quality.
Another kind is by dual camera while to acquire the image under different exposure parameters, then close to the image of acquisition At to obtain final shooting image.Specifically there are following two realization methods:
In the first way, light is surveyed to the foreground area taken pictures and background area respectively first with dual camera, and adjusts The whole respective light exposure of dual camera, to acquire the figure for being suitble to foreground light exposure and background light exposure respectively using dual camera Picture is synthesized final shooting image finally by algorithm.Wherein, if acquiring figure using suitable foreground light exposure Picture, at this time the background area in image can exist overexposure overflow (i.e. apparent excessively bright);If adopted using suitable background light exposure Collect image, it is dead black (i.e. apparent excessively dark) to have deficient exposure for the foreground area in image at this time.As it can be seen that the image of dual camera acquisition It is second-rate, it is not suitable for use in preview image, influences user experience.
In the second way, the exposure parameter (i.e. light exposure) of dual camera is adjusted when taking pictures, utilizes dual camera The image under different exposure parameters is acquired, final shooting image is synthesized by algorithm.Wherein, it is not related in the program And the change to preview image light exposure, i.e., do not change the exposure parameter of preview image, subsequently passes through single exposure when taking pictures Parameter adjusts to obtain final shooting image.Due to dual camera acquisition preview image in there may be overexposure overflow or It is dead black to owe exposure, light is surveyed when this will cause to take pictures and is not allowed, adjustment single exposure parameter is also inaccurate, in the shooting finally synthesized Overexposure can not be recovered in image completely or owes to expose region, it is seen that the quality of the shooting image of acquisition is poor.
Invention content
The embodiment of the invention discloses photographic method, relevant device and computer storage medias, can solve existing HDR and clap The problems such as poor according to picture quality present in method.
In a first aspect, the embodiment of the present invention, which discloses, provides a kind of photographic method, the method includes:
Preview image is obtained by the first camera;
In the preview image there are in the case of overexposure, the first exposure parameter is determined by the second camera;Its In, overexposure is not present in the image that the corresponding second camera of first exposure parameter obtains;
Pass through first camera acquisition at least two field pictures;Wherein, at least two field pictures corresponding described The exposure parameter of one camera is different, and corresponding to the exposure parameter of corresponding first camera of at least two field pictures Light exposure be greater than or equal to the corresponding light exposure of first exposure parameter;
By at least two field pictures synthesize high dynamic range HDR image described in acquisition.
By implement the embodiment of the present invention, can solve picture quality present in existing HDR photographic methods it is poor, camera shooting The problems such as image of head acquisition is not suitable for use in preview image.
In some possible embodiments, there are overexposures to include for the preview image:
Ratio in the preview image shared by the first highlight regions is greater than or equal to the first preset ratio or described pre- The average value of the pixel intensity of the second highlight regions in image of looking at is greater than or equal to the first luminance threshold;
There is no overexposures to include for the preview image:
Ratio in the preview image shared by the first highlight regions is less than first preset ratio or the preview The average value of the pixel intensity of the second highlight regions is less than first luminance threshold or first camera in image Light exposure reaches preset lower limiting value;
Wherein, first highlight regions are the pixel region of highest N number of grayscale in the preview image, and N is just whole Number;Second highlight regions are the region of the highest preceding M pixel of brightness in the preview image, and M is positive integer.It is optional , second highlight regions are alternatively the region corresponding to the pixel of the highest preceding m% of brightness in the preview image, and m is It is customized often to state, such as 1.5 etc..
In some possible embodiments, the second camera obtain the first image in there are overexposures the case where Under, just execution is described determines the first exposure parameter by the second camera.It is intelligible, to ensure the accurate of processing of taking pictures Degree and reliability, the application need to acquire the first image first with second camera, in the first image there are still in the case of overexposure, Just determine the first exposure parameter of second camera at this time.
In some possible embodiments, the corresponding exposure parameter of at least two field pictures is between the first exposure ginseng Number is between normal exposure parameter;Wherein, the average value of the pixel intensity in the corresponding image of the normal exposure parameter is equal to Predetermined luminance threshold value.
Specifically, under a kind of exposal model, after determining exposure parameter using second camera, using the first camera shooting Head acquires the series of frame images (i.e. at least two field pictures) under first exposure parameter to normal exposure parameter, convenient for follow-up Final HDR image is synthesized using set algorithm.
In some possible embodiments, the method further includes:
In the case where the preview image has deficient expose, the second exposure parameter is determined by the second camera;Its In, there is no owe to expose for the image that the corresponding second camera of first exposure parameter obtains.
In some possible embodiments, the preview image, which exists to owe to expose, includes:
Ratio in the preview image shared by the first half-light region is greater than or equal to the second preset ratio or described pre- The average value of the pixel intensity in the second half-light region in image of looking at is less than the second luminance threshold;
There is no owe to expose to include for the preview image:
Ratio in the preview image shared by the first half-light region is less than the first preset ratio or the preview image In the average value of pixel intensity in the second half-light region be greater than or equal to the exposure of the second luminance threshold or first camera Light quantity reaches preset upper limit value;
Wherein, first half-light region is the pixel region of Q minimum grayscale in the preview image, and Q is just whole Number;Second half-light region is the region of P minimum pixel of brightness in the preview image, and P is positive integer.Optionally, Second half-light region may also mean that the region corresponding to the pixel for the p% that brightness is minimum in the preview image, p are to make by oneself The constant of justice.
In some possible embodiments, there is the case where owing to expose in the first image that the second camera obtains Under, just execution is described determines the second exposure parameter by the second camera.It is intelligible, to ensure the reliable of processing of taking pictures Property and precision, the application can in the first image that second camera obtains there are still owing to expose in the case of, just utilize the Two cameras determine the second exposure parameter.
In some possible embodiments, the corresponding exposure parameter of at least two field pictures is between the first exposure ginseng Number is between second exposure parameter.
Specifically, under another exposal model, after determining exposure parameter using second camera, taken the photograph using first As head acquires the series of frame images (i.e. at least two field pictures) under first exposure parameter to the second exposure parameter, after being convenient for It is continuous that final HDR image is synthesized using set algorithm.
In some possible embodiments, described first image is that the second camera obtains under normal exposure parameter Image, the preview image is the image that is obtained under the normal exposure parameter of first camera, the normal exposure Optical parameter makes the average value of the pixel intensity in the preview image (or described first image) be equal to predetermined luminance threshold value.
In some possible embodiments, described first image is the image obtained after image converts, described first Image is consistent with the spatial character of the picture material of the preview image.Here image transformation includes but not limited to that image is flat Shifting, rotation and projection correction etc..The space characteristics include but not limited to any one of following or multinomial combination:Face Color characteristic, textural characteristics, shape feature and spatial relation characteristics etc..
Second aspect, the embodiment of the present invention, which discloses, provides another terminal device, including the first camera, the second camera shooting Head and processing unit;Wherein,
The processing unit, for obtaining preview image by the first camera;
The processing unit is additionally operable to pass through the second camera there are in the case of overexposure in the preview image Determine the first exposure parameter;Wherein, the image that the corresponding second camera of first exposure parameter obtains was not present It exposes;
The processing unit is additionally operable to through first camera acquisition at least two field pictures;Wherein, described at least two The exposure parameter of corresponding first camera of frame image is different, and corresponding first camera shooting of at least two field pictures Light exposure corresponding to the exposure parameter of head is greater than or equal to the corresponding light exposure of first exposure parameter;
The processing unit is additionally operable at least two field pictures of acquisition synthesizing high dynamic range HDR image.
In some possible embodiments, there are overexposures to include for the preview image:
Ratio in the preview image shared by the first highlight regions is greater than or equal to the first preset ratio or described pre- The average value of the pixel intensity of the second highlight regions in image of looking at is greater than or equal to the first luminance threshold;
There is no overexposures to include for the preview image:
Ratio in the preview image shared by the first highlight regions is less than first preset ratio or the preview The average value of the pixel intensity of the second highlight regions is less than first luminance threshold or first camera in image Light exposure reaches preset lower limiting value;
Wherein, first highlight regions are the pixel region of highest N number of grayscale in the preview image, and N is just whole Number;Second highlight regions are the region of the highest preceding M pixel of brightness in the preview image, and M is positive integer.
In some possible embodiments, the second camera obtain the first image in there are overexposures the case where Under, just execution is described determines the first exposure parameter by the second camera.It is intelligible, to ensure the reliable of processing of taking pictures Property and precision, in the case that the application can still have overexposure in the first image that second camera obtains, just utilize the Two cameras determine the second exposure parameter.
In some possible embodiments, the corresponding exposure parameter of at least two field pictures is between the first exposure ginseng Number is between normal exposure parameter;Wherein, the average value of the pixel intensity in the corresponding image of the normal exposure parameter is equal to Predetermined luminance threshold value.
In some possible embodiments,
The processing unit is additionally operable to, in the case where the preview image has deficient expose, pass through the second camera Determine the second exposure parameter;Wherein, there is no owe for the image that the corresponding second camera of first exposure parameter obtains It exposes.
In some possible embodiments, the preview image, which exists to owe to expose, includes:
Ratio in the preview image shared by the first half-light region is greater than or equal to the second preset ratio or described pre- The average value of the pixel intensity in the second half-light region in image of looking at is less than the second luminance threshold;
There is no owe to expose to include for the preview image:
Ratio in the preview image shared by the first half-light region is less than the first preset ratio or the preview image In the average value of pixel intensity in the second half-light region be greater than or equal to the exposure of the second luminance threshold or first camera Light quantity reaches preset upper limit value;
Wherein, first half-light region is the pixel region of Q minimum grayscale in the preview image, and Q is just whole Number;Second half-light region is the region of P minimum pixel of brightness in the preview image, and P is positive integer.Optionally, Second half-light region may also mean that the region corresponding to the pixel for the p% that brightness is minimum in the preview image, p are to make by oneself The constant of justice.
In some possible embodiments, there is the case where owing to expose in the first image that the second camera obtains Under, just execution is described determines the second exposure parameter by the second camera.
In some possible embodiments, the corresponding exposure parameter of at least two field pictures is between the first exposure ginseng Number is between second exposure parameter.
In some possible embodiments, described first image is that the second camera obtains under normal exposure parameter Image, the preview image is the image that is obtained under the normal exposure parameter of first camera, the normal exposure Optical parameter makes the average value of the pixel intensity in the preview image (or described first image) be equal to predetermined luminance threshold value.
In some possible embodiments, described first image is the image obtained after image converts, described first Image is consistent with the spatial character of the picture material of the preview image.
About the embodiment of the present invention, for details, reference can be made to the correlations in embodiment described in aforementioned first aspect to illustrate, here not It repeats.
The third aspect, an embodiment of the present invention provides another terminal devices, including the first camera and second camera The place that at least two cameras inside further include memory and are all coupled with the memory and at least two camera Manage device;The memory for storing instruction, the processor for executing described instruction, and with first camera and institute Second camera is stated to be communicated;Wherein, side described in above-mentioned first aspect is executed when the processor executes described instruction Method.
In some possible embodiments, the terminal device further includes the display coupled with the processor, described Display is used to show the image that first camera or the second camera obtain under the control of the processor, or Person shows the HDR image corresponded to when the processor executes the method.
In some possible embodiments, the terminal device further includes communication interface, the communication interface and the place Device communication is managed, the communication interface is used under the control of the processor and other equipment (such as the first camera, the second camera shooting Head, display screen and network equipment etc.) it is communicated.
Fourth aspect, provides a kind of computer readable storage medium, and the computer-readable recording medium storage is used In the program code of service switching processing.Said program code includes the finger for executing method described in above-mentioned first aspect It enables.
By implementing the embodiment of the present invention, it can solve that picture quality present in existing HDR photographic methods is poor etc. to ask Topic, to which the quality for image of taking pictures can be improved.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described.
Fig. 1 is a kind of image schematic diagram provided in an embodiment of the present invention.
Fig. 2 is a kind of flow diagram of photographic method provided in an embodiment of the present invention.
Fig. 3 is the flow diagram of another photographic method provided in an embodiment of the present invention.
Fig. 4 A-4B are the schematic diagrames of two kinds of preview images provided in an embodiment of the present invention.
Fig. 5 is a kind of distribution schematic diagram of pixel intensity provided in an embodiment of the present invention.
Fig. 6 is a kind of schematic diagram of a scenario taken pictures provided in an embodiment of the present invention.
Fig. 7 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention.
Fig. 8 is the structural schematic diagram of another terminal device provided in an embodiment of the present invention.
Specific implementation mode
Below in conjunction with the attached drawing of the present invention, technical solution in the embodiment of the present invention is described in detail.
Applicant has found that there are following three kinds for existing HDR image photographic method during proposing the application:
The first, is based on single camera continuous acquisition multiple image, then synthesizes to obtain final shooting image again.Its In, respectively the corresponding exposure parameter used is that user by virtue of experience analyzes acquisition to the multiple image, particular by list Preview image when camera is found a view carries out empirical analysis acquisition.As it can be seen that this HDR image photographic method depends entirely on artificially Experience, it is difficult to obtain the HDR image of high quality.
Second, the image of different exposure parameters is acquired using dual camera, then synthesizes to obtain final shooting figure again Picture.Wherein, it needs to carry out survey light to the preview image that dual camera acquires when the program is realized, to adjust the exposure of dual camera It measures (exposure parameter), acquires the image for being suitble to foreground light exposure and background light exposure respectively by dual camera, then synthesize again. However in practice, it has been found that the image of dual camera acquisition can have the apparent apparent mistake of excessively bright or foreground area in background area The problems such as dark, picture quality is poor, is not suitable as preview image, is checked for user, influences user experience.
The third, the image of different exposure parameters is acquired using dual camera, then synthesizes to obtain final shooting figure again Picture.Wherein, when the program is realized will not flash preview image exposure parameter, the exposures ginseng of double camera shootings is only adjusted when taking pictures Number.Due to exposing dead black there may be image overexposure is overflow or under in the preview image of dual camera acquisition, this will cause subsequently to clap According to when to survey light inaccurate, final shooting image is synthesized using acquired image after single exposure parameter adjustment, is susceptible to Overexposure cannot be recovered completely in the shooting image or owe to expose region, the quality for shooting image is still poor.
To solve the above problems, the application proposes a kind of photographic method and the applicable terminal device of the method.Below Introduce first this application involves several conceptual knowledge.
Foreground area refers to being located in camera picture before premise or the people close to forward position or object, alternatively referred to as foreground.Phase Ying Di, background area refer to the environment for serving as a contrast or foil main body in camera picture, alternatively referred to as background.Specifically, as Fig. 1 is shown One character image, wherein black region are portrait part, can be the foreground area in image.Correspondingly, remaining white Region is background area.
High dynamic range HDR refers to that the ratio between signal peak and minimum is greater than or equal to predetermined threshold value.Example Such as, the luminance difference that reality is truly present, i.e., the ratio between the brightness and the brightness of most dark object of most bright object are 108, it is more than The range 10 that human eye can identify5.By taking HDR image as an example, it will be appreciated that be:It is dark there are brightest area and/or most in image Region, and human eye can not observe most bright/most dark areas, i.e., the pixel intensity most in bright/most dark areas, which reaches human eye, to see The stage examined.Optionally, when HDR image includes brightest area and most dark areas simultaneously, it may also mean that highlights in image Ratio between domain and most dark areas is more than predetermined threshold value.For normal image, HDR image can provide more dynamics Range and image detail, according to low-dynamic range (low-dynamic range, LDR) image of different exposure time, using every A time for exposure for best LDR image can synthesize final HDR image, can preferably reflect regarding in true environment Feel effect.
Highlight regions refer to the region in image corresponding to the highest M pixel of brightness, be can also be highest in finger image The pixel region of N number of grayscale.Wherein, M and N can be user side or the positive integer of the self-defined setting of system side.It is intelligible, often A image is made of k pixel, and each pixel is corresponding with respective brightness value, hereinafter referred to as pixel intensity, and k is just whole Number.Here grayscale can refer to the gray scale (i.e. brightness value rank) of pixel in image, can also be and refer to pixel in image Grey level (i.e. gray value rank).
Half-light region refers to the region corresponding to brightness is minimum in image P pixel, can also be refer to it is minimum in image The pixel region of Q grayscale.Wherein, P and Q is user side or the positive integer of the self-defined setting of system side.On how to utilize Grayscale defines highlight regions or half-light region, will specifically illustrate in greater detail below, which is not described herein again.
By taking typical HDR scene (clapping character image under backlight) as an example, if carrying out surveying light and be arranged according to personage's brightness The exposure parameter of video camera, since background area belongs to highlight regions, considerably beyond the peak response range of sensor, at this time It will appear overexposure phenomenon (i.e. image overexposure, all pixels are entirely white).And foreground area, due to backlight probably due to light The minimum induction of sensor is not achieved, effective signal value can not be generated, will appear deficient exposure phenomenon at this time, (i.e. image is owed It exposes, all pixels are entirely black).
Based on previous embodiment, be described below this application involves photographic method.The method is applied in terminal device, The terminal device is at least equipped with multiple cameras including the first camera and second camera.Refer to Fig. 2 It is a kind of flow diagram of photographic method provided in an embodiment of the present invention.Method as shown in Figure 2 includes that step is implemented as follows:
Step S101, preview image is obtained by the first camera.
Specifically, the preview image can be directly to utilize first camera acquisition, or adjustment after being switched on Acquired image after the exposure parameter of first camera.For example, after the first camera acquisition initial pictures, it can The exposure parameter of first camera shooting is adjusted according to the initial pictures so that the image (example of the follow-up first camera acquisition Such as preview image) in pixel intensity reach and (be equal to) predetermined luminance threshold value.On how to adjust first camera Exposure parameter will be specifically described in detail below, not repeated here.
Step S102, determine that the first exposure is joined by second camera there are in the case of overexposure in the preview image Number;Wherein, overexposure is not present in the image that the corresponding second camera of first exposure parameter obtains.
Step S103, pass through first camera acquisition at least two field pictures;Wherein, at least two field pictures correspond to First camera exposure parameter it is different, and the exposure ginseng of corresponding first camera of at least two field pictures The corresponding light exposure of number is greater than or equal to the light exposure of corresponding first camera of first exposure parameter.
Step S104, by least two field pictures synthesize high dynamic range HDR image described in acquisition.
In the application, the pre- of the first camera acquisition is utilized in HDR scene (such as backlight is taken pictures, super night scene is taken pictures) It lookes at the second-rate of image, be susceptible to image overexposure or owe to expose.To obtain high dynamic range HDR image, the application proposes It is adjusted using second camera and determines suitable exposure parameter;The exposure parameter for recycling the first camera foundation to determine, Corresponding frame image is acquired, to synthesize final HDR image.
Specifically, being determined by second camera there are in the case of overexposure in the preview image in step S102 First exposure parameter so that overexposure is not present in the image that the second camera acquires under first exposure parameter.It can manage Solution, due to taking pictures under image overexposure, such as backlight, the corresponding light exposure of the first exposure parameter determined at this time should be minimum exposure Light quantity.During follow-up take pictures, the light exposure that camera uses should be greater than or equal to minimum exposure amount (the i.e. first exposure ginseng The corresponding light exposure of number).
In an alternative embodiment, in the case where the preview image has deficient expose, second is determined by second camera Exposure parameter;Wherein, there is no owe to expose for the image that the corresponding second camera of second exposure parameter obtains.It is appreciated that , it since image is owed to expose, such as takes pictures under super night scene, the corresponding light exposure of the second exposure parameter determined at this time should be maximum Light exposure.During follow-up take pictures, the light exposure that camera uses should be less than or equal to maximum exposure amount (i.e. second exposure The corresponding light exposure of parameter).
Correspondingly, the light exposure of at least corresponding first camera of two field pictures described in step S103 is less than or waits In the corresponding light exposure of second exposure parameter.It is that at least corresponding exposure parameter of two field pictures is between institute at this time It states between the first exposure parameter and second exposure parameter.
About this application involves specific implementation mode, will illustrate in greater detail below.
By implement the embodiment of the present invention, can solve picture quality present in existing HDR photographic methods it is poor and The problems such as image of camera acquisition is not suitable as preview image, to which the quality for image of taking pictures can be improved.
It is the flow diagram of another photographic method provided in an embodiment of the present invention referring to Fig. 3.Side as shown in Figure 3 Method includes that step is implemented as follows:
Step S201, initial pictures are acquired by the first camera.
Step S202, according to the initial pictures, the exposure parameter of first camera is adjusted so that described first takes the photograph As head can normal exposure take pictures.
Step S203, the preview image under target scene is acquired by first camera, determines the preview image Whether corresponding target scene is HDR scene.
The target scene refers to the terminal device (concretely the first camera and second camera) current institute The scene of taking pictures at place, may include but be not limited to HDR scene (such as backlight is taken pictures, super night scene is taken pictures), non-HDR scene (i.e. It takes pictures under common scenarios, such as natural environment).
Step S204, in the case where the target scene is HDR scene, the exposure ginseng of the second camera is adjusted Number so that there is no overexposure or deficient exposures in the image of the second camera acquisition after adjustment.
Step S205, the exposure parameter of the first camera is reset, and at least two frame figures are acquired using the first camera Picture.Wherein, the exposure parameter of first camera is associated with the exposure parameter of the second camera.
Step S206, at least two field pictures are synthesized into HDR image.
Be described below this application involves some specific embodiments and alternative embodiment.
In step S201, the initial pictures can be the image that the acquisition of the first camera is arbitrarily taken pictures under scene.Specifically, After terminal device alignment is needed the scene taken pictures by user, the acquisition of the first camera can be enabled and obtain corresponding initial pictures.
In step S202, the initial pictures that terminal device can also be acquired according to first camera, described in adjustment/setting The exposure parameter of first camera so that first camera being capable of normal exposure acquisition image.
Specifically, after the first camera acquisition initial pictures, can survey light first be carried out to it, exposure correspondingly is arranged Light weight, and then calculate light exposure.Further, terminal device can reset first camera shooting according to the light exposure of calculating The exposure parameter of head so that the follow-up first camera acquisition brightness of image (summation of each pixel intensity i.e. in image, or The average value of each pixel intensity in person's image) it can reach/be equal to correspondingly predetermined luminance threshold value, that is, ensure first camera Can normal exposure take pictures.Correspondingly, there will not be clearly excessively bright in the image of the first camera of later use acquisition Or dark areas is crossed, to can serve as preview image.
Wherein, the set-up mode of the exposure weight and the mode surveyed used in light correspond, such as Exposure Metering For average metering, then exposes weight and equally use average weight, concretely user side or system side are self-defined for the average weight It is arranged, such as 0.5, such as 1 etc..If Fig. 4 A show the schematic diagram for the initial pictures that one is made of 12 pixels, such as Fruit terminal device carries out average metering using average metering mode to the initial pictures, and average weight can be used at this time this is arranged The exposure weight of each pixel in initial pictures, such as be 1.Correspondingly, the first camera shoots the exposure of the initial pictures Amount is:Seek the average value of all pixels brightness in entire initial pictures.It should be noted that pixel quantity 12 here It is merely illustrative, it does not constitute and limits.
For another example, terminal device carries out survey light using center weight Exposure Metering to initial pictures, then can equally adopt accordingly The exposure weight of the initial pictures is set with center weight set-up mode, and center weight set-up mode here is specially that will scheme The exposure weight of the pixel in inconocenter region is set as larger, by the exposure weight of the pixel in other regions of image be set as compared with It is small.The specific exposure weight schematic diagram that a preview image is shown such as Fig. 4 B, it is assumed that the preview image is by 12 pixel structures At.If the central area in Fig. 4 B initial pictures includes a box milk, exposed if be arranged using center weight setting method Weight, then can set the exposure weight of the corresponding pixel of milk to the first weight (such as 2), and the exposure weight of rest of pixels is set as Second weight (such as 1), the first weight are more than the second weight.Correspondingly, the light exposure of the initial pictures can be:To each region Pixel intensity is weighted the numerical value of average gained, such as the brightness of each pixel is 200 in the central area shown in Fig. 4 B, remaining The brightness of each pixel is 50 in region, then the light exposure of initial pictures shown in Fig. 4 B is:(2*200*2+1*50*10)/12, About 108.
It is not limited about the Exposure Metering and described exposure weight the application.It, can by taking the Exposure Metering as an example Including but not limited to matrix surveys light, central average metering, central Partial metering etc., is not detailed here.
Correspondingly, the terminal device can correspond to the exposure ginseng for adjusting first camera according to the light exposure of calculating Number so that first camera can normal exposure take pictures.It optionally, at this time can be by the exposure of first camera after adjustment Optical parameter is recorded as normal exposure parameter.
Wherein, the exposure parameter refers to the parameter for influencing camera light exposure size, and the parameter includes but not It is limited to aperture, shutter, time for exposure, exposure value and sensitivity etc..
The terminal device can include but is not limited to user equipment (user equipment, UE), mobile phone, tablet computer In (table personal computer), personal digital assistant (personal digital assistant, PDA), movement Net device (mobile internet device, MID), wearable device (wearable device) and other supports With the equipment of network communication etc..
In step S203, after the exposure parameter for adjusting first camera, further imaged using described first Preview image under head acquisition target scene, and analyze the preview image and determine whether the target scene is HDR scene.
Specifically, terminal device can be directed at the target scene that need to be taken pictures by user, and start the first camera acquisition Preview image under the target scene.Further, the statistics and analysis that pixel intensity can be also carried out to the preview image, from And obtain distribution map of each pixel intensity in the preview image.Specific manifestation form the application about the distribution map is simultaneously It does not limit, such as it can be column diagram, line chart etc..Specifically as Fig. 5 shows a kind of distribution of pixel intensity in preview image Histogram (column diagram), wherein abscissa indicate that pixel intensity, ordinate indicate pixel quantity.
Optionally, terminal device can also analyze in the preview image of first camera acquisition with the presence or absence of overexposure with And it owes to expose.Wherein, there are overexposure, fixed condition is any one of following or multinomial combination really in the preview image:1) One highlight regions ratio shared in the preview image is greater than or equal to the first preset ratio;2) in the preview image The average value of the pixel intensity of two highlight regions is greater than or equal to the first luminance threshold.
Correspondingly, there is no overexposure, fixed condition is any one of following or multinomial group really in the preview image It closes:1) the first highlight regions ratio shared in the preview image is less than the first preset ratio;2) in the preview image The average value of the pixel intensity of second highlight regions is less than the first luminance threshold;3) light exposure of first camera reaches pre- If lower limiting value.
Wherein, first highlight regions can refer to the pixel region of highest N number of grayscale in the preview image, N For positive integer.Second highlight regions can refer to the region of the highest preceding M pixel of brightness in the preview image, and M is Positive integer.Optionally, second highlight regions can also be refer to the highest preceding m% of brightness in the preview image pixel institute it is right The region answered, m are customized constant.First preset ratio, first luminance threshold and and preset lower limit Concretely user side or the threshold value of the self-defined setting of system side, the application do not limit value.
There is the deficient fixed condition really that exposes in the preview image is at least one of the following or multinomial combination:1) first Half-light region ratio shared in the preview image is greater than or equal to the second preset ratio;2) second in the preview image The average value of the pixel intensity in half-light region is less than the second luminance threshold.
Correspondingly, it is at least one of the following or multinomial group there is no owing to expose fixed condition really in the preview image It closes:1) the first half-light region small second preset ratio of ratio shared in the preview image;2) in the preview image The average value of the pixel intensity in two half-light regions is greater than or equal to the second luminance threshold;3) light exposure of first camera reaches To preset upper limit value.
Wherein, first half-light region is the pixel region of Q minimum grayscale in the preview image, and Q is just whole Number.Second half-light region is the region of P minimum pixel of brightness in the preview image, and P is positive integer.Optionally, Second half-light region can also be the region for referring to the pixel of the highest preceding p% of brightness in the preview image, and p is customized Constant.Second preset ratio, second luminance threshold and preset upper limit value concretely user side or system side The threshold value of self-defined setting, the application do not limit.
In the application, above-mentioned P, Q, M and N can be user side or the positive integer of the self-defined setting of system side, they can It, also can be different with identical.For example, reference Fig. 5 is by taking the grayscale is pixel brightness level as an example, the first luminance area can refer to Most bright two grayscale correspond to the pixel region in preview image in Fig. 5, and the first half-light region can refer to two most dark in Fig. 5 Grayscale corresponds to the pixel region in preview image, and the application is not detailed here.
Correspondingly, terminal device can according to above-mentioned statistical result, determine the corresponding target scene of the preview image whether be HDR scene.Specifically, when there are when overexposure and/or deficient exposure in the preview image, it may be determined that corresponding to the preview image Target scene is HDR scene, continues to execute step S204.Otherwise, flow can be terminated.
It should be noted that the preview image and the corresponding scene of taking pictures of the initial pictures, it can be identical, Can be different, the application does not limit.
Correspondingly, specifically there are following several embodiments in step S204.
In the first embodiment, there are overexposure, (i.e. the corresponding target scene of preview image is in the preview image HDR scene) in the case of, second camera is enabled, and directly adjust the exposure parameter of the second camera so that follow-up institute It states and overexposure is not present in the image of second camera acquisition.
In second of embodiment, there are in the case of overexposure in the preview image, second camera is enabled, is passed through Second camera obtains the first image.In the case where described first image still has overexposure, the second camera is adjusted Exposure parameter so that overexposure is not present in the image of the follow-up second camera acquisition.
In the third embodiment, exists in the preview image and owe to expose that (i.e. the corresponding target scene of preview image is HDR scene) in the case of, second camera is enabled, and directly adjust the exposure parameter of the second camera so that follow-up institute It states in the image of second camera acquisition and is exposed there is no deficient.
In 4th kind of embodiment, in the case of there is deficient expose in the preview image, second camera is enabled, is passed through Second camera obtains the first image.In the case where described first image still has deficient expose, the second camera is adjusted Exposure parameter so that there is no owe to expose in the image of the follow-up second camera acquisition.
In an alternative embodiment, after enabling second camera, first the exposure parameter of the second camera can be synchronized For the exposure parameter of the first camera described in step S202, i.e., synchronous is normal exposure parameter.Optionally, do not consider synthesis The picture quality (i.e. precision) of HDR image can not have to be synchronized to normal exposure parameter yet.
In an alternative embodiment, to consider the high quality of synthesis HDR image, second camera need to be re-used and corresponded to The first image, described first image there are overexposure or owe expose when, just adjust the exposure parameter of the second camera.Specifically It is described in detail below.
Correspondingly, when there is no second cameras when overexposure or deficient exposure, determined at this time in described first image Exposure parameter is normal exposure parameter (exposure parameter in S202 after the adjustment of the first camera).It is intelligible, first figure As can be second camera acquisition preview image or second camera acquisition but do not show and (do not have to Make preview) image.The specific implementation process of above-mentioned four kinds of embodiments is described below.
Specifically, in the case where the target scene is HDR scene, second camera can be started to the target scene Survey light is carried out, to acquire the first image under same HDR scene.
In an alternative embodiment, the first camera and the preview image of second camera acquisition may be deposited in practical applications In certain parallax, i.e. preview image differs.Then correspondingly, terminal device can first acquire second camera before surveying light Initial pictures converted so that the preview of the first image and first camera acquisition of second camera acquisition Image is identical, that is, makes the picture material that the first camera and second camera respectively obtain identical, also be understood as in image The spatial character of appearance is consistent.Wherein, the spatial character includes but not limited to that the color characteristic, textural characteristics, shape of image are special Sign and spatial relation characteristics etc., the application is not detailed here.
Specifically, since there are certain spacing between the first camera and second camera, this will lead to the first camera shooting Head and second camera acquire the preview image obtained under same HDR scene and have a certain difference.For example, due to shooting angle Degree difference leads to the first camera and the preview image of second camera acquisition, and there are certain parallaxes etc..Specifically as Fig. 6 shows Go out a kind of schematic diagram of a scenario taken pictures, there are certain parallax when taking pictures under Same Scene using dual camera, leads to double take the photograph There is also differences for the image acquired as head.
It correspondingly, then can be to the initial graph of second camera acquisition to ensure that the preview image of dual camera acquisition is consistent As carrying out image flame detection or image transformation.Specific implementation mode the application about image flame detection/transformation does not limit, such as Image is translated, is rotated, is stretched and projection correction etc..
In an alternative embodiment, it before the first image under starting second camera acquisition HDR scene, can also first synchronize The exposure parameter of the second camera is set.Is set as in S202 specifically, the exposure parameter of second camera is synchronized The exposure parameter (i.e. normal exposure parameter) of one camera, subsequently to obtain the target image (i.e. HDR image) of high quality.
Further, after the second camera obtains the first image, terminal device can carry out pixel to first image The statistics and analysis of brightness, to obtain distribution map of each pixel intensity in the preview image.Optionally, terminal device may be used also It counts/analyzes in the first image of the second camera acquisition with the presence or absence of overexposure and deficient exposure.About first figure As the specific related elaboration that determines condition and can be found in previous embodiment with the presence or absence of overexposure and deficient exposure, no longer go to live in the household of one's in-laws on getting married here It states.
Further, the terminal device can adjust the exposure parameter of second camera according to above-mentioned statistical result.Tool Body is realized as follows:
It, can be by described in reduction (reduction) in the case that described first image (or described preview image) is there are overexposure The exposure parameter of second camera reduces light exposure so that overexposure is not present in the image of follow-up second camera acquisition.It can Choosing, the exposure parameter of second camera after adjustment can be recorded as the first exposure parameter at this time.It is not present about described image For details, reference can be made to the correlations in previous embodiment to illustrate which is not described herein again for fixed condition really for overexposure.
In an alternative embodiment, can also the light exposure of the second camera be directly decreased to default lower exposure limit value, So that overexposure is not present in the image of follow-up second camera acquisition.Wherein, the specific implementation mode for reducing light exposure includes But it is not limited to the mode such as reducing time for exposure (accelerating shutter speed), stop down and reduce sensitivity.
It should be noted that adjustment number the application of the exposure parameter about second camera does not limit.No matter How many times are adjusted, need to ensure that there is no overexposure and/or deficient exposures in the preview image acquired subsequently through second camera.
For example, second camera collects a preview image, the preview image using the time for exposure of 100ms for the first time The pixel intensity of middle all areas is 255, as overexposure image;After single exposure parameter regulation, it is assumed that adjust second and take the photograph As the time for exposure of head is 50ms, other exposure parameters are constant, and the pixel intensity in the preview image of second acquisition becomes 200, but be more than predetermined luminance threshold value (such as 180), i.e., the preview image of second acquisition is still overexposure image.Correspondingly, The time for exposure can be reduced again, until the average value of the pixel intensity of highlight regions is less than in advance in the image of second camera acquisition If luminance threshold, that is, until overexposure being not present.
It correspondingly, can be by improving the in the case that described first image (or described preview image) exists and owes to expose The exposure parameters of two cameras increases light exposure, owes to expose so as in the image of second camera acquisition no longer exist.Optionally, The exposure parameter of second camera after adjustment can be recorded as the second exposure parameter at this time.About described image, there is no owe exposure Determining condition, for details, reference can be made to the correlations in previous embodiment to illustrate which is not described herein again.
In an alternative embodiment, can also the light exposure of the second camera directly be increased into default exposure upper-limit value, It owes to expose so that in the preview image of second camera acquisition no longer existing.Wherein, increase the specific implementation mode packet of light exposure The time for exposure (reducing shutter speed) is included but be not limited to increase, increases aperture, increase the modes such as sensitivity.
Correspondingly, in step S205 and S206, after terminal device receives the photographing instruction of user's triggering, can start First camera is taken pictures using corresponding exposal model.Wherein, the exposure of the exposal model and first camera Parameter corresponds to, i.e., a kind of exposal model corresponds to a kind of exposure parameter of first camera.It that is to say, start the first camera Multiple image is acquired according to the corresponding exposure parameter of the exposal model.
Wherein, the acquisition modes of the exposal model are concretely:It is obtained by the parsing photographing instruction or described Terminal device is obtained by the image before analysis.Such as, it is generally the case that terminal device can select the first exposal model to correspond to Exposure parameter is taken pictures.It, can be certainly when terminal device analyzes in the image that front second camera acquires in the presence of owing to expose dead black It is dynamic that the corresponding exposure parameter of the second exposal model is selected to take pictures etc..In HDR scene, the exposal model of the application proposition There are two types of, concretely the first exposal model and the second exposal model, will specifically be described in detail below.
Specifically, in using the first exposal model, terminal device can be exposed from first exposure parameter to described second It arbitrarily selects multigroup target light exposure parameter between optical parameter, is set to the exposure parameter of the first camera, i.e., described first The exposure parameter (target light exposure parameter) of camera is between first exposure parameter between the second exposure parameter.And then it controls Series of frame images (i.e. at least two field pictures) under the first camera acquisition different target exposure parameter.Wherein, adjacent Two field pictures correspond to the exposure parameter used can be identical, also can be different.
It is to be understood that since the first exposure parameter is by the minimum exposure parameter obtained when image overexposure, the second exposure ginseng The maximum exposure parameter that number is owed to obtain when exposure by image.Therefore the target light exposure parameter is between minimum exposure parameter to most Appoint one or more groups of exposure parameters in making public between optical parameter, exposure parameter when including normal exposure certainly is (before i.e. Normal exposure parameter described in text).It that is to say, under the first exposal model, the first camera is collected from the first exposure parameter Corresponding series of frame images under to the second exposure parameter (including normal exposure parameter).
Correspondingly, in step S206, the terminal device can be used set algorithm and synthesize the series of frame images of acquisition For final target image.The target image is the HDR image that terminal device finally shoots output.Wherein, the setting Algorithm can be user side or the self-defined setting of system side, such as high-dynamics image composition algorithm and image overlay algorithm etc. Deng.
In using the second exposal model, terminal device can arbitrarily be selected from the first exposure parameter between normal exposure parameter Multigroup target light exposure parameter is selected, the exposure parameter of the first camera, i.e., the exposure parameter of described first camera are set to (target light exposure parameter) is between first exposure parameter between normal exposure parameter.In turn, first camera is controlled Acquire the series of frame images (i.e. at least two field pictures) under different target exposure parameter.Wherein, adjacent two field pictures correspondence makes Exposure parameter can be identical, also can be different.But under the second exposal model, it need to acquire and be exposed from the first exposure parameter to normal Corresponding series of frame images under optical parameter, convenient for being synthesized final target image using set algorithm in step S206 (i.e. HDR image).
Exist under the dead black scene of deficient exposure it should be noted that the second exposal model is suitable for image, passes through multiple image Synthesis is to obtain expanding the image of dynamic range.
By implementing the embodiment of the present invention, it can solve that picture quality present in existing HDR photographic methods is poor etc. to ask Topic, to improve the dynamic range and picture quality of image of taking pictures.
Based on previous embodiment, a kind of realization method for the terminal device that the application is applicable in is described below.The terminal is set It is standby to be configured with control module and at least two photographing modules.The photographing module concretely camera, sensor, photosensitive core Piece and other components etc. for being used to take pictures.The above embodiments of the present application are carried out so that the photographing module is camera as an example The detailed description of related embodiment.The control module concretely processor, for realizing the correlation step in Fig. 2 or Fig. 3 embodiments Suddenly, and/or the other technologies content that text describes, such as the above-mentioned statistical analysis etc. to image are realized, do not limited here.
It is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention referring to Fig. 7.Terminal as shown in Figure 7 is set Standby 100 may include:Baseband chip 110, memory 115 (one or more computer readable storage mediums), radio frequency (RF) module 116, peripheral system 117.These components can communicate on one or more communication bus 114.
Peripheral system 117 is mainly used for realizing the interactive function between terminal device 100 and user/external environment, mainly Include the input/output unit of terminal device 100.In the specific implementation, peripheral system 117 may include:Displaying screen controller 118 is taken the photograph As head controller 119, Audio Controller 120 and sensor management module 121.Wherein, each controller can with respectively it is corresponding Peripheral equipment (such as display screen 123, camera 124, voicefrequency circuit 125 and sensor 126) coupling.In some embodiments In, the quantity of camera 124 does not limit, the application concretely two or more here.Camera 124 can be specifically 3D Camera etc..In some embodiments, the display screen that display screen 123 can be conventional, can also be the suspension configured with self-capacitance The touch screen of touch panel can also be the touch screen etc. of the suspension touch control panel configured with infrared-type.It should be noted that outer Peripheral systems 117 can also include other I/O peripheral hardwares.
Baseband chip 110 can integrate including:One or more processors 111, clock module 112 and power management module 113.The clock module 112 being integrated in baseband chip 110 is mainly used for generating data transmission and timing control for processor 111 Required clock.The power management module 113 being integrated in baseband chip 110 is mainly used for as processor 111, radio-frequency module 116 and peripheral system stable, pinpoint accuracy voltage is provided.
Radio frequency (RF) module 116 is mainly integrated with receiver and the transmitting of terminal 100 for sending and receiving radiofrequency signal Device.Radio frequency (RF) module 116 passes through radiofrequency signal and communication network and other communication apparatus communications.In the specific implementation, radio frequency (RF) module 116 may include but be not limited to:Antenna system, RF transceivers, one or more amplifier, tuner, one or more A oscillator, digital signal processor, CODEC chips, SIM card and storage medium etc..It in some embodiments, can be individual Radio frequency (RF) module 116 is realized on chip.
Memory 115 is coupled with processor 111, for storing various software programs and/or multigroup instruction.Specific implementation In, memory 115 may include the memory of high random access, and may also comprise nonvolatile memory, such as one or Multiple disk storage equipments, flash memory device or other non-volatile solid-state memory devices.Memory 115 can store an operating system (following abbreviation systems), such as the embedded OSs such as ANDROID, IOS, WINDOWS or LINUX.Memory 115 is also Network communication program can be stored, which can be used for and one or more optional equipments, one or more terminals Equipment, one or more network equipments are communicated.Memory 115 can also store camera program, and processor 111 can call this Camera program completes the shooting of HDR image.
It should be appreciated that terminal device 100 is only an example provided in an embodiment of the present invention, also, terminal device 100 can With the more or fewer components of component than showing, two or more components can be combined, or there can be component not It is realized with configuration.
A kind of functional block diagram of terminal device provided in an embodiment of the present invention is shown referring to Fig. 8.The function of terminal device Block can implement the present invention program by the combination of hardware, software or hardware and software.Those skilled in the art will appreciate that figure Functional block described in 8 can be combined or be separated into several sub-blocks to implement the present invention program.Therefore, it is retouched above in the present invention The content stated can be supported to any possible combination or separation of following function module or further definition.
Specifically, in conjunction with 7 embodiment of earlier figures, when 115 corresponding functional unit of the memory is storage unit 601, The corresponding functional unit of the baseband chip 110 (concretely processor 111) is processing unit 602, the radio-frequency module 116 When corresponding functional unit is communication unit 603, terminal device 110 as shown in Figure 8 may include:Processing unit 602 and communication unit Member 603.Processing unit 702 to the action of terminal device 110 for carrying out control management.Wherein, processing unit 602 is for supporting Step S201-S206 in step S101-S104, Fig. 2 in the execution of terminal device 110 Fig. 1, and/or it is described herein for executing Technology other steps.Communication unit 603 is used to support the communication of terminal device 110 and miscellaneous equipment, for example, communication unit 603 are used to that terminal device 110 to be supported to obtain the image that they are acquired from the first camera or second camera, and/or are used for Execute other steps of techniques described herein.Optionally, terminal device 110 can also include storage unit 601, for depositing Store up the program code and data of terminal device 110.
Wherein, processing unit 602 can be processor or controller, such as can be central processing unit (English: Central Processing Unit, CPU), general processor, digital signal processor (English:Digital Signal Processor, DSP), application-specific integrated circuit (English:Application-Specific Integrated Circuit, ASIC), field programmable gate array (English:Field Programmable Gate Array, FPGA) or other are programmable Logical device, transistor logic, hardware component or its arbitrary combination.It may be implemented or executes discloses in conjunction with the present invention Various illustrative logic blocks, module and circuit described in content.The processor can also be to realize computing function Combination, such as combined comprising one or more microprocessors, the combination etc. of DSP and microprocessor.Communication unit 603 can be Communication interface, transceiver, transmission circuit etc., wherein communication interface is to be referred to as, and may include one or more interfaces, such as net Interface between network equipment and other equipment.Storage unit 601 can be memory.
Optionally, terminal device as shown in Figure 8 may also include corresponding functional unit in peripheral system 117, not shown. Such as 123 corresponding display unit of display screen, the image obtained for showing camera, such as preview image or HDR image etc.. 114 corresponding camera unit of camera etc., this application involves the quantity of camera unit include two or more etc..
The specific implementation of above-mentioned Fig. 7 or shown in Fig. 8 terminal devices can also be to should refer to the phase of preceding method embodiment It should describe, details are not described herein again.
The step of method in conjunction with described in disclosure of the embodiment of the present invention or algorithm, can be come real in a manner of hardware It is existing, can also be that the mode of software instruction is executed by processor to realize.Software instruction can be made of corresponding software module, Software module can be stored on random access memory (English:Random Access Memory, RAM), flash memory, read-only deposit Reservoir (English:Read Only Memory, ROM), Erasable Programmable Read Only Memory EPROM (English:Erasable Programmable ROM, EPROM), Electrically Erasable Programmable Read-Only Memory (English:Electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM (CD-ROM) or any other form well known in the art are deposited In storage media.A kind of illustrative storage medium is coupled to processor, believes to enable a processor to read from the storage medium Breath, and information can be written to the storage medium.Certainly, storage medium can also be the component part of processor.It processor and deposits Storage media can be located in ASIC.In addition, the ASIC can be located in the network equipment.Certainly, pocessor and storage media also may be used To be present in terminal device as discrete assembly.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.And storage medium above-mentioned includes:ROM、 The various media that can store program code such as RAM, magnetic disc or CD.

Claims (13)

1. a kind of photographic method, which is characterized in that set applied to the terminal being equipped with including the first camera and second camera In standby, the method includes:
Preview image is obtained by the first camera;
In the preview image there are in the case of overexposure, the first exposure parameter is determined by the second camera;Wherein, institute It states the image that the corresponding second camera of the first exposure parameter obtains and overexposure is not present;
Pass through first camera acquisition at least two field pictures;Wherein, at least two field pictures corresponding described first are taken the photograph As the exposure parameter of head is different, and the exposure corresponding to the exposure parameter of corresponding first camera of at least two field pictures Light quantity is greater than or equal to the corresponding light exposure of first exposure parameter;
By at least two field pictures synthesize high dynamic range HDR image described in acquisition.
2. according to the method described in claim 1, it is characterized in that, the preview image there are overexposures to include:
Ratio in the preview image shared by the first highlight regions is greater than or equal to the first preset ratio or the preview graph The average value of the pixel intensity of the second highlight regions is greater than or equal to the first luminance threshold as in;
There is no overexposures to include for the preview image:
Ratio in the preview image shared by the first highlight regions is less than first preset ratio or the preview image In the average value of pixel intensity of the second highlight regions be less than the exposure of first luminance threshold or first camera Amount reaches preset lower limiting value;
Wherein, first highlight regions are the pixel region of highest N number of grayscale in the preview image, and N is positive integer;Institute The region that the second highlight regions are the highest preceding M pixel of brightness in the preview image is stated, M is positive integer.
3. method according to claim 1 or 2, which is characterized in that in the first image that the second camera obtains In the case of there are overexposure, just execution is described determines the first exposure parameter by the second camera.
4. method according to any one of claim 1-3, which is characterized in that the corresponding exposure of at least two field pictures Parameter is between first exposure parameter between normal exposure parameter;Wherein, in the corresponding image of the normal exposure parameter Pixel intensity average value be equal to predetermined luminance threshold value.
5. method according to any one of claim 1-3, which is characterized in that the method further includes:
In the case where the preview image has deficient expose, the second exposure parameter is determined by the second camera;Wherein, institute Stating the image that the corresponding second camera of the first exposure parameter obtains, there is no owe to expose.
6. according to the method described in claim 5, it is characterized in that, the preview image includes in the presence of exposure is owed:
Ratio in the preview image shared by the first half-light region is greater than or equal to the second preset ratio or the preview graph The average value of the pixel intensity in the second half-light region is less than the second luminance threshold as in;
There is no owe to expose to include for the preview image:
Ratio in the preview image shared by the first half-light region is less than in the first preset ratio or the preview image the The average value of the pixel intensity in two half-light regions is greater than or equal to the light exposure of the second luminance threshold or first camera Reach preset upper limit value;
Wherein, first half-light region is the pixel region of Q minimum grayscale in the preview image, and Q is positive integer;Institute The region that the second half-light region is P minimum pixel of brightness in the preview image is stated, P is positive integer.
7. method according to claim 5 or 6, which is characterized in that in the first image that the second camera obtains In the case of there are deficient exposure, just execution is described determines the second exposure parameter by the second camera.
8. according to the method described in any one of claim 5-7, which is characterized in that the corresponding exposure of at least two field pictures Parameter is between first exposure parameter between second exposure parameter.
9. the method according to claim 3 or 7, which is characterized in that described first image is the second camera just The image obtained under normal exposure parameter, preview image first camera obtain under the normal exposure parameter Image, the normal exposure parameter make the average value of the pixel intensity in the preview image be equal to predetermined luminance threshold value.
10. according to the method described in claim 9, it is characterized in that, described first image obtains after image converts Image, described first image are consistent with the spatial character of the picture material of the preview image.
11. a kind of terminal device, which is characterized in that at least two camera shootings including the first camera and second camera The processor that head further includes memory and is coupled with the memory and at least two camera;The memory is used for Store instruction, the processor are led to for executing described instruction with first camera and the second camera Letter;Wherein, the method described in any one of claim 1-10 as above is executed when the processor executes described instruction.
12. terminal device according to claim 11, which is characterized in that the terminal device further includes and the processor The display of coupling, the display under the control of the processor for showing first camera or described second taking the photograph As the image that head obtains, alternatively, showing the HDR image corresponded to when the processor executes the method.
13. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In any one of such as claims 1 to 10 of realization the method when the computer program is executed by processor.
CN201810257073.7A 2018-03-26 2018-03-26 Photographing method, related device and computer storage medium Expired - Fee Related CN108337445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810257073.7A CN108337445B (en) 2018-03-26 2018-03-26 Photographing method, related device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810257073.7A CN108337445B (en) 2018-03-26 2018-03-26 Photographing method, related device and computer storage medium

Publications (2)

Publication Number Publication Date
CN108337445A true CN108337445A (en) 2018-07-27
CN108337445B CN108337445B (en) 2020-06-26

Family

ID=62931571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810257073.7A Expired - Fee Related CN108337445B (en) 2018-03-26 2018-03-26 Photographing method, related device and computer storage medium

Country Status (1)

Country Link
CN (1) CN108337445B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881701A (en) * 2018-09-30 2018-11-23 华勤通讯技术有限公司 Image pickup method, camera, terminal device and computer readable storage medium
CN108900785A (en) * 2018-09-18 2018-11-27 Oppo广东移动通信有限公司 Exposal control method, device and electronic equipment
CN109862269A (en) * 2019-02-18 2019-06-07 Oppo广东移动通信有限公司 Image-pickup method, device, electronic equipment and computer readable storage medium
CN110049240A (en) * 2019-04-03 2019-07-23 Oppo广东移动通信有限公司 Camera control method, device, electronic equipment and computer readable storage medium
CN110225248A (en) * 2019-05-29 2019-09-10 Oppo广东移动通信有限公司 Image-pickup method and device, electronic equipment, computer readable storage medium
CN110958400A (en) * 2019-12-13 2020-04-03 上海海鸥数码照相机有限公司 System, method and device for keeping exposure of continuously shot pictures consistent
CN112492208A (en) * 2020-11-30 2021-03-12 维沃移动通信有限公司 Shooting method and electronic equipment
CN113364964A (en) * 2020-03-02 2021-09-07 RealMe重庆移动通信有限公司 Image processing method, image processing apparatus, storage medium, and terminal device
WO2021185374A1 (en) * 2020-03-20 2021-09-23 华为技术有限公司 Image capturing method and electronic device
CN114785963A (en) * 2022-06-22 2022-07-22 武汉市聚芯微电子有限责任公司 Exposure control method, terminal and storage medium
EP3975547A4 (en) * 2019-06-06 2022-11-30 Guangdong Oppo Mobile Telecommunications Corp., Ltd. High dynamic range (hdr) image generation method and apparatus, and electronic device and computer-readable storage medium
CN115767262A (en) * 2022-10-31 2023-03-07 华为技术有限公司 Photographing method and electronic equipment
WO2023065994A1 (en) * 2021-10-21 2023-04-27 华为技术有限公司 Ultraviolet detection method and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014138695A1 (en) * 2013-03-08 2014-09-12 Pelican Imaging Corporation Systems and methods for measuring scene information while capturing images using array cameras
CN104937921A (en) * 2013-12-06 2015-09-23 华为终端有限公司 Terminal, image processing method, and image acquisition method
CN107395998A (en) * 2017-08-24 2017-11-24 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
CN107454343A (en) * 2014-11-28 2017-12-08 广东欧珀移动通信有限公司 Photographic method, camera arrangement and terminal
CN107465882A (en) * 2017-09-22 2017-12-12 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
US20170374257A1 (en) * 2016-06-23 2017-12-28 National Chiao Tung University Method for adjusting exposure of camera device
CN107613218A (en) * 2017-09-15 2018-01-19 维沃移动通信有限公司 The image pickup method and mobile terminal of a kind of high dynamic range images

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014138695A1 (en) * 2013-03-08 2014-09-12 Pelican Imaging Corporation Systems and methods for measuring scene information while capturing images using array cameras
CN104937921A (en) * 2013-12-06 2015-09-23 华为终端有限公司 Terminal, image processing method, and image acquisition method
CN107454343A (en) * 2014-11-28 2017-12-08 广东欧珀移动通信有限公司 Photographic method, camera arrangement and terminal
US20170374257A1 (en) * 2016-06-23 2017-12-28 National Chiao Tung University Method for adjusting exposure of camera device
CN107395998A (en) * 2017-08-24 2017-11-24 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
CN107613218A (en) * 2017-09-15 2018-01-19 维沃移动通信有限公司 The image pickup method and mobile terminal of a kind of high dynamic range images
CN107465882A (en) * 2017-09-22 2017-12-12 维沃移动通信有限公司 A kind of image capturing method and mobile terminal

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900785A (en) * 2018-09-18 2018-11-27 Oppo广东移动通信有限公司 Exposal control method, device and electronic equipment
CN108881701B (en) * 2018-09-30 2021-04-02 华勤技术股份有限公司 Shooting method, camera, terminal device and computer readable storage medium
CN108881701A (en) * 2018-09-30 2018-11-23 华勤通讯技术有限公司 Image pickup method, camera, terminal device and computer readable storage medium
WO2020168967A1 (en) * 2019-02-18 2020-08-27 Oppo广东移动通信有限公司 Image acquisition method, electronic device, and computer-readable storage medium
EP3896955A4 (en) * 2019-02-18 2022-03-09 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Image acquisition method, electronic device, and computer-readable storage medium
CN109862269A (en) * 2019-02-18 2019-06-07 Oppo广东移动通信有限公司 Image-pickup method, device, electronic equipment and computer readable storage medium
US11431915B2 (en) 2019-02-18 2022-08-30 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Image acquisition method, electronic device, and non-transitory computer readable storage medium
CN110049240B (en) * 2019-04-03 2021-01-26 Oppo广东移动通信有限公司 Camera control method and device, electronic equipment and computer readable storage medium
CN110049240A (en) * 2019-04-03 2019-07-23 Oppo广东移动通信有限公司 Camera control method, device, electronic equipment and computer readable storage medium
CN110225248A (en) * 2019-05-29 2019-09-10 Oppo广东移动通信有限公司 Image-pickup method and device, electronic equipment, computer readable storage medium
CN110225248B (en) * 2019-05-29 2021-11-16 Oppo广东移动通信有限公司 Image acquisition method and device, electronic equipment and computer readable storage medium
EP3975547A4 (en) * 2019-06-06 2022-11-30 Guangdong Oppo Mobile Telecommunications Corp., Ltd. High dynamic range (hdr) image generation method and apparatus, and electronic device and computer-readable storage medium
CN110958400A (en) * 2019-12-13 2020-04-03 上海海鸥数码照相机有限公司 System, method and device for keeping exposure of continuously shot pictures consistent
CN110958400B (en) * 2019-12-13 2021-11-23 上海海鸥数码照相机有限公司 System, method and device for keeping exposure of continuously shot pictures consistent
CN113364964A (en) * 2020-03-02 2021-09-07 RealMe重庆移动通信有限公司 Image processing method, image processing apparatus, storage medium, and terminal device
CN113364964B (en) * 2020-03-02 2023-04-07 RealMe重庆移动通信有限公司 Image processing method, image processing apparatus, storage medium, and terminal device
WO2021185374A1 (en) * 2020-03-20 2021-09-23 华为技术有限公司 Image capturing method and electronic device
CN112492208A (en) * 2020-11-30 2021-03-12 维沃移动通信有限公司 Shooting method and electronic equipment
WO2023065994A1 (en) * 2021-10-21 2023-04-27 华为技术有限公司 Ultraviolet detection method and electronic device
CN114785963A (en) * 2022-06-22 2022-07-22 武汉市聚芯微电子有限责任公司 Exposure control method, terminal and storage medium
CN114785963B (en) * 2022-06-22 2022-09-30 武汉市聚芯微电子有限责任公司 Exposure control method, terminal and storage medium
CN115767262A (en) * 2022-10-31 2023-03-07 华为技术有限公司 Photographing method and electronic equipment
CN115767262B (en) * 2022-10-31 2024-01-16 华为技术有限公司 Photographing method and electronic equipment

Also Published As

Publication number Publication date
CN108337445B (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN108337445A (en) Photographic method, relevant device and computer storage media
CN109218628B (en) Image processing method, image processing device, electronic equipment and storage medium
US11375128B2 (en) Method for obtaining exposure compensation values of high dynamic range image, terminal device and non-transitory computer-readable storage medium
US11128809B2 (en) System and method for compositing high dynamic range images
CN106060249B (en) Photographing anti-shake method and mobile terminal
CN109218627B (en) Image processing method, image processing device, electronic equipment and storage medium
CN104853106B (en) A kind of information processing method and electronic equipment
WO2019148978A1 (en) Image processing method and apparatus, storage medium and electronic device
CN109729274B (en) Image processing method, image processing device, electronic equipment and storage medium
CN111669514B (en) High dynamic range imaging method and apparatus
US20180109711A1 (en) Method and device for overexposed photography
CN105227857B (en) A kind of method and apparatus of automatic exposure
CN102420944A (en) High dynamic-range image synthesis method and device
CN111107265B (en) Image processing method and device, computer readable medium and electronic equipment
US20220094838A1 (en) Method, Electronic Device and Computer-Readable Storage Medium for Generating a High Dynamic Range Image
KR102207633B1 (en) Image photographing apparatus and control methods thereof
CN107888839B (en) high dynamic range image acquisition method, device and equipment
US11601600B2 (en) Control method and electronic device
CN112818732A (en) Image processing method and device, computer equipment and storage medium
WO2021128593A1 (en) Facial image processing method, apparatus, and system
CN113411498A (en) Image shooting method, mobile terminal and storage medium
CN103945116A (en) Apparatus and method for processing image in mobile terminal having camera
CN110971833B (en) Image processing method and device, electronic equipment and storage medium
US20170163852A1 (en) Method and electronic device for dynamically adjusting gamma parameter
CN104104880A (en) Mobile terminal and shooting method thereof

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200626