CN106210514A - Take pictures focusing method, device and smart machine - Google Patents
Take pictures focusing method, device and smart machine Download PDFInfo
- Publication number
- CN106210514A CN106210514A CN201610518458.5A CN201610518458A CN106210514A CN 106210514 A CN106210514 A CN 106210514A CN 201610518458 A CN201610518458 A CN 201610518458A CN 106210514 A CN106210514 A CN 106210514A
- Authority
- CN
- China
- Prior art keywords
- face region
- human face
- preview window
- ratio
- drive current
- 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/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/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The present invention is applicable to technical field of intelligent equipment, it is provided that method, device and the smart machine of a kind of focusing of taking pictures, described method includes: arrange human face region ratio in the preview window and the corresponding relation between motor drive current;During taking pictures, obtain the human face region in the preview window and the ratio in the preview window thereof;Obtain corresponding motor drive current according to described ratio, input described motor drive current to motor, to complete the focusing to human face region.The present invention, based on human face region ratio locking focusing in the preview window, improves the definition of human face region shooting, solves prior art in the ambiguous problem of portrait photographs that personage moves or shooting obtains during camera shake.
Description
Technical field
The invention belongs to technical field of intelligent equipment, particularly relate to method, device and the smart machine of a kind of focusing of taking pictures.
Background technology
During taking pictures, when personage moves or during camera shake, and camera cannot accurately detect stable face district
Territory, thus cause human face region to focus unsuccessfully so that the portrait photographs that shooting obtains is smudgy.
Summary of the invention
In consideration of it, the embodiment of the present invention provides method, device and the smart machine of a kind of focusing of taking pictures, to solve existing skill
Art is in the ambiguous problem of portrait photographs that personage moves or shooting obtains during camera shake.
First aspect, it is provided that a kind of method of focusing of taking pictures, described method includes:
Human face region ratio in the preview window and the corresponding relation between motor drive current are set;
During taking pictures, obtain the human face region in the preview window and the ratio in the preview window thereof;
Obtain corresponding motor drive current according to described ratio, input described motor drive current to motor, to complete
Focusing to human face region.
Second aspect, it is provided that the device of a kind of focusing of taking pictures, described device includes:
Module is set, for arranging human face region ratio in the preview window and the corresponding pass between motor drive current
System;
Acquisition module, for during taking pictures, obtains the human face region in the preview window and in the preview window
Ratio;
Focusing module, for obtaining corresponding motor drive current according to described ratio, inputs described motor to motor and drives
Streaming current, to complete the focusing to human face region.
The third aspect, it is provided that a kind of smart machine, described smart machine includes the device focused of taking pictures as above.
Compared with prior art, the embodiment of the present invention is provided with human face region ratio in the preview window and motor driving
Corresponding relation between electric current;During taking pictures, then by obtaining the human face region in the preview window and at the preview window
In ratio, obtain the motor drive current corresponding with described ratio, to motor input described motor drive current, to drive horse
Reach drive camera lens to move, complete the focusing to human face region.Described motor drive current is that this ratio human face region is clear
The motor drive current of clear focusing.When personage moves or during camera shake, if the ratio that human face region is in the preview window becomes
Changing small, the change of described motor drive current is small or constant, thus locks focusing, improves the clear of human face region shooting
Degree, solves prior art in the ambiguous problem of portrait photographs that personage moves or shooting obtains during camera shake.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flowchart of the method for the focusing of taking pictures that the embodiment of the present invention provides;
Fig. 2 is the flowchart of the method for the focusing of taking pictures that another embodiment of the present invention provides;
Fig. 3 is the composition structure chart of the device of the focusing of taking pictures that the embodiment of the present invention provides;
Fig. 4 is the composition structure chart of the smart machine that the embodiment of the present invention provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, right
The present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, and
It is not used in the restriction present invention.
The embodiment of the present invention is provided with human face region ratio in the preview window and corresponding between motor drive current
Relation;During taking pictures, then by obtaining the human face region in the preview window and the ratio in the preview window thereof, obtain with
The motor drive current that described ratio is corresponding, inputs described motor drive current to motor, to drive motor to drive camera lens
Mobile, complete the focusing to human face region.Described motor drive current is that the motor of this ratio human face region shape library drives
Streaming current.When personage moves or during camera shake, if the ratio change that human face region is in the preview window is small, described motor
Drive current variations is small or constant, thus locks focusing, improves the definition of human face region shooting, solves existing skill
Art is in the ambiguous problem of portrait photographs that personage moves or shooting obtains during camera shake.The embodiment of the present invention also provides for
Corresponding device, is described in detail individually below.
What Fig. 1 showed the method for the focusing of taking pictures that the embodiment of the present invention provides realizes flow process.
In embodiments of the present invention, described in take pictures focusing method be applied to smart machine, described smart machine include but
It is not limited to smart mobile phone, panel computer, learning machine, digital camera/video camera etc..Described smart machine have camera function and
Face datection function.
Refering to Fig. 1, described in the take pictures method of focusing include:
In step S101, human face region ratio in the preview window and the corresponding pass between motor drive current are set
System.
Here, described human face region ratio in the preview window refers to the face that human face region occupies in the preview window
Long-pending ratio.
The size of described motor drive current determines the target location that camera lens moves.In embodiments of the present invention,
Described motor drive current is the current value of the human face region shape library under corresponding ratio, i.e. under described motor drive current
The position that camera lens moves to is the position of human face region shape library.Further, camera lens is driven according to motor
Characteristic, in described corresponding relation, human face region ratio in the preview window is the biggest, i.e. human face region is close shot, and motor drives
Streaming current is the least;Human face region ratio in the preview window is the least, i.e. human face region is distant view, and motor drive current is the biggest.
Described corresponding relation can store by the way of mapping table or corresponding relation data base, is not restricted.
In step s 102, during taking pictures, obtain the human face region in the preview window and in the preview window
Ratio.
In step s 103, obtain corresponding motor drive current according to described ratio, input described motor to motor and drive
Streaming current, to complete the focusing to human face region.
Exemplarily, described area ratio can be represented by pixel ratio, the number of pixels that i.e. human face region includes with
The ratio of the total number of pixel in the preview window.When described ratio is area ratio based on pixel calculating, described step
S102 can be: smart machine, after starting camera, detects the human face region in the preview window in real time, and obtains described face district
The number of pixels that territory includes;Then the total number of pixel of described the preview window is obtained;Calculate the number of pixels of described human face region
And the ratio between the total number of pixel of the preview window, obtains described human face region ratio in the preview window.Described ratio
Reflect the depth of view information of human face region.According to described ratio, search and institute from the corresponding relation that step S101 pre-sets
The motor drive current that ratio of stating is corresponding, and drive motor with described motor drive current, to drive camera lens to move to target position
Put, it is achieved the focusing to human face region.When personage moves or during camera shake, if the ratio that human face region is in the preview window
Changing small, the change of described motor drive current is small or constant, thus locks focusing, improves the clear of human face region shooting
Clear degree, solves prior art in the ambiguous problem of portrait photographs that personage moves or shooting obtains during camera shake.
As another preferred embodiment of the present invention, the embodiment of the present invention, can be according to experiment when arranging corresponding relation
Human face region proportion in the preview window is divided into some sections by the predetermined threshold value that obtains of statistics, then arranges each
The motor drive current that section is corresponding.What Fig. 2 showed the method for the focusing of taking pictures that another embodiment of the present invention provides realizes flow process.
Refering to Fig. 2, described method includes:
In step s 201, according to predetermined threshold value, human face region proportion in the preview window is divided into some
Section.
In step S202, each section of motor drive current corresponding to proportion is set.
When carrying out correspondence setting, first the embodiment of the present invention adds up human face region ratio model in the preview window
Enclose.Exemplarily, when there is not human face region in the preview window, described ratio is minima a;When human face region occupies whole
During the preview window, described ratio is maximum b.Now, described human face region proportion in the preview window can be arranged
For [a, b].The number of described predetermined threshold value can be arranged according to actual demand.Exemplarily, when including two predetermined threshold value
Time, the i.e. first predetermined threshold value and the second predetermined threshold value, described first predetermined threshold value is more than described second predetermined threshold value, then step step
Rapid S201 according to predetermined threshold value human face region proportion in the preview window is divided into some sections particularly as follows:
According to described first predetermined threshold value and the second predetermined threshold value, human face region proportion in the preview window is drawn
Being divided into three sections, wherein, human face region ratio maximum in the preview window to described first predetermined threshold value is the first ratio model
Enclosing, described first predetermined threshold value to described second predetermined threshold value is the second proportion, described second predetermined threshold value to described people
Face region ratio minima in the preview window is the 3rd proportion.
Then the motor drive current of correspondence is set according to each section of proportion.Described motor drive current is for correspondence
Each ratio value in proportion is the most applicable, so that when personage moves or camera shake produces micro-displacement,
The change of described motor drive current keeps constant, and then locking focusing, improves the definition of human face region shooting, solves existing
There is technology in the ambiguous problem of portrait photographs that personage moves or shooting obtains during camera shake.
In step S203, during taking pictures, obtain the human face region in the preview window and in the preview window
Ratio.
In step S204, obtain corresponding motor drive current according to described ratio, input described motor to motor and drive
Streaming current, to complete the focusing to human face region.
Here, step S102 described in described step S203, S204 with Fig. 1 embodiment, S103 are identical, specifically please join
Seeing the narration of above-described embodiment, here is omitted.
In sum, the embodiment of the present invention is by arranging human face region ratio in the preview window and motor drive current
Between corresponding relation;During taking pictures, then by obtaining the human face region in the preview window and in the preview window
Ratio, obtains the motor drive current corresponding with described ratio, inputs described motor drive current to motor, to drive motor
Drive camera lens moves, and completes the focusing to human face region.Described motor drive current is that this ratio human face region is clear
The motor drive current of focusing.When personage moves or during camera shake, if the ratio change that human face region is in the preview window
Small, the change of described motor drive current is small or constant, thus locks focusing, improves the clear of human face region shooting
Degree, solves prior art in the ambiguous problem of portrait photographs that personage moves or shooting obtains during camera shake.
Fig. 3 shows the composition structure of the device of the focusing of taking pictures that the embodiment of the present invention provides, and for convenience of description, only shows
Go out the part relevant to the embodiment of the present invention.
In embodiments of the present invention, described device is for realizing the focusing of taking pictures described in above-mentioned Fig. 1 to Fig. 2 embodiment
Method, can be the unit being built in the software unit of smart machine, hardware cell or software and hardware combining.Described smart machine
Include but not limited to smart mobile phone, panel computer, learning machine, digital camera/video camera etc..Described smart machine has merit of taking pictures
Energy and Face datection function.
Refering to Fig. 3, described device includes:
Module 31 is set, for arranging human face region ratio in the preview window and corresponding between motor drive current
Relation;
Acquisition module 32, for during taking pictures, obtains the human face region in the preview window and in the preview window
Ratio;
Focusing module 33, for obtaining corresponding motor drive current according to described ratio, inputs described motor to motor
Drive electric current, to complete the focusing to human face region.
Here, described human face region ratio in the preview window refers to the face that human face region occupies in the preview window
Long-pending ratio.
The size of described motor drive current determines the target location that camera lens moves.In embodiments of the present invention,
Described motor drive current is the current value of the human face region shape library under corresponding ratio, i.e. under described motor drive current
The position that camera lens moves to is the position of human face region shape library.Further, camera lens is driven according to motor
Characteristic, human face region ratio in the preview window is the biggest, and motor drive current is the least;Human face region ratio in the preview window
Example is the least, and motor drive current is the biggest.
Further, the described module 31 that arranges includes:
Division unit 311, if for being divided into human face region proportion in the preview window according to predetermined threshold value
Dry section;
Unit 312 is set, for arranging each section of motor drive current corresponding to proportion.
The embodiment of the present invention arranges the motor drive current of correspondence according to each section of proportion.Described motor drive current
The most applicable for each ratio value in corresponding proportion, so that move or camera shake produces small personage
During displacement, the change of described motor drive current keeps constant, and then locking focusing, improves the definition of human face region shooting,
Solve prior art in the ambiguous problem of portrait photographs that personage moves or shooting obtains during camera shake.
Further, described area ratio can be represented by pixel ratio, the number of pixels that i.e. human face region includes with
The ratio of the total number of pixel in the preview window.Described acquisition module 32 includes:
First acquiring unit 321, for detecting the human face region in the preview window, obtains the picture that described human face region includes
Element number;
Second acquisition unit 322, for obtaining the total number of pixel of described the preview window;
Computing unit 323, for calculating between the number of pixels of described human face region and the total number of pixel of the preview window
Ratio, obtain described human face region ratio in the preview window.
It should be noted that the device in the embodiment of the present invention may be used for the whole skills realizing in said method embodiment
Art scheme, the function of its each functional module can implement according to the method in said method embodiment, and it implements
Process can refer to the associated description in examples detailed above, and here is omitted.
Fig. 4 shows the structured flowchart of a kind of smart machine, and this smart machine may be used for implementing to carry in above-described embodiment
The method of the focusing of taking pictures of confession.
As shown in Figure 4, smart machine 1200 can include RF (Radio Frequency, radio frequency) circuit 110, include
One or more (only illustrating one in figure) memorizeies 120 of computer-readable recording medium, input block 130, display
Unit 140, sensor 150, voicefrequency circuit 160, transport module 170, include one or more than one (only illustrates one in figure
Individual) process the parts such as the processor 180 of core and power supply 190.It will be understood by those skilled in the art that the intelligence shown in Fig. 4
Equipment 1200 structure can be not intended that the restriction to smart machine 1200, can include that ratio illustrates more or less of parts, or
Person combines some parts, or different parts are arranged.Wherein:
RF circuit 110 is used for receiving and sending electromagnetic wave, it is achieved electromagnetic wave is changed with the mutual of the signal of telecommunication, thus with logical
News network or other equipment carry out communication.RF circuit 110 can include the various existing circuit elements for performing these functions
Part, such as, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) block, store
Device etc..RF circuit 110 can carry out communication or by wireless with various networks such as the Internet, intranet, wireless network
Network and other equipment carry out communication.Above-mentioned wireless network can include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).
Above-mentioned wireless network can use various communication standard, agreement and technology, includes, but are not limited to global system for mobile communications
(Global System for Mobile Communication, GSM), enhancement mode mobile communication technology (Enhanced Data
GSM Environment, EDGE), Wideband CDMA Technology (wideband code division multiple
Access, W-CDMA), CDMA (Code division access, CDMA), tdma (time
Division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity, WiFi) is (such as U.S.'s electricity
Gas and Electronic Engineering Association's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE
802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave access
(Worldwide Interoperability for Microwave Access, Wi-Max), other are for mail, IMU
News and the agreement of short message, and any other suitable communications protocol, even can include that those are developed the most not yet
Agreement.
Memorizer 120 can be used for storing software program and module, such as the method, device of focusing of taking pictures in above-described embodiment
Corresponding programmed instruction/module, processor 180 is stored in the software program in memorizer 120 and module by operation, thus
Perform the application of various function and data process, i.e. realizing, human face region ratio in the preview window is set and drives electricity with motor
Corresponding relation between stream and obtain the motor drive current of correspondence to carry out focus operation according to described ratio when taking pictures
Function or other functions.Memorizer 120 can include high speed random access memory, may also include nonvolatile memory, such as one
Or multiple magnetic storage devices, flash memory or other non-volatile solid state memories.In some instances, memorizer 120 can
Farther including the memorizer remotely located relative to processor 180, these remote memories can be connected to intelligence by network
Can equipment 1200.The example of above-mentioned network include but not limited to the Internet, intranet, LAN, mobile radio communication and
Combination.
Input block 130 can be used for receiving numeral or the character information of input, and produces and user setup and function
Control relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically, input block 130 can include touching
Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touches display screen or Trackpad, can collect use
Family thereon or neighbouring touch operation (such as user uses any applicable object such as finger, stylus or adnexa at touch-sensitive table
Operation on face 131 or near Touch sensitive surface 131), and drive corresponding attachment means according to formula set in advance.Optional
, Touch sensitive surface 131 can include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch controller is from touch
Receive touch information on detection device, and be converted into contact coordinate, then give processor 180, and processor 180 can be received
The order sent also is performed.Furthermore, it is possible to use the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave
Realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically,
Other input equipments 132 can include but not limited to physical keyboard, function key (such as volume control button, switch key etc.),
One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for showing the information inputted by user or the information being supplied to user and smart machine
The various graphical user interface of 1200, these graphical user interface can be by figure, text, icon, video and its combination in any
Constitute.Display unit 140 can include display floater 141, optionally, can use LCD (Liquid Crystal
Display, liquid crystal display), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) comes
Configuration display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 detects at it
On or near touch operation after, send processor 180 to determine the type of touch event, with preprocessor 180 according to touching
The type touching event provides corresponding visual output on display floater 141.Although in the diagram, Touch sensitive surface 131 and display surface
Plate 141 is to realize input and input function as two independent parts, but in some embodiments it is possible to by touch-sensitive table
Face 131 is integrated with display floater 141 and realizes input and output function.
Smart machine 1200 may also include at least one sensor 150, such as optical sensor, motion sensor and other
Sensor.Specifically, optical sensor can include ambient light sensor and proximity transducer, and wherein, ambient light sensor can basis
The light and shade of ambient light regulates the brightness of display floater 141, proximity transducer can when smart machine 1200 moves in one's ear,
Close display floater 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect all directions
The size of upper (generally three axles) acceleration, can detect that size and the direction of gravity time static, can be used for detecting angle of inclination,
And identify that the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification are correlated with merit
Energy (such as pedometer, percussion) etc.;The gyroscope that can also configure as smart machine 1200, barometer, drimeter, thermometer,
Other sensors such as infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, speaker 161, microphone 162 can provide the audio frequency between user and smart machine 1200 to connect
Mouthful.The signal of telecommunication after the voice data conversion that voicefrequency circuit 160 can will receive, is transferred to speaker 161, by speaker 161
Be converted to acoustical signal output;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 162, by voicefrequency circuit
160 receive after be converted to voice data, then after being processed by voice data output processor 180, through RF circuit 110 to be sent to ratio
Such as another terminal, or voice data is exported to memorizer 120 to process further.Voicefrequency circuit 160 is also possible that
Earphone jack, to provide the communication of peripheral hardware earphone and smart machine 1200.
Smart machine 1200 can help user to send and receive e-mail by transport module 170 (such as WiFi module), clear
Looking at webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 4 shows transmission mould
Block 170, but it is understood that, it is also not belonging to must be configured into of smart machine 1200, completely can be as required not
Omit in the scope of the essence changing invention.
Processor 180 is the control centre of smart machine 1200, utilizes each of various interface and the whole mobile phone of connection
Individual part, is stored in the software program in memorizer 120 and/or module by running or performing, and calls and be stored in storage
Data in device 120, perform the various functions of smart machine 1200 and process data, thus mobile phone is carried out integral monitoring.Can
Choosing, processor 180 can include one or more process core;Preferably, processor 180 can integrated application processor and modulation
Demodulation processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modulation /demodulation processes
Device mainly processes radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Smart machine 1200 also includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can lead to
Cross power-supply management system logically contiguous with processor 180, thus by power-supply management system realize management charging, electric discharge and
The functions such as power managed.Power supply 190 can also include one or more direct current or alternating current power supply, recharging system, electricity
Source failure detector circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, smart machine 1200 can also include photographic head, bluetooth module etc., does not repeats them here.Specifically
In the present embodiment, the display unit of smart machine is touch-screen display, and smart machine also includes memorizer, and one
Or more than one program, one of them or more than one program is stored in memorizer, and be configured to by one or
More than one processor of person performs to state one or more than one program comprises the instruction for carrying out following operation:
Human face region ratio in the preview window and the corresponding relation between motor drive current are set;
During taking pictures, obtain the human face region in the preview window and the ratio in the preview window thereof;
Obtain corresponding motor drive current according to described ratio, input described motor drive current to motor, to complete
Focusing to human face region.
Assume above-mentioned for the first possible embodiment, then provide based on the embodiment that the first is possible
The possible embodiment of the second in, in the memorizer of described smart machine, also comprise for performing the following instruction operated:
Described human face region ratio in the preview window is set and the corresponding relation between motor drive current includes:
According to predetermined threshold value, human face region proportion in the preview window is divided into some sections;
Each section of motor drive current corresponding to proportion is set.
Based on the embodiment that the first or the second are possible and in the third the possible embodiment provided,
In the memorizer of described smart machine, also comprise for performing the following instruction operated:
In described corresponding relation, human face region ratio in the preview window is the biggest, and motor drive current is the least;
Human face region ratio in the preview window is the least, and motor drive current is the biggest.
In the 4th kind of possible embodiment provided based on the embodiment that the first is possible, described intelligence
In the memorizer of equipment, also comprise for performing the following instruction operated:
Human face region in described acquisition the preview window and the ratio in the preview window thereof include:
Human face region in detection the preview window, obtains the number of pixels that described human face region includes;
Obtain the total number of pixel of described the preview window;
Calculate the ratio between the number of pixels of described human face region and the total number of pixel of the preview window, obtain described people
Face region ratio in the preview window.
In sum, the embodiment of the present invention be provided with human face region ratio in the preview window and motor drive current it
Between corresponding relation;During taking pictures, then by obtaining the human face region in the preview window and the ratio in the preview window thereof
Example, obtains the motor drive current corresponding with described ratio, inputs described motor drive current to motor, to drive motor band
Dynamic camera lens moves, and completes the focusing to human face region.Described motor drive current is that this ratio human face region is the most right
Burnt motor drive current.When personage moves or during camera shake, if the ratio change that human face region is in the preview window is micro-
Little, the change of described motor drive current is small or constant, thus locks focusing, improves the definition of human face region shooting,
Solve prior art in the ambiguous problem of portrait photographs that personage moves or shooting obtains during camera shake.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example that the embodiments described herein describes
Unit and algorithm steps, it is possible to being implemented in combination in of electronic hardware or computer software and electronic hardware.These functions are actually
Perform with hardware or software mode, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel
Each specifically should being used for can be used different methods to realize described function, but this realization is it is not considered that exceed
The scope of the present invention.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the device of foregoing description
With the specific works process of unit, it is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed method, device and the intelligence of clapping focusing
Energy equipment, can realize by another way.Such as, device embodiment described above is only schematically, such as,
Described module, the division of unit, be only a kind of logic function and divide, and actual can have other dividing mode, example when realizing
As multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.
Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, dress
Put or the INDIRECT COUPLING of unit or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme
's.
It addition, each functional unit, module in each embodiment of the present invention can be integrated in a processing unit, also
Can be that unit, module are individually physically present, it is also possible to two or more unit, module are integrated in a unit
In.
If described function is using the form realization of SFU software functional unit and as independent production marketing or use, permissible
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is the most in other words
The part contributing prior art or the part of this technical scheme can embody with the form of software product, this meter
Calculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment (can be individual
People's computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.
And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art, in the technical scope that the invention discloses, can readily occur in change or replace, should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with scope of the claims.
Claims (9)
1. the method for a focusing of taking pictures, it is characterised in that described method includes:
Human face region ratio in the preview window and the corresponding relation between motor drive current are set;
During taking pictures, obtain the human face region in the preview window and the ratio in the preview window thereof;
Obtain corresponding motor drive current according to described ratio, input described motor drive current to motor, to complete people
The focusing in face region.
The most as claimed in claim 1 take pictures focusing method, it is characterised in that the described human face region that arranges is in the preview window
Ratio and motor drive current between corresponding relation include:
According to predetermined threshold value, human face region proportion in the preview window is divided into some sections;
Each section of motor drive current corresponding to proportion is set.
The most as claimed in claim 1 or 2 take pictures focusing method, it is characterised in that in described corresponding relation, human face region
Ratio in the preview window is the biggest, and motor drive current is the least;
Human face region ratio in the preview window is the least, and motor drive current is the biggest.
The most as claimed in claim 1 take pictures focusing method, it is characterised in that the human face region in described acquisition the preview window
And the ratio in the preview window includes:
Human face region in detection the preview window, obtains the number of pixels that described human face region includes;
Obtain the total number of pixel of described the preview window;
Calculate the ratio between the number of pixels of described human face region and the total number of pixel of the preview window, obtain described face district
Territory ratio in the preview window.
5. the device of a focusing of taking pictures, it is characterised in that described device includes:
Module is set, for arranging human face region ratio in the preview window and the corresponding relation between motor drive current;
Acquisition module, for during taking pictures, obtains the human face region in the preview window and the ratio in the preview window thereof;
Focusing module, for obtaining corresponding motor drive current according to described ratio, inputs described motor to motor and drives electricity
Stream, to complete the focusing to human face region.
The most as claimed in claim 5 take pictures focusing device, it is characterised in that the described module that arranges includes:
Division unit, for being divided into some sections according to predetermined threshold value by human face region proportion in the preview window;
Unit is set, for arranging each section of motor drive current corresponding to proportion.
7. the device of the focusing of taking pictures as described in claim 5 or 6, it is characterised in that in described corresponding relation, human face region
Ratio in the preview window is the biggest, and motor drive current is the least;
Human face region ratio in the preview window is the least, and motor drive current is the biggest.
The most as claimed in claim 5 take pictures focusing device, it is characterised in that described acquisition module includes:
First acquiring unit, for detecting the human face region in the preview window, obtains the number of pixels that described human face region includes;
Second acquisition unit, for obtaining the total number of pixel of described the preview window;
Computing unit, for calculating the ratio between the number of pixels of described human face region and the total number of pixel of the preview window,
Obtain described human face region ratio in the preview window.
9. a smart machine, it is characterised in that described smart machine includes taking pictures as described in any one of claim 5 to 8
The device of focusing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610518458.5A CN106210514B (en) | 2016-07-04 | 2016-07-04 | It takes pictures the method, apparatus and smart machine of focusing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610518458.5A CN106210514B (en) | 2016-07-04 | 2016-07-04 | It takes pictures the method, apparatus and smart machine of focusing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106210514A true CN106210514A (en) | 2016-12-07 |
CN106210514B CN106210514B (en) | 2019-04-12 |
Family
ID=57465071
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610518458.5A Active CN106210514B (en) | 2016-07-04 | 2016-07-04 | It takes pictures the method, apparatus and smart machine of focusing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106210514B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109005339A (en) * | 2018-07-27 | 2018-12-14 | 努比亚技术有限公司 | A kind of image-pickup method, terminal and storage medium |
CN110855881A (en) * | 2019-11-01 | 2020-02-28 | RealMe重庆移动通信有限公司 | Shooting processing method and device, storage medium and electronic equipment |
CN110855882A (en) * | 2019-11-01 | 2020-02-28 | RealMe重庆移动通信有限公司 | Shooting processing method and device, storage medium and electronic equipment |
CN110992419A (en) * | 2019-10-13 | 2020-04-10 | 李萍 | Target big data occupied area detection platform and method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070047941A1 (en) * | 2005-08-31 | 2007-03-01 | Nikon Corporation | Autofocus apparatus |
US20080285817A1 (en) * | 2007-05-18 | 2008-11-20 | Casio Computer Co., Ltd. | Image pickup device, face detection method, and computer-readable recording medium |
KR20090043159A (en) * | 2007-10-29 | 2009-05-06 | 삼성디지털이미징 주식회사 | Method of controlling digital image processing apparatus performing face recognition, and image processing apparatus adopting the method |
CN101452181A (en) * | 2007-12-03 | 2009-06-10 | 鸿富锦精密工业(深圳)有限公司 | Automatic focusing system and method OF electronic device |
US20130308932A1 (en) * | 2012-05-18 | 2013-11-21 | Canon Kabushiki Kaisha | Lens barrel and camera system capable of correcting tracking data and camera system |
CN104102068A (en) * | 2013-04-11 | 2014-10-15 | 聚晶半导体股份有限公司 | Automatic focusing method and automatic focusing device |
-
2016
- 2016-07-04 CN CN201610518458.5A patent/CN106210514B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070047941A1 (en) * | 2005-08-31 | 2007-03-01 | Nikon Corporation | Autofocus apparatus |
US20080285817A1 (en) * | 2007-05-18 | 2008-11-20 | Casio Computer Co., Ltd. | Image pickup device, face detection method, and computer-readable recording medium |
KR20090043159A (en) * | 2007-10-29 | 2009-05-06 | 삼성디지털이미징 주식회사 | Method of controlling digital image processing apparatus performing face recognition, and image processing apparatus adopting the method |
CN101452181A (en) * | 2007-12-03 | 2009-06-10 | 鸿富锦精密工业(深圳)有限公司 | Automatic focusing system and method OF electronic device |
US20130308932A1 (en) * | 2012-05-18 | 2013-11-21 | Canon Kabushiki Kaisha | Lens barrel and camera system capable of correcting tracking data and camera system |
CN104102068A (en) * | 2013-04-11 | 2014-10-15 | 聚晶半导体股份有限公司 | Automatic focusing method and automatic focusing device |
Non-Patent Citations (2)
Title |
---|
刘午平等: "索尼2515主板的VCD机的工作过程", 《十大主板拼装VCD机维修精要与实例》 * |
胡昌军等: "高像素CMOS手机摄像模组关键技术研究", 《池州学院学报》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109005339A (en) * | 2018-07-27 | 2018-12-14 | 努比亚技术有限公司 | A kind of image-pickup method, terminal and storage medium |
CN109005339B (en) * | 2018-07-27 | 2020-07-28 | 努比亚技术有限公司 | Image acquisition method, terminal and storage medium |
CN110992419A (en) * | 2019-10-13 | 2020-04-10 | 李萍 | Target big data occupied area detection platform and method |
CN110855881A (en) * | 2019-11-01 | 2020-02-28 | RealMe重庆移动通信有限公司 | Shooting processing method and device, storage medium and electronic equipment |
CN110855882A (en) * | 2019-11-01 | 2020-02-28 | RealMe重庆移动通信有限公司 | Shooting processing method and device, storage medium and electronic equipment |
CN110855882B (en) * | 2019-11-01 | 2021-10-08 | RealMe重庆移动通信有限公司 | Shooting processing method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106210514B (en) | 2019-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103632165A (en) | Picture processing method, device and terminal equipment | |
CN104717125B (en) | Graphic code store method and device | |
CN104967790B (en) | Method, photo taking, device and mobile terminal | |
CN106161931A (en) | The method and device of image preview | |
CN103488403A (en) | Switching method and device for interface layout and mobile terminal | |
CN103309562A (en) | Desktop display method, desktop display device and mobile terminal | |
CN103543913A (en) | Terminal device operation method and device, and terminal device | |
CN103414814A (en) | Picture processing method and device and terminal device | |
CN103631493B (en) | Image display method, device and electronic equipment | |
CN103473804A (en) | Image processing method, device and terminal equipment | |
CN103699309B (en) | A kind of method for recording of synchronization video, device and mobile terminal | |
CN106027108A (en) | Indoor localization method and device, wearable device and mobile terminal | |
CN106484555A (en) | Abnormality detection and the method recovered and mobile terminal | |
CN104157007A (en) | Video processing method and apparatus | |
CN106603548A (en) | Application program login method and mobile terminal | |
CN105279186A (en) | Image processing method and system | |
CN106210514A (en) | Take pictures focusing method, device and smart machine | |
CN104200211A (en) | Image binaryzation method and device | |
CN108156374A (en) | A kind of image processing method, terminal and readable storage medium storing program for executing | |
CN106250014A (en) | The recommendation method and device of application program | |
CN105933944A (en) | 4G network optimum usage method and device and mobile terminal | |
CN106055947A (en) | Method and apparatus for unlocking mobile terminal through fingerprint, and mobile terminal | |
CN105306802A (en) | Photographing mode switching method and device | |
CN106101776A (en) | The method of volume adjusting, smart machine and audio amplifier | |
CN105045522A (en) | Touch control method and device for hand-held terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523841 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |