CN109495689A - A kind of image pickup method, device, electronic equipment and storage medium - Google Patents
A kind of image pickup method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109495689A CN109495689A CN201811641102.6A CN201811641102A CN109495689A CN 109495689 A CN109495689 A CN 109495689A CN 201811641102 A CN201811641102 A CN 201811641102A CN 109495689 A CN109495689 A CN 109495689A
- Authority
- CN
- China
- Prior art keywords
- camera
- image
- region
- acquisition parameters
- value
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/73—Circuitry for compensating brightness variation in the scene by influencing the exposure time
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
The present invention provides a kind of image pickup method, device, electronic equipment and storage mediums, for quickly adjusting the acquisition parameters of camera when determining in preview image or switching region-of-interest.The described method includes: obtaining acquisition parameters value when first camera is shot using each region in the N number of image-region for including in preview image as region-of-interest respectively when carrying out preview to target scene, obtaining N group acquisition parameters value altogether;According to the mapping relations of the acquisition parameters value of preset first camera and the acquisition parameters value of second camera, the N group target acquisition parameters value of the second camera corresponding with the N group acquisition parameters value is determined;According to the current region-of-interest of the preview image, determine it is one group corresponding with the current region-of-interest described in best acquisition parameters value be the first shooting parameter value, and optimum target acquisition parameters value described in determining one group is the second shooting parameter value.
Description
Technical field
The present invention relates to field of information processing more particularly to a kind of image pickup method, device, electronic equipment and storage mediums.
Background technique
With the continuous development of science and technology, the function of electronic equipment is stronger and stronger, and most of electronic equipment is all arranged
There is camera to provide shooting function.User can determine bat when shooting using electronic equipment by preview interface
The region-of-interest taken the photograph, for example, user can select region-of-interest by clicking any position of preview interface.
In the prior art, in order to keep the shooting effect of region-of-interest best, camera can be calculated for region-of-interest
Acquisition parameters value (such as Focusing parameter value, exposure parameter values), and camera is arranged with the acquisition parameters value calculated.This
Sample, if there is the switching of region-of-interest, then just requiring to recalculate and adjust camera according to new region-of-interest
Acquisition parameters value, so the more time can be spent.Also, it can also allow user visually intuitively to realize and recalculate shooting
The process of parameter value, such as preview screen clarity and preview brightness jump etc., influence user experience.
Summary of the invention
This specification embodiment provides a kind of image pickup method, device, electronic equipment and storage medium, in preview graph
The acquisition parameters of camera are determined or quickly adjusted when switching region-of-interest as in.
In a first aspect, being applied to electronic equipment the present invention provides a kind of image pickup method, the electronic equipment includes first
Camera and second camera, which comprises
When carrying out preview to target scene, first camera N number of figure to include in preview image respectively is obtained
As each region in region is best acquisition parameters value when region-of-interest is shot, total acquisition N group most preferably shooting ginseng
Numerical value, N are the integer greater than 1;
According to the mapping relations of the acquisition parameters value of preset first camera and the acquisition parameters value of second camera, really
The N group optimum target acquisition parameters value of the fixed second camera corresponding with the best acquisition parameters value of the N group;
According to the current region-of-interest of the preview image, determined in the best acquisition parameters value of the N group with it is described
Best acquisition parameters value described in current region-of-interest is one group corresponding is the first shooting parameter value, and in the best mesh of N group
Mark acquisition parameters value in determine it is one group corresponding with the current region-of-interest described in optimum target acquisition parameters value be second
Acquisition parameters value, so that first camera uses institute using the first shooting parameter value and the second camera
It states the second shooting parameter value and shoots the target scene.
Optionally, described when carrying out preview to target scene, acquisition first camera is respectively in preview image
The each region in N number of image-region for including is best acquisition parameters value when region-of-interest is shot, comprising:
The range of parameter values of acquisition parameters based on first camera, to the parameter values of the acquisition parameters according to pre-
If mode carries out parameter adjustment, and first camera collects the M width of the target scene during the adjustment that gets parms
Image, each image in the M width image include N number of image-region, and M is the integer greater than 1;
According to the clarity for the N number of image-region for including in each image, determine N number of image-region
In best acquisition parameters value of each region when being shot as the region-of-interest.
Optionally, the clarity according to the N number of image-region for including in each image, determination will be described
Best acquisition parameters value when any region in N number of image-region is shot as the region-of-interest, comprising:
For each image-region in N number of image-region, the image-region is clear in the M width image
Degree;
By the corresponding acquisition parameters value of the highest image of the clarity of the image-region, as using the image-region as institute
State the best acquisition parameters value of region-of-interest.
Optionally, the acquisition parameters of first camera are Focusing parameter and/or exposure parameter, the second camera
Target acquisition parameters also correspond to Focusing parameter and/or exposure parameter.
Optionally, it is in the acquisition parameters of first camera and the target acquisition parameters of the second camera
When the Focusing parameter, the mapping of the acquisition parameters value of the acquisition parameters value and second camera of preset first camera
Relationship obtains in the following manner:
The adjusting range of camera site based on target object is gradually adjusted the position of the target object, really
Fixed first camera shoots the Focusing parameter value of the target object at each position, and determines second camera shooting
Head shoots the Focusing parameter value of the target object at each position;
According to the Focusing parameter value of first camera at each position and pair of the second camera
Burnt parameter value establishes the mapping relations.
Optionally, it is in the acquisition parameters of first camera and the target acquisition parameters of the second camera
When the exposure parameter, the mapping of the acquisition parameters value of the acquisition parameters value and second camera of preset first camera
Relationship obtains in the following manner:
The exposure parameter values of first camera and the exposure parameter values of the second camera are gradually adjusted, so that
The brightness of image of the collected multiple image of first camera and the figure of the collected multiple image of the second camera
Image brightness is identical;
According to the exposure parameter values of first camera collection image corresponding with each identical image brightness and institute
The exposure parameter values for stating second camera acquisition image, establish the mapping relations.
Second aspect, the present invention provides a kind of filming apparatus, are applied to electronic equipment, and the electronic equipment includes first
Camera and second camera, described device include:
First obtains module, for when carrying out preview to target scene, obtaining first camera respectively with preview
The each region in N number of image-region for including in image is best acquisition parameters value when region-of-interest is shot, and is amounted to
It obtains N and most preferably organizes acquisition parameters value, N is the integer greater than 1;
Second obtains module, for being joined according to the acquisition parameters value of preset first camera and the shooting of second camera
The mapping relations of numerical value determine that the N group optimum target of the second camera corresponding with the best acquisition parameters value of the N group is clapped
Take the photograph parameter value;
Processing module, for the current region-of-interest according to the preview image, in the best acquisition parameters value of the N group
Determine it is one group corresponding with the current region-of-interest described in best acquisition parameters value be the first shooting parameter value, and in institute
State determined in N group optimum target acquisition parameters value it is one group corresponding with the current region-of-interest described in optimum target shooting ginseng
Numerical value is the second shooting parameter value, so that first camera is taken the photograph using the first shooting parameter value and described second
As head shoots the target scene using the second shooting parameter value.
Optionally, the first acquisition module is specifically used for:
The range of parameter values of acquisition parameters based on first camera, to the parameter values of the acquisition parameters according to pre-
If mode carries out parameter adjustment, and first camera collects the M width of the target scene during the adjustment that gets parms
Image, each image in the M width image include N number of image-region, and M is the integer greater than 1;
According to the clarity for the N number of image-region for including in each image, determine N number of image-region
In best acquisition parameters value of each region when being shot as the region-of-interest.
Optionally, the first acquisition module is specifically used for:
For each image-region in N number of image-region, the image-region is clear in the M width image
Degree;
By the corresponding acquisition parameters value of the highest image of the clarity of the image-region, as using the image-region as institute
State the best acquisition parameters value of region-of-interest.
Optionally, the acquisition parameters of first camera are Focusing parameter and/or exposure parameter, the second camera
Target acquisition parameters also correspond to Focusing parameter and/or exposure parameter.
Optionally, it is in the acquisition parameters of first camera and the target acquisition parameters of the second camera
When Focusing parameter, the mapping relations of the acquisition parameters value of the acquisition parameters value and second camera of preset first camera
It obtains in the following manner:
The adjusting range of camera site based on target object is gradually adjusted the position of the target object, really
Fixed first camera shoots the Focusing parameter value of the target object at each position, and determines second camera shooting
Head shoots the Focusing parameter value of the target object at each position;
According to the Focusing parameter value of first camera at each position and pair of the second camera
Burnt parameter value establishes the mapping relations.
Optionally, it is in the acquisition parameters of first camera and the target acquisition parameters of the second camera
When exposure parameter, the mapping relations of the acquisition parameters value of the acquisition parameters value and second camera of preset first camera
It obtains in the following manner:
The exposure parameter values of first camera and the exposure parameter values of the second camera are gradually adjusted, so that
The brightness of image of the collected multiple image of first camera and the figure of the collected multiple image of the second camera
Image brightness is identical;
According to the exposure parameter values of first camera collection image corresponding with each identical image brightness and institute
The exposure parameter values for stating second camera acquisition image, establish the mapping relations.
The third aspect, this specification embodiment provide a kind of electronic equipment, and the electronic equipment includes processor, the place
Such as aforementioned first aspect shooting side as described in the examples is realized when reason device is for executing the computer program stored in memory
The step of method.
Fourth aspect, this specification embodiment provide a kind of readable storage medium storing program for executing, are stored thereon with computer program, institute
State the step of image pickup method as described in the examples such as aforementioned first aspect is realized when computer program is executed by processor.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects
Fruit:
In the technical solution of this specification embodiment, when carrying out preview to target scene, first camera is obtained
Best shooting ginseng when being shot respectively using each region in the N number of image-region for including in preview image as region-of-interest
Numerical value;According to the mapping relations of the acquisition parameters value of preset first camera and the acquisition parameters value of second camera, determine
The N group optimum target acquisition parameters value of the second camera corresponding with the best acquisition parameters value of the N group;According to described pre-
It lookes at the current region-of-interest of image, the first acquisition parameters of the first camera is determined in the best acquisition parameters value of the N group
Value, and determine that the second of second camera shoots parameter value in the N group optimum target acquisition parameters value.Above scheme
In, in previews, when calculated in advance using each image-region as region-of-interest, the first camera and the second camera shooting
The best acquisition parameters value of head is directly calculated in advance to realize when carrying out region-of-interest selection or region-of-interest switches
The corresponding acquisition parameters value for choosing each camera, reaches the bat for quickly adjusting each camera in good best acquisition parameters value
The purpose for taking the photograph parameter value has saved the parameter adjustment time of each camera.Further, the scheme in this specification embodiment
Acquisition parameters value can be quickly adjusted, is not in the prior art because of the preview that the adjustment of prolonged parameter occurs therefore
The jump of the clarity, exposure at interface, and then improve user experience.
Detailed description of the invention
Fig. 1 is a kind of possible terminal system schematic diagram that this specification embodiment provides;
Fig. 2 is the flow chart for the image pickup method that first aspect provides in this specification embodiment;
Fig. 3 is a kind of schematic diagram for filming apparatus that second aspect provides in this specification embodiment.
Specific embodiment
This specification embodiment provides a kind of image pickup method, device, electronic equipment and storage medium, in preview graph
The acquisition parameters of camera are determined or quickly adjusted when switching region-of-interest as in.
In order to solve the above technical problem, the present invention provides technical solution thinking it is as follows:
When carrying out preview to target scene, first camera N number of figure to include in preview image respectively is obtained
As each region in region is best acquisition parameters value when region-of-interest is shot;According to preset first camera
The mapping relations of acquisition parameters value and the acquisition parameters value of second camera, determination are corresponding with the best acquisition parameters value of the N group
The second camera N group optimum target acquisition parameters value;According to the current region-of-interest of the preview image, described
The first shooting parameter value of the first camera is determined in the best acquisition parameters value of N group, and is shot in the N group optimum target
The second shooting parameter value of second camera is determined in parameter value.In above scheme, in previews, calculate in advance with
When each image-region is as region-of-interest, the best acquisition parameters value of the first camera and second camera, to realize
It is corresponding directly in the best acquisition parameters value calculated in advance to choose when carrying out region-of-interest selection or region-of-interest switches
The acquisition parameters value of each camera achievees the purpose that the acquisition parameters value for quickly adjusting each camera, has saved each take the photograph
As the parameter adjustment time of head.Further, the scheme in this specification embodiment can quickly adjust acquisition parameters value, because
This, is not in the prior art the jump because of the clarity, exposure for the preview interface that the adjustment of prolonged parameter occurs,
And then improve user experience.
Technical solution of the present invention is described in detail below by attached drawing and specific embodiment, it should be understood that the application
Specific features in embodiment and embodiment are the detailed description to technical scheme, rather than to present techniques
The restriction of scheme, in the absence of conflict, the technical characteristic in the embodiment of the present application and embodiment can be combined with each other.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes
System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein
Middle character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
For convenience of the technical solution in this specification embodiment is introduced, first correspond to in this specification embodiment
The terminal system of image pickup method is introduced.Referring to FIG. 1, being a kind of possible terminal system schematic diagram.In Fig. 1, terminal
System 100 is the system for including touch input unit 101.It will be appreciated, however, that the system may also include it is one or more its
His physical user-interface device, such as physical keyboard, mouse and/or control stick.The operation platform of terminal system 100 may be adapted to transport
The one or more operating systems of row, such as Android (Android) operating system, Windows (form) operating system, apple IOS
Operating system, BlackBerry (blackberry, blueberry) operating system, the general-purpose operating systems such as Google's Chrome operating system.However,
In other embodiments, terminal system 100 can also run dedicated operating system rather than the general-purpose operating system.
In certain embodiments, terminal system 100 can be supported to run one or more application programs simultaneously, including but unlimited
One or more application programs in following application program: disk management application program, safety encryption application program, permission pipe
Manage application program, application program, word-processing application, presentation slides application program, spreadsheet application is arranged in system
Procedure, data library application program, game application, telephony application, videoconference application, e-mail applications journey
Sequence, instant message application program, photo management application program, digital camera applications program, digital video camera application program,
Web-browsing application program, digital music player application and digital video player application etc..
The operating system and various application programs run in terminal system can be used touch input unit 101 as use
Family is physically entered interface device.Touch input unit 101 has a touch-surface as user interface.Optionally, it touches
The touch-surface of formula input unit 101 is display 102 surface of screen, and touch input unit 101 and display screen 102 are common
Form touch-sensitive display panel 120, however in further embodiments, touch input unit 101 have it is one independent, not with its
The touch-surface that his EM equipment module shares.Touch-sensitive display panel is still further comprised is on touch input unit 101 for detecting
The no one or more contact sensors 106 being in contact.
Touch-sensitive display panel 120 optionally uses LCD (liquid crystal display, Liquid Crystal Display) technology, LPD
(light emitting polymer displays, Laser-powered Phosphor Display) technology or LED (light emitting diode) technology, or
Other any technologies that image may be implemented and show.Touch-sensitive display panel 120 further can be used currently known or develop later
Any one of a variety of touch-sensing technologies detects any movement or blocking of contact and contact, such as capacitive sensing technology
Or resistive sensing technology.In some embodiments, touch-sensitive display panel 120 can detect simultaneously single contact point or multiple contact points and
It moves changing condition.
In addition to touch input unit 101 is with optional display screen 102, terminal system 100 may also include memory
At 103 (it optionally includes one or more computer readable storage mediums), Memory Controller 104 and one or more
Device (Processor) 105 is managed, components above can be communicated by one or more signal bus 107.
Memory 103 may include caching (Cache), high-speed random access memory (RAM), such as common double data
Rate Synchronous Dynamic Random Access Memory (DDR SDRAM), and may also include nonvolatile memory (NVRAM), such as one
Or multiple read-only memory (ROM), disk storage equipment, flash memory (Flash) memory devices or other nonvolatile solid states are deposited
Storage device such as CD (CD-ROM, DVD-ROM), floppy disk or data tape etc..Memory 103 can be used for storing aforementioned operation
System and application software, and generated and received various types data in system work process.Storage control 104
The other component of controllable system 100 accesses memory 103.
Processor 105 is for running or executing the operating system being stored in internal storage 103, various software journeys
Sequence and the instruction set of itself, and for handling from touch input unit 101 or being received from other external input approach
The data and instruction arrived, to realize the various functions of system 100.Processor 105 can include but is not limited to central processing unit
(CPU), general image processor (GPU), microprocessor (MCU), digital signal processor (DSP), field programmable gate
Array (FPGA), one of application specific integrated circuit (ASIC) or a variety of.In some embodiments, it processor 105 and deposits
Memory controller 104 can be realized on a single chip.In some other embodiments, they can be respectively in core independent of each other
On piece is realized.
In Fig. 1, signal bus 107 is configured as communicating the various components connection of terminal system 100.It should manage
Solution, the configuration of signal bus 107 shown in FIG. 1 and connection type are exemplary and not limiting.Depending on specifically answering
With environment and hardware configuration requirement, in other embodiments, signal bus 107 can use other differences but for art technology
The usual connection type of personnel and its routinely combination or variation, to realize required signal connection between various components.
Further, in certain embodiments, terminal system 100 also may include peripheral equipment I/O interface 111, RF circuit
112, voicefrequency circuit 113, loudspeaker 114, microphone 115, photographing module 116.Equipment 100 may also include one or more differences
The sensor module 118 of type.
RF (radio frequency) circuit 112 is for sending and receiving radiofrequency signal to realize and be communicated with other communication equipments.RF
Circuit 112 may include but be not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one or more oscillations
Device, digital signal processor, codec chip group, subscriber identity module (SIM) card, memory etc..RF circuit 112 is optionally
It is communicated by wireless communication with network and other equipment, which is such as internet (also referred to as WWW
(WWW)), Intranet and/or wireless network (such as cellular phone network, WLAN (LAN) and/or Metropolitan Area Network (MAN) (MAN)).RF
Circuit 112 may also include the circuit for detecting the field near-field communication (NFC).One or more communication marks can be selected in wireless communication
Quasi-, agreement and technology, including but not limited to global system for mobile communications (GSM), enhanced data gsm environment (EDGE), high speed
Downlink packets access (HSDPA), High Speed Uplink Packet access (HSUPA), evolution, clear data (EV-DO), HSPA,
HSPA+, double unit HSPA (DC-HSPDA), long term evolution (LTE), near-field communication (NFC), wideband code division multiple access (W-CDMA),
CDMA (CDMA), time division multiple acess (TDMA), bluetooth, Bluetooth Low Energy, Wireless Fidelity (Wi-Fi) are (for example, IEEE
802.11a, IEEE 802.11b, IEEE 802.11g, IEEE 802.11n and/or IEEE 802.11ac), Internet protocol
Voice (VoIP), Wi-MAX, email protocol are (for example, internet message access protocol (IMAP) and/or post office protocol
(POP)), instant message is (for example, scalable message handles and expands there are agreement (XMPP), for instant message and in the presence of utilizing
Session initiation Protocol (SIMPLE), instant message and the presence service (IMPS) of exhibition), and/or short message service (SMS) or
Including in the application submission date also it is untapped go out communication protocol any other communication protocol appropriate.
Voicefrequency circuit 113, loudspeaker 114 and microphone 115 provide the audio interface between user and terminal system 100.
Voicefrequency circuit 113 receives audio data from exterior I/O port 111, and audio data is converted to electric signal, and by electric signal transmission
To loudspeaker 114.Loudspeaker 114 converts electrical signals to the audible sound wave of the mankind.Voicefrequency circuit 113 is also received by microphone
115 electric signals converted according to sound wave.Voicefrequency circuit 113 can further convert electrical signals to audio data, and by audio number
According to being transferred to exterior I/O port 111 to be sent to external device processes.Audio data can be in processor 105 and storage control
Under 104 control, it is transferred to memory 103 and/or RF circuit 112.In some embodiments, voicefrequency circuit 113 may be used also
It is connected to earphone microphone interface.
Photographing module 116 is used to carry out still image and video capture according to the instruction from processor 105.Image mould
Block 116 can have lens device 1161 and image sensor 1162, can be received by lens assembly 1161 and be believed from extraneous light
Number, and by image sensor 1162, such as metal-oxide complementary type phototransistor (CMOS) sensor or charge-coupled device
Part (CCD) sensor, converts optical signals to electric signal.Photographing module 116 can further have image processor (ISP)
1163, for aforementioned electric signal to be carried out processing correction, and it is converted into specific image format file, such as JPEG (joint figure
As panel of expert) image file, TIFF (label image file format) image file etc..Image file can be according to processor
105 and storage control 104 instruction, be sent to memory 103 and stored, or send and be sent to outside to RF circuit 112 and set
It is standby.
Exterior I/O port 111, which for terminal system 100 is physically entered module with other external equipments or system surfaces and provides, to be connect
Mouthful.Surface physics input module can be key, keyboard, turntable etc., such as volume button, power button, return key and
Camera button.Interface provided by exterior I/O port 111 may also include universal serial bus (USB) interface (may include USB,
Mini-USB, Micro-USB, USB Type-C etc.), thunder and lightning (Thunderbolt) interface, earphone microphone interface, transmission of video connect
Mouthful (such as high-definition multimedia HDMI interface, mobile high definition connect MHL interface), external storage interface (such as external storage
Card SD card interface), user identity module card (SIM card) interface etc..
Sensor module 118 can have one or more sensors or sensor array, including but not limited to: 1, position passes
Sensor, such as GPS (GPS) sensor, big-dipper satellite alignment sensor or lattice Luo Luosi (GLONASS) are defended
Star positioning system sensor is used for detection device current geographic position;2, acceleration transducer, gravity sensor, gyroscope are used
In detection device motion state and auxiliary positioning;3, light sensor, for detecting external ambient light;4, range sensor is used
In the distance of detection exterior object homologous ray;5, pressure sensor, the pressure condition for detection system contact;6, temperature with it is wet
Sensor is spent, for detecting environment temperature and humidity.Sensor module 118 can also be regarded using needs, add any other kind
The sensor or sensor array of class and quantity.
In some embodiment of the invention, the various components of terminal system 100 can be called by instruction by processor 105,
Execute image pickup method of the invention.Processor 105 executes program required for image pickup method of the invention and is carried out by memory 103
Storage.
It is the introduction to the terminal system of application image pickup method above, next, image pickup method will be introduced.It please join
Fig. 2 is examined, is the flow chart of the image pickup method provided in this specification embodiment, as shown in Fig. 2, this approach includes the following steps.
Step S11: when carrying out preview to target scene, first camera is obtained respectively to include in preview image
N number of image-region in each region be best acquisition parameters value of region-of-interest when being shot, amount to and obtain N group most preferably
Acquisition parameters value, N are the integer greater than 1;
Step S12: according to reflecting for the acquisition parameters value of preset first camera and the acquisition parameters value of second camera
Relationship is penetrated, determines the N group optimum target acquisition parameters of the second camera corresponding with the best acquisition parameters value of the N group
Value;
Step S13: it according to the current region-of-interest of the preview image, is determined in the best acquisition parameters value of the N group
Best acquisition parameters value described in one group corresponding with the current region-of-interest out is the first shooting parameter value, and in the N
Group optimum target acquisition parameters value in determine it is one group corresponding with the current region-of-interest described in optimum target acquisition parameters
Value second shoots parameter value, so that first camera is using the first shooting parameter value and the second camera
The target scene is shot using the second shooting parameter value.
It should be noted that the electronic equipment in this specification embodiment can be smart phone, tablet computer, camera
Or other equipment with camera, it is not limited here.It is taken the photograph on electronic equipment at least provided with the first camera and second
As head, it is also provided with the even more camera of third camera.Equally can using method provided in this embodiment come
The acquisition parameters of third camera are set.The type of each camera can be configured according to actual needs, for example, first
Camera and second camera are colored (RGB) camera;Or first camera be colored (RGB) camera, second takes the photograph
As head is black and white (MONO) camera.The quantity and type of camera on picture pick-up device are not limited herein.
In the following, being mentioned so that electronic equipment is provided with the first camera and second camera as an example to this specification embodiment
The image pickup method of confession is illustrated.
Firstly, in step s 11, electronic equipment is in the shooting preview state to target scene, target scene be can be
User thinks any scene of shooting.Since the first camera will calculate acquisition parameters according to different zones in the embodiment of the present invention,
So to avoid user from browsing preview image, the preview image shown under shooting preview state is the collected mesh of second camera
Mark scene image.
It should be understood that due to the position of the first camera and the position of second camera be not it is identical,
When carrying out Image Acquisition to identical target scene, the first camera acquired image information and second camera are collected
Image information can have offset to a certain extent.Under normal conditions, due between the first camera and second camera away from
From fairly close, the offset of generation can be ignored, that is, be approximately considered the image information and second of the first camera acquisition
The image information of camera acquisition is identical.In addition, passing through meter when synthesizing the image of the first camera and second camera shooting
Calculate influence of the visual field difference to composograph that can then eliminate between two cameras.
In addition, for the complete phase of image information for keeping the image information of the first camera acquisition to acquire with second camera
Together, image registration can be carried out.For example, when the image of second camera acquisition is preview image, it can be by the first camera
Acquired image is registrated according to preview image, and the image after making registration is aligned with preview image.
In this specification embodiment, in order to realize when selecting or switching region-of-interest, each camera is quickly adjusted
Acquisition parameters value can determine each camera corresponding to each image-region in present preview image in previews
Best acquisition parameters value.In this way, can be set each camera to and the region-of-interest institute after region-of-interest has been determined
The corresponding best acquisition parameters value of image-region.
Specifically, preview image includes N number of image-region.The division of N number of image-region can come according to actual needs
It is configured, the mode of two kinds of image-regions division is described below.
First way carries out image recognition to preview image, identifies N number of object in preview image, this is N number of right
As region is as N number of image-region.For example, target scene is park scenery, and park scenery includes multiple objects, such as
Trees, lake water, tourist etc..Correspondingly, preview image is collected park scene image, also include in preview image trees,
Lake water, tourist etc..Feature identification is carried out to the picture material of preview image, each object is identified, that is, identifies trees, lake
The objects such as water, tourist, and each object region is split, the image-region after being divided.
The second way carries out image segmentation to preview image according to default partitioning scheme, obtains N number of image-region.In advance
If partitioning scheme can be configured according to actual needs, in one embodiment, presetting partitioning scheme is by preview image point
It is segmented into the identical rectangular area of multiple sizes, the corresponding image-region in each rectangular area.Certainly, partitioning scheme is preset also
It can be other partitioning schemes, such as preview image divided etc. according to pre-set dimension, predeterminable area shape.
It should be understood that the concern area for each image-region in preview image, possible as user's shooting
Domain.For example, still by taking target scene is park scenery as an example, when user wants emphasis shooting trees, then the image where trees
Region is region-of-interest, and when wanting emphasis shooting tourist with user, then the image-region where tourist is region-of-interest.Pre-
In the case that image of looking at is constant, region-of-interest is different, and the acquisition parameters value of each camera can also correspond to adjustment, so as to obtain
It shoots in image, the clarity of image-region corresponding to region-of-interest meets preset condition, and preset condition can be according to reality
It needs to set, for example, preset condition is that clarity is greater than threshold value.
By can first determine using each image-region in N number of image-region as region-of-interest in step S11
When, the best acquisition parameters value of the first camera.In the specific implementation process, step S11 can be accomplished by the following way:
The range of parameter values of acquisition parameters based on first camera, to the parameter values of the acquisition parameters according to pre-
If mode carries out parameter adjustment, and first camera collects the M width of the target scene during the adjustment that gets parms
Image, each image in the M width image include N number of image-region, and M is the integer greater than 1;According to described every
The clarity for the N number of image-region for including in width image is determined using each region in N number of image-region as institute
State best acquisition parameters value when region-of-interest is shot.
Specifically, the first camera shoots target scene on backstage when second camera carries out preview, shooting
Process is realized by constantly adjusting the acquisition parameters value of the first camera.It should be understood that the shooting of the first camera
Parameter setting has range of parameter values, and parameter area is parameter minimum value to the range between parameter maximum value.Carry out parameter adjustment
Predetermined manner can be configured according to actual needs, carried out since parameter minimum value for example, predetermined manner can be
Adjustment, can also be adjusted since parameter maximum value.
By taking the adjustment since parameter minimum value as an example, initial acquisition parameters value is parameter minimum value, final acquisition parameters value
Parameter value is incrementally increased since parameter minimum value for parameter maximum value, is until acquisition parameters value is adjusted to parameter maximum value
Only.In one embodiment, parameter adjustment can be adjusted according to preset step-length, and preset step-length can be according to actual needs
It is set.As soon as obtaining piece image according to the every adjustment time acquisition parameters value of adjusting step by the first camera, obtaining altogether
M width image.
By taking the adjustment since parameter maximum value as an example, initial acquisition parameters value is parameter maximum value, final acquisition parameters value
Parameter value is gradually reduced since parameter maximum value for parameter minimum value, is until acquisition parameters value is adjusted to parameter minimum value
Only.In one embodiment, parameter adjustment can be adjusted according to preset step-length, and preset step-length can be according to actual needs
It is set.As soon as obtaining piece image according to the every adjustment time acquisition parameters value of adjusting step by the first camera, obtaining altogether
M width image.
For obtained M width image, since M width image is all that the first camera shoots same target scene
Obtained image, therefore, the picture material of M width image is substantially identical.For each image, all include and preview
The picture material of the identical N number of image-region of image, N number of image-region in each image is also nearly identical.Although M width
The picture material of image is identical, but since the corresponding acquisition parameters value of each image is different, the display effect of M width image is not
Together, for example, for the identical image region in M width image, clarity of the identical image region in different images, brightness
Deng possible different.Still by taking target scene is park scenery as an example, the image of M width park scenery is obtained through the above way, for M
For M tourist's image-region in width image, the clarity of this M tourist's image-region, brightness may be all different.
Further, it for region-of-interest, needs to meet clarity of the region-of-interest in shooting image default
Therefore condition in this specification embodiment, can be come true according to the clarity for the N number of image-region for including in M width image
Determine region-of-interest, and further determines that acquisition parameters corresponding with region-of-interest.
In one embodiment, determine that the corresponding best acquisition parameters value of each region-of-interest can be real in the following manner
It is existing: for each region in N number of image-region, the clarity of the image-region in the M width image;By the figure
As the corresponding acquisition parameters value of the highest image of the clarity in region, as being the best of the region-of-interest with the image-region
Acquisition parameters value.
In this specification embodiment, using some image-region in preview image as when region-of-interest, finally shooting
To image in, be to be subject to the clarity of region-of-interest.The clarity of the region-of-interest needs to meet preset condition, at this
It, can be using the highest acquisition parameters of region-of-interest clarity that the first camera can take as the concern area in embodiment
The best acquisition parameters value in domain.Specifically, after the first camera obtains M width image, each image in M width image is compared
The clarity in region.Still by taking park scenery above as an example, preview image includes 3 image-regions, respectively tourist's image district
Domain, lake water image-region, Tree image region.For tourist's image-region, each image in M width image is obtained
In tourist's image-region clarity, amount to and obtain M clarity, determined in M clarity highest clarity it is right
The image answered, then the width image is using tourist's image-region as the collected best figure of the first camera when region-of-interest
Picture, the corresponding acquisition parameters value of the width image be region-of-interest be tourist's image-region when, the best shooting of the first camera
Parameter value.Similarly, can obtain region-of-interest be lake water image-region and Tree image region when, the first camera it is best
Acquisition parameters value.
By the above-mentioned means, just having obtained when the first camera is shot using each image-region as region-of-interest most
Good acquisition parameters value.
In this specification embodiment, the target acquisition parameters of the acquisition parameters of the first camera and the second camera
It include Focusing parameter and/or exposure parameter.Wherein, Focusing parameter can be indicated by the location parameter of motor of camera, be exposed
Optical parameter can be indicated by exposure time.Specifically, when the acquisition parameters of the first camera are Focusing parameter, the second camera shooting
The acquisition parameters of head also correspond to Focusing parameter;When the acquisition parameters of the first camera are exposure parameter, second camera
Acquisition parameters also correspond to exposure parameter;When the acquisition parameters of the first camera are Focusing parameter and exposure parameter, second is taken the photograph
As the acquisition parameters of head also correspond to Focusing parameter and exposure parameter.Certainly, acquisition parameters can also be other parameters, here
Without limitation.
In the following, being with each image-region to the first camera so that acquisition parameters are Focusing parameter and exposure parameter as an example
The acquisition process of best acquisition parameters value when region-of-interest is shot is illustrated.It should be understood that best Focusing parameter
Value and optimum exposure parameter value can be obtained by two individual processes, can also be obtained simultaneously in same process.
For the acquisition process of best Focusing parameter value, when carrying out preview to target scene, according to the first camera
The Focusing parameter of first camera is gradually adjusted to maximum Focusing parameter by minimum Focusing parameter value by the range of Focusing parameter value
Value (or being gradually adjusted to minimum Focusing parameter value by maximum Focusing parameter value) obtains the first camera by nearly coke to remote coke
During adjustment (or during the adjustment by remote coke to nearly coke), the acquired image under each Focusing parameter value obtains M altogether
Width image.Further, by comparing the clarity for the N number of image-region for including in each image in M width image, determination will be every
When a image-region is as region-of-interest, the best Focusing parameter value of the first camera amounts to and obtains the best Focusing parameter of N group
Value, specific best Focusing parameter value determination process can refer to above description, just repeat no more here.
For the acquisition process of optimum exposure parameter value, when carrying out preview to target scene, according to the first camera
The exposure parameter of first camera is gradually adjusted to maximum exposure parameter by minimum exposure parameter value by the range of exposure parameter values
Value (or being gradually adjusted to minimum exposure parameter value by maximum exposure parameter value) obtains the first camera by under-exposure to overexposure
In photoreduction process (or by overexposure to during under-exposure), the acquired image under each exposure parameter values obtains M width figure altogether
Picture.Further, it by comparing the clarity for the N number of image-region for including in each image in M width image, determines each figure
When as region as region-of-interest, the optimum exposure parameter value of the first camera amounts to and obtains N group optimum exposure parameter value, tool
The exposure parameter values determination process of body can refer to above description, just repeat no more here.
Further, it is being determined that the N group that the first camera is shot using each image-region as region-of-interest is best
After acquisition parameters value, the N that second camera is shot using each image-region as region-of-interest is determined by step S12
Group optimum target acquisition parameters value.In this specification embodiment, the acquisition parameters value of preset first camera and the second camera shooting
The mapping relations of the acquisition parameters value of head can be mapping table, mapping relations curve or other kinds of mapping relations.
Mapping relations can obtain in several ways, for example, provided by empirical value acquisition mapping relations, by camera producer
Camera parameter calculates estimation and obtains mapping relations, or test obtains mapping relations, and this is not restricted.
Below using acquisition parameters as Focusing parameter and exposure parameter, reflected in laboratory environments by test mode acquisition
It penetrates for relationship, to introduce the acquisition process of mapping relations.It should be understood that the mapping relations and exposure ginseng of Focusing parameter value
The mapping relations of numerical value can be obtained by two processes or same process.
When obtaining the mapping relations of Focusing parameter value, can obtain in the following manner: the bat based on target object
Act as regent the adjusting range set, and is gradually adjusted to the position of the target object, determines that the first camera shooting is each
The Focusing parameter value of the target object at position, and determine that the second camera shoots the mesh at each position
Mark the Focusing parameter value of object;According to the Focusing parameter value and described second of first camera at each position
The Focusing parameter value of camera, establishes the mapping relations.
It specifically, can only be to one since the motor moving range of the first camera and second camera is limited
The reference object determined in range carries out focusing process, for example, the motor moving range of the first camera and second camera can
Focusing process is carried out with the reference object between the camera 5cm-10m that adjusts the distance.
In the acquisition process of the mapping relations of Focusing parameter value, camera can be pushed from the image of shooting distance 5cm
Gradually it is moved to the image apart from camera 10m.Target object can be moved according to preset moving step length, for example, moving
Dynamic step-length is 5cm, then the position of reference object is followed successively by apart from camera 5cm, 10cm, 15cm etc., and so on.It is testing
In the process, target object can be remained in the center position of preview image.
At each position of target object, determine that the first camera is carried out by region-of-interest of target object region
The best Focusing parameter value of shooting, and determine that second camera is shot most using region described in target object as region-of-interest
Good Focusing parameter value, using the two best Focusing parameter values as a mapping relations.Multiple positions pair based on target object
The mapping relations answered generate mapping relations.
For example, determining the first camera with target object for concern when the position of target object is apart from camera 5cm
The best Focusing parameter value that shoots when region is a1, and while determining second camera using target object as region-of-interest shoots
Best Focusing parameter value is b1.When the position of target object is apart from camera 10cm, determine the first camera with target pair
As being a2 for the best Focusing parameter value that shoots when region-of-interest, and determine second camera using target object as region-of-interest
When the best Focusing parameter value that shoots be b2.Further, the best Focusing parameter value a1 of the first camera and second is imaged
The best Focusing parameter value b1 of head is established as first mapping relations, by the best Focusing parameter value a2 and second of the first camera
The best Focusing parameter value b2 of camera is established as Article 2 mapping relations.Comprehensive each mapping relations generate reflecting for Focusing parameter
Penetrate relationship.
When obtaining the mapping relations of exposure parameter values, it can obtain in the following manner: gradually adjust described first
The exposure parameter values of the exposure parameter values of camera and the second camera, so that first camera is collected more
The brightness of image of width image is identical as the brightness of image of the collected multiple image of the second camera;According to it is each identical
The exposure parameter values of corresponding first camera collection image of brightness of image and the second camera acquire image
Exposure parameter values establish the mapping relations.
In the acquisition process of exposure parameter values mapping relations, target object can be placed on to the first camera and
Fixation position in two camera visual fields, and holding target object is in the center position of preview image.By the first camera
Exposure parameter maximum exposure parameter value is gradually adjusted to by minimum exposure parameter value (or by maximum exposure parameter value
Gradually it is adjusted to minimum exposure parameter value), obtain target object region in the image shot under each exposure parameter values
Brightness.Then it according to the brightness of target object region in each image of the first camera shooting, determines using second
When camera shoots target object, the exposure parameter values of same brightness are obtained.
For example, when the exposure parameter values of the first camera are d1, target object is shot, obtains shooting figure
Picture, the image region brightness in the image where target object are L1, then adjust the exposure parameter values of second camera, make the
In the image that two cameras are shot under the exposure parameter values, the corresponding image region brightness of target object is also L1, and is recorded
The exposure parameter values e1 of second camera at this time.Next, can be according to preset step-length by the exposure parameter values of the first camera
It is adjusted to d2, obtains shooting image, the corresponding image region brightness of target object is L2 in the image, corresponding the second camera shooting of adjustment
The exposure parameter values of head, in the image for shooting second camera under the exposure parameter, the corresponding image-region of target object
Brightness is also L2, and records the exposure parameter values e2 of second camera at this time.Further, by the exposure parameter of the first camera
The exposure parameter values e1 of value d1 and second camera is established as first mapping relations, by the exposure parameter values d2 of the first camera
Article 2 mapping relations are established as with the exposure parameter values e2 of second camera.Comprehensive each mapping relations generate exposure parameter
Mapping relations.
In this specification embodiment, by experimental test procedures obtain mapping relations, compared to pass through empirical value or calculating
Estimation obtains mapping relations, and obtained data are more acurrate, more meet the actual conditions of each camera, can improve acquisition of tabling look-up
The accuracy of the acquisition parameters of second camera, to improve the quality of subsequent shooting picture.In addition, obtaining mapping relations
Afterwards, it can be stored in electronic equipment, to be closed by inquiry mapping according to the best acquisition parameters value of the first camera
System quickly determines the optimum target acquisition parameters value of second camera.
Through above step, in preview image, so that it may obtain to be made in the preview image with each image-region
When for region-of-interest, the best acquisition parameters value of corresponding first camera of each region-of-interest and second camera it is best
Target acquisition parameters value.
It should be understood that the best acquisition parameters value of the first camera corresponding with each region-of-interest and the second camera shooting
The optimum target acquisition parameters value of head also may be constructed a corresponding relationship.In the corresponding relationship, there are the corresponding passes of N group
System, wherein every group of sub- corresponding relationship is to take the photograph with the image-region corresponding first in N number of image-region in preview image
As the best acquisition parameters value of head and the best acquisition parameters value of second camera.The preview image is paid close attention in user
Regional choice, or when switching region-of-interest, can quickly be determined by searching for the corresponding relationship corresponding with region-of-interest
The first camera acquisition parameters value and second camera acquisition parameters value, without every time when determining region-of-interest
Recalculate the acquisition parameters value of camera.
Further, in step s 13, the current region-of-interest in preview image be second camera according to target scene from
The determining image-region of dynamic focusing, current region-of-interest are also possible to the figure of display screen selection of the user by click electronic equipment
As region.After current region-of-interest has been determined, which of corresponding N number of image-region of current region-of-interest is further determined that
Image-region.According to above-mentioned corresponding relationship, determine the first of the first camera corresponding with the image-region shoot parameter value with
And the second target acquisition parameters value of second camera.Alternatively, first determined in the N group acquisition parameters value of the first camera and
The image-region corresponding first shoots parameter value, the acquisition parameters and second camera further according to preset first camera
The mapping relations of acquisition parameters inquire the second shooting parameter value of second camera corresponding with the first shooting parameter value.It will
First camera is set as the first shooting parameter value, sets the second shooting parameter value for second camera, to preview image into
Row is shot, and the clarity of current region-of-interest can satisfy preset condition in the shooting image obtained in this way.
In addition, it is necessary to explanation, when preview image changes, such as customer mobile terminal makes collected preview
Picture material, which changes in the corresponding scene brightness mutation of perhaps preview image or preview image, there is mobile object etc., just
Need to re-execute aforementioned S101~S103 to determine the corresponding each camera shooting of each image-region in the preview image after variation
The acquisition parameters value of head.
Scheme in this specification embodiment, when second camera is in the previews for carrying out target scene, by the
One camera goes out the corresponding best acquisition parameters value of each image-region in present preview image in hind computation.It thus can be with
Quickly the region-of-interest in present preview image is selected or handover operation responds, without after redefining region-of-interest
The calculating for carrying out acquisition parameters, has saved the adjustment time of each camera on the basis of guaranteeing shooting effect.Further,
Scheme in this specification embodiment can quickly adjust acquisition parameters value, be not in the prior art because when long therefore
Between the jump of the clarity, exposure of preview interface that occurs of parameter adjustment, and then improve user experience.
Based on the inventive concept with image pickup method in previous embodiment, second aspect of the present invention also provides a kind of shooting dress
It sets, is applied to electronic equipment, the electronic equipment includes the first camera and second camera, as shown in figure 3, the device packet
It includes:
First obtains module 31, for when carrying out preview to target scene, obtaining first camera respectively with pre-
Looking at each region in the N number of image-region for including in image is acquisition parameters value when region-of-interest is shot, total to obtain
The best acquisition parameters value of N group is obtained, N is the integer greater than 1;
Second obtains module 32, for according to the acquisition parameters value of preset first camera and the shooting of second camera
The mapping relations of parameter value determine the N group optimum target of the second camera corresponding with the best acquisition parameters value of the N group
Acquisition parameters value;
Processing module 33, for the current region-of-interest according to the preview image, in the best acquisition parameters value of the N group
In determine it is one group corresponding with the current region-of-interest described in best acquisition parameters value be the first shooting parameter value, Yi Ji
Determined in the N group optimum target acquisition parameters value it is one group corresponding with the current region-of-interest described in optimum target shooting
Parameter value is the second shooting parameter value, so that first camera is using the first shooting parameter value and described second
Camera shoots the target scene using the second shooting parameter value.
As a kind of optional embodiment, the first acquisition module 31 is specifically used for:
The range of parameter values of acquisition parameters based on first camera, to the parameter values of the acquisition parameters according to pre-
If mode carries out parameter adjustment, and first camera collects the M width of the target scene during the adjustment that gets parms
Image, each image in the M width image include N number of image-region, and M is the integer greater than 1;
According to the clarity for the N number of image-region for including in each image, determine N number of image-region
In best acquisition parameters value of each region when being shot as the region-of-interest.
As a kind of optional embodiment, the first acquisition module 31 is specifically used for:
For each image-region in N number of image-region, the image-region is clear in the M width image
Degree;
By the corresponding acquisition parameters value of the highest image of the clarity of the image-region, as using the image-region as institute
State the best acquisition parameters value of region-of-interest.
As a kind of optional embodiment, the acquisition parameters of first camera are Focusing parameter and/or exposure parameter,
The target acquisition parameters of the second camera also correspond to Focusing parameter and/or exposure parameter.
As a kind of optional embodiment, in the acquisition parameters of first camera and the mesh of the second camera
When mark acquisition parameters are Focusing parameter, the acquisition parameters value of preset first camera and the shooting of second camera are joined
The mapping relations of numerical value obtain in the following manner:
The adjusting range of camera site based on target object is gradually adjusted the position of the target object, really
Fixed first camera shoots the Focusing parameter value of the target object at each position, and determines second camera shooting
Head shoots the Focusing parameter value of the target object at each position;
According to the Focusing parameter value of first camera at each position and pair of the second camera
Burnt parameter value establishes the mapping relations.
As a kind of optional embodiment, in the acquisition parameters of first camera and the mesh of the second camera
When mark acquisition parameters are exposure parameter, the acquisition parameters value of preset first camera and the shooting of second camera are joined
The mapping relations of numerical value obtain in the following manner:
The exposure parameter values of first camera and the exposure parameter values of the second camera are gradually adjusted, so that
The brightness of image of the collected multiple image of first camera and the figure of the collected multiple image of the second camera
Image brightness is identical;
According to the exposure parameter values of first camera collection image corresponding with each identical image brightness and institute
The exposure parameter values for stating second camera acquisition image, establish the mapping relations.
About above-mentioned apparatus, wherein the concrete function of modules is in image pickup method provided in an embodiment of the present invention
It is described in detail in embodiment, no detailed explanation will be given here.
Based on inventive concept same as image pickup method in previous embodiment, third embodiment of the invention additionally provides one kind
Terminal system, referring to Figure 1, the device of the embodiment include: processor 105, memory 103 and are stored in the memory
In and the computer program that can run on the processor, such as the corresponding program of image pickup method in first embodiment.
Illustratively, the computer program can be divided into one or more module/units, one or more
A module/unit is stored in the memory, and is executed by the processor, to complete the present invention.It is one or more
A module/unit can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing institute
State implementation procedure of the computer program in the computer installation.
The introduction of terminal system memory, processor and other structures is please referred to above, is just not repeated here
It repeats.
Further, processor 105 included by the device is with the following functions:
When carrying out preview to target scene, first camera N number of figure to include in preview image respectively is obtained
Acquisition parameters value when being shot as each region in region for region-of-interest amounts to and obtains the best acquisition parameters value of N group,
N is the integer greater than 1;
According to the mapping relations of the acquisition parameters value of preset first camera and the acquisition parameters value of second camera, really
The N group optimum target acquisition parameters value of the fixed second camera corresponding with the best acquisition parameters value of the N group;
According to the current region-of-interest of the preview image, determined in the best acquisition parameters value of the N group with it is described
Best acquisition parameters value described in current region-of-interest is one group corresponding is the first shooting parameter value, and in the best mesh of N group
Mark acquisition parameters value in determine it is one group corresponding with the current region-of-interest described in optimum target acquisition parameters value be second
Acquisition parameters value, so that first camera uses institute using the first shooting parameter value and the second camera
It states the second shooting parameter value and shoots the target scene.
Further, processor 105 included by the device is also with the following functions:
The range of parameter values of acquisition parameters based on first camera, to the parameter values of the acquisition parameters according to pre-
If mode carries out parameter adjustment, and first camera collects the M width of the target scene during the adjustment that gets parms
Image, each image in the M width image include N number of image-region, and M is the integer greater than 1;
According to the clarity for the N number of image-region for including in each image, determine N number of image-region
In best acquisition parameters value of each region when being shot as the region-of-interest.
Further, processor 105 included by the device is also with the following functions:
For each image-region in N number of image-region, the image-region is clear in the M width image
Degree;
By the corresponding acquisition parameters value of the highest image of the clarity of the image-region, as using the image-region as institute
State the best acquisition parameters value of region-of-interest.
Further, processor 105 included by the device is also with the following functions:
It is focusing ginseng in the acquisition parameters of first camera and the target acquisition parameters of the second camera
When number, the adjusting range of the camera site based on target object is gradually adjusted the position of the target object, determines institute
The Focusing parameter value for the target object that the first camera is shot at each position is stated, and determines that the second camera is clapped
Take the photograph the Focusing parameter value of the target object at each position;
According to the Focusing parameter value of first camera at each position and pair of the second camera
Burnt parameter value establishes the mapping relations.
Further, processor 105 included by the device is also with the following functions:
It is exposure ginseng in the acquisition parameters of first camera and the target acquisition parameters of the second camera
When number, the exposure parameter values of first camera and the exposure parameter values of the second camera are gradually adjusted, so that institute
State the brightness of image of the collected multiple image of the first camera and the image of the collected multiple image of the second camera
Brightness is identical;
According to the exposure parameter values of first camera collection image corresponding with each identical image brightness and institute
The exposure parameter values for stating second camera acquisition image, establish the mapping relations.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention is reference according to the method for this specification embodiment, the stream of equipment (system) and computer program product
Journey figure and/or block diagram describe.It should be understood that can be realized by computer program instructions each in flowchart and/or the block diagram
The combination of process and/or box in process and/or box and flowchart and/or the block diagram.It can provide these computer journeys
Sequence instruct to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with
A machine is generated, so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for
Realize the dress for the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram
It sets.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of image pickup method, it is applied to electronic equipment, which is characterized in that the electronic equipment includes the first camera and the
Two cameras, which comprises
When carrying out preview to target scene, first camera N number of image district to include in preview image respectively is obtained
Each region in domain is best acquisition parameters value when region-of-interest is shot, and amounts to and obtains the best acquisition parameters value of N group,
N is the integer greater than 1;
According to the mapping relations of the acquisition parameters value of preset first camera and the acquisition parameters value of second camera, determine with
The N group optimum target acquisition parameters value of the corresponding second camera of the best acquisition parameters value of N group;
According to the current region-of-interest of the preview image, determined in the best acquisition parameters value of the N group with it is described current
Best acquisition parameters value described in region-of-interest is one group corresponding is the first shooting parameter value, and is clapped in the N group optimum target
Take the photograph in parameter value determine it is one group corresponding with the current region-of-interest described in optimum target acquisition parameters value be second shooting
Parameter value, so that first camera is using the first shooting parameter value and the second camera using described the
Two acquisition parameters values shoot the target scene.
2. the method according to claim 1, wherein described when carrying out preview to target scene, described in acquisition
When first camera is shot using each region in the N number of image-region for including in preview image as region-of-interest respectively
Best acquisition parameters value, comprising:
The range of parameter values of acquisition parameters based on first camera, to the parameter values of the acquisition parameters according to default side
Formula carries out parameter adjustment, and first camera collects the M width image of the target scene during the adjustment that gets parms,
Each image in the M width image includes N number of image-region, and M is the integer greater than 1;
According to the clarity for the N number of image-region for including in each image, determination will be in N number of image-region
Best acquisition parameters value when each region is shot as the region-of-interest.
3. according to the method described in claim 2, it is characterized in that, described described N number of according to include in each image
The clarity of image-region, when determination is shot in each region in N number of image-region as the region-of-interest
Best acquisition parameters value, comprising:
For each image-region in N number of image-region, the clarity of the image-region in the M width image;
By the corresponding acquisition parameters value of the highest image of the clarity of the image-region, as using the image-region as the pass
Infuse the best acquisition parameters value in region.
4. method according to claim 1-3, which is characterized in that the acquisition parameters of first camera are pair
Burnt parameter and/or exposure parameter, the target acquisition parameters of the second camera also correspond to Focusing parameter and/or exposure ginseng
Number.
5. according to the method described in claim 4, it is characterized in that, in the acquisition parameters of first camera and described
When the target acquisition parameters of two cameras are the Focusing parameter, the acquisition parameters value of preset first camera and the
The mapping relations of the acquisition parameters value of two cameras obtain in the following manner:
The adjusting range of camera site based on target object is gradually adjusted the position of the target object, determines institute
The Focusing parameter value for the target object that the first camera is shot at each position is stated, and determines that the second camera is clapped
Take the photograph the Focusing parameter value of the target object at each position;
Joined according to the focusing of the Focusing parameter value of first camera at each position and the second camera
Numerical value establishes the mapping relations.
6. according to the method described in claim 4, it is characterized in that, in the acquisition parameters of first camera and described
When the target acquisition parameters of two cameras are the exposure parameter, the acquisition parameters value of preset first camera and the
The mapping relations of the acquisition parameters value of two cameras obtain in the following manner:
The exposure parameter values of first camera and the exposure parameter values of the second camera are gradually adjusted, so that described
The brightness of image of the collected multiple image of first camera and the image of the collected multiple image of the second camera are bright
It spends identical;
According to the exposure parameter values of first camera collection image corresponding with each identical image brightness and described
The exposure parameter values of two camera collection images establish the mapping relations.
7. a kind of filming apparatus, it is applied to electronic equipment, which is characterized in that the electronic equipment includes the first camera and the
Two cameras, described device include:
First obtains module, for when carrying out preview to target scene, obtaining first camera respectively with preview image
In include N number of image-region in each region be best acquisition parameters value of region-of-interest when being shot, amount to and obtain N
The best acquisition parameters value of group, N are the integer greater than 1;
Second obtains module, for according to the acquisition parameters value of preset first camera and the acquisition parameters value of second camera
Mapping relations, determine that the N group optimum target shooting of corresponding with the best acquisition parameters value of the N group second camera is joined
Numerical value;
Processing module determines in the best acquisition parameters value of the N group for the current region-of-interest according to the preview image
Best acquisition parameters value described in one group corresponding with the current region-of-interest out is the first shooting parameter value, and in the N
Group optimum target acquisition parameters value in determine it is one group corresponding with the current region-of-interest described in optimum target acquisition parameters
Value is the second shooting parameter value, so that first camera is using the first shooting parameter value and second camera shooting
Head shoots the target scene using the second shooting parameter value.
8. device according to claim 7, which is characterized in that described first obtains module, is used for:
The range of parameter values of acquisition parameters based on first camera, to the parameter values of the acquisition parameters according to default side
Formula carries out parameter adjustment, and first camera collects the M width image of the target scene during the adjustment that gets parms,
Each image in the M width image includes N number of image-region, and M is the integer greater than 1;
According to the clarity for the N number of image-region for including in each image, determination will be in N number of image-region
Best acquisition parameters value when each region is shot as the region-of-interest.
9. a kind of electronic equipment, which is characterized in that including processor and memory:
The memory is used to store the program that perform claim requires any one of 1 to 6 the method;
The processor is configured to for executing the program stored in the memory.
10. a kind of computer storage medium, which is characterized in that be stored thereon with computer program, which is executed by processor
The step of Shi Shixian any one of claims 1 to 6 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811641102.6A CN109495689B (en) | 2018-12-29 | 2018-12-29 | Shooting method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811641102.6A CN109495689B (en) | 2018-12-29 | 2018-12-29 | Shooting method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109495689A true CN109495689A (en) | 2019-03-19 |
CN109495689B CN109495689B (en) | 2021-04-13 |
Family
ID=65713544
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811641102.6A Active CN109495689B (en) | 2018-12-29 | 2018-12-29 | Shooting method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109495689B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110225248A (en) * | 2019-05-29 | 2019-09-10 | Oppo广东移动通信有限公司 | Image-pickup method and device, electronic equipment, computer readable storage medium |
CN110830717A (en) * | 2019-11-12 | 2020-02-21 | 维沃移动通信有限公司 | Parameter value acquisition method and electronic equipment |
CN111654635A (en) * | 2020-06-30 | 2020-09-11 | 维沃移动通信有限公司 | Shooting parameter adjusting method and device and electronic equipment |
CN112235563A (en) * | 2019-07-15 | 2021-01-15 | 北京字节跳动网络技术有限公司 | Focusing test method and device, computer equipment and storage medium |
CN112748438A (en) * | 2019-10-31 | 2021-05-04 | 傲基科技股份有限公司 | Method suitable for accurate positioning of laser ranging device and laser ranging system and method |
CN112770042A (en) * | 2019-11-05 | 2021-05-07 | RealMe重庆移动通信有限公司 | Image processing method and device, computer readable medium, wireless communication terminal |
CN113592800A (en) * | 2021-07-22 | 2021-11-02 | 梅卡曼德(北京)机器人科技有限公司 | Image scanning method and device based on dynamic scanning parameters |
CN113630558A (en) * | 2021-07-13 | 2021-11-09 | 荣耀终端有限公司 | Camera exposure method and electronic equipment |
CN114071024A (en) * | 2021-11-26 | 2022-02-18 | 北京百度网讯科技有限公司 | Image shooting method, neural network training method, device, equipment and medium |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050271379A1 (en) * | 2004-06-07 | 2005-12-08 | Hyung-Guen Lee | Method and apparatus for controlling automatic exposure in a camera |
CN101950063A (en) * | 2009-07-10 | 2011-01-19 | 佛山普立华科技有限公司 | Automatic focusing system and automatic focusing method |
CN103905732A (en) * | 2014-04-02 | 2014-07-02 | 深圳市中兴移动通信有限公司 | Shooting method and shooting device |
CN104917950A (en) * | 2014-03-10 | 2015-09-16 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105100579A (en) * | 2014-05-09 | 2015-11-25 | 华为技术有限公司 | Image data acquisition processing method and related device |
CN105791674A (en) * | 2016-02-05 | 2016-07-20 | 联想(北京)有限公司 | Electronic device and focusing method |
CN105847703A (en) * | 2016-03-28 | 2016-08-10 | 联想(北京)有限公司 | Image processing method and electronic device |
CN106060412A (en) * | 2016-08-02 | 2016-10-26 | 乐视控股(北京)有限公司 | Photographic processing method and device |
CN106134176A (en) * | 2014-04-03 | 2016-11-16 | 高通股份有限公司 | System and method for multifocal imaging |
CN106534696A (en) * | 2016-11-29 | 2017-03-22 | 努比亚技术有限公司 | Focusing apparatus and method |
CN106572305A (en) * | 2016-11-03 | 2017-04-19 | 乐视控股(北京)有限公司 | Image shooting method, image processing method, apparatuses and electronic device |
CN107580184A (en) * | 2017-10-31 | 2018-01-12 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN108322670A (en) * | 2018-04-27 | 2018-07-24 | Oppo广东移动通信有限公司 | A kind of control method of multi-camera system, mobile terminal and storage medium |
CN108377341A (en) * | 2018-05-14 | 2018-08-07 | Oppo广东移动通信有限公司 | Photographic method, device, terminal and storage medium |
CN108848294A (en) * | 2018-08-15 | 2018-11-20 | 努比亚技术有限公司 | A kind of shooting parameter adjustment method, terminal and computer readable storage medium |
-
2018
- 2018-12-29 CN CN201811641102.6A patent/CN109495689B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050271379A1 (en) * | 2004-06-07 | 2005-12-08 | Hyung-Guen Lee | Method and apparatus for controlling automatic exposure in a camera |
CN101950063A (en) * | 2009-07-10 | 2011-01-19 | 佛山普立华科技有限公司 | Automatic focusing system and automatic focusing method |
CN104917950A (en) * | 2014-03-10 | 2015-09-16 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103905732A (en) * | 2014-04-02 | 2014-07-02 | 深圳市中兴移动通信有限公司 | Shooting method and shooting device |
CN106134176A (en) * | 2014-04-03 | 2016-11-16 | 高通股份有限公司 | System and method for multifocal imaging |
CN105100579A (en) * | 2014-05-09 | 2015-11-25 | 华为技术有限公司 | Image data acquisition processing method and related device |
CN105791674A (en) * | 2016-02-05 | 2016-07-20 | 联想(北京)有限公司 | Electronic device and focusing method |
CN105847703A (en) * | 2016-03-28 | 2016-08-10 | 联想(北京)有限公司 | Image processing method and electronic device |
CN106060412A (en) * | 2016-08-02 | 2016-10-26 | 乐视控股(北京)有限公司 | Photographic processing method and device |
CN106572305A (en) * | 2016-11-03 | 2017-04-19 | 乐视控股(北京)有限公司 | Image shooting method, image processing method, apparatuses and electronic device |
CN106534696A (en) * | 2016-11-29 | 2017-03-22 | 努比亚技术有限公司 | Focusing apparatus and method |
CN107580184A (en) * | 2017-10-31 | 2018-01-12 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN108322670A (en) * | 2018-04-27 | 2018-07-24 | Oppo广东移动通信有限公司 | A kind of control method of multi-camera system, mobile terminal and storage medium |
CN108377341A (en) * | 2018-05-14 | 2018-08-07 | Oppo广东移动通信有限公司 | Photographic method, device, terminal and storage medium |
CN108848294A (en) * | 2018-08-15 | 2018-11-20 | 努比亚技术有限公司 | A kind of shooting parameter adjustment method, terminal and computer readable storage medium |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110225248A (en) * | 2019-05-29 | 2019-09-10 | Oppo广东移动通信有限公司 | Image-pickup method and device, electronic equipment, computer readable storage medium |
CN110225248B (en) * | 2019-05-29 | 2021-11-16 | Oppo广东移动通信有限公司 | Image acquisition method and device, electronic equipment and computer readable storage medium |
CN112235563A (en) * | 2019-07-15 | 2021-01-15 | 北京字节跳动网络技术有限公司 | Focusing test method and device, computer equipment and storage medium |
CN112235563B (en) * | 2019-07-15 | 2023-06-30 | 北京字节跳动网络技术有限公司 | Focusing test method and device, computer equipment and storage medium |
CN112748438A (en) * | 2019-10-31 | 2021-05-04 | 傲基科技股份有限公司 | Method suitable for accurate positioning of laser ranging device and laser ranging system and method |
CN112770042A (en) * | 2019-11-05 | 2021-05-07 | RealMe重庆移动通信有限公司 | Image processing method and device, computer readable medium, wireless communication terminal |
CN110830717A (en) * | 2019-11-12 | 2020-02-21 | 维沃移动通信有限公司 | Parameter value acquisition method and electronic equipment |
CN110830717B (en) * | 2019-11-12 | 2021-06-25 | 维沃移动通信有限公司 | Parameter value acquisition method and electronic equipment |
CN111654635A (en) * | 2020-06-30 | 2020-09-11 | 维沃移动通信有限公司 | Shooting parameter adjusting method and device and electronic equipment |
CN113630558A (en) * | 2021-07-13 | 2021-11-09 | 荣耀终端有限公司 | Camera exposure method and electronic equipment |
CN113592800A (en) * | 2021-07-22 | 2021-11-02 | 梅卡曼德(北京)机器人科技有限公司 | Image scanning method and device based on dynamic scanning parameters |
CN114071024A (en) * | 2021-11-26 | 2022-02-18 | 北京百度网讯科技有限公司 | Image shooting method, neural network training method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN109495689B (en) | 2021-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109495689A (en) | A kind of image pickup method, device, electronic equipment and storage medium | |
CN106687991B (en) | System and method for setting focus of digital images based on social relationships | |
US9692959B2 (en) | Image processing apparatus and method | |
JP6924901B2 (en) | Photography method and electronic equipment | |
WO2020228418A1 (en) | Video processing method and device, electronic apparatus, and storage medium | |
US9826145B2 (en) | Method and system to assist a user to capture an image or video | |
CN108234879B (en) | Method and device for acquiring sliding zoom video | |
CN108234880B (en) | Image enhancement method and device | |
CN110557547A (en) | Lens position adjusting method and device | |
RU2614541C2 (en) | Image readjustment method, device and terminal | |
WO2018017202A1 (en) | Locking a group of images to a desired level of zoom and an object of interest between image transitions | |
JP7461955B2 (en) | MEASUREMENT REPORTING METHOD AND DEVICE, TERMINAL DEVICE INFORMATION ACQUISITION METHOD AND DEVICE | |
CN104994274A (en) | Rapid photographing method based on mobile terminal and mobile terminal | |
CN108419009A (en) | Image definition enhancing method and device | |
CN109547699A (en) | A kind of method and device taken pictures | |
WO2012131151A1 (en) | Methods and apparatuses for generating a panoramic image | |
US10136061B2 (en) | Automatic processing of automatic image capture parameter adjustment | |
CN107730443B (en) | Image processing method and device and user equipment | |
CN109547703B (en) | Shooting method and device of camera equipment, electronic equipment and medium | |
CN109727192A (en) | A kind of method and device of image procossing | |
CN114143471B (en) | Image processing method, system, mobile terminal and computer readable storage medium | |
WO2019109349A1 (en) | Method and apparatus for controlling terminal access | |
US20220294989A1 (en) | Method and apparatus for processing image | |
CN114422687A (en) | Preview image switching method and device, electronic equipment and storage medium | |
US11382032B2 (en) | Cell access method and apparatus |
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 |