CN107395998A - A kind of image capturing method and mobile terminal - Google Patents

A kind of image capturing method and mobile terminal Download PDF

Info

Publication number
CN107395998A
CN107395998A CN201710736370.5A CN201710736370A CN107395998A CN 107395998 A CN107395998 A CN 107395998A CN 201710736370 A CN201710736370 A CN 201710736370A CN 107395998 A CN107395998 A CN 107395998A
Authority
CN
China
Prior art keywords
exposure parameter
camera
exposure
main camera
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.)
Pending
Application number
CN201710736370.5A
Other languages
Chinese (zh)
Inventor
费勇超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710736370.5A priority Critical patent/CN107395998A/en
Publication of CN107395998A publication Critical patent/CN107395998A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/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 present invention provides a kind of image capturing method and mobile terminal, wherein, described image image pickup method includes:Receive shooting instruction, whether the automatic exposure for detecting the main camera and the secondary camera is in synchronous regime, if detecting, the automatic exposure of the main camera and the secondary camera is in synchronous regime, the first view data of the main camera shooting and the second view data of the secondary camera shooting are obtained respectively, described first image data and second view data are synthesized, obtain composograph.The solution of the present invention, can not only be by the dynamic range of the final composograph of zzHDR functional promotions, avoid because the dynamic range effect of composograph caused by the factors such as time difference, hand shaking is poor, so as to obtain the preferable high dynamic range images of dynamic range effect, additionally it is possible to be reduced to the loss of the definition of composograph by dual camera minimum.

Description

A kind of image capturing method and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of image capturing method and mobile terminal.
Background technology
With the development of terminal technology, terminal camera turns into mobile terminal, such as mobile phone, notebook computer, can wear A basic standard configuration of equipment etc. is worn, increasing user's custom is taken pictures using terminal camera, the work to people While bringing great convenience with life, user is also more and more to the demand of taking pictures.
At present, terminal camera mostly supports HDR (High Dynamic Range, HDR) exposal model.HDR Image can provide more dynamic ranges and image detail, according to the low dynamic of different exposure time compared to normal image Scope (Low Dynamic Range, LDR) image, synthesized using the LDR image of corresponding optimal details of each time for exposure Final HDR image, the visual effect that can preferably reflect in people's true environment.
In order to obtain HDR image, the image of the different exposure time more than same width of camera continuous shooting two of generally use will Two width above time for exposure different image carries out algorithm overlap-add procedure, the figure that dark images part is grown from the time for exposure after having clapped As obtaining, it is ensured that brightness, image obtain compared with bright part from time for exposure short image, it is ensured that will not be over-exposed, and two Into processing, finally give a width all has the HDR image of details in dash area or bloom part for division.But due to In shooting process, the two images of continuous shooting can cause more than two width due to time difference or due to photographer's hand shaking etc. Scope captured by image has differences, or the content shot because scene is mobile changes, and causes composograph Dynamic range effect is poor.
The content of the invention
The embodiment of the present invention provides a kind of image capturing method and mobile terminal, with solve existing image capturing method by The problem of dynamic range effect of shooting image caused by the factors such as time difference, hand shaking in shooting process is poor.
In a first aspect, the embodiments of the invention provide a kind of image capturing method, taken the photograph applied to including main camera and pair As the mobile terminal of head, at least one camera in the main camera and the secondary camera supports zzHDR functions, described Method includes:
Receive shooting instruction;
Whether the automatic exposure for detecting the main camera and the secondary camera is in synchronous regime;
If detecting, the automatic exposure of the main camera and the secondary camera is in synchronous regime, respectively described in acquisition First view data of main camera shooting and the second view data of the secondary camera shooting;
Described first image data and second view data are synthesized, obtain composograph.
Second aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, including main camera and secondary camera, described At least one camera in main camera and the secondary camera supports zzHDR functions, and the mobile terminal also includes:
Receiving module, for receiving shooting instruction;
Whether detection module, the automatic exposure for detecting the main camera and the secondary camera are in synchronous shape State;
Acquisition module, for being in synchronous regime when the automatic exposure for detecting the main camera and the secondary camera When, the first view data of the main camera shooting and the second view data of the secondary camera shooting are obtained respectively;
Synthesis module, for being synthesized to described first image data and second view data, obtain composite diagram Picture.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including memory, processor and are stored in institute The computer program that can be run on memory and on the processor is stated, wherein, the computer program is by the processor The step of above-mentioned image capturing method is realized during execution.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, described computer-readable to deposit Computer program is stored with storage media, the computer program realizes the step of above-mentioned image capturing method when being executed by processor Suddenly.
The image capturing method of the embodiment of the present invention, because mobile terminal includes main camera and secondary camera, main shooting At least one camera in head and secondary camera supports zzHDR functions, therefore by receiving shooting instruction, detects main camera Whether the automatic exposure with secondary camera is in synchronous regime, and synchronous shape is in the automatic exposure of main camera and secondary camera During state, the first view data of main camera shooting and the second view data of secondary camera shooting are obtained respectively, to the first figure As data and the second view data are synthesized, composograph is obtained, can not only be by the final composite diagram of zzHDR functional promotions The dynamic range of picture, avoid because the dynamic range effect of composograph caused by the factors such as time difference, hand shaking is poor, so as to To the preferable high dynamic range images of dynamic range effect, additionally it is possible to by dual camera by the loss of the definition of composograph It is reduced to minimum.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, it will make below to required in the embodiment of the present invention Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 represents the flow chart of an image capturing method of the embodiment of the present invention;
Fig. 2 represents the flow chart of another image capturing method of the embodiment of the present invention;
Fig. 3 represents one of structural representation of mobile terminal of the embodiment of the present invention;
Fig. 4 represents the two of the structural representation of the mobile terminal of the embodiment of the present invention;
Fig. 5 represents the three of the structural representation of the mobile terminal of the embodiment of the present invention;
Fig. 6 represents the four of the structural representation of the mobile terminal of the embodiment of the present invention.
Embodiment
In order to illustrate the technical solution of the embodiments of the present invention more clearly, it will make below to required in the embodiment of the present invention Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
For the ease of understanding the embodiment of the present invention, first to the present embodiments relate to some contents illustrate.
Wherein, HDR (i.e. zzHDR) technology of zigzag is current newest HDR technologies, supports to expose from photosensitive unit end To lift the dynamic range of shooting image.ZzHDR exposure includes long exposure and short exposure, and piece image is divided into difference Two sub-pictures of exposure parameter, synthesized when obtaining final shooting image, then by two sub-picture, due to the two secondary figure As being obtained by photosensitive unit simultaneously, therefore time difference, content of shooting can be avoided to have differences, obtain the preferable high dynamic of effect Range image.But because zzHDR is that piece image is divided into two parts, a part carries out growing exposure, and another part carries out short exposure Light, therefore this two-part composograph can have loss in resolution ratio, also relatively be difficult to ensure that card closes even if optimal composition algorithm Into image co-registration to former resolution ratio, i.e., there is loss in the high dynamic range images obtained by zzHDR in definition.
In addition, according to zzHDR principles, only in exposure parameter phase corresponding to exposure parameter corresponding to long exposure and short exposure With in the case of, i.e., it is conventional shoot (only a kind of exposure parameter of a two field picture) in the case of, the definition of final shooting image is just not There can be loss.
The present embodiments relate to main camera and secondary camera be only used for distinguish dual camera, not to camera carry out Concrete restriction, the difference of major-minor camera can be carried out in actual application according to actual conditions.Specifically, the embodiment of the present invention In the assembled scheme of dual camera can be as shown in table 1 below, and can be selected according to actual conditions.
Table 1
Wherein, RGB/Mono represents the different type of photosensitive unit, and RGB is color sensitive unit, and Mono is that black and white is photosensitive Unit;Greatly/small size for representing photosensitive unit, wherein the photosensitive unit of identical size may be selected in main camera and secondary camera, Also various sizes of photosensitive unit may be selected;Nomral/zzHDR represents that camera is the function that photosensitive unit is supported, wherein propping up The photosensitive unit for holding zzHDR functions all supports conventional shooting, and zzHDR mainly contributes in dynamic range, therefore the present invention is real At least one camera applied in the dual camera of example supports zzHDR functions.
It is shown in Figure 1, the embodiments of the invention provide a kind of image capturing method, applied to including main camera and pair The mobile terminal of camera, wherein, at least one camera in main camera and secondary camera supports zzHDR functions, the figure As image pickup method comprises the following steps:
Step 101:Receive shooting instruction.
Wherein, shooting instruction is that user confirms to input to mobile terminal when taking pictures, and can take pictures button etc. for click.Defeated Before entering shooting instruction, user can carry out preview to shooting image, and preview data selects main camera or secondary camera to adopt The view data collected.Original of the view data that a camera in selection dual camera collects as preview data Because:Preview data only plays a part of reference, according to dual camera composograph data as preview data, due to closing The resources such as processor, internal memory can be taken into view data, therefore previews can be caused to take excessive terminal resource, are influenceed follow-up Take pictures process.After shooting instruction is received, main camera and secondary camera can shooting images.
Step 102:Whether the automatic exposure for detecting main camera and secondary camera is in synchronous regime.
Wherein, because the view data that the embodiment of the present invention will be shot to main camera and secondary camera synthesizes, because Existence time difference and bat between this view data shot in order to avoid main camera and the view data of secondary camera shooting Content deltas etc. is taken the photograph, avoids composograph from deforming, before the view data of main camera and the shooting of secondary camera is obtained, Whether the automatic exposure that can detect main camera and secondary camera is in synchronous regime, and is detecting main camera and secondary shooting The automatic exposure of head is in synchronous regime, obtains the view data of main camera and the shooting of secondary camera respectively.
Step 103:If detecting, the automatic exposure of main camera and secondary camera is in synchronous regime, obtains master respectively First view data of camera shooting and the second view data of secondary camera shooting.
Wherein, main camera and secondary camera can shoot to obtain HDR in shooting image with a camera Image, another camera shoot to obtain picture rich in detail, can also two cameras photograph can synthesize HDR respectively The picture rich in detail of image.Specifically, when main camera and secondary camera work simultaneously, at least one camera utilizes zzHDR Function.
It should be noted that the view data obtained in this step can be raw forms or YUV domains, and follow-up Image synthesizing procedure can be completed in any one domain.When obtaining the view data of major-minor camera shooting, major-minor camera The view data of shooting can be respectively enterd after different links carries out image real time transfer and is acquired again.
Step 104:First view data and the second view data are synthesized, obtain composograph.
Wherein, obtain the first view data of main camera shooting and the shooting of secondary camera the second view data it Afterwards, mobile terminal can synthesize to the first view data and the second view data, obtain composograph.Calculated as synthesis Method, existing image composition algorithm can be used.If not high to requirement of real time, the process of composograph can be in image file or figure As being completed in data processing ISP flows.In addition, the process of composograph can also be carried out before JPG codings, to weaken user Perception to the time required for synthesis.
Further, after composograph is obtained, mobile terminal can carry out conventional encoding and decoding to composograph and handle And storage, subsequently to check use.
The image capturing method of the embodiment of the present invention, because mobile terminal includes main camera and secondary camera, main shooting At least one camera in head and secondary camera supports zzHDR functions, therefore by receiving shooting instruction, detects main camera Whether the automatic exposure with secondary camera is in synchronous regime, and synchronous shape is in the automatic exposure of main camera and secondary camera During state, the first view data of main camera shooting and the second view data of secondary camera shooting are obtained respectively, to the first figure As data and the second view data are synthesized, composograph is obtained, can not only be by the final composite diagram of zzHDR functional promotions The dynamic range of picture, avoid because the dynamic range effect of composograph caused by the factors such as time difference, hand shaking is poor, so as to To the preferable high dynamic range images of dynamic range effect, additionally it is possible to by dual camera by the loss of the definition of composograph It is reduced to minimum.
In the embodiment of the present invention, further, if detecting, the automatic exposure of main camera and secondary camera is not in together Step state, in order to ensure the effect of composograph, then the automatic exposure of main camera and secondary camera can be first controlled to be in synchronous State, then the first view data of main camera shooting and the second view data of secondary camera shooting are obtained respectively.Specifically, After step 102, methods described also includes:
If detecting, the automatic exposure of main camera and secondary camera is not in synchronous regime, controls main camera and pair The automatic exposure of camera is in synchronous regime.
Wherein, after the automatic exposure of the main camera of control and secondary camera is in synchronous regime, mobile terminal difference Obtain the first view data of main camera shooting and the second view data of secondary camera shooting.
It should be noted that when controlling the automatic exposure of main camera and secondary camera to be in synchronous regime, can use Software controls, and can also use hardware controls.Automatic exposure commissioning requirements of the software control to major-minor camera are higher, exposing Debugging is synchronized on light strategy.Hardware controls can be the exposure parameter for setting major-minor camera simultaneously, so compared to soft Part is controlled, and hardware controls easily realize that control is synchronous, and both time differences can be easily controlled stable inside certain limit.
So, obtain main camera and secondary camera shooting view data before, it is ensured that major-minor camera it is automatic Exposure is in synchronous regime, can avoid depositing between the view data of main camera shooting and the view data of secondary camera shooting In time difference and content of shooting difference etc., ensure composograph effect.
Shown in Figure 2 in the embodiment of the present invention, before step 101, methods described also comprises the following steps:
Step 201:Determine light-metering camera.
Wherein, main camera or secondary camera of the light-metering camera for support zzHDR functions.Taken the photograph as main camera and pair , can as shown in Table 1 above as the assembled scheme of head, the embodiment of the present invention is limited not to this.
Step 202:Light-metering is carried out using light-metering camera, obtains photometry result.
Wherein, light-metering is mainly the brightness for the current frame image for calculating the collection of light-metering camera, and judges current frame image Brightness whether reach preset target brightness., need to be according to preset rules, such as by exposure if being not reaching to preset target brightness Parameter adjustment table or exposure parameter adjustment step etc., adjust the exposure parameter of light-metering camera, carry out the convergence of automatic exposure, So that the brightness of the image of light-metering camera collection reaches preset target brightness.The preset target brightness is mobile terminal according to reality Border situation is pre-set.
It is noted that for major-minor camera, in the case where dual camera works simultaneously, due to a support ZzHDR functions, another supports conventional shooting, therefore can be with dual camera light-metering simultaneously, photometry result synthesis two in light-metering The result of person considers.Generally in the case where time for exposure and yield value are more or less the same, two photometry results be relatively, can There can be nuance, but mainly the photometry result of the camera to support zzHDR functions is defined.Under some special screnes, such as The serious scene of backlight, due to the survey of the camera of the photometry result of camera supporting routinely to shoot with supporting zzHDR functions The difference of light result is larger, and the photometry result for the camera for supporting routinely to shoot is closer to reality, therefore can combine actual field The photometry result of the camera routinely shot is supported in scape selection.
Step 203:It is bright that if the brightness of the current frame image of photometry result instruction light-metering camera collection reaches goal-selling Degree, then according to the current frame image, determine the first exposure parameter and the second exposure parameter.
Wherein, the first exposure parameter is exposure parameter corresponding to long exposure, and the second exposure parameter is to be exposed corresponding to short exposure The brightness value that the ratio of optical parameter, the first exposure parameter and the second exposure parameter is equal in the current frame image is more than or equal to pre- If the pixel count in the highlight regions of threshold value is less than the ratio of the pixel count in the low bright area of the predetermined threshold value with brightness value.
, can first will be current when determining the first exposure parameter and the second exposure parameter specifically, according to current frame image Normal exposure parameter corresponding to two field picture is defined as first exposure parameter, is then exposed in conjunction with the first exposure parameter and second The ratio of parameter, second exposure parameter is determined, or normal exposure parameter corresponding to current frame image is defined as this first Second exposure parameter, then in conjunction with the first exposure parameter and the ratio of the second exposure parameter, determine first exposure parameter.By Taken the photograph in traditional pair under HDR patterns, determine that long exposure parameter T1 and short exposure parameter T2 method is similar to AE-Bracket methods, I.e. after T1 is calculated, T2=T1*m, m are a constant or the variable simply to float, therefore compared to existing method, the present invention The flexibility of the exposure parameter of determination first of embodiment and the method for the second exposure parameter is higher, it is determined that exposure parameter it is more accurate Really, final image synthetic effect is more preferable.
Step 204:According to the first exposure parameter and the second exposure parameter, the exposure of main camera and secondary camera is set respectively Optical parameter.
Wherein, according to the first exposure parameter and the second exposure parameter, the exposure of main camera and secondary camera is set respectively During optical parameter, in order to ensure that composograph is high dynamic range images and loss of sharpness is very small, main camera and secondary shooting The exposure parameter of head at least needs to meet following condition:(the exposure of i.e. main camera in the exposure parameter of main camera and secondary camera The exposure parameter of optical parameter and secondary camera is combined) the first exposure parameter and the second exposure parameter are comprised at least, and master takes the photograph As at least one camera in head and secondary camera only sets a kind of exposure parameter.It should be noted that main camera and pair are taken the photograph As the exposure parameter of head comprises at least time for exposure and yield value.
Specifically, when main camera is light-metering camera, step 204 may include:
The exposure parameter of the main camera is arranged to first exposure parameter and second exposure by mobile terminal Parameter, while the exposure parameter of the secondary camera is arranged to first exposure parameter, second exposure parameter or institute State the 3rd exposure parameter corresponding to the current frame image of secondary camera collection;Wherein, the 3rd exposure parameter is by secondary camera root It is calculated according to itself light-metering process, can is that the current frame image (brightness reaches preset target brightness) of secondary camera collection is corresponding Normal exposure parameter.
So, the first exposure parameter and the second exposure parameter are arranged to the camera of a support zzHDR function simultaneously, So lifting the image synthesizing section of dynamic range can be carried out at the photosensitive unit end of the camera or raw domains, the camera It is high dynamic range images to shoot obtained image, and another camera is due to only setting a kind of exposure parameter, therefore shooting Obtained image is picture rich in detail.So the composograph that thus dual camera obtains is high dynamic range images and definition Loss is very small.
Further, existing double HDR image composition algorithms of taking the photograph often utilize Feature Points Matching, but remove and utilize Feature Points Matching Outside, also need the brightness to each pixel to select to judge, that is, determine how pixel after calculating synthesis in two images Brightness, with reach improve dynamic range effect.But due in the embodiment of the present invention, by by the first exposure parameter and second Exposure parameter is arranged at the camera of a support zzHDR function simultaneously, and the camera can shoot obtained HDR figure Picture, therefore the image synthesizing procedure in the embodiment of the present invention can only carry out Feature Points Matching, when being synthesized so as to save image Between.In addition, the image synthesizing procedure in the embodiment of the present invention is also conceivable to sharpening etc., synthetic effect is lifted.
Specifically, in the embodiment of the present invention, step 104 may include:
By Feature Points Matching, described first image data and second view data are subjected to image synthesis, obtained The composograph.
So, image synthesizing procedure is realized by Feature Points Matching, image generated time can be saved.
Or the exposure parameter of the main camera is arranged to first exposure parameter by mobile terminal, while by institute The exposure parameter for stating secondary camera is second exposure parameter.
Or the exposure parameter of the main camera is arranged to second exposure parameter by mobile terminal, while by institute The exposure parameter for stating secondary camera is arranged to first exposure parameter.
So, the first exposure parameter and the second exposure parameter are respectively arranged at main camera and secondary camera, due to One exposure parameter and the second exposure parameter correspond respectively to long exposure and short exposure, and are respectively in major-minor camera, therefore The dynamic range effect of final composograph is preferably and loss of sharpness is very small, and compared to by the first exposure parameter and second Exposure parameter is arranged at main camera or secondary camera simultaneously, can save the image co-registration process of camera under zzHDR patterns, letter Change terminal operation.
Corresponding, when secondary camera is light-metering camera, step 204 may include:
The exposure parameter of the secondary camera is arranged to first exposure parameter and second exposure by mobile terminal Parameter, while the exposure parameter of the main camera is arranged to first exposure parameter, second exposure parameter or institute State the 4th exposure parameter corresponding to the current frame image of main camera collection;Wherein, the 4th exposure parameter is by main camera root It is calculated according to itself light-metering process, can is that the current frame image (brightness reaches preset target brightness) of main camera collection is corresponding Normal exposure parameter;
Or the exposure parameter of the main camera is arranged to first exposure parameter by mobile terminal, while by institute The exposure parameter for stating secondary camera is second exposure parameter;
Or the exposure parameter of the main camera is arranged to second exposure parameter by mobile terminal, while by institute The exposure parameter for stating secondary camera is arranged to first exposure parameter.
The image capturing method of the present invention is illustrated above-described embodiment, below in conjunction with embodiment and accompanying drawing pair with Mobile terminal corresponding to the image capturing method of the present invention illustrates.
Shown in Figure 3, the embodiment of the present invention additionally provides a kind of mobile terminal, including main camera and secondary camera, Wherein, at least one camera in the main camera and the secondary camera supports zzHDR functions, and the mobile terminal is also Including receiving module 31, detection module 32, acquisition module 33 and synthesis module 34.
Wherein, the receiving module 31, for receiving shooting instruction.
The detection module 32, for whether detecting the automatic exposure of the main camera and the secondary camera in same Step state.
The acquisition module 33, for being in same when the automatic exposure for detecting the main camera and the secondary camera During step state, the first view data of the main camera shooting and the second picture number of the secondary camera shooting are obtained respectively According to.
The synthesis module 34, for being synthesized to described first image data and second view data, obtain Composograph.
The mobile terminal of the embodiment of the present invention, due to including main camera and secondary camera, and main camera and secondary image At least one camera in head supports zzHDR functions, therefore by receiving shooting instruction, detects main camera and secondary camera Automatic exposure whether be in synchronous regime, when the automatic exposure of main camera and secondary camera is in synchronous regime, respectively The first view data of main camera shooting and the second view data of secondary camera shooting are obtained, to the first view data and the Two view data are synthesized, and obtain composograph, can not only be by the dynamic model of the final composograph of zzHDR functional promotions Enclose, avoid because the dynamic range effect of composograph caused by the factors such as time difference, hand shaking is poor, so as to obtain dynamic range The preferable high dynamic range images of effect, additionally it is possible to be reduced to the loss of the definition of composograph most by dual camera It is low.
Shown in Figure 4 in the embodiment of the present invention, the mobile terminal also includes the first determining module 35, light-metering module 36th, the second determining module 37 and setup module 38.
Wherein, first determining module 35, for determining light-metering camera;Wherein, the light-metering camera is support The main camera or the secondary camera of zzHDR functions.
The light-metering module 36, for carrying out light-metering using the light-metering camera, obtain photometry result.
Second determining module 37, for indicating the present frame figure of the light-metering camera collection when the photometry result When the brightness of picture reaches preset target brightness, according to the current frame image, the first exposure parameter and the second exposure parameter are determined.
The setup module 38, for according to first exposure parameter and second exposure parameter, setting institute respectively State the exposure parameter of main camera and the secondary camera.
Wherein, first exposure parameter is exposure parameter corresponding to long exposure, and second exposure parameter is short exposure The ratio of corresponding exposure parameter, first exposure parameter and second exposure parameter is equal in the current frame image The pixel count that brightness value is more than or equal in the highlight regions of predetermined threshold value is less than the low clear zone of the predetermined threshold value with brightness value The ratio of pixel count in domain.
Specifically, the main camera is the light-metering camera;The setup module 37 is specifically used for:
The exposure parameter of the main camera is arranged to first exposure parameter and second exposure parameter, simultaneously The exposure parameter of the secondary camera is arranged to first exposure parameter, second exposure parameter or the secondary camera 3rd exposure parameter corresponding to the current frame image of collection;
Or the exposure parameter of the main camera is arranged to first exposure parameter, while the pair is imaged The exposure parameter of head is second exposure parameter;
Or the exposure parameter of the main camera is arranged to second exposure parameter, while the pair is imaged The exposure parameter of head is arranged to first exposure parameter.
Specifically, the secondary camera is the light-metering camera;The setup module 37 is specifically used for:
The exposure parameter of the secondary camera is arranged to first exposure parameter and second exposure parameter, simultaneously The exposure parameter of the main camera is arranged to first exposure parameter, second exposure parameter or the main camera 4th exposure parameter corresponding to the current frame image of collection;
Or the exposure parameter of the main camera is arranged to first exposure parameter, while the pair is imaged The exposure parameter of head is second exposure parameter;
Or the exposure parameter of the main camera is arranged to second exposure parameter, while the pair is imaged The exposure parameter of head is arranged to first exposure parameter.
In the embodiment of the present invention, the mobile terminal also includes control module.
The control module, for being not in together when the automatic exposure for detecting the main camera and the secondary camera During step state, the automatic exposure of the control main camera and the secondary camera is in synchronous regime.
Optionally, the synthesis module 34 is specifically used for:
By Feature Points Matching, described first image data and second view data are subjected to image synthesis, obtained The composograph.
The embodiment of the present invention additionally provides a kind of mobile terminal, including main camera and secondary camera, wherein, the movement Terminal also includes processor, memory and is stored in the computer journey that can be run on the memory and on the processor Sequence, each process of above-mentioned image capturing method embodiment, and energy are realized when the computer program is by the computing device Reach identical technique effect, to avoid repeating, repeat no more here.
Specifically, Fig. 5 is the structural representation of the mobile terminal of the embodiment of the present invention.Mobile terminal 500 shown in Fig. 5 wraps Include:At least one processor 501, memory 502, user interface 503, at least one network interface 504 and camera 506.Move Each component in dynamic terminal 500 is coupled by bus system 505.It is understood that bus system 505 is used to realize these Connection communication between component.Bus system 505 is in addition to including data/address bus, in addition to power bus, controlling bus and shape State signal bus.But for the sake of clear explanation, various buses are all designated as bus system 505 in Figure 5.
Wherein, user interface 503 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
Camera 506 includes main camera 5061 and secondary camera 5062, in main camera 5061 and secondary camera 5062 At least one camera support zzHDR functions.
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or it may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 502 of system and method described herein be intended to including but not limited to these and it is any its It is adapted to the memory of type.
In some embodiments, memory 502 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 5021 and application program 5022.
Wherein, operating system 5021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used for Realize various basic businesses and the hardware based task of processing.Application program 5022, include various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 5022.
In embodiments of the present invention, mobile terminal 500 also includes:It is stored on memory 502 and can be on processor 501 The computer program of operation, computer program realize following steps when being performed by processor 501:Receive shooting instruction, detection institute Whether the automatic exposure for stating main camera and the secondary camera is in synchronous regime, if detecting the main camera and described The automatic exposure of secondary camera is in synchronous regime, obtains the first view data of the main camera shooting and the pair respectively Described first image data and second view data are synthesized, closed by the second view data of camera shooting Into image.
The method that the embodiments of the present invention disclose can apply in processor 501, or be realized by processor 501. Processor 501 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.Above-mentioned processing Device 501 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 502, processor 501 read the information in memory 502, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realize, can be realized herein by performing the module (such as process, function etc.) of function described herein for software Described technology.Software code is storable in memory and passes through computing device.Memory can within a processor or Realized outside processor.
Alternatively, following steps can be also realized when computer program is performed by processor 501:Light-metering camera is determined, its In, the light-metering camera is imaged to support the main camera of zzHDR functions or the secondary camera using the light-metering Head carries out light-metering, obtains photometry result, if the photometry result indicates the bright of the current frame image of the light-metering camera collection Degree reaches preset target brightness, according to the current frame image, the first exposure parameter and the second exposure parameter is determined, according to described First exposure parameter and second exposure parameter, the exposure parameter of the main camera and the secondary camera is set respectively, Wherein, first exposure parameter is exposure parameter corresponding to long exposure, and second exposure parameter is to be exposed corresponding to short exposure The brightness value that the ratio of optical parameter, first exposure parameter and second exposure parameter is equal in the current frame image is big It is less than picture in the low bright area of the predetermined threshold value with brightness value in or equal to pixel count in the highlight regions of predetermined threshold value The ratio of prime number.
Alternatively, the main camera is the light-metering camera, can also be real when computer program is performed by processor 501 Existing following steps:The exposure parameter of the main camera is arranged to first exposure parameter and second exposure parameter, The exposure parameter of the secondary camera is arranged into first exposure parameter, second exposure parameter or the pair simultaneously to take the photograph 3rd exposure parameter corresponding to the current frame image gathered as head;Or the exposure parameter of the main camera is arranged to institute The first exposure parameter is stated, while is second exposure parameter by the exposure parameter of the secondary camera;Or the master is taken the photograph As the exposure parameter of head is arranged to second exposure parameter, while the exposure parameter of the secondary camera is arranged to described One exposure parameter.
Alternatively, the secondary camera is the light-metering camera, can also be real when computer program is performed by processor 501 Existing following steps:The exposure parameter of the secondary camera is arranged to first exposure parameter and second exposure parameter, The exposure parameter of the main camera is arranged into first exposure parameter, second exposure parameter or the master simultaneously to take the photograph 4th exposure parameter corresponding to the current frame image gathered as head;Or the exposure parameter of the main camera is arranged to institute The first exposure parameter is stated, while is second exposure parameter by the exposure parameter of the secondary camera;Or the master is taken the photograph As the exposure parameter of head is arranged to second exposure parameter, while the exposure parameter of the secondary camera is arranged to described One exposure parameter.
Alternatively, following steps can be also realized when computer program is performed by processor 501:If detect the main shooting The automatic exposure of head and the secondary camera is not in synchronous regime, controls the automatic of the main camera and the secondary camera Exposure is in synchronous regime;Wherein, it is in synchronous regime in the automatic exposure of the control main camera and the secondary camera Afterwards, the first view data of the main camera shooting and the second view data of the secondary camera shooting are obtained respectively.
Alternatively, following steps can be also realized when computer program is performed by processor 501:, will by Feature Points Matching Described first image data and second view data carry out image synthesis, obtain the composograph.
Mobile terminal 500 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here Repeat no more.
The mobile terminal 500 of the embodiment of the present invention, due to including main camera and secondary camera, and main camera and pair are taken the photograph As at least one camera support zzHDR functions in head, therefore by receiving shooting instruction, detect main camera and pair images Whether the automatic exposure of head is in synchronous regime, when the automatic exposure of main camera and secondary camera is in synchronous regime, point Do not obtain the first view data of main camera shooting and the second view data of secondary camera shooting, to the first view data and Second view data is synthesized, and obtains composograph, can not only be by the dynamic of the final composograph of zzHDR functional promotions Scope, avoid because the dynamic range effect of composograph caused by the factors such as time difference, hand shaking is poor, so as to obtain dynamic model Enclose the preferable high dynamic range images of effect, additionally it is possible to be reduced to the loss of the definition of composograph most by dual camera It is low.
Fig. 6 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 6 600 can be mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric Brain etc..
Mobile terminal 600 in Fig. 6 includes radio frequency (Radio Frequency, RF) circuit 610, memory 620, input Unit 630, display unit 640, camera 650, processor 660, voicefrequency circuit 670, Wi-Fi (Wireless Fidelity) Module 680 and power supply 690.
Wherein, camera 650 includes main camera 6501 and secondary camera 6502, main camera 6501 and secondary camera At least one camera in 6502 supports zzHDR functions.
Input block 630 can be used for the numeral or character information for receiving user's input, and produce and mobile terminal 600 The signal input that user is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block 630 can wrap Include contact panel 631.Contact panel 631, also referred to as touch-screen, collect user on or near it touch operation (such as User uses the operation of any suitable object or annex on contact panel 631 such as finger, stylus), and according to presetting Formula drive corresponding attachment means.Optionally, contact panel 631 may include touch detecting apparatus and touch controller two Part.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, signal is transmitted To touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then send Give the processor 660, and the order sent of reception processing device 660 and can be performed.Furthermore, it is possible to using resistance-type, electric capacity The polytypes such as formula, infrared ray and surface acoustic wave realize contact panel 631.Except contact panel 631, input block 630 is also Other input equipments 632 can be included, other input equipments 632 can include but is not limited to physical keyboard, function key (such as sound Measure control button, switch key etc.), trace ball, mouse, the one or more in action bars etc..
Wherein, display unit 640 can be used for display by the information of user's input or be supplied to information and the movement of user The various menu interfaces of terminal 600.Display unit 640 may include display panel 641, optionally, can use LCD or organic hairs The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 641.
It should be noted that contact panel 631 can cover display panel 641, touch display screen is formed, when the touch display screen is examined After measuring the touch operation on or near it, processor 660 is sent to determine the type of touch event, is followed by subsequent processing device 660 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 660 is the control centre of mobile terminal 600, utilizes various interfaces and connection whole mobile phone Various pieces, by running or performing the software program and/or module that are stored in first memory 621, and call storage Data in second memory 622, the various functions and processing data of mobile terminal 600 are performed, so as to mobile terminal 600 Carry out integral monitoring.Optionally, processor 660 may include one or more processing units.
In embodiments of the present invention, mobile terminal 600 also includes:It is stored on first memory 621 and can be at the place The computer program run on reason device 660, the computer program realize following steps when being performed by processor 660:Receive shooting Instruction, whether the automatic exposure of the detection main camera and the secondary camera is in synchronous regime, if detecting the master The automatic exposure of camera and the secondary camera is in synchronous regime, obtains the first image of the main camera shooting respectively Described first image data and second view data are carried out by data and the second view data of the secondary camera shooting Synthesis, obtains composograph.
Alternatively, following steps can be also realized when computer program is performed by processor 660:Light-metering camera is determined, its In, the light-metering camera is imaged to support the main camera of zzHDR functions or the secondary camera using the light-metering Head carries out light-metering, obtains photometry result, if the photometry result shows the bright of the current frame image of the light-metering camera collection Degree reaches preset target brightness, according to the current frame image, the first exposure parameter and the second exposure parameter is determined, according to described First exposure parameter and second exposure parameter, the exposure parameter of the main camera and the secondary camera is set respectively, Wherein, first exposure parameter is exposure parameter corresponding to long exposure, and second exposure parameter is to be exposed corresponding to short exposure The brightness value that the ratio of optical parameter, first exposure parameter and second exposure parameter is equal in the current frame image is big It is less than picture in the low bright area of the predetermined threshold value with brightness value in or equal to pixel count in the highlight regions of predetermined threshold value The ratio of prime number.
Alternatively, the main camera is the light-metering camera, can also be real when computer program is performed by processor 660 Existing following steps:The exposure parameter of the main camera is arranged to first exposure parameter and second exposure parameter, The exposure parameter of the secondary camera is arranged into first exposure parameter, second exposure parameter or the pair simultaneously to take the photograph 3rd exposure parameter corresponding to the current frame image gathered as head;Or the exposure parameter of the main camera is arranged to institute The first exposure parameter is stated, while is second exposure parameter by the exposure parameter of the secondary camera;Or the master is taken the photograph As the exposure parameter of head is arranged to second exposure parameter, while the exposure parameter of the secondary camera is arranged to described One exposure parameter.
Alternatively, the secondary camera is the light-metering camera, can also be real when computer program is performed by processor 660 Existing following steps:The exposure parameter of the secondary camera is arranged to first exposure parameter and second exposure parameter, The exposure parameter of the main camera is arranged into first exposure parameter, second exposure parameter or the master simultaneously to take the photograph 4th exposure parameter corresponding to the current frame image gathered as head;Or the exposure parameter of the main camera is arranged to institute The first exposure parameter is stated, while is second exposure parameter by the exposure parameter of the secondary camera;Or the master is taken the photograph As the exposure parameter of head is arranged to second exposure parameter, while the exposure parameter of the secondary camera is arranged to described One exposure parameter.
Alternatively, following steps can be also realized when computer program is performed by processor 660:If detect the main shooting The automatic exposure of head and the secondary camera is not in synchronous regime, controls the automatic of the main camera and the secondary camera Exposure is in synchronous regime;Wherein, it is in synchronous regime in the automatic exposure of the control main camera and the secondary camera Afterwards, the first view data of the main camera shooting and the second view data of the secondary camera shooting are obtained respectively.
Alternatively, following steps can be also realized when computer program is performed by processor 660:, will by Feature Points Matching Described first image data and second view data carry out image synthesis, obtain the composograph.
It can be seen that the mobile terminal 600 of the embodiment of the present invention, due to including main camera and secondary camera, and main camera With in secondary camera at least one camera support zzHDR functions, therefore by receive shooting instruction, detect main camera and Whether the automatic exposure of secondary camera is in synchronous regime, and synchronous regime is in the automatic exposure of main camera and secondary camera When, the first view data of main camera shooting and the second view data of secondary camera shooting are obtained respectively, to the first image Data and the second view data are synthesized, and obtain composograph, can not only be by the final composograph of zzHDR functional promotions Dynamic range, avoid because the dynamic range effect of composograph caused by the factors such as time difference, hand shaking is poor, so as to obtain The preferable high dynamic range images of dynamic range effect, additionally it is possible to drop the loss of the definition of composograph by dual camera It is low to minimum.
The embodiment of the present invention also provides a kind of computer-readable recording medium, is stored thereon with computer program, the meter Calculation machine program realizes each process of above-mentioned image capturing method embodiment when being executed by processor, and can reach identical technology Effect, to avoid repeating, repeat no more here.
Specifically, computer program can realize following steps when being executed by processor:Shooting instruction is received, detects the master Whether the automatic exposure of camera and the secondary camera is in synchronous regime, if detecting, the main camera and the pair are taken the photograph As the automatic exposure of head is in synchronous regime, the first view data of the main camera shooting and the secondary shooting are obtained respectively Described first image data and second view data are synthesized, obtain composite diagram by the second view data of head shooting Picture.
Alternatively, following steps can be also realized when computer program is executed by processor:Light-metering camera is determined, wherein, The light-metering camera utilizes the light-metering camera to support the main camera of zzHDR functions or the secondary camera Light-metering is carried out, obtains photometry result, if the photometry result indicates the brightness of the current frame image of the light-metering camera collection Reach preset target brightness, according to the current frame image, determine the first exposure parameter and the second exposure parameter, according to described One exposure parameter and second exposure parameter, the exposure parameter of the main camera and the secondary camera is set respectively, its In, first exposure parameter is exposure parameter corresponding to long exposure, and second exposure parameter is to be exposed corresponding to short exposure The brightness value that the ratio of parameter, first exposure parameter and second exposure parameter is equal in the current frame image is more than Or it is less than the pixel in the low bright area of the predetermined threshold value equal to the pixel count in the highlight regions of predetermined threshold value and brightness value Several ratio.
Alternatively, the main camera is the light-metering camera, can also be realized when computer program is executed by processor Following steps:The exposure parameter of the main camera is arranged to first exposure parameter and second exposure parameter, together When the exposure parameter of the secondary camera is arranged to first exposure parameter, second exposure parameter or described secondary imaged 3rd exposure parameter corresponding to the current frame image of head collection;Or the exposure parameter of the main camera is arranged to described First exposure parameter, while be second exposure parameter by the exposure parameter of the secondary camera;Or by the main shooting The exposure parameter of head is arranged to second exposure parameter, while the exposure parameter of the secondary camera is arranged into described first Exposure parameter.
Alternatively, the secondary camera is the light-metering camera, can also be realized when computer program is executed by processor Following steps:The exposure parameter of the secondary camera is arranged to first exposure parameter and second exposure parameter, together When the exposure parameter of the main camera is arranged to first exposure parameter, second exposure parameter or the main shooting 4th exposure parameter corresponding to the current frame image of head collection;Or the exposure parameter of the main camera is arranged to described First exposure parameter, while be second exposure parameter by the exposure parameter of the secondary camera;Or by the main shooting The exposure parameter of head is arranged to second exposure parameter, while the exposure parameter of the secondary camera is arranged into described first Exposure parameter.
Alternatively, following steps can be also realized when computer program is executed by processor:If detect the main camera Automatic exposure with the secondary camera is not in synchronous regime, controls the automatic exposure of the main camera and the secondary camera Light is in synchronous regime;Wherein, the automatic exposure for controlling the main camera and the secondary camera be in synchronous regime it Afterwards, the first view data of the main camera shooting and the second view data of the secondary camera shooting are obtained respectively.
Alternatively, following steps can be also realized when computer program is executed by processor:By Feature Points Matching, by described in First view data and second view data carry out image synthesis, obtain the composograph.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media, can be by any side Method or technology realize that information stores.Information can be computer-readable instruction, data structure, the module of program or other numbers According to.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk storage or Other magnetic storage apparatus or any other non-transmission medium, the information that can be accessed by a computing device available for storage.According to Herein defines, and computer-readable medium does not include temporary computer readable media (transitory media), such as modulation Data-signal and carrier wave.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (14)

  1. A kind of 1. image capturing method, applied to the mobile terminal including main camera and secondary camera, it is characterised in that described At least one camera in main camera and the secondary camera supports the HDR zzHDR functions of zigzag, the side Method includes:
    Receive shooting instruction;
    Whether the automatic exposure for detecting the main camera and the secondary camera is in synchronous regime;
    If detecting, the automatic exposure of the main camera and the secondary camera is in synchronous regime, obtains the master respectively First view data of camera shooting and the second view data of the secondary camera shooting;
    Described first image data and second view data are synthesized, obtain composograph.
  2. 2. according to the method for claim 1, it is characterised in that described to receive before shooting instruction, methods described also includes:
    Light-metering camera is determined, wherein, the light-metering camera is taken the photograph for the main camera of support zzHDR functions or the pair As head;
    Light-metering is carried out using the light-metering camera, obtains photometry result;
    If the photometry result indicates that the brightness of the current frame image of the light-metering camera collection reaches preset target brightness, According to the current frame image, the first exposure parameter and the second exposure parameter are determined;
    According to first exposure parameter and second exposure parameter, the main camera and the secondary camera are set respectively Exposure parameter;
    Wherein, first exposure parameter is corresponding for short exposure for exposure parameter, second exposure parameter corresponding to long exposure Exposure parameter, the ratio of first exposure parameter and second exposure parameter is equal to the brightness in the current frame image Value is less than in the low bright area of the predetermined threshold value more than or equal to the pixel count in the highlight regions of predetermined threshold value with brightness value Pixel count ratio.
  3. 3. according to the method for claim 2, it is characterised in that the main camera is the light-metering camera;
    It is described according to first exposure parameter and second exposure parameter, set the main camera and the pair to take the photograph respectively As the exposure parameter of head, including:
    The exposure parameter of the main camera is arranged to first exposure parameter and second exposure parameter, while by institute The exposure parameter for stating secondary camera is arranged to first exposure parameter, second exposure parameter or the secondary camera collection Current frame image corresponding to the 3rd exposure parameter;
    Or the exposure parameter of the main camera is arranged to first exposure parameter, while by the secondary camera Exposure parameter is second exposure parameter;
    Or the exposure parameter of the main camera is arranged to second exposure parameter, while by the secondary camera Exposure parameter is arranged to first exposure parameter.
  4. 4. according to the method for claim 2, it is characterised in that the secondary camera is the light-metering camera;
    It is described according to first exposure parameter and second exposure parameter, set the main camera and the pair to take the photograph respectively As the exposure parameter of head, including:
    The exposure parameter of the secondary camera is arranged to first exposure parameter and second exposure parameter, while by institute The exposure parameter for stating main camera is arranged to first exposure parameter, second exposure parameter or the main camera collection Current frame image corresponding to the 4th exposure parameter;
    Or the exposure parameter of the main camera is arranged to first exposure parameter, while by the secondary camera Exposure parameter is second exposure parameter;
    Or the exposure parameter of the main camera is arranged to second exposure parameter, while by the secondary camera Exposure parameter is arranged to first exposure parameter.
  5. 5. according to the method for claim 1, it is characterised in that the main camera and the secondary camera of detecting Whether automatic exposure is in after synchronous regime, and methods described also includes:
    If detecting, the automatic exposure of the main camera and the secondary camera is not in synchronous regime, controls the master to take the photograph As the automatic exposure of head and the secondary camera is in synchronous regime;
    Wherein, after the automatic exposure of the control main camera and the secondary camera is in synchronous regime, obtain respectively First view data of the main camera shooting and the second view data of the secondary camera shooting.
  6. 6. according to the method for claim 1, it is characterised in that described to described first image data and second image Data are synthesized, and obtain composograph, including:
    By Feature Points Matching, described first image data and second view data are subjected to image synthesis, obtained described Composograph.
  7. 7. a kind of mobile terminal, including main camera and secondary camera, it is characterised in that the main camera and the secondary shooting At least one camera in head supports zzHDR functions, and the mobile terminal also includes:
    Receiving module, for receiving shooting instruction;
    Whether detection module, the automatic exposure for detecting the main camera and the secondary camera are in synchronous regime;
    Acquisition module, for when the automatic exposure for detecting the main camera and the secondary camera is in synchronous regime, The first view data of the main camera shooting and the second view data of the secondary camera shooting are obtained respectively;
    Synthesis module, for being synthesized to described first image data and second view data, obtain composograph.
  8. 8. mobile terminal according to claim 7, it is characterised in that the mobile terminal also includes:
    First determining module, for determining light-metering camera, wherein, the light-metering camera is described for support zzHDR functions Main camera or the secondary camera;
    Light-metering module, for carrying out light-metering using the light-metering camera, obtain photometry result;
    Second determining module, for indicating that the brightness of current frame image of the light-metering camera collection reaches when the photometry result During to preset target brightness, according to the current frame image, the first exposure parameter and the second exposure parameter are determined;
    Setup module, for according to first exposure parameter and second exposure parameter, setting the main camera respectively With the exposure parameter of the secondary camera;
    Wherein, first exposure parameter is corresponding for short exposure for exposure parameter, second exposure parameter corresponding to long exposure Exposure parameter, the ratio of first exposure parameter and second exposure parameter is equal to the brightness in the current frame image Value is less than in the low bright area of the predetermined threshold value more than or equal to the pixel count in the highlight regions of predetermined threshold value with brightness value Pixel count ratio.
  9. 9. mobile terminal according to claim 8, it is characterised in that the main camera is the light-metering camera;Institute Setup module is stated to be specifically used for:
    The exposure parameter of the main camera is arranged to first exposure parameter and second exposure parameter, while by institute The exposure parameter for stating secondary camera is arranged to first exposure parameter, second exposure parameter or the secondary camera collection Current frame image corresponding to the 3rd exposure parameter;
    Or the exposure parameter of the main camera is arranged to first exposure parameter, while by the secondary camera Exposure parameter is second exposure parameter;
    Or the exposure parameter of the main camera is arranged to second exposure parameter, while by the secondary camera Exposure parameter is arranged to first exposure parameter.
  10. 10. mobile terminal according to claim 8, it is characterised in that the secondary camera is the light-metering camera;Institute Setup module is stated to be specifically used for:
    The exposure parameter of the secondary camera is arranged to first exposure parameter and second exposure parameter, while by institute The exposure parameter for stating main camera is arranged to first exposure parameter, second exposure parameter or the main camera collection Current frame image corresponding to the 4th exposure parameter;
    Or the exposure parameter of the main camera is arranged to first exposure parameter, while by the secondary camera Exposure parameter is second exposure parameter;
    Or the exposure parameter of the main camera is arranged to second exposure parameter, while by the secondary camera Exposure parameter is arranged to first exposure parameter.
  11. 11. mobile terminal according to claim 7, it is characterised in that the mobile terminal also includes:
    Control module, for being not in synchronous regime when the automatic exposure for detecting the main camera and the secondary camera When, the automatic exposure of the control main camera and the secondary camera is in synchronous regime.
  12. 12. mobile terminal according to claim 7, it is characterised in that the synthesis module is specifically used for:
    By Feature Points Matching, described first image data and second view data are subjected to image synthesis, obtained described Composograph.
  13. 13. a kind of mobile terminal, including memory, processor and it is stored on the memory and can transports on the processor Capable computer program, it is characterised in that the computer program is realized such as claim 1 to 6 during the computing device Any one of image capturing method the step of.
  14. 14. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, the image capturing method as any one of claim 1 to 6 is realized when the computer program is executed by processor The step of.
CN201710736370.5A 2017-08-24 2017-08-24 A kind of image capturing method and mobile terminal Pending CN107395998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710736370.5A CN107395998A (en) 2017-08-24 2017-08-24 A kind of image capturing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710736370.5A CN107395998A (en) 2017-08-24 2017-08-24 A kind of image capturing method and mobile terminal

Publications (1)

Publication Number Publication Date
CN107395998A true CN107395998A (en) 2017-11-24

Family

ID=60346745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710736370.5A Pending CN107395998A (en) 2017-08-24 2017-08-24 A kind of image capturing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107395998A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948620A (en) * 2017-12-28 2018-04-20 智车优行科技(北京)有限公司 Binocular camera adjustment method based on advanced drive assist system
CN108184075A (en) * 2018-01-17 2018-06-19 百度在线网络技术(北京)有限公司 For generating the method and apparatus of image
CN108234889A (en) * 2018-03-19 2018-06-29 浙江国自机器人技术有限公司 A kind of method, apparatus and storage medium for adjusting Image Acquisition brightness
CN108280817A (en) * 2018-01-15 2018-07-13 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108337445A (en) * 2018-03-26 2018-07-27 华为技术有限公司 Photographic method, relevant device and computer storage media
CN108419017A (en) * 2018-04-28 2018-08-17 Oppo广东移动通信有限公司 Control method, apparatus, electronic equipment and the computer readable storage medium of shooting
CN108989671A (en) * 2018-07-25 2018-12-11 Oppo广东移动通信有限公司 Image processing method, device and electronic equipment
CN108989695A (en) * 2018-06-28 2018-12-11 努比亚技术有限公司 Initial automatic exposure convergence method, mobile terminal and computer readable storage medium
CN109165487A (en) * 2018-06-28 2019-01-08 努比亚技术有限公司 A kind of method, mobile terminal and the computer readable storage medium of face unlock
CN110033421A (en) * 2019-04-09 2019-07-19 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110971836A (en) * 2018-04-28 2020-04-07 Oppo广东移动通信有限公司 Method and device for controlling shooting, electronic equipment and computer-readable storage medium
WO2020168967A1 (en) * 2019-02-18 2020-08-27 Oppo广东移动通信有限公司 Image acquisition method, electronic device, and computer-readable storage medium
CN111986129A (en) * 2020-06-30 2020-11-24 普联技术有限公司 HDR image generation method and device based on multi-shot image fusion and storage medium
US11095802B2 (en) 2018-04-28 2021-08-17 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing a captured image and electronic device
CN114520854A (en) * 2020-11-18 2022-05-20 格科微电子(上海)有限公司 Multi-camera signal synchronization method and device
US11922639B2 (en) 2018-06-07 2024-03-05 Dolby Laboratories Licensing Corporation HDR image generation from single-shot HDR color image sensors

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090457A (en) * 2006-06-16 2007-12-19 三星电子株式会社 Apparatus and method to generate image
CN101997981A (en) * 2010-11-01 2011-03-30 惠州Tcl移动通信有限公司 Mobile phone camera-based latitude realization method and mobile phone
CN102098444A (en) * 2009-12-10 2011-06-15 三星电子株式会社 Multi-step exposure method using electronic shutter and photography apparatus using the same
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device
CN104917973A (en) * 2014-03-11 2015-09-16 宏碁股份有限公司 Dynamic exposure adjusting method and electronic apparatus
CN106572311A (en) * 2016-11-11 2017-04-19 努比亚技术有限公司 Shooting apparatus and method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090457A (en) * 2006-06-16 2007-12-19 三星电子株式会社 Apparatus and method to generate image
CN102098444A (en) * 2009-12-10 2011-06-15 三星电子株式会社 Multi-step exposure method using electronic shutter and photography apparatus using the same
CN101997981A (en) * 2010-11-01 2011-03-30 惠州Tcl移动通信有限公司 Mobile phone camera-based latitude realization method and mobile phone
CN104917973A (en) * 2014-03-11 2015-09-16 宏碁股份有限公司 Dynamic exposure adjusting method and electronic apparatus
CN104301624A (en) * 2014-10-30 2015-01-21 青岛海信移动通信技术股份有限公司 Image shooting brightness control method and device
CN106572311A (en) * 2016-11-11 2017-04-19 努比亚技术有限公司 Shooting apparatus and method thereof

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948620A (en) * 2017-12-28 2018-04-20 智车优行科技(北京)有限公司 Binocular camera adjustment method based on advanced drive assist system
CN108280817A (en) * 2018-01-15 2018-07-13 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108184075A (en) * 2018-01-17 2018-06-19 百度在线网络技术(北京)有限公司 For generating the method and apparatus of image
CN108234889A (en) * 2018-03-19 2018-06-29 浙江国自机器人技术有限公司 A kind of method, apparatus and storage medium for adjusting Image Acquisition brightness
CN108337445A (en) * 2018-03-26 2018-07-27 华为技术有限公司 Photographic method, relevant device and computer storage media
CN108337445B (en) * 2018-03-26 2020-06-26 华为技术有限公司 Photographing method, related device and computer storage medium
CN110971836A (en) * 2018-04-28 2020-04-07 Oppo广东移动通信有限公司 Method and device for controlling shooting, electronic equipment and computer-readable storage medium
CN108419017A (en) * 2018-04-28 2018-08-17 Oppo广东移动通信有限公司 Control method, apparatus, electronic equipment and the computer readable storage medium of shooting
US11095802B2 (en) 2018-04-28 2021-08-17 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing a captured image and electronic device
US11922639B2 (en) 2018-06-07 2024-03-05 Dolby Laboratories Licensing Corporation HDR image generation from single-shot HDR color image sensors
CN109165487A (en) * 2018-06-28 2019-01-08 努比亚技术有限公司 A kind of method, mobile terminal and the computer readable storage medium of face unlock
CN108989695A (en) * 2018-06-28 2018-12-11 努比亚技术有限公司 Initial automatic exposure convergence method, mobile terminal and computer readable storage medium
CN108989695B (en) * 2018-06-28 2021-04-16 努比亚技术有限公司 Initial automatic exposure convergence method, mobile terminal and computer-readable storage medium
CN108989671A (en) * 2018-07-25 2018-12-11 Oppo广东移动通信有限公司 Image processing method, device and electronic equipment
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
WO2020168967A1 (en) * 2019-02-18 2020-08-27 Oppo广东移动通信有限公司 Image acquisition method, electronic device, and computer-readable storage medium
CN110033421A (en) * 2019-04-09 2019-07-19 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN111986129A (en) * 2020-06-30 2020-11-24 普联技术有限公司 HDR image generation method and device based on multi-shot image fusion and storage medium
CN111986129B (en) * 2020-06-30 2024-03-19 普联技术有限公司 HDR image generation method, equipment and storage medium based on multi-shot image fusion
CN114520854B (en) * 2020-11-18 2024-01-12 格科微电子(上海)有限公司 Multi-camera signal synchronization method and device
CN114520854A (en) * 2020-11-18 2022-05-20 格科微电子(上海)有限公司 Multi-camera signal synchronization method and device

Similar Documents

Publication Publication Date Title
CN107395998A (en) A kind of image capturing method and mobile terminal
CN106331510B (en) A kind of backlight photographic method and mobile terminal
CN105898143B (en) A kind of grasp shoot method and mobile terminal of moving object
CN105827990B (en) A kind of automatic explosion method and mobile terminal
CN106131449B (en) A kind of photographic method and mobile terminal
CN105872148B (en) A kind of generation method and mobile terminal of high dynamic range images
CN107231530B (en) A kind of photographic method and mobile terminal
CN107197169A (en) A kind of high dynamic range images image pickup method and mobile terminal
CN107302664A (en) A kind of image pickup method and mobile terminal
CN106060406A (en) Photographing method and mobile terminal
CN106657793B (en) A kind of image processing method and mobile terminal
CN106231178B (en) A kind of self-timer method and mobile terminal
CN107277387A (en) High dynamic range images image pickup method, terminal and computer-readable recording medium
CN105847674A (en) Preview image processing method based on mobile terminal, and mobile terminal therein
CN105227858A (en) A kind of image processing method and mobile terminal
CN106060422B (en) A kind of image exposure method and mobile terminal
CN107147837A (en) The method to set up and mobile terminal of a kind of acquisition parameters
CN106101545A (en) A kind of image processing method and mobile terminal
CN107395898A (en) A kind of image pickup method and mobile terminal
CN106937055A (en) A kind of image processing method and mobile terminal
CN107592471A (en) A kind of high dynamic range images image pickup method and mobile terminal
CN107026982B (en) A kind of photographic method and mobile terminal of mobile terminal
CN107465874B (en) A kind of dark current processing method and mobile terminal
CN106454104A (en) Photographing method and mobile terminal
CN105959574B (en) A kind of photographic method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171124