CN110213494A - Image pickup method and device, electronic equipment, computer readable storage medium - Google Patents

Image pickup method and device, electronic equipment, computer readable storage medium Download PDF

Info

Publication number
CN110213494A
CN110213494A CN201910593943.2A CN201910593943A CN110213494A CN 110213494 A CN110213494 A CN 110213494A CN 201910593943 A CN201910593943 A CN 201910593943A CN 110213494 A CN110213494 A CN 110213494A
Authority
CN
China
Prior art keywords
camera
image
obtains
exposure parameter
preview image
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
CN201910593943.2A
Other languages
Chinese (zh)
Other versions
CN110213494B (en
Inventor
陈伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910593943.2A priority Critical patent/CN110213494B/en
Publication of CN110213494A publication Critical patent/CN110213494A/en
Application granted granted Critical
Publication of CN110213494B publication Critical patent/CN110213494B/en
Active 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/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/65Control of camera operation in relation to power supply
    • H04N23/651Control of camera operation in relation to power supply for reducing power consumption by affecting camera operations, e.g. sleep mode, hibernation mode or power off of selective parts of the camera
    • 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/71Circuitry for evaluating the brightness variation
    • 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/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

This application involves a kind of image pickup method, device, electronic equipment, computer readable storage mediums.The described method includes: the first camera of control obtains the first preview image;Survey light processing is carried out to the first preview image, obtains the first exposure parameter, and the first exposure parameter is sent to second camera;It controls the first camera and at least one second camera is based on the first exposure parameter and is shot.Above-mentioned image pickup method, device, electronic equipment, computer readable storage medium can reduce power consumption when electronic equipment shooting.

Description

Image pickup method and device, electronic equipment, computer readable storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of image pickup method and device, electronic equipment, computer Readable storage medium storing program for executing.
Background technique
With the development of computer technology, people increasingly improve the image request that electronic equipment is shot.Electronic equipment The camera quantity also single camera since most develops the even more camera of dual camera, three cameras finally. When the electronic equipment comprising multiple cameras is shot, usually starts all cameras and shot, and will shoot To multiple images merge the image merged.
However, traditional image pickup method, there are the higher problems of power consumption.
Summary of the invention
The embodiment of the present application provides a kind of image pickup method, device, electronic equipment, computer readable storage medium, can drop Power consumption when low electronic equipment is shot.
A kind of image pickup method, applied to the electronic equipment comprising the first camera He at least one second camera, comprising:
It controls first camera and obtains the first preview image;
Survey light processing is carried out to first preview image, obtains the first exposure parameter, and by first exposure parameter It is sent to the second camera;
It controls first camera and at least one described second camera is based on first exposure parameter and carries out Shooting.
A kind of image pickup method, applied to the electronic equipment for containing at least two camera, comprising:
It controls at least two camera and obtains preview image respectively;
At least two candidate preview images are chosen from the preview image to be matched, and target overlapping region is obtained;Institute Stating at least two candidate preview images includes a preview image corresponding to each camera;
Survey light processing is carried out to the target overlapping region, obtains the second exposure parameter, and by second exposure parameter It is sent at least two camera;
It controls at least two camera and is based on second exposure parameter and shot.
A kind of filming apparatus, applied to the electronic equipment comprising the first camera He at least one second camera, comprising:
Preview image obtains module, obtains the first preview image for controlling first camera;
Light processing module is surveyed, for carrying out survey light processing to first preview image, obtains the first exposure parameter, and will First exposure parameter is sent to the second camera;
Shooting module is based on described first for controlling first camera and at least one described second camera Exposure parameter is shot.
A kind of filming apparatus, applied to the electronic equipment for containing at least two camera, comprising:
Preview image obtains module, obtains preview image respectively for controlling at least two camera;
Matching module is matched for choosing at least two candidate preview images from the preview image, obtains mesh Mark overlapping region;Described at least two candidate preview images include a preview image corresponding to each camera;
Light processing module is surveyed, for carrying out survey light processing to the target overlapping region, obtains the second exposure parameter, and will Second exposure parameter is sent at least two camera;
Shooting module is based on second exposure parameter for controlling at least two camera and is shot.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory When machine program is executed by the processor, so that the step of processor executes above-mentioned image pickup method.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of above-mentioned method is realized when row.
Above-mentioned image pickup method, device, electronic equipment and computer readable storage medium, the first camera of control obtain first Preview image carries out survey light processing to the first preview image, obtains the first exposure parameter, and the first exposure parameter is sent to Two cameras.Only the first preview image is carried out surveying light processing by the first camera and obtain the first exposure parameter, avoids the Two cameras also by preview image carry out survey light processing obtain the process of exposure parameter.At least one second camera receives To after the first exposure parameter, it can control the first camera and at least one second camera be based on the progress of the first exposure parameter Shooting reduces power consumption when electronic equipment shooting.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the applied environment figure of image pickup method in one embodiment;
Fig. 2 is the schematic diagram of image processing circuit in one embodiment;
Fig. 3 is the flow chart of image pickup method in one embodiment;
Fig. 4 is the flow chart that step determines contrast in one embodiment;
Fig. 5 is the flow chart of step images synthesis in one embodiment;
Fig. 6 is the flow chart of image pickup method in another embodiment;
Fig. 7 is the schematic diagram of the image pickup method of the prior art in one embodiment;
Fig. 8 is the schematic diagram of image pickup method in another embodiment;
Fig. 9 is the structural block diagram of filming apparatus in one embodiment;
Figure 10 is the structural block diagram of filming apparatus in another embodiment;
Figure 11 is the schematic diagram of internal structure of electronic equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes It says, in the case where not departing from scope of the present application, the first camera can be known as second camera, and similarly, can incite somebody to action Second camera is known as the first camera.First camera and second camera both camera, but it is not same takes the photograph As head.
Fig. 1 is the application environment schematic diagram of image pickup method in one embodiment.As shown in Figure 1, the application environment includes electricity Sub- equipment 10 and object 12, install the first camera 102 and at least one second camera 104 on electronic equipment 10, control the One camera 102 obtains the first preview image;Survey light processing is carried out to the first preview image, obtains the first exposure parameter, and will First exposure parameter is sent to second camera 104;Control the first camera 102 and at least one equal base of second camera 104 It is shot in the first exposure parameter.Wherein, electronic equipment 10 can be mobile phone, computer, wearable device, personal digital assistant Deng it is not limited here.
The embodiment of the present application also provides a kind of electronic equipment.It include image processing circuit in above-mentioned electronic equipment, at image Reason circuit can use hardware and or software component realization, it may include define ISP (Image Signal Processing, figure As signal processing) the various processing units of pipeline.Fig. 2 is the schematic diagram of image processing circuit in one embodiment.Such as Fig. 2 institute Show, for purposes of illustration only, only showing the various aspects of image processing techniques relevant to the embodiment of the present application.
As shown in Fig. 2, image processing circuit includes the first ISP processor 230, the 2nd ISP processor 240 and control logic Device 250.First camera 210 includes one or more first lens 212 and the first imaging sensor 214.First image sensing Device 214 may include colour filter array (such as Bayer filter), and the first imaging sensor 214 can be obtained with the first imaging sensor The luminous intensity and wavelength information that 214 each imaging pixel captures, and one group for being handled by the first ISP processor 230 is provided Image data.Second camera 220 includes one or more second lens 222 and the second imaging sensor 224.Second image passes Sensor 224 may include colour filter array (such as Bayer filter), and the second imaging sensor 224 can be obtained with the second image sensing The luminous intensity and wavelength information that each imaging pixel of device 224 captures, and can be handled by the 2nd ISP processor 240 one is provided Group image data.
First image transmitting of the first camera 210 acquisition is handled to the first ISP processor 230, the first ISP processing After device 230 handles the first image, can by the statistical data of the first image (brightness of such as image, image light than, image contrast Value, color of image etc.) it is sent to control logic device 250, control logic device 250 can determine the first camera according to statistical data 210 control parameter, so that the first camera 210 can carry out the operation such as auto-focusing, automatic exposure according to control parameter.First Image can store after the first ISP processor 230 is handled into video memory 260, the first ISP processor 230 The image that stores in video memory 260 can be read with to handling.In addition, the first image by ISP processor 230 into It can be sent directly to display 270 after row processing to be shown, display 270 can also read the figure in video memory 260 As to be shown.
Wherein, the first ISP processor 230 handles image data pixel by pixel in various formats.For example, each image slices Element can have the bit depth of 8,10,12 or 14 bits, and the first ISP processor 230 can carry out one or more figures to image data Statistical information as processing operation, collection about image data.Wherein, image processing operations can be by identical or different bit depth Precision carries out.
Video memory 260 can be independent dedicated in a part, storage equipment or electronic equipment of memory device Memory, and may include DMA (Direct Memory Access, direct direct memory access (DMA)) feature.
When receiving from the first 214 interface of imaging sensor, the first ISP processor 230 can carry out one or more Image processing operations, such as time-domain filtering.Image data that treated can be transmitted to video memory 260, to be shown it It is preceding to carry out other processing.First ISP processor 230 receives processing data from video memory 260, and to the processing data Carry out the image real time transfer in RGB and YCbCr color space.Treated that image data is exportable for first ISP processor 230 To display 270, so that user watches and/or by graphics engine or GPU (Graphics Processing Unit, at figure Reason device) it is further processed.In addition, the output of the first ISP processor 230 also can be transmitted to video memory 260, and display 270 can read image data from video memory 260.In one embodiment, video memory 260 can be configured to realization one A or multiple frame buffers.
The statistical data that first ISP processor 230 determines can be transmitted to control logic device 250.For example, statistical data can wrap Include automatic exposure, automatic white balance, automatic focusing, flicker detection, black level compensation, 212 shadow correction of the first lens etc. first 214 statistical information of imaging sensor.Control logic device 250 may include the processor for executing one or more routines (such as firmware) And/or microcontroller, one or more routines can statistical data based on the received, determine the control parameter of the first camera 210 And the first ISP processor 230 control parameter.For example, the control parameter of the first camera 210 may include gain, spectrum assignment The time of integration, stabilization parameter, flash of light control parameter, 212 control parameter of the first lens (such as focus or zoom focal length) or The combination etc. of these parameters.ISP control parameter may include for automatic white balance and color adjustment (for example, in RGB process phase Between) 212 shadow correction parameter of gain level and color correction matrix and the first lens.
Similarly, the second image transmitting that second camera 220 acquires is handled to the 2nd ISP processor 240, and second After ISP processor 240 handles the first image, can by the statistical data of the second image (brightness of such as image, image contrast value, The color etc. of image) it is sent to control logic device 250, control logic device 250 can determine second camera 220 according to statistical data Control parameter, so that second camera 220 can carry out auto-focusing, the operation such as automatic exposure according to control parameter.Second figure As that can store after the 2nd ISP processor 240 is handled into video memory 260, the 2nd ISP processor 240 can also To read the image stored in video memory 260 with to handling.In addition, the second image is carried out by ISP processor 240 It can be sent directly to display 270 after processing and shown that display 270 can also read the image in video memory 260 To be shown.Second camera 220 and the 2nd ISP processor 240 also may be implemented such as the first camera 210 and the first ISP Treatment process described in processor 230.
In one embodiment, electronic equipment includes the first camera 210 and at least one second camera 220.When beating When opening the first camera 210, control logic device 250 controls the first camera 210 and obtains the first preview image, and is sent to first ISP processor 230.First ISP processor 230 carries out survey light processing to the first preview image, obtains the first exposure parameter, and will First exposure parameter is sent to control logic device 250.Control logic device 250 controls the first camera 210 and second camera 220 The first exposure parameter is based on to be shot.
In one embodiment, the first ISP processor 230 can be handled the first preview image, and it is pre- to obtain first It lookes at the contrast of image, and contrast is compared with contrast threshold.When contrast is less than contrast threshold, to first Preview image carries out survey light processing;When contrast is greater than or equal to contrast threshold, the target in the first preview image is obtained Region carries out survey light processing to target area, obtains the first exposure parameter.
In one embodiment, when containing at least two camera in electronic equipment, it can be 210 He of the first camera Second camera 220, control logic device 250 controls the first camera 210 and second camera 220 obtains preview image respectively. The preview image that first camera 210 will acquire is sent to the first ISP processor 230, the preview that second camera 220 will acquire Image is sent to the 2nd ISP processor 240.First ISP processor 230 and the 2nd ISP processor 240 are obtained from preview image At least two candidate preview images are matched, and target overlapping region is obtained.First ISP processor 230 is to the first camera 210 Target overlapping region in corresponding candidate's preview image carries out survey light processing and the 2nd ISP processor 240 and images to second Target overlapping region in first 220 corresponding candidate preview images carries out survey light processing, available consistent second exposure ginseng Number, and it is sent to control logic device 250.Control logic device 250 controls the first camera 210 and second camera 220 is based on Second exposure parameter is shot.
In one embodiment, the first camera 210 can be wide-angle camera, and second camera 220 can be focal length Camera.
Treated that image can store in video memory 260 for first ISP processor 230 and the 2nd ISP processor 240 In, it can also be sent to display 270, image is shown on the display interface of electronic equipment.First ISP processor, 230 He 2nd ISP processor 240 can also obtain image from video memory 260 and be handled, and by treated, image stores again In video memory 260 or it is sent to display 270, it is without being limited thereto.
Fig. 3 is the flow chart of image pickup method in one embodiment.Image pickup method in the present embodiment, to run in Fig. 1 Electronic equipment on for be described.As shown in figure 3, image pickup method be applied to comprising the first camera and at least one second The electronic equipment of camera, including step 302 is to step 306.
Step 302, the first camera of control obtains the first preview image.
Electronic equipment can be set camera, and the quantity of the camera of setting is at least two, i.e. the first camera and extremely A few second camera.For example, one the first camera of setting and a second camera, first camera and two Second camera etc., it is not limited here.The form that camera is set to electronic equipment is unlimited, for example, it may be being built in electricity The camera of sub- equipment can also be placed outside the camera of electronic equipment;It can be front camera, be also possible to postposition camera shooting Head.
In embodiment provided by the present application, the first camera and second camera can be any type of camera. For example, the first camera and second camera can be colour imagery shot, black and white camera, depth camera head etc., it is without being limited thereto. First camera and second camera can be respectively different types of camera, for example, the first camera is colour imagery shot, Second camera is depth camera.For another example, the first camera can be focal length camera, be also possible to wide-angle camera, together Sample, second camera can be focal length camera, be also possible to wide-angle camera.
Correspondingly, color image is obtained by colour imagery shot, black white image is obtained by black and white camera, passes through depth It spends camera and obtains depth image, focal length image is obtained by focal length camera, wide angle picture is obtained by wide-angle camera, no It is limited to this.
It is understood that the first camera and at least one second camera are located at the same side of electronic equipment, and clap Take the photograph unidirectional scene.The visual field of first camera can be identical with the visual field of at least one second camera, then and The image that the image and at least one second camera that one camera is shot are shot is completely corresponding;It can also be taken the photograph with first As the visual field that the visual field of head and the visual field presence of at least one second camera partially overlap, so that the first camera shoots to obtain Image and the image that shoots of at least one second camera there is the region to partially overlap.
Step 304, survey light processing is carried out to the first preview image, obtains the first exposure parameter, and by the first exposure parameter It is sent to second camera.
Survey the brightness that light processing refers to measurement subject.It exposes and refers to when camera opens shutter, light On the photosensitive layer for being incident upon camera into shutter, to generate the process of image.First exposure parameter can be the time for exposure, EV (Exposure Values, light exposure) value, f-number etc., it is without being limited thereto.It is understood that the time for exposure is longer, then expose Light quantity is bigger;F-number is bigger, then light exposure is bigger.Generally, the first exposure parameter is bigger, then the image obtained is brighter.
After obtaining the brightness of subject by survey light processing, electronic equipment can obtain the first exposure according to the brightness Parameter.Specifically, it is preset in the electronic device with reference to reflecting rate;When by survey light processing obtain the target of subject When reflecting rate, it is compared by target reflecting rate and with reference to reflecting rate, and f-number and fast gate value are adjusted according to comparison result;Root The first exposure parameter is obtained according to target reflecting rate and f-number adjusted and shutter value.
F-number is the relative value (inverse of relative aperture) that focal length/camera lens light passing diameter of camera lens obtains.Shutter is control The device of sensitive film effective exposure time processed.Fast gate value can be shutter speed, the lag time etc. of shutter.
When target reflecting rate is greater than with reference to reflecting rate, electronic equipment can reduce f-number and fast gate value, so that camera Less light is obtained when shooting image.To shoot obtained image and be actually taken however, obtaining less light For object there are error, that is, the image shot is more darker than practical subject, there is a problem of that the accuracy of shooting is low.Therefore, It needs to improve exposure parameter, obtains the first exposure parameter, so that camera available more light when shooting image, it can More accurate image is obtained with shooting.
For example, in the electronic device, preset with reference to reflecting rate 18%, when obtaining subject by surveying light processing Target reflecting rate be 50% when, indicate that the brightness of subject is brighter, then camera can be reduced according to the target reflecting rate F-number and fast gate value reduce the reflecting rate of subject so that electronic equipment obtains less light.However, reducing quilt After the reflecting rate of reference object, the image shot is darker compared to practical subject.Therefore, exposure parameter is improved, is obtained To the first exposure parameter.
Similarly, when target reflecting rate is less than with reference to reflecting rate, electronic equipment can improve f-number and fast gate value, so that Camera obtains more light when shooting image.However, obtaining the image and reality that more light obtain shooting For subject there are error, that is, the image shot is brighter than practical subject, there is a problem of that the accuracy of shooting is low. Therefore, it is necessary to reduce exposure parameter, the first exposure parameter is obtained, so that camera available less light when shooting image Line can shoot to obtain more accurate image.
The mode for surveying light processing may include central average metering, central Partial metering, spot light-metering, Multi spot metering and comment Valence surveys one or more of light.First camera carries out survey light processing to the first preview image, obtains the first exposure parameter Afterwards, the first exposure parameter is sent to second camera.
Step 306, the first camera of control and at least one second camera are based on the first exposure parameter and are shot.
After second camera receives the first exposure parameter that the first camera is sent, at least one can be opened and second taken the photograph It as head, and controls the first camera and at least one second camera is based on the first exposure parameter and is shot, avoids the Two cameras also carry out survey light processing to preview image and obtain exposure parameter, reduce power consumption.
Above-mentioned image pickup method, the first camera of control obtain the first preview image, survey at light to the first preview image Reason, obtains the first exposure parameter, and the first exposure parameter is sent to second camera.It is only pre- to first by the first camera Image of looking at carries out survey light processing and obtains the first exposure parameter, avoids second camera and survey at light also by preview image Reason obtains the process of exposure parameter.After at least one second camera receives the first exposure parameter, the first camera shooting can control Head and at least one second camera are based on the first exposure parameter and are shot, and reduce power consumption when electronic equipment shooting.
In one embodiment, as shown in figure 4, carrying out survey light processing to the first preview image, the first exposure ginseng is obtained Before number, method further include:
Step 402, the contrast of the first preview image is determined according to the first preview image.
Contrast refers in image from the brightness level of brightest area to the gradual change level of the brightness level of most dark areas. The value of contrast is bigger, indicates that the gradual change level of the brightness level in image from the brightness level of brightest area to most dark areas is got over More, the contrast of image is bigger.
It is possible to further the fetching portion region from the first preview image, and determine the contrast of the partial region, and Using the contrast as the contrast of the first preview image.Only the partial region in the first preview image be calculated pair Than degree, the efficiency that contrast is calculated can be improved, and saved the power consumption of electronic equipment.
Generally, the center of image is the most important region of the image, therefore obtains the center of the first preview image The accuracy for calculating contrast is improved as the partial region in position.
It is understood that the ratio that the partial region obtained accounts for the first preview image is bigger, then pair of the partial region It is more close with the contrast of actually the first preview image than degree.
Step 404, when contrast is less than contrast threshold, execution carries out survey light processing to the first preview image, obtains First exposure parameter.
When contrast is less than contrast threshold, indicate that the contrast of the first preview image is smaller, then it can be directly to first Preview image carries out survey light processing, obtains the first exposure parameter.Light exposure based on the image that the first exposure parameter is shot In reasonable range, avoid shooting image overexposure or excessively dark problem.
Above-mentioned image pickup method determines the contrast of the first preview image according to the first preview image, when contrast be less than pair When than degree threshold value, execution carries out survey light processing to the first preview image, obtains the first exposure parameter, then is based on the first exposure parameter The obtained light exposure of image is shot to be in reasonable range, avoid shooting image overexposure or excessively dark problem, mention The high accuracy of shooting.
In one embodiment, above-mentioned image pickup method further include: when contrast is greater than or equal to contrast threshold, obtain Target area in first preview image;Survey light processing is carried out to the target area in the first preview image, obtains the first exposure Parameter.
When contrast is greater than or equal to contrast threshold, indicate that the contrast of the first preview image is larger, i.e., in image both Brighter region is contained, darker region is also contained.If carrying out survey light processing to region brighter in the first preview image, The first exposure parameter then obtained is larger, and actual scene is compared in darker region in the image shot based on the first exposure parameter In corresponding region it is bright.If carrying out survey light processing to region darker in the first preview image, the first obtained exposure parameter Smaller, brighter region is darker than region corresponding in actual scene in the image obtained based on the first exposure parameter.
That is, being surveyed when the contrast of the first preview image is larger to region brighter in the first preview image Light processing, the and when object of user's actual photographed is darker region is then clapped based on surveying obtained the first exposure parameter of light processing The image taken the photograph is inaccurate for users.Similarly, survey light processing is carried out to region darker in the first preview image, And the object of user's actual photographed is when being brighter region, then based on surveying what obtained the first exposure parameter of light processing was shot Image is also inaccurate for users.
Therefore, when contrast is greater than or equal to contrast threshold, the target area in the first preview image is obtained.Target Region can be the center of the first preview image, is also possible to the burnt region of standard of user's selection, can also be based on first The size ratio in bright region and dark region obtains in preview image, without being limited thereto.
Specifically, the area of the area in region bright in available first preview image and dark region, and will be bright The area in region and the area in dark region are compared, and obtain the biggish region of area as target area.Wherein it is possible to examine The brightness value for surveying each pixel in the first preview image, when brightness value is greater than or equal to first threshold, by the pixel As bright pixel point;When brightness value is less than or equal to second threshold, using the pixel as dark pixel point.First threshold is greater than Second threshold.Again using each bright pixel point region as bright region, using each dark pixel point region as dark Region.
Above-mentioned image pickup method obtains the target in the first preview image when contrast is greater than or equal to contrast threshold Region carries out survey light processing to the target area in the first preview image, obtains the first exposure parameter, available more accurate The first exposure parameter, and more accurate image is shot based on the first exposure parameter.
In one embodiment, above-mentioned image pickup method further include: obtain the first camera and carried out based on the first exposure parameter Shoot the second figure that the first obtained image and at least one second camera are shot based on the first exposure parameter Picture;First image and the second image are matched, the overlapping region of the first image and the overlapping region of the second image are obtained;Root Target area is obtained according to the overlapping region of the first image and the overlapping region of the second image;By target area, the first image and Two images are synthesized, and target image is obtained.
First image and the second image can be matched by the profile in image, can also pass through the feature in image Point is matched, and can also be matched etc. by depth information, depth of view information, RGB triple channel information, without being limited thereto.
After first image and the second image are matched, the overlapping region of the first image and the coincidence of the second image are obtained Region, the i.e. overlapping region of the first image are corresponding with the overlapping region of the second image.It in one embodiment, can be from first One of them is obtained as target area in the overlapping region of image and the overlapping region of the second image.In another embodiment In, the respective pixel value in the overlapping region of pixel value and the second image in the overlapping region of the first image can also be asked flat Mean value obtains target area.In other examples, target area can also be obtained, is not limited to by other calculation methods This.
It, can be by the area in target area, the first image in addition to the overlapping region of the first image after obtaining target area Region in domain and the second image in addition to the overlapping region of the second image is spliced, and target image is obtained.
It is understood that the first image and the second image are all based on what the first exposure parameter was shot, because The parameters such as the light exposure of this first image and the second image be it is identical, then synthesize according to the first image and the second image To target image in the parameters such as the light exposure of each region be it is identical, improve the accuracy of the target image of synthesis.
In one embodiment, as shown in figure 5, being obtained according to the overlapping region of the overlapping region of the first image and the second image To target area, comprising:
Step 502, the overlapping region of the first image is divided at least two first subregions, by the coincidence of the second image Region division is at least two second subregions, wherein the first subregion is corresponded and is completely coincident with the second subregion.
It is understood that the overlapping region of the overlapping region of the first image and the second image is divided thinner, i.e., One subregion and the second subregion are more, then the target area obtained is more accurate.
Step 504, the attribute value and corresponding each second sub-district of each first subregion of each first subregion are determined The attribute value in domain.
In the present embodiment, attribute value can be at least one therein such as clarity, color, gray value, depth information, Concrete condition can be set according to user demand, without being limited thereto.
Step 506, the attribute value of the first subregion is compared with the attribute value of corresponding second subregion, is compared Relatively result.
First subregion is corresponded and is completely coincident with the second subregion, by the attribute value of the first subregion and corresponding The attribute value of second subregion is compared, and obtains comparison result.The attribute value that comparison result can be the first subregion is greater than The attribute value of corresponding second subregion, the attribute value for being also possible to the second subregion are greater than the attribute of corresponding first subregion Value, it is without being limited thereto.
Step 508, each target subregion is obtained according to comparison result.
In one embodiment, when attribute value is brightness value, the available biggish region of attribute value is as target Region.When attribute value is gray value, the available lesser region of attribute value is as target subregion.Concrete condition can root It is set according to user demand, it is without being limited thereto.
Step 510, it synthesizes each target subregion to obtain target area.
In one embodiment, obtained each target subregion can be spliced to obtain target area.In addition In one embodiment, for the continuity at the edge of each sub-regions guaranteed, first each sub-regions can be spelled It connects, then by filtering out noise, obtains target area.
The overlapping region of first image is divided at least two first subregions, by the second image by above-mentioned image pickup method Overlapping region be divided at least two second subregions, determine the attribute value and each first subregion of each first subregion The attribute value of corresponding each second subregion, by the attribute value of the first subregion and the attribute value of corresponding second subregion into Row compares, and obtains each target subregion according to comparison result, and the synthesis of each target subregion is available more accurately Target area.
Fig. 6 is the flow chart of image pickup method in one embodiment.Image pickup method in the present embodiment, to run in Fig. 1 Electronic equipment on for be described.As shown in fig. 6, the electronics that image pickup method is applied to contain at least two camera is set It is standby, including step 602 is to step 608.
Step 602, at least two cameras of control obtain preview image respectively.
Camera can be set in electronic equipment, and the quantity of the camera of setting is at least two.Camera is set to electronics The form of equipment is unlimited, for example, it may be being built in the camera of electronic equipment, can also be placed outside the camera shooting of electronic equipment Head;It can be front camera, be also possible to rear camera.
In embodiment provided by the present application, the first camera and second camera can be any type of camera. For example, at least two cameras can be colour imagery shot, black and white camera, depth camera head etc., it is without being limited thereto.At least two Camera can be respectively different types of camera, for example, one of camera is colour imagery shot, other cameras are Depth camera.For another example, one of camera can be focal length camera, be also possible to wide-angle camera, similarly, other Camera can be focal length camera, be also possible to wide-angle camera.
Correspondingly, color image is obtained by colour imagery shot, black white image is obtained by black and white camera, passes through depth It spends camera and obtains depth image, focal length image is obtained by focal length camera, wide angle picture is obtained by wide-angle camera, no It is limited to this.
It is understood that at least two cameras are located at the same side of electronic equipment, and shoot unidirectional scene. The visual field of at least two cameras can be identical, then the image that at least two cameras are shot is completely corresponding;At least There may also be the visual fields to partially overlap for the visual field of two cameras, so that the image that at least two cameras are shot exists The region to partially overlap.
Step 604, at least two candidate preview images are chosen from preview image to be matched, and are obtained target and are overlapped area Domain;At least two candidate preview images include a preview image corresponding to each camera.
Candidate preview image refers to the image obtained from each preview image, and at least two candidate preview image packets A preview image corresponding to each camera is included, i.e., obtains a preview graph from the preview image that each camera obtains As candidate preview image.
At least two candidate preview images are chosen from preview image to be matched, and target overlapping region, target weight are obtained It closes region to be present in each candidate preview image, i.e., includes target in the corresponding candidate preview image of each camera Overlapping region.
At least two candidate preview images can be matched by the profile in image, can also pass through the spy in image Sign point is matched, and can also be matched etc. by depth information, depth of view information, RGB triple channel information, without being limited thereto.
Step 606, survey light processing is carried out to target overlapping region, obtains the second exposure parameter, and by the second exposure parameter It is sent at least two cameras.
Survey the brightness that light processing refers to measurement subject.It exposes and refers to when camera opens shutter, light On the photosensitive layer for being incident upon camera into shutter, to generate the process of image.Second exposure parameter can be the time for exposure, EV (Exposure Values, light exposure) value, f-number etc., it is without being limited thereto.It is understood that the time for exposure is longer, then expose Light quantity is bigger;F-number is bigger, then light exposure is bigger.Generally, the second exposure parameter is bigger, then the image obtained is brighter.
After obtaining the brightness of subject by survey light processing, electronic equipment can obtain the second exposure according to the brightness Parameter.Specifically, it is preset in the electronic device with reference to reflecting rate;When by survey light processing obtain the target of subject When reflecting rate, it is compared by target reflecting rate and with reference to reflecting rate, and f-number and fast gate value are adjusted according to comparison result;Root The second exposure parameter is obtained according to target reflecting rate and f-number adjusted and shutter value.
F-number is the relative value (inverse of relative aperture) that focal length/camera lens light passing diameter of camera lens obtains.Shutter is control The device of sensitive film effective exposure time processed.Fast gate value can be shutter speed, the lag time etc. of shutter.
When target reflecting rate is greater than with reference to reflecting rate, electronic equipment can reduce f-number and fast gate value, so that camera Less light is obtained when shooting image.To shoot obtained image and be actually taken however, obtaining less light For object there are error, that is, the image shot is more darker than practical subject, there is a problem of that the accuracy of shooting is low.Therefore, It needs to improve exposure parameter, obtains the second exposure parameter, so that camera available more light when shooting image, it can More accurate image is obtained with shooting.
For example, in the electronic device, preset with reference to reflecting rate 18%, when obtaining subject by surveying light processing Target reflecting rate be 50% when, indicate that the brightness of subject is brighter, then camera can be reduced according to the target reflecting rate F-number and fast gate value reduce the reflecting rate of subject so that electronic equipment obtains less light.However, reducing quilt After the reflecting rate of reference object, the image shot is darker compared to practical subject.Therefore, exposure parameter is improved, is obtained To the second exposure parameter.
Similarly, when target reflecting rate is less than with reference to reflecting rate, electronic equipment can improve f-number and fast gate value, so that Camera obtains more light when shooting image.However, obtaining the image and reality that more light obtain shooting For subject there are error, that is, the image shot is brighter than practical subject, there is a problem of that the accuracy of shooting is low. Therefore, it is necessary to reduce exposure parameter, the second exposure parameter is obtained, so that camera available less light when shooting image Line can shoot to obtain more accurate image.
The mode for surveying light processing may include central average metering, central Partial metering, spot light-metering, Multi spot metering and comment Valence surveys one or more of light.
As shown in fig. 7, there are four cameras, i.e. camera 1, camera 2, camera 3 and camera in electronic equipment 4.In traditional image pickup method, 704 regions in the preview image 702 of camera 1 survey light processing and obtain exposing joining Number 1 carries out survey light processing to 708 regions in the preview image 706 of camera 2 and obtains exposure parameter 2, to the pre- of camera 3 Looking at 712 regions in image 710 carries out surveying light processing and obtains exposure parameter 3, to 716th area 714 Zhong of preview image of camera 4 Domain carries out survey light processing and obtains exposure parameter 4.704 regions, 708 regions, 712 regions and 716 regions are respectively in actual scene Different zones, therefore obtained exposure parameter 1, exposure parameter 2, exposure parameter 3 and exposure parameter 4 is respectively different exposure Parameter.Camera in electronic equipment obtains each image based on different exposure parameters, and each image synthesize To target image.The light exposure of each region in target image is different, and the picture of the target image of synthesis also disunity exists The lower problem of accuracy.
In this application, include target overlapping region in each candidate preview image, then to target overlapping region into Row obtains the second exposure parameter after surveying light processing, and the second exposure parameter is sent at least two cameras.
In one embodiment, as shown in figure 8, there are four cameras in electronic equipment, i.e., camera 1, camera 2, Camera 3 and camera 4, and camera 1 obtains corresponding candidate preview image 802, camera 2 obtains corresponding candidate preview Image 804, camera 3 obtain corresponding candidate preview image 806, and camera 4 obtains corresponding candidate preview image 808, will Candidate preview image 802,804,806,808 is matched, and target overlapping region 810 is obtained.Electronic equipment is overlapped area to target Domain 810 carries out survey light processing, then camera 1, camera 2, camera 3 and the available consistent reflecting rate of camera 4, thus Available consistent second exposure parameter.Second exposure parameter is sent to camera 1, camera 2, camera 3 and camera shooting First 4.Camera 1, camera 2, camera 3 and camera 4 can get the identical figure of light exposure based on the second exposure parameter Picture, so that synthesis obtains more accurate target image.
Step 608, at least two cameras of control are based on the second exposure parameter and are shot.
At least two cameras are based on the second exposure parameter and are shot, then at least two cameras shoot to obtain image Light exposure it is identical.Further, the image of identical light exposure is carried out synthesizing available more accurate target image, from And improve accuracy.
Above-mentioned image pickup method, at least two cameras of control obtain preview image respectively, obtain at least from preview image Two candidate preview images are matched, and obtain target overlapping region, and the target overlapping region is present in each camera Candidate preview image in.Therefore, survey light processing, each camera available consistent second are carried out to target overlapping region Exposure parameter improves the accuracy of shooting so that at least two cameras of control are based on the second exposure parameter and are shot, The identical image of available light exposure, and then the consistent target image of light exposure that each region can be synthesized.
In one embodiment, at least two times that at least two cameras are shot based on the second exposure parameter are obtained Select image;At least two candidate images are matched, the overlapping region of each candidate image is obtained;According to each candidate image Overlapping region obtain target area;Target area and each candidate image are synthesized, target image is obtained.
At least two candidate images can be matched by the profile in image, can also pass through the characteristic point in image It is matched, can also be matched etc. by depth information, depth of view information, RGB triple channel information, it is without being limited thereto.
It is understood that the overlapping region of each candidate image can correspond to completely, can also correspond to completely.For example, The overlapping region A of candidate image 1 and the overlapping region B of candidate image 2 are completely corresponding.For another example, the overlapping region A of candidate image 1 Can be corresponding with the overlapping region B of candidate image 2, the overlapping region C of candidate image 3 can be with the overlapping region D of candidate image 4 It is corresponding.
The overlapping region of corresponding candidate image is matched, target area is obtained.It in one embodiment, can be with One of them is obtained from the overlapping region of corresponding candidate image as target area.In another embodiment, The pixel value of each pixel in the overlapping region of available corresponding candidate image, and flat is asked to corresponding pixel value Mean value obtains target area.In other examples, target area can also be obtained, is not limited to by other calculation methods This.
After obtaining target area, the overlapping region of place candidate image can will be removed in target area, each candidate image Except region spliced, obtain target image.
In one embodiment, the overlapping region of corresponding candidate image can be divided into several identical sub-districts Domain, and the attribute value of each sub-regions is obtained, the attribute value of corresponding subregion is compared, target subregion is obtained.
Attribute value can be at least one therein such as clarity, color, gray value, depth information, and concrete condition can be with It is set according to user demand, it is without being limited thereto.
In one embodiment, when attribute value is brightness value, the available biggish region of attribute value is as target Region.When attribute value is gray value, the available lesser region of attribute value is as target subregion.Concrete condition can root It is set according to user demand, it is without being limited thereto.
It is understood that dividing the overlapping region of corresponding candidate image thinner, i.e., subregion is more, then The target area arrived is more accurate.
In one embodiment, obtained each target subregion can be spliced to obtain target area.In addition In one embodiment, for the continuity at the edge of each sub-regions guaranteed, first each sub-regions can be spelled It connects, then by filtering out noise, obtains target area.
In one embodiment, at least two cameras in electronic equipment are focal length camera, are gone back in electronic equipment Including wide-angle camera, method further include: control wide-angle camera obtains wide-angle preview image;It will at least two candidate preview graphs As being matched respectively with wide-angle preview image, at least two overlapping regions of wide-angle preview image are obtained;By at least two weights It closes region to be matched, obtains the target overlapping region of wide-angle preview image, wherein deposited at least two candidate preview images In the corresponding region in target overlapping region.
Wide-angle camera is the camera that a kind of focal length is shorter than standard camera head, visual angle is greater than standard camera head.And focal length Camera is the camera that a kind of focal length is longer than standard camera head, visual angle is less than standard camera head.The field angle of wide-angle camera It is larger, i.e., it may include wider photographed scene by the image that wide-angle camera is shot.And the visual field of focal length camera Angle is smaller, and focal length is longer, can take the more visible image of remote object.
Wide-angle camera and focal length camera are set to the same side of electronic equipment, and shoot unidirectional scene.Cause This, there is the area that partially overlaps in the candidate preview image that the wide-angle preview image and focal length camera that wide-angle camera obtains obtain Domain.
At least two candidate preview images are carried out matched mode with wide-angle preview image not limit, figure can be passed through Profile as in is matched, and can also be matched by the characteristic point in image, can also be believed by depth information, the depth of field Breath, RGB triple channel information match etc., without being limited thereto.
At least two candidate preview images are matched with wide-angle preview image respectively, obtain wide-angle preview image extremely Few two overlapping regions, then at least two overlapping regions of wide-angle preview image are matched, obtain wide-angle preview image Target overlapping region.There is target overlapping region at least two candidate preview images, i.e. target overlapping region is at least two Open the region that candidate preview image is overlapped.In this application, at least two candidate preview images can be based on wide-angle preview image, To obtain the target overlapping region of at least two candidate preview images.
Above-mentioned image pickup method, control wide-angle camera obtain wide-angle preview image, will at least two candidate preview images point It is not matched with wide-angle preview image, obtains at least two overlapping regions of wide-angle preview image, then at least two are overlapped Region is matched, and target overlapping region is obtained.It is based on wide-angle preview image, obtains the weight of at least two candidate preview images Region is closed, the accuracy of images match can be improved.
It should be understood that although each step in the flow chart of Fig. 3 to Fig. 6 is successively shown according to the instruction of arrow, But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, Fig. 3 is into Fig. 6 At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or Alternately execute.
Fig. 9 is the structural block diagram of the filming apparatus of one embodiment.As shown in figure 9, a kind of filming apparatus 900 is provided, Applied to the electronic equipment comprising the first camera He at least one second camera, comprising: preview image acquisition module 902, Survey light processing module 904 and shooting module 906, in which:
Preview image obtains module 902, obtains the first preview image for controlling the first camera.
Light processing module 904 is surveyed, for carrying out survey light processing to the first preview image, obtains the first exposure parameter, and will First exposure parameter is sent to second camera.
Shooting module 906 is based on the first exposure parameter for controlling the first camera and at least one second camera It is shot.
Above-mentioned filming apparatus, the first camera of control obtain the first preview image, survey at light to the first preview image Reason, obtains the first exposure parameter, and the first exposure parameter is sent to second camera.It is only pre- to first by the first camera Image of looking at carries out survey light processing and obtains the first exposure parameter, avoids second camera and survey at light also by preview image Reason obtains the process of exposure parameter.After at least one second camera receives the first exposure parameter, the first camera shooting can control Head and at least one second camera are based on the first exposure parameter and are shot, and reduce power consumption when electronic equipment shooting.
In one embodiment, above-mentioned filming apparatus 900 further includes that contrast obtains module, for according to the first preview graph Contrast as determining the first preview image;When contrast is less than contrast threshold, the first preview image is surveyed in execution Light processing obtains the first exposure parameter.
In one embodiment, above-mentioned filming apparatus 900 further includes that target area obtains module, for being greater than when contrast Or when being equal to contrast threshold, the target area in the first preview image is obtained;To the target area in the first preview image into Row surveys light processing, obtains the first exposure parameter.
In one embodiment, above-mentioned filming apparatus 900 further includes synthesis module, is based on for obtaining the first camera The first image and at least one second camera that one exposure parameter is shot are based on the first exposure parameter and are shot The second obtained image;First image and the second image are matched, overlapping region and the second image of the first image are obtained Overlapping region;Target area is obtained according to the overlapping region of the overlapping region of the first image and the second image;By target area, First image and the second image are synthesized, and target image is obtained.
In one embodiment, above-mentioned synthesis module is also used to for being divided into the overlapping region of the first image at least two The overlapping region of second image is divided at least two second subregions by one subregion, wherein the first subregion and the second son Region corresponds and is completely coincident;Determine the attribute value and each first subregion corresponding each of each first subregion The attribute value of two subregions;The attribute value of first subregion is compared with the attribute value of corresponding second subregion, is obtained Comparison result;Each target subregion is obtained according to comparison result;It synthesizes each target subregion to obtain target area.
Figure 10 is the structural block diagram of the filming apparatus of another embodiment.As shown in Figure 10, a kind of filming apparatus is provided 1000, applied to the electronic equipment for containing at least two camera, comprising: preview image obtains module 1002, matching module 1004, light processing module 1006 and shooting module 1008 are surveyed, in which:
Preview image obtains module 1002, obtains preview image respectively for controlling at least two cameras.
Matching module 1004 is matched for choosing at least two candidate preview images from preview image, obtains mesh Mark overlapping region;At least two candidate preview images include a preview image corresponding to each camera.
Light processing module 1006 is surveyed, for carrying out survey light processing to target overlapping region, obtains the second exposure parameter, and will Second exposure parameter is sent at least two cameras.
Shooting module 1008 is based on the second exposure parameter at least two cameras of control and is shot.
Above-mentioned image pickup method, at least two cameras of control obtain preview image respectively, obtain at least from preview image Two candidate preview images are matched, and obtain target overlapping region, and the target overlapping region is present in each camera Candidate preview image in.Therefore, survey light processing, each camera available consistent second are carried out to target overlapping region Exposure parameter improves the accuracy of shooting so that at least two cameras of control are based on the second exposure parameter and are shot, The identical image of available light exposure, and then the consistent target image of light exposure that each region can be synthesized.
In one embodiment, above-mentioned matching module 1004 is also used to control wide-angle camera and obtains wide-angle preview image; At least two candidate preview images are matched with wide-angle preview image respectively, obtain at least two weights of wide-angle preview image Close region;At least two overlapping regions are matched, obtain the target overlapping region of wide-angle preview image, wherein at least two It opens in candidate preview image and there is the corresponding region in target overlapping region.
The division of modules is only used for for example, in other embodiments, can fill shooting in above-mentioned filming apparatus It sets and is divided into different modules as required, to complete all or part of function of above-mentioned filming apparatus.
Specific about filming apparatus limits the restriction that may refer to above for image pickup method, and details are not described herein. Modules in above-mentioned filming apparatus can be realized fully or partially through software, hardware and combinations thereof.Above-mentioned each module can It is embedded in the form of hardware or independently of in the processor in computer equipment, computer can also be stored in a software form and set In memory in standby, the corresponding operation of the above modules is executed in order to which processor calls.
Figure 11 is the schematic diagram of internal structure of electronic equipment in one embodiment.As shown in figure 11, which includes The processor and memory connected by system bus.Wherein, for the processor for providing calculating and control ability, support is entire The operation of electronic equipment.Memory may include non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with Operating system and computer program.The computer program can be performed by processor, for realizing following each embodiment institute A kind of image pickup method provided.Built-in storage provides high speed for the operating system computer program in non-volatile memory medium and delays The running environment deposited.The electronic equipment can be mobile phone, tablet computer or personal digital assistant or wearable device etc..
Realizing for the modules in filming apparatus provided in the embodiment of the present application can be the form of computer program.It should Computer program can be run in terminal or server.The program module that the computer program is constituted is storable in terminal or service On the memory of device.When the computer program is executed by processor, realize the embodiment of the present application described in method the step of.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When, so that the step of processor executes image pickup method.
A kind of computer program product comprising instruction, when run on a computer, so that computer executes shooting Method.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (11)

1. a kind of image pickup method, applied to the electronic equipment comprising the first camera He at least one second camera, feature It is, comprising:
It controls first camera and obtains the first preview image;
Survey light processing is carried out to first preview image, obtains the first exposure parameter, and first exposure parameter is sent To the second camera;
It controls first camera and at least one described second camera is based on first exposure parameter and is shot.
2. the method according to claim 1, wherein carrying out surveying at light to first preview image described Reason, before obtaining the first exposure parameter, the method also includes:
The contrast of first preview image is determined according to first preview image;
When the contrast is less than contrast threshold, execution is described to carry out survey light processing to first preview image, obtains First exposure parameter.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When the contrast is greater than or equal to contrast threshold, the target area in first preview image is obtained;
Survey light processing is carried out to the target area in first preview image, obtains the first exposure parameter.
4. the method according to claim 1, wherein the method also includes:
Obtain the first image that the first camera is shot based on first exposure parameter and at least one described The second image that two cameras are shot based on first exposure parameter;
The first image and second image are matched, the overlapping region and described second of the first image is obtained The overlapping region of image;
Target area is obtained according to the overlapping region of the overlapping region of the first image and second image;
The target area, the first image and second image are synthesized, target image is obtained.
5. according to the method described in claim 4, it is characterized in that, the overlapping region according to the first image and described The overlapping region of second image obtains target area, comprising:
The overlapping region of the first image is divided at least two first subregions, by the overlapping region of second image It is divided at least two second subregions, wherein first subregion and second subregion one-to-one correspondence and completely weight It closes;
Determine the attribute value and corresponding each second sub-district of each first subregion of each first subregion The attribute value in domain;
The attribute value of first subregion is compared with the attribute value of corresponding second subregion, obtains comparing knot Fruit;
Each target subregion is obtained according to the comparison result;
It synthesizes each target subregion to obtain target area.
6. a kind of image pickup method, applied to the electronic equipment for containing at least two camera characterized by comprising
It controls at least two camera and obtains preview image respectively;
At least two candidate preview images are chosen from the preview image to be matched, and target overlapping region is obtained;It is described extremely Few two candidate preview images include a preview image corresponding to each camera;
Survey light processing is carried out to the target overlapping region, obtains the second exposure parameter, and second exposure parameter is sent To at least two camera;
It controls at least two camera and is based on second exposure parameter and shot.
7. according to the method described in claim 6, it is characterized in that, at least two cameras in the electronic equipment are length Burnt camera further includes wide-angle camera in the electronic equipment, the method also includes:
It controls the wide-angle camera and obtains wide-angle preview image;
Described at least two candidate preview images are matched with the wide-angle preview image respectively, obtain the wide-angle preview At least two overlapping regions of image;
At least two overlapping region is matched, obtains the target overlapping region of the wide-angle preview image, wherein institute It states at least two candidate preview images and there is the corresponding region in the target overlapping region.
8. a kind of filming apparatus, applied to the electronic equipment comprising the first camera He at least one second camera, feature It is, comprising:
Preview image obtains module, obtains the first preview image for controlling first camera;
Light processing module is surveyed, for carrying out survey light processing to first preview image, obtains the first exposure parameter, and will be described First exposure parameter is sent to the second camera;
Shooting module is based on first exposure for controlling first camera and at least one described second camera Parameter is shot.
9. a kind of filming apparatus, applied to the electronic equipment for containing at least two camera characterized by comprising
Preview image obtains module, obtains preview image respectively for controlling at least two camera;
Matching module is matched for choosing at least two candidate preview images from the preview image, obtains target weight Close region;Described at least two candidate preview images include a preview image corresponding to each camera;
Light processing module is surveyed, for carrying out survey light processing to the target overlapping region, obtains the second exposure parameter, and will be described Second exposure parameter is sent at least two camera;
Shooting module is based on second exposure parameter for controlling at least two camera and is shot.
10. a kind of electronic equipment, including memory and processor, computer program, the calculating are stored in the memory When machine program is executed by the processor, so that the processor executes the shooting side as described in any one of claims 1 to 7 The step of method.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method as described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910593943.2A 2019-07-03 2019-07-03 Photographing method and device, electronic equipment and computer readable storage medium Active CN110213494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910593943.2A CN110213494B (en) 2019-07-03 2019-07-03 Photographing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910593943.2A CN110213494B (en) 2019-07-03 2019-07-03 Photographing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110213494A true CN110213494A (en) 2019-09-06
CN110213494B CN110213494B (en) 2021-05-11

Family

ID=67795986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910593943.2A Active CN110213494B (en) 2019-07-03 2019-07-03 Photographing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110213494B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654609A (en) * 2020-06-12 2020-09-11 杭州海康威视数字技术股份有限公司 Control method for realizing low power consumption of camera and camera
CN112335228A (en) * 2019-11-22 2021-02-05 深圳市大疆创新科技有限公司 Image processing method, image acquisition device, movable platform and storage medium
WO2021051307A1 (en) * 2019-09-18 2021-03-25 深圳市大疆创新科技有限公司 Image color calibration method, camera devices, and image color calibration system
CN112954210A (en) * 2021-02-08 2021-06-11 维沃移动通信(杭州)有限公司 Photographing method and device, electronic equipment and medium
CN113438411A (en) * 2021-05-21 2021-09-24 上海闻泰电子科技有限公司 Image shooting method, image shooting device, computer equipment and computer readable storage medium
CN113572970A (en) * 2021-06-24 2021-10-29 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN113630558A (en) * 2021-07-13 2021-11-09 荣耀终端有限公司 Camera exposure method and electronic equipment
CN114422665A (en) * 2021-12-23 2022-04-29 广东未来科技有限公司 Shooting method based on multiple cameras and related device
WO2023036313A1 (en) * 2021-09-09 2023-03-16 哲库科技(上海)有限公司 Image photographing method and apparatus, and computer device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013200530A (en) * 2012-03-26 2013-10-03 Canon Inc Imaging apparatus and control method thereof
JP2015028549A (en) * 2013-07-30 2015-02-12 キヤノン株式会社 Imaging device
CN108012062A (en) * 2017-12-22 2018-05-08 信利光电股份有限公司 A kind of dual camera signal processing system and method
CN108737738A (en) * 2018-04-20 2018-11-02 深圳岚锋创视网络科技有限公司 A kind of panorama camera and its exposure method and device
JP2018186514A (en) * 2018-06-13 2018-11-22 パナソニックIpマネジメント株式会社 Image processing device, imaging system having the same and image processing method
JP2018198393A (en) * 2017-05-24 2018-12-13 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd Controller, imaging apparatus, imaging system, mobile, control method, and program
JP2019080243A (en) * 2017-10-26 2019-05-23 キヤノン株式会社 Imaging apparatus, method for controlling imaging apparatus, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013200530A (en) * 2012-03-26 2013-10-03 Canon Inc Imaging apparatus and control method thereof
JP2015028549A (en) * 2013-07-30 2015-02-12 キヤノン株式会社 Imaging device
JP2018198393A (en) * 2017-05-24 2018-12-13 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd Controller, imaging apparatus, imaging system, mobile, control method, and program
JP2019080243A (en) * 2017-10-26 2019-05-23 キヤノン株式会社 Imaging apparatus, method for controlling imaging apparatus, and program
CN108012062A (en) * 2017-12-22 2018-05-08 信利光电股份有限公司 A kind of dual camera signal processing system and method
CN108737738A (en) * 2018-04-20 2018-11-02 深圳岚锋创视网络科技有限公司 A kind of panorama camera and its exposure method and device
JP2018186514A (en) * 2018-06-13 2018-11-22 パナソニックIpマネジメント株式会社 Image processing device, imaging system having the same and image processing method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021051307A1 (en) * 2019-09-18 2021-03-25 深圳市大疆创新科技有限公司 Image color calibration method, camera devices, and image color calibration system
CN112335228A (en) * 2019-11-22 2021-02-05 深圳市大疆创新科技有限公司 Image processing method, image acquisition device, movable platform and storage medium
WO2021097848A1 (en) * 2019-11-22 2021-05-27 深圳市大疆创新科技有限公司 Image processing method, image collection apparatus, movable platform and storage medium
CN111654609A (en) * 2020-06-12 2020-09-11 杭州海康威视数字技术股份有限公司 Control method for realizing low power consumption of camera and camera
CN111654609B (en) * 2020-06-12 2021-10-26 杭州海康威视数字技术股份有限公司 Control method for realizing low power consumption of camera and camera
CN112954210A (en) * 2021-02-08 2021-06-11 维沃移动通信(杭州)有限公司 Photographing method and device, electronic equipment and medium
CN113438411A (en) * 2021-05-21 2021-09-24 上海闻泰电子科技有限公司 Image shooting method, image shooting device, computer equipment and computer readable storage medium
CN113572970A (en) * 2021-06-24 2021-10-29 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN113630558A (en) * 2021-07-13 2021-11-09 荣耀终端有限公司 Camera exposure method and electronic equipment
WO2023036313A1 (en) * 2021-09-09 2023-03-16 哲库科技(上海)有限公司 Image photographing method and apparatus, and computer device and storage medium
CN114422665A (en) * 2021-12-23 2022-04-29 广东未来科技有限公司 Shooting method based on multiple cameras and related device

Also Published As

Publication number Publication date
CN110213494B (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN110213494A (en) Image pickup method and device, electronic equipment, computer readable storage medium
CN109005366B (en) Night scene shooting processing method and device for camera module, electronic equipment and storage medium
CN108419023B (en) Method for generating high dynamic range image and related equipment
US7379094B2 (en) Electronic still imaging apparatus and method having function for acquiring synthesis image having wide-dynamic range
CN105594191B (en) Imaging device, image processing device, and image processing method
WO2020029732A1 (en) Panoramic photographing method and apparatus, and imaging device
WO2019148978A1 (en) Image processing method and apparatus, storage medium and electronic device
CN109218627B (en) Image processing method, image processing device, electronic equipment and storage medium
CN110072052B (en) Image processing method and device based on multi-frame image and electronic equipment
CN110445988A (en) Image processing method, device, storage medium and electronic equipment
CN110536057A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN109194877A (en) Image compensation method and device, computer readable storage medium and electronic equipment
CN112087580B (en) Image acquisition method and device, electronic equipment and computer readable storage medium
CN103201766A (en) Method for producing high dynamic range images
CN110349163B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN110278360A (en) Image processing method and device, electronic equipment, computer readable storage medium
US20220094838A1 (en) Method, Electronic Device and Computer-Readable Storage Medium for Generating a High Dynamic Range Image
CN109862269A (en) Image-pickup method, device, electronic equipment and computer readable storage medium
JP2014044345A (en) Imaging apparatus
CN107509044A (en) Image combining method, device, computer-readable recording medium and computer equipment
CN110290323A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN110266966A (en) Image generating method and device, electronic equipment, computer readable storage medium
CN110233970A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN108198152A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN111246100B (en) Anti-shake parameter calibration method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant