CN106851113A - A kind of photographic method and mobile terminal based on dual camera - Google Patents
A kind of photographic method and mobile terminal based on dual camera Download PDFInfo
- Publication number
- CN106851113A CN106851113A CN201710200314.XA CN201710200314A CN106851113A CN 106851113 A CN106851113 A CN 106851113A CN 201710200314 A CN201710200314 A CN 201710200314A CN 106851113 A CN106851113 A CN 106851113A
- Authority
- CN
- China
- Prior art keywords
- distance
- image
- matic mould
- background
- dual camera
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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
-
- 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/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- 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/80—Camera processing pipelines; Components thereof
Abstract
The present invention provides a kind of photographic method and mobile terminal based on dual camera.The method includes:Under preview mode, the preview image of dual camera collection is obtained;Foreground and background in identification preview image, and calculate the distance of foreground and background;The matic mould for being adapted to present filming scene is chosen according to distance;When photographing instruction is received, the acquisition parameters according to corresponding to the matic mould are optimized to imaging effect.The present invention judges the distance of foreground and background by the preview image gathered under dual camera, and goes out the matic mould for being adapted to current scene of taking pictures apart from Dynamic recommendation according to this.There is certain lifting relative to traditional single camera using effect of taking pictures of the invention, optimize image quality, improve imaging effect, lift Consumer's Experience.
Description
Technical field
The present invention relates to field electronic technology field, more particularly to a kind of photographic method and movement based on dual camera are eventually
End.
Background technology
Development and the fast growth of mobile Internet with intelligent mobile terminal, the camera function of mobile terminal is increasingly
Powerful, mobile terminal is treated as a carry-on shooting instrument by many users, therefore the quality of shooting effect has become use
Weigh the good and bad important indicator of a mobile terminal in family.
Traditional electronic equipment, generally uses single camera and takes pictures image.But single camera is due to self character
Limitation, causing the quality of imaging cannot improve always.Therefore the image quality of mobile terminal how is lifted, lifting user's
Experience, is the continuous target pursued of current field of mobile terminals.
The content of the invention
It is a primary object of the present invention to propose a kind of photographic method and mobile terminal based on dual camera, it is used to solve
The not good problem of mobile terminal image quality in the prior art.
For achieving the above object, the present invention uses following technical schemes:
According to one aspect of the present invention, there is provided a kind of photographic method based on dual camera, including:
Under preview mode, the preview image of dual camera collection is obtained;
Foreground and background in the preview image is recognized, and calculates the distance of the foreground and background;
The matic mould for being adapted to present filming scene is chosen according to the distance, and after photographing instruction is received, according to
Acquisition parameters corresponding to the matic mould are taken pictures.
Optionally, foreground and background in the identification preview image, and calculate the distance of the foreground and background, tool
Body includes:
Obtain the positional information of prospect and the background described in the preview image;
Described in distance according to the spacing and dual camera between the positional information, dual camera and imaging plane is calculated
The depth of view information of prospect and the background;
The difference of the depth of view information of the prospect and the background is the distance.
Optionally, it is described that the matic mould for being adapted to present filming scene is chosen according to the distance, specifically include:
Judge the distance whether more than default first distance threshold;
When the distance is judged more than default first distance threshold, judge to whether there is people in the preview image
Face;
When judging to have face, then the matic mould of present filming scene is personage's pattern;Otherwise, present filming scene
The matic mould be landscaping mode;
When the distance is judged less than or equal to default first distance threshold, whether the depth of field of the judgement prospect
More than second distance threshold value, and when judging more than second distance threshold value, then the matic mould of present filming scene is landscape mould
Formula.
Optionally, the acquisition parameters according to corresponding to the matic mould are taken pictures, and are specifically included:
When the matic mould is personage's pattern, opens large aperture and shot, and to the personage in the image of shooting
Face optimizes treatment;
When the matic mould is landscaping mode, opens large aperture and shot, and sharpen the prospect of the image of shooting
Scenery;
When the matic mould is landscape configuration, closes large aperture and unlatching high dynamic illumination render HDR and shot,
And the image to shooting is sharpened.
Optionally, the acquisition parameters according to corresponding to the matic mould are taken pictures, and are specifically included:
When being taken pictures, the final image of acquisition is single camera shooting image or is dual camera shooting image
Composograph.
According to one aspect of the present invention, there is provided a kind of mobile terminal, including:
Acquiring unit, under preview mode, obtaining the preview image of dual camera collection;
Recognition unit, for recognizing foreground and background in the preview image, and calculates the distance of the foreground and background;
Unit is chosen, for choosing the matic mould for being adapted to present filming scene according to the distance;
Photographing unit, optimizes for the acquisition parameters according to corresponding to the matic mould to imaging effect.
Optionally, the recognition unit, specifically for:
Obtain the positional information of prospect and the background described in the preview image;
Described in distance according to the spacing and dual camera between the positional information, dual camera and imaging plane is calculated
The depth of view information of prospect and the background;
The difference of the depth of view information of the prospect and the background is the distance.
Optionally, the selection unit, specifically for:
Judge the distance whether more than default first distance threshold;
When the distance is judged more than default first distance threshold, judge to whether there is people in the preview image
Face;
When judging to have face, then the matic mould of present filming scene is personage's pattern;Otherwise, present filming scene
The matic mould be landscaping mode;
When the distance is judged less than or equal to default first distance threshold, whether the depth of field of the judgement prospect
More than second distance threshold value, and when judging more than second distance threshold value, then the matic mould of present filming scene is landscape mould
Formula.
Optionally, the photographing unit, specifically for:
When the matic mould is personage's pattern, opens large aperture and shot, and to the personage in the image of shooting
Face optimizes treatment;
When the matic mould is landscaping mode, opens large aperture and shot, and sharpen the prospect of the image of shooting
Scenery;
When the matic mould is landscape configuration, closes large aperture and unlatching high dynamic illumination render HDR and shot,
And the image to shooting is sharpened.
Optionally, the final image that the photographing unit is obtained is for single camera shooting image or for dual camera is clapped
Take the photograph the composograph of image.
Photographic method and mobile terminal based on dual camera proposed by the invention, it is pre- by what is gathered under dual camera
Look at the distance of spectral discrimination foreground and background, and go out the matic mould of the scene that is adapted to currently to take pictures apart from Dynamic recommendation according to this,
And image is optimized according to the Optimal Parameters set in the matic mould.Understand, using it is of the invention take pictures effect relative to
Traditional single camera has certain lifting, optimizes image quality, improves imaging effect, lifts Consumer's Experience.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each optional mobile terminal of embodiment one of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of the photographic method based on dual camera in one embodiment of the invention;
Fig. 4 is the schematic diagram of taking pictures of dual camera in one embodiment of the invention;
Fig. 5 is the schematic diagram of preview image in one embodiment of the invention;
Fig. 6 is the schematic diagram of preview image in one embodiment of the invention;
Fig. 7 is mobile terminal structure theory diagram in one embodiment of the invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for being conducive to explanation of the invention, itself
Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP
The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement
Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware architecture diagram for realizing each optional mobile terminal of embodiment one of the invention.
Mobile terminal 1 00 can include user input unit 130, sensing unit 140, output unit 150, memory 160,
Interface unit 170, controller 180 and power subsystem 190 etc..Fig. 1 shows the mobile terminal with various assemblies, but should
What is understood is, it is not required that implement all components for showing.More or less component can alternatively be implemented.To be detailed below
The element of thin description mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system
Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module
112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting
Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of DMB (DMB)
The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast
Receiver module 111 can receive signal and broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111
Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video
Broadcast-hand-held (DVB-H), Radio Data System, the received terrestrial digital broadcasting integrated service of forward link media (MediaFLO@)
Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and be adapted to provide for extensively
Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal can be logical including voice
Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115 is calculated and comes from three or more satellites
Range information and correct time information and the Information application triangulation for calculating, so as to according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, defended using three for calculating the method for position and temporal information
Star and the position that is calculated by using other satellite correction and the error of temporal information.Additionally, GPS module 115
Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121
Microphone 122, the static images that 121 pairs, camera is obtained in Video Capture pattern or image capture mode by image capture apparatus
Or the view data of video is processed.Picture frame after treatment may be displayed on display unit 151.Processed through camera 121
Picture frame afterwards can be stored in memory 160 (or other storage mediums) or sent out via wireless communication unit 110
Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note
Sound (voice data) is received via microphone in record pattern, speech recognition mode etc. operational mode, and can be by so
Acoustic processing be voice data.Audio (voice) data after treatment can be converted in the case of telephone calling model can
The form for being sent to mobile communication base station via mobile communication module 112 is exported.Microphone 122 can implement various types of making an uproar
Sound eliminates (or suppression) algorithm to eliminate the noise or dry that (or suppression) produces during reception and transmission audio signal
Disturb.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input
Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch
Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape
State), the presence or absence of the contact (that is, touch input) of the position of mobile terminal 1 00, user for mobile terminal 1 00, mobile terminal
The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00
The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed
The sliding-type phone is opened or closed.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 is connected the interface that can pass through with mobile terminal 1 00 as at least one external device (ED).For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user
Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included
Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know
Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from
The input (for example, data message, electric power etc.) of the external device (ED) and input that will be received is transferred in mobile terminal 1 00
One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing by it by electricity
Power provides to the path of mobile terminal 1 00 from base or can serve as allowing the various command signals being input into from base to pass through it
It is transferred to the path of mobile terminal.Be can serve as recognizing that mobile terminal is from the various command signals or electric power of base input
The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner
Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display
Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file
Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern
Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure
UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit
151 can serve as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired implementation method, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used to detect touch
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode
The voice data transducing audio signal of middle storage and it is output as sound.And, dio Output Modules 152 can be provided and movement
The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation that terminal 100 is performed.
Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output and be notified to mobile terminal 1 00 with by event.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit
153 can in a different manner provide output with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating
Output is provided, when calling, message or some other entrance communication (incomingcommunication) are received, alarm list
Unit 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even if
When in pocket of the mobile phone of user in user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program for the treatment and control operation performed by controller 180 etc., Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal
Data.
Memory 160 can include the storage medium of at least one type, and storage medium includes flash memory, hard disk, multimedia
Card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access memory
(SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memory with by network connection
The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data
Communication, video calling etc. related control and treatment.In addition, controller 180 can be included for reproducing (or playback) many matchmakers
The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or can be structured as and control
Device 180 is separated.Controller 180 can be with execution pattern identifying processing, the handwriting input that will be performed on the touchscreen or picture
Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit
Appropriate electric power needed for part and component.
Various implementation methods described herein can be with use such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implemented.Implement for hardware, implementation method described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein
At least one in electronic unit is implemented, and in some cases, such implementation method can be implemented in controller 180.
For software implementation, the implementation method of such as process or function can with allow to perform the single of at least one function or operation
Software module is implemented.Software code can be come by the software application (or program) write with any appropriate programming language
Implement, software code can be stored in memory 160 and performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is used as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any
Line and wireless communication system and satellite-based communication system are operated.
The communication system that mobile terminal wherein of the invention can be operated is described referring now to Fig. 2.
Such communication system can use different air interface and/or physical layer.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base station (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link.
If any one in the interface that back haul link can be known according to Ganji is constructed, interface includes such as E1/T1, ATM, IP, PPP,
Frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction
Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception
Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and the distribution of each frequency has specific frequency spectrum
(for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed intersects can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed
It is multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to broadcsting transmitter (BT) 295 mobile terminal operated in system
100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295
Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals
At least one of 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful
Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to be believed with obtaining desired positioning
Breath.Substitute GPS tracking techniques or outside GPS tracking techniques, it is possible to use other of the position of mobile terminal can be tracked
Technology.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
Used as a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00
Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270 is anti-
Processed in specific BS270 to link signal.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call
Resource allocation and the mobile management function of the coordination including the soft switching process between BS270.The number that BSC275 will also be received
According to MSC280 is routed to, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals
It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration, mobile terminal of the present invention and method each embodiment are proposed.
The embodiment of the present invention provides a kind of photographic method based on dual camera, as shown in figure 3, including:
Step 101, under preview mode, obtains the preview image of dual camera collection.
Here preview image refers to the image of screen display after dual camera is opened.Wherein, dual camera can set
The same side (as shown in Figure 4) of mobile terminal is placed in, the not homonymy of mobile terminal can also be arranged at, but can be by adjusting
It is whole, dual camera is adjusted to the same side, so that the collection of two cameras is Same Scene.
Wherein, under preview mode, the preview image that dual camera is gathered can be entered in same interface of finding a view (in screen)
Row split screen display available, referring to Fig. 5;Or, a main camera in dual camera, another is auxiliary camera.In preview mode
Under, the image of main camera collection need to be only shown, referring to Fig. 6.
Step 102, foreground and background in identification preview image, and calculate the distance of foreground and background.
First, the positional information of foreground and background in preview image is obtained.
Because the coordinate system where two cameras is set in advance, therefore before can obtaining in each preview image
The location coordinate information of scape and background.Wherein, the positional information of prospect can be according to the position acquisition of focus.Here, only need to obtain
The abscissa of foreground and background.
Secondly, before the distance according to the spacing and dual camera between positional information, dual camera and imaging plane is calculated
The depth of view information of scape and background, the difference of the depth of view information of foreground and background is distance.
Wherein, dual camera position in a coordinate system is fixed, such as coordinate where the first camera for (0,0,
0), coordinate where second camera is (tx, 0,0).Therefore the spacing between dual camera be can be according to two positions of camera
Put acquired in coordinate, tx is the spacing between two cameras.For the distance between dual camera and imaging plane
It is set in advance.
Before being calculated respectively according to the spacing and dual camera and the distance of imaging plane between positional information, dual camera
The method of scape depth of view information d1 is as follows:
D1=f*tx/ (xj-xi)
Wherein, f is the spacing of dual camera and imaging plane;Xi is prospect in the preview image that the first camera is gathered
Abscissa;Xj is the abscissa in the preview image of second camera collection;Tx be the first camera and second camera it
Between spacing.
The depth of view information d2 of background equally can be calculated and obtained according to above-mentioned method, be not discussed here.Background
With the difference of prospect distance as depth of view information:D=d2-d1.
It should be noted that only giving a kind of mode that can realize range finding above, this kind of implementation method is only used for
It is bright, it is not used to limiting the scope of the present invention.Therefore, the present invention is implemented by way of other dual cameras are found range
, also all it is within protection scope of the present invention.
Step 103, the matic mould for being adapted to present filming scene is chosen according to distance, and after photographing instruction is received,
Acquisition parameters according to corresponding to the matic mould are taken pictures.
In the present embodiment, recommend to be adapted to the master corresponding to present filming scene automatically according to the distance between foreground and background
Topic pattern, it is ensured that the quality of imaging.Wherein, the matic mould includes personage's pattern, landscaping mode and landscape configuration.
Specifically, the matic mould of suitable present filming scene is being chosen according to distance, is being specifically included:
Judge prospect with the distance of background whether more than default first distance threshold;
When judging that the distance is more than default first distance threshold, then need further to judge to whether there is in preview image
Face;
When judging to have face, then the matic mould of present filming scene is personage's pattern;Otherwise, present filming scene
The matic mould be landscaping mode;
When distance is judged less than or equal to when presetting in the first distance threshold, whether the depth of field of judgement prospect is more than pre-
If second distance threshold value, and when judging more than second distance threshold value, then the matic mould of present filming scene is landscape configuration;
When other results are judged to, then processed without selecting the specific matic mould.
Corresponding acquisition parameters are preset with every kind of matic mould, image is processed according to the acquisition parameters, can effectively carried
The quality of height imaging.Certainly, if follow-up image quality be not up to user it is expected when, user can also enter to the acquisition parameters
Row setting.
Wherein, optionally, the acquisition parameters according to corresponding to the matic mould are taken pictures, and are specifically included as follows:
When the matic mould is personage's pattern, opens large aperture and shot, and to the character facial in the image of shooting
Optimize treatment.For example, slightly being ground skin treatment and optimization skin redness performance etc. to character facial.
When the matic mould is landscaping mode, opens large aperture and shot, and sharpen the prospect scenery of the image of shooting,
So that the scenery of prospect can be protruded more and clear.
When the matic mould is landscape configuration, closes large aperture and unlatching high dynamic illumination renders HDR and shot, and it is right
The image of shooting is sharpened.
It should be noted that after the matic mould is determined by dual camera, when being taken pictures, the final image of acquisition
It is the composograph of the shooting image of the shooting image or double shootings of single camera..
Or, after the matic mould is determined by dual camera, by dual camera according to parameter of taking pictures to shooting image
Processed.One of fine definition is then selected according to image image quality as final shooting image, or using pre-
If blending algorithm be an image as final shooting image using the image co-registration that two cameras shoot.For example, passing through
One camera uses wide-angle, another camera to use focal length, and the image after so merging can both be presented the effect of wide-angle, while
Distortion is prevented effectively from details.
Understood based on above-mentioned, the photographic method based on dual camera that the embodiment of the present invention is provided, by dual camera
The preview image of lower collection judges the distance of foreground and background, and goes out to be adapted to scene of currently taking pictures apart from Dynamic recommendation according to this
The matic mould, and image is optimized according to the Optimal Parameters set in the matic mould.Understand, using effect of taking pictures of the invention
Fruit has certain lifting relative to traditional single camera, optimizes image quality, improves imaging effect, lifts Consumer's Experience.
The embodiment of the present invention provides a kind of mobile terminal, for realizing the above-mentioned photographic method based on dual camera, such as
Shown in Fig. 7, including:
Collecting unit 41, under preview mode, obtaining the preview image of dual camera collection;
Wherein, after dual camera is opened, collecting unit 41 obtains the preview image of dual camera collection in real time.
Recognition unit 42, for recognizing foreground and background in preview image, and calculates the distance of foreground and background.
Specifically, recognition unit 42 specifically for:
Obtain the positional information of foreground and background in preview image;
Distance according to the spacing and dual camera between positional information, dual camera and imaging plane calculates prospect and the back of the body
The depth of view information of scape;
The difference of the depth of view information of foreground and background is distance.
Wherein, because the coordinate system where two cameras is set in advance, therefore recognition unit 42 can obtain often
The location coordinate information of the foreground and background in individual preview image.Here, the abscissa of foreground and background need to only be obtained.Its
In, the positional information of prospect can be according to the position acquisition of focus.
Wherein, dual camera position in a coordinate system is fixed, therefore recognition unit 42 can be according to two cameras
Position coordinates acquired in.It is also set in advance for the distance between dual camera and imaging plane.
Recognition unit 42 is according to the spacing and dual camera and the distance of imaging plane between positional information, dual camera
The method for calculating foreground depth of field information d1 respectively is as follows:
D1=f*tx/ (xj-xi)
Wherein, f is the spacing of dual camera and imaging plane;Xi is prospect in the preview image that the first camera is gathered
Abscissa;Xj is the abscissa in the preview image of second camera collection;Tx be the first camera and second camera it
Between spacing.The depth of view information d2 of background equally can be calculated and obtained according to above-mentioned method, be not discussed here.Background
With the difference of prospect distance as depth of view information:D=d2-d1.
Unit 43 is chosen, the matic mould of present filming scene is adapted to for being chosen according to distance.
Unit 43 is chosen to recommend to be adapted to the master corresponding to present filming scene automatically according to the distance between foreground and background
Topic pattern, it is ensured that the quality of imaging.Wherein, the matic mould includes personage's pattern, landscaping mode and landscape configuration.
Specifically, choose unit 43 according to distance choose be adapted to present filming scene the matic mould, specifically for:
Judge prospect with the distance of background whether more than default first distance threshold;
When judging that the distance is more than default first distance threshold, then need further to judge to whether there is in preview image
Face;
When judging to have face, then the matic mould of present filming scene is personage's pattern;Otherwise, present filming scene
The matic mould be landscaping mode;
When distance is judged less than or equal to when presetting in the first distance threshold, whether the depth of field of judgement prospect is more than pre-
If second distance threshold value, and when judging more than second distance threshold value, then the matic mould of present filming scene is landscape configuration;
When other results are judged to, then processed without selecting the specific matic mould.
Photographing unit 44, for after photographing instruction is received, the acquisition parameters according to corresponding to the matic mould to be clapped
According to.
Wherein, corresponding acquisition parameters are preset with every kind of matic mould, image, Ke Yiyou is processed according to the acquisition parameters
Effect improves the quality of imaging.
Optionally, photographing unit 44, specifically for:
When the matic mould is personage's pattern, opens large aperture and shot, and to the character facial in the image of shooting
Optimize treatment.For example, slightly being ground skin treatment and optimization skin redness performance etc. to character facial.
When the matic mould is landscaping mode, opens large aperture and shot, and sharpen the prospect scenery of the image of shooting,
So that the scenery of prospect can be protruded more and clear.
When the matic mould is landscape configuration, closes large aperture and unlatching high dynamic illumination renders HDR and shot, and it is right
The image of shooting is sharpened.
Certainly, if the image quality of follow-up photographing unit 44 optimization be not up to user it is expected when, user can also be right
The acquisition parameters are set.
It should be noted that the final image that photographing unit 44 is obtained is the shooting image of single camera or double shootings
The composograph of shooting image.Wherein,
After the matic mould is determined by dual camera, the single camera of photographing unit 44 is clapped according to parameter of taking pictures
Take the photograph, and the image after shooting is optimized.
Or, after the matic mould is determined by dual camera, by dual camera according to parameter of taking pictures to shooting image
Processed.One of fine definition is then selected according to image image quality as final shooting image, or using pre-
If blending algorithm be an image as final shooting image using the image co-registration that two cameras shoot.For example, passing through
One camera uses wide-angle, another camera to use focal length, and the image after so merging can both be presented the effect of wide-angle, while
Distortion is prevented effectively from details.
Understood based on above-mentioned, the mobile terminal that the embodiment of the present invention is provided, recognition unit is gathered by under dual camera
Preview image recognize the distance of foreground and background, choose unit and go out to be adapted to current scene of taking pictures apart from Dynamic recommendation according to this
The matic mould, photographing unit is optimized according to the Optimal Parameters set in the matic mould to image.Understand, using of the invention
Effect of taking pictures has certain lifting relative to traditional single camera, optimizes image quality, improves imaging effect, lifts Consumer's Experience.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably implementation method.Based on such understanding, technical scheme is substantially done to prior art in other words
The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, clothes
Business device, air-conditioner, or network equipment etc.) method that performs each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of photographic method based on dual camera, it is characterised in that including:
Under preview mode, the preview image of dual camera collection is obtained;
Foreground and background in the preview image is recognized, and calculates the distance of the foreground and background;
The matic mould for being adapted to present filming scene is chosen according to the distance, and after photographing instruction is received, according to described
Acquisition parameters corresponding to the matic mould are taken pictures.
2. the method for claim 1, it is characterised in that foreground and background in the identification preview image, and count
The distance of the foreground and background is calculated, is specifically included:
Obtain the positional information of prospect and the background described in the preview image;
Distance according to the spacing and dual camera between the positional information, dual camera and imaging plane calculates the prospect
With the depth of view information of the background;
The difference of the depth of view information of the prospect and the background is the distance.
3. the method for claim 1, it is characterised in that described selection according to the distance is adapted to present filming scene
The matic mould, specifically includes:
Judge the distance whether more than default first distance threshold;
When the distance is judged more than default first distance threshold, judge to whether there is face in the preview image;
When judging to have face, then the matic mould of present filming scene is personage's pattern;Otherwise, the master of present filming scene
Topic pattern is landscaping mode;
When the distance is judged less than or equal to default first distance threshold, judge whether the depth of field of the prospect is more than
Second distance threshold value, and when judging more than second distance threshold value, then the matic mould of present filming scene is landscape configuration.
4. method as claimed in claim 3, it is characterised in that the acquisition parameters according to corresponding to the matic mould enter
Row is taken pictures, and is specifically included:
When the matic mould is personage's pattern, opens large aperture and shot, and to the character facial in the image of shooting
Optimize treatment;
When the matic mould is landscaping mode, opens large aperture and shot, and sharpen the prospect scenery of the image of shooting;
When the matic mould is landscape configuration, closes large aperture and unlatching high dynamic illumination renders HDR and shot, and it is right
The image of shooting is sharpened.
5. the method as described in claim 1 or 3, it is characterised in that the shooting ginseng according to corresponding to the matic mould
Number is taken pictures, and is specifically included:
When being taken pictures, the final image of acquisition is single camera shooting image or the conjunction for dual camera shooting image
Into image.
6. a kind of mobile terminal, it is characterised in that including:
Acquiring unit, under preview mode, obtaining the preview image of dual camera collection;
Recognition unit, for recognizing foreground and background in the preview image, and calculates the distance of the foreground and background;
Unit is chosen, for choosing the matic mould for being adapted to present filming scene according to the distance;
Photographing unit, optimizes for the acquisition parameters according to corresponding to the matic mould to imaging effect.
7. mobile terminal as claimed in claim 6, it is characterised in that the recognition unit, specifically for:
Obtain the positional information of prospect and the background described in the preview image;
Distance according to the spacing and dual camera between the positional information, dual camera and imaging plane calculates the prospect
With the depth of view information of the background;
The difference of the depth of view information of the prospect and the background is the distance.
8. mobile terminal as claimed in claim 6, it is characterised in that the selection unit, specifically for:
Judge the distance whether more than default first distance threshold;
When the distance is judged more than default first distance threshold, judge to whether there is face in the preview image;
When judging to have face, then the matic mould of present filming scene is personage's pattern;Otherwise, the master of present filming scene
Topic pattern is landscaping mode;
When the distance is judged less than or equal to default first distance threshold, judge whether the depth of field of the prospect is more than
Second distance threshold value, and when judging more than second distance threshold value, then the matic mould of present filming scene is landscape configuration.
9. mobile terminal as claimed in claim 8, it is characterised in that the photographing unit, specifically for:
When the matic mould is personage's pattern, opens large aperture and shot, and to the character facial in the image of shooting
Optimize treatment;
When the matic mould is landscaping mode, opens large aperture and shot, and sharpen the prospect scenery of the image of shooting;
When the matic mould is landscape configuration, closes large aperture and unlatching high dynamic illumination renders HDR and shot, and it is right
The image of shooting is sharpened.
10. the mobile terminal as described in claim 6 or 9, it is characterised in that the final image that the photographing unit is obtained is single
Individual camera shooting image or the composograph for dual camera shooting image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710200314.XA CN106851113A (en) | 2017-03-30 | 2017-03-30 | A kind of photographic method and mobile terminal based on dual camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710200314.XA CN106851113A (en) | 2017-03-30 | 2017-03-30 | A kind of photographic method and mobile terminal based on dual camera |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106851113A true CN106851113A (en) | 2017-06-13 |
Family
ID=59142446
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710200314.XA Pending CN106851113A (en) | 2017-03-30 | 2017-03-30 | A kind of photographic method and mobile terminal based on dual camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106851113A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107820020A (en) * | 2017-12-06 | 2018-03-20 | 广东欧珀移动通信有限公司 | Method of adjustment, device, storage medium and the mobile terminal of acquisition parameters |
CN109102467A (en) * | 2017-06-21 | 2018-12-28 | 北京小米移动软件有限公司 | The method and device of picture processing |
WO2019084780A1 (en) * | 2017-10-31 | 2019-05-09 | 深圳市柔宇科技有限公司 | Method and apparatus for capturing 3d image, photography terminal, and computer readable storage medium |
CN111726531A (en) * | 2020-06-29 | 2020-09-29 | 北京小米移动软件有限公司 | Image shooting method, processing method, device, electronic equipment and storage medium |
CN112333386A (en) * | 2020-10-29 | 2021-02-05 | 维沃移动通信(杭州)有限公司 | Shooting method and device and electronic equipment |
CN112866555A (en) * | 2019-11-27 | 2021-05-28 | 北京小米移动软件有限公司 | Shooting method, shooting device, shooting equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729120A (en) * | 2012-10-16 | 2014-04-16 | 三星电子株式会社 | Method for generating thumbnail image and electronic device thereof |
CN105245774A (en) * | 2015-09-15 | 2016-01-13 | 努比亚技术有限公司 | Picture processing method and terminal |
CN105959555A (en) * | 2016-06-02 | 2016-09-21 | 广东欧珀移动通信有限公司 | Shooting mode automatic adjustment method and device and mobile terminal |
CN106375662A (en) * | 2016-09-22 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Photographing method and device based on double cameras, and mobile terminal |
-
2017
- 2017-03-30 CN CN201710200314.XA patent/CN106851113A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729120A (en) * | 2012-10-16 | 2014-04-16 | 三星电子株式会社 | Method for generating thumbnail image and electronic device thereof |
CN105245774A (en) * | 2015-09-15 | 2016-01-13 | 努比亚技术有限公司 | Picture processing method and terminal |
CN105959555A (en) * | 2016-06-02 | 2016-09-21 | 广东欧珀移动通信有限公司 | Shooting mode automatic adjustment method and device and mobile terminal |
CN106375662A (en) * | 2016-09-22 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Photographing method and device based on double cameras, and mobile terminal |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109102467A (en) * | 2017-06-21 | 2018-12-28 | 北京小米移动软件有限公司 | The method and device of picture processing |
WO2019084780A1 (en) * | 2017-10-31 | 2019-05-09 | 深圳市柔宇科技有限公司 | Method and apparatus for capturing 3d image, photography terminal, and computer readable storage medium |
CN110419213A (en) * | 2017-10-31 | 2019-11-05 | 深圳市柔宇科技有限公司 | 3D rendering image pickup method and device, camera terminal and computer readable storage medium |
CN107820020A (en) * | 2017-12-06 | 2018-03-20 | 广东欧珀移动通信有限公司 | Method of adjustment, device, storage medium and the mobile terminal of acquisition parameters |
CN112866555A (en) * | 2019-11-27 | 2021-05-28 | 北京小米移动软件有限公司 | Shooting method, shooting device, shooting equipment and storage medium |
CN112866555B (en) * | 2019-11-27 | 2022-08-05 | 北京小米移动软件有限公司 | Shooting method, shooting device, shooting equipment and storage medium |
CN111726531A (en) * | 2020-06-29 | 2020-09-29 | 北京小米移动软件有限公司 | Image shooting method, processing method, device, electronic equipment and storage medium |
CN112333386A (en) * | 2020-10-29 | 2021-02-05 | 维沃移动通信(杭州)有限公司 | Shooting method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106454121A (en) | Double-camera shooting method and device | |
CN106502693A (en) | A kind of method for displaying image and device | |
CN106878588A (en) | A kind of video background blurs terminal and method | |
CN107018331A (en) | A kind of imaging method and mobile terminal based on dual camera | |
CN106851113A (en) | A kind of photographic method and mobile terminal based on dual camera | |
CN106888349A (en) | A kind of image pickup method and device | |
CN106534619A (en) | Method and apparatus for adjusting focusing area, and terminal | |
CN105187724B (en) | A kind of mobile terminal and method handling image | |
CN106534693B (en) | A kind of photo processing method, device and terminal | |
CN106097284B (en) | A kind of processing method and mobile terminal of night scene image | |
CN104679890B (en) | Picture method for pushing and device | |
CN106851063A (en) | A kind of exposure regulation terminal and method based on dual camera | |
CN106603931A (en) | Binocular shooting method and device | |
CN105430258B (en) | A kind of method and apparatus of self-timer group photo | |
CN107016639A (en) | A kind of image processing method and device | |
CN106713716A (en) | Double cameras shooting control method and device | |
CN106973227A (en) | Intelligent photographing method and device based on dual camera | |
CN106506778A (en) | A kind of dialing mechanism and method | |
CN106909681A (en) | A kind of information processing method and its device | |
CN106612393A (en) | Image processing method, image processing device and mobile terminal | |
CN106303229A (en) | A kind of photographic method and device | |
CN104917965A (en) | Shooting method and device | |
CN106911881A (en) | A kind of an action shot filming apparatus based on dual camera, method and terminal | |
CN107018334A (en) | A kind of applied program processing method and device based on dual camera | |
CN104935822A (en) | Method and device for processing images |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170613 |
|
RJ01 | Rejection of invention patent application after publication |