CN106603915A - Control method, control device and electronic device - Google Patents
Control method, control device and electronic device Download PDFInfo
- Publication number
- CN106603915A CN106603915A CN201611155265.4A CN201611155265A CN106603915A CN 106603915 A CN106603915 A CN 106603915A CN 201611155265 A CN201611155265 A CN 201611155265A CN 106603915 A CN106603915 A CN 106603915A
- Authority
- CN
- China
- Prior art keywords
- electronic installation
- human face
- face region
- amplitude
- focusing
- 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/67—Focus control based on electronic image sensor signals
-
- 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/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
Abstract
The present invention discloses a control method. The control method is used for controlling an electronic device, wherein the electronic device includes a motion sensor and an imaging device. The control method includes the following steps that: the motion data of the electronic device detected by the motion sensor are processed, so that the jitter amplitude of the electronic device can be obtained; whether the jitter amplitude of the electronic device is smaller than or equal to a predetermined amplitude is judged; if the jitter amplitude is smaller than or equal to the predetermined amplitude, stable frames of cached images outputted by the imaging device are accumulated; if the jitter amplitude is larger than the predetermined amplitude, the number of the stable frames is reset; and when the number of the stable frames is larger than a preset frame number, the imaging device is controlled to perform focusing. The invention also discloses a control device and an electronic device. According to the control method, control device and electronic device provided by the embodiments of the present invention, the motion sensor is adopted to measure the stability of the electronic device, so that the accuracy of focusing can be ensured.
Description
Technical field
The present invention relates to technology of focusing, more particularly to a kind of control method, control device and electronic installation.
Background technology
Face focusing is focused by focusing area of human face region, however, focused when mobile phone is unstable, mobile phone
Shake causes human face region to rock, and affects focusing precision.
The content of the invention
It is contemplated that at least solving one of technical problem present in prior art.For this purpose, the present invention provides a kind of control
Method processed, control device and electronic installation.
The control method of embodiment of the present invention, for controlling electronic installation, the electronic installation includes motion sensor
And imaging device, the control method comprises the following steps:
Process the motion sensor senses to the electronic installation exercise data to obtain the electronic installation
Jitter amplitude;
Judge the jitter amplitude of the electronic installation whether less than or equal to predetermined amplitude;
Add up the cache image of the imaging device output when the jitter amplitude is less than or equal to the predetermined amplitude
Stable frame number;
The stable frame number is reset when the jitter amplitude is more than the predetermined amplitude;With
It is more than imaging device focusing described in predetermined frame number time control system in the stable frame number.
In some embodiments, the control method is comprised the following steps:
Process the cache image to recognize whether human face region;
The electronic installation arrived into the process motion sensor senses when there is the human face region
The step of exercise data is with the jitter amplitude for obtaining the electronic installation;With
The imaging device focusing is controlled when there is no the human face region.
In some embodiments, the jitter amplitude includes side-play amount, and the predetermined amplitude is 0.12 millimeter;Or
The jitter amplitude includes deflection angle, and the predetermined amplitude is 0.05 degree;Or
The jitter amplitude includes side-play amount and deflection angle, and the predetermined amplitude is 0.12 millimeter and 0.05 degree.
In some embodiments, the predetermined frame number is 3 frames.
In some embodiments, the imaging device includes to focus lens and motor, described big in the stable frame number
Comprise the following steps the step of imaging device described in predetermined frame number time control system is focused:
Control the motor and drive described to seek focus lens away from progressively movement with the first step from nearly Jiao position to remote burnt position
It is burnt;
Described each first step to focus lens is processed away from the corresponding cache image to recognize human face region;
Whether the contrast for processing the human face region to judge the human face region there is the first flex point;
Control when there is first flex point motor drive it is described focus lens are returned a step and with second step away from
To the remote burnt position movement, the second step away from less than the first step away from;
Described each second step to focus lens is processed away from the corresponding cache image to recognize human face region;
Whether the contrast for processing the human face region to judge the human face region there is Second Inflexion Point;With
The imaging device focusing is determined when there is the Second Inflexion Point.
The control device of embodiment of the present invention, for controlling electronic installation, the electronic installation includes motion sensor
And imaging device, the control device includes processing module, judge module, accumulation module, resets module and Focusing module.It is described
Processing module be used to processing the motion sensor senses to the electronic installation exercise data to obtain electronics dress
The jitter amplitude put;Whether the judge module is used to judge the jitter amplitude of the electronic installation less than or equal to pre- tentering
Degree;The accumulation module is used to add up the imaging device output when the jitter amplitude is less than or equal to the predetermined amplitude
Cache image stable frame number;It is described that the replacement module is used for the replacement when the jitter amplitude is more than the predetermined amplitude
Stable frame number;The Focusing module is used to be more than imaging device focusing described in predetermined frame number time control system in the stable frame number.
In some embodiments, the control device also includes identification module.The identification module is used to process described
Cache image is recognizing whether human face region;The processing module is used to enter process institute when there is the human face region
State motion sensor senses to the electronic installation exercise data with the jitter amplitude for obtaining the electronic installation the step of;
The Focusing module is additionally operable to control the imaging device focusing when there is no the human face region.
In some embodiments, the jitter amplitude includes side-play amount, and the predetermined amplitude is 0.12 millimeter;Or
The jitter amplitude includes deflection angle, and the predetermined amplitude is 0.05 degree;Or
The jitter amplitude includes side-play amount and deflection angle, and the predetermined amplitude is 0.12 millimeter and 0.05 degree.
In some embodiments, the predetermined frame number is 3 frames.
In some embodiments, the imaging device includes that to focus lens and motor the Focusing module includes first
Control unit, the first recognition unit, the first judging unit, the second control unit, the second recognition unit, the second judging unit and really
Recognize focusing unit.First control unit be used to controlling the motor drive it is described to focus lens from nearly Jiao position to remote burnt position
Put and Jiao is sought away from progressively movement with the first step;First recognition unit is used to process described each first step to focus lens away from right
The cache image answered is to recognize human face region;First judging unit is described to judge for processing the human face region
Whether the contrast of human face region there is the first flex point;Second control unit is used to be controlled when there is first flex point
The motor drive it is described focus lens are returned with a step and with second step away to the remote burnt position movement, the second step is away from little
In the first step away from;Second recognition unit is used to process described each second step to focus lens away from corresponding described slow
Deposit image to recognize human face region;Second judging unit is used to process the human face region to judge the human face region
Whether contrast there is Second Inflexion Point;It is described to confirm that focusing unit is used to determine the imaging dress when there is the Second Inflexion Point
Put focusing.
The electronic installation of embodiment of the present invention includes motion sensor, imaging device and above-mentioned control device, described
Control device is electrically connected with the motion sensor and the imaging device..
In some embodiments, the electronic installation includes mobile phone and/or panel computer.
In some embodiments, the motion sensor includes gyroscope and/or acceleration transducer.
In some embodiments, the imaging device includes front-facing camera and/or post-positioned pick-up head.
The control method of embodiment of the present invention, control device and electronic installation when carrying out face and focusing, using motion
The stability of sensor detection electronic installation, is only less than or equal to predetermined amplitude and stable frame number is more than predetermined in jitter amplitude
Focusing is just can determine whether during frame number, it is ensured that the jitter amplitude scope of the mobile phone instantly of focusing does not affect face to focus, so that it is guaranteed that people
The accuracy of face focusing.
The additional aspect and advantage of the present invention will be set forth in part in the description, and partly will become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become from the description with reference to accompanying drawings below to embodiment
Substantially with it is easy to understand, wherein:
Fig. 1 be the control method of embodiment of the present invention schematic flow sheet '
Fig. 2 is the high-level schematic functional block diagram of the electronic installation of embodiment of the present invention;
Fig. 3 is the schematic diagram in kind of the electronic installation of embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the control method of some embodiments of the invention;
Fig. 5 is the high-level schematic functional block diagram of the electronic installation of some embodiments of the invention;
Fig. 6 is another schematic flow sheet of the control method of some embodiments of the invention;
Fig. 7 is another high-level schematic functional block diagram of the electronic installation of some embodiments of the invention;
Fig. 8 is another high-level schematic functional block diagram of the electronic installation of some embodiments of the invention;
Fig. 9 is the view of the control method of some embodiments of the invention.
Specific embodiment
Embodiments of the present invention are described below in detail, the example of the embodiment is shown in the drawings, wherein ad initio
Same or similar element is represented to same or similar label eventually or the element with same or like function.Below by ginseng
The embodiment for examining Description of Drawings is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.
Refer to Fig. 1, the control method of embodiment of the present invention, for controlling electronic installation, the electronic installation includes
Motion sensor and imaging device, the control method is comprised the following steps:
S12:Process the motion sensor senses to the electronic installation exercise data to obtain electronics dress
The jitter amplitude put;
S13:Judge the jitter amplitude of the electronic installation whether less than or equal to predetermined amplitude;
S14:Add up the caching of the imaging device output when the jitter amplitude is less than or equal to the predetermined amplitude
The stable frame number of image;
S15:The stable frame number is reset when the jitter amplitude is more than the predetermined amplitude;With
S16:It is more than imaging device focusing described in predetermined frame number time control system in the stable frame number.
Fig. 2 is referred to, the control method of embodiment of the present invention can be real by the control device 10 of embodiment of the present invention
It is existing.
The control device 10 of embodiment of the present invention includes processing module 12, judge module 13, accumulation module 14, replacement mould
Block 15 and Focusing module 16.Step S12 can be realized that step S13 can be realized by judge module 13, step by processing module 12
S14 can be realized that step S15 can be realized by replacement module 15 by accumulation module 14, and step S16 can be real by Focusing module 16
It is existing.
In other words, processing module 12 is used to process the exercise data of the electronic installation 100 that motion sensor 30 is detected
To obtain the jitter amplitude of electronic installation 100;Judge module 13 be used to judging the jitter amplitude of electronic installation 100 whether be less than or
Equal to predetermined amplitude;Accumulation module 14 is used for the accumulative imaging device when the jitter amplitude is less than or equal to the predetermined amplitude
The stable frame number of the cache image of 20 outputs;Resetting module 15 is used to be reset when the jitter amplitude is more than the predetermined amplitude
The stable frame number;Focusing module 16 is focused for being formed as device 20 more than predetermined frame number time control in the stable frame number.
Fig. 3 is referred to, the control device 10 of embodiment of the present invention is applied to the electronic installation of embodiment of the present invention
100, in other words, the electronic installation 100 of embodiment of the present invention includes the control device 10 of embodiment of the present invention.Certainly,
The electronic installation 100 of embodiment of the present invention also includes imaging device 20 and motion sensor 30.Control device 10 and imaging dress
Put 20 and motion sensor 30 electrically connect.
In some embodiments, electronic installation 100 includes mobile phone and/or panel computer, and here does not do any restriction.
In the specific embodiment of the present invention, electronic installation 100 is mobile phone.
In some embodiments, imaging device 100 includes front-facing camera and/or post-positioned pick-up head.
In some embodiments, motion sensor 30 includes gyroscope or acceleration transducer.
Gyroscope and acceleration transducer can perceptional electronic device 100 acceleration or angle change.The present invention's
In specific embodiment, motion sensor 30 is gyroscope.When electronic installation 100 is in labile states such as shakes, gyroscope
In micro mechanical vibration element rotated, by measurement rotation produce coriolis force obtain electronic installation 100 jitter amplitude.
Gyroscope can adopt micro-mechanical gyroscope.Micro-mechanical gyroscope sensitivity is high, cheap suitable volume production, and size is small, can
The volume of electronic installation 100 is not affected in be integrated in electronic installation 100.
In some embodiments, jitter amplitude includes side-play amount, and predetermined amplitude is 0.12 millimeter;Or jitter amplitude includes
Deflection angle, predetermined amplitude is 0.05 degree;Or jitter amplitude includes side-play amount and deflection angle simultaneously, predetermined amplitude is 0.12 milli
Rice and 0.05 degree.
In the specific embodiment of the present invention, the jitter amplitude of electronic installation 100 refers to electronic installation 100 in next bit
Put side-play amount or deflection angle or side-play amount and deflection angle of the opposing electronic device 100 in initial position.If electronic installation
100 jitter amplitude is that electronic installation 100 during side-play amount in initial position, works as electricity in the next position opposing electronic device 100
The side-play amount of sub-device 100 thinks that electronic installation 100 plays pendulum when exceeding 0.12 millimeter of predetermined amplitude, accumulation
The stable frame number of cache image resets and resets.If the jitter amplitude of electronic installation 100 is that electronic installation 100 is relative in the next position
During the deflection angle of the initial position of electronic installation 100, when the deflection angle of the rotation of electronic installation 100 exceedes predetermined amplitude 0.05
Think that electronic installation 100 plays pendulum when spending, the stable frame number of accumulative cache image resets and resets.If electronics is filled
The jitter amplitude for putting 100 is side-play amount and deflection of the electronic installation 100 in the next position opposing electronic device 100 in initial position
During angle, when the side-play amount of electronic installation 100 exceedes 0.12 millimeter of predetermined amplitude and deflection angle 0.05 degree of predetermined amplitude is exceeded
When think that electronic installation 100 plays pendulum, the stable frame number of accumulative cache image resets and resets.Wherein, electronics
The predetermined amplitude of the side-play amount of device 100 can be arranged arbitrarily, for example can be 0.09 millimeter to 0.15 millimeter in the range of its
His any number.The predetermined amplitude of the deflection angle of electronic installation 100 can also be arranged arbitrarily, for example can be for 0.025 degree extremely
Other any numbers in the range of 0.075 degree.
In some embodiments, predetermined frame number is 3 frames.It is appreciated that predetermined frame number is not limited to 3 frames, Ke Yiren
Meaning is arranged.
In operation, photographer's hand-hold electronic device 100 is that mobile phone is focused and shot, and imaging device 20 is with 30 frame per second
Speed refreshed, motion sensor 30 is the shake width that gyroscope detects the mobile phone inscribed during each frame buffer image correspondence
Degree, when mobile phone jitter amplitude such as side-play amount is less than 0.12 millimeter or deflection angle is less than 0.05 degree the steady of cache image is recorded
Framing number, and continue to detect the jitter amplitude of the mobile phone inscribed during next frame cache image correspondence with accumulative stable frame number, if handss
The jitter amplitude of machine such as side-play amount is more than 0.12 millimeter or deflection angle is more than 0.05 degree, shows that current phone is in unstable shape
State, then reset previously accumulative stable frame number and reset, and continues to detect the jitter amplitude of mobile phone, until accumulative stable frame number
Current phone is determined during equal to or more than 3 frame in steady statue, and controls the camera focusing of mobile phone.
It is appreciated that carry out focusing when electronic installation 100 is under the labile states such as shake to will be unable to obtain accurate
Focusing area.The control method of embodiment of the present invention, control device 10 and electronic installation 100 when carrying out face and focusing,
Using stability of the detection electronic installation 100 of motion sensor 30 under current shooting state, it is ensured that the dress of electronics instantly of focusing
Putting 100 jitter amplitude scope does not affect face to focus, so that it is guaranteed that the accuracy of face focusing.
Fig. 4 is referred to, in some embodiments, control method is further comprising the steps of:
S11:Process the cache image to recognize whether human face region;
S12:The exercise data of the electronic installation 100 that motion sensor 30 is detected is processed when there is the human face region
To obtain the jitter amplitude of electronic installation 100;With
S17:Focus there is no the human face region time control and being formed as device 20.
Fig. 5 is referred to, in some embodiments, control device also includes identification module 11.Step S11 can be by recognizing
Module 11 realizes that step S12 can be realized by processing module 12, and step S17 can be realized by Focusing module 16.
In other words, identification module 11 is used to process the cache image to recognize whether human face region;Process mould
Block 12 is used to be processed when there is the human face region exercise data of the electronic installation 100 that motion sensor 30 is detected to sentence
Whether the jitter amplitude of power-off sub-device 100 is less than or equal to predetermined amplitude;Focusing module 16 is additionally operable to no presence of the people
The time control of face region is formed as device 20 and focuses.
It is appreciated that during auto-focusing, if there is face in shooting picture, showing the main part in shooting picture
It is divided into people, and most cases servant is in close shot position, focusing area during auto-focusing should select human face region, if now electricity
There is shake in sub-device 100, then can cause portrait fuzzy problem out of focus.If there is no face in shooting picture, now shoot
Main part in picture may be the scenic picture such as distant view, if now there is shake in electronic installation 100, scenery it is out of focus can
Energy property is less.Therefore, should first recognizing during shooting with the presence or absence of face in shooting picture, motion sensor is utilized when there is face
30 carry out the Detection of Stability of electronic installation 100 to improve the accuracy of focusing.
Fig. 6 to 8 is referred to, in some embodiments, imaging device 20 is included to focus lens 21 and motor 22, step
S16 is comprised the following steps:
S161:Control motor 22 drives to be sought with the first step from nearly Jiao position to remote burnt position to focus lens 21 away from progressively movement
It is burnt;
S162:Each first step to focus lens 22 is processed away from the corresponding cache image to recognize human face region;
S163:Whether the contrast for processing the human face region to judge the human face region there is the first flex point;
S164:Occur first flex point when control motor 22 drive to focus lens 21 return a step and with second step away from
To the remote burnt position movement, the second step away from less than the first step away from;
S165:Each second step to focus lens 21 is processed away from the corresponding cache image to recognize human face region;
S166:Whether the contrast for processing the human face region to judge the human face region there is Second Inflexion Point;With
S167:Determine that imaging device 20 is focused when there is the Second Inflexion Point.
In some embodiments, Focusing module 16 includes that the first control unit 161, the first recognition unit 162, first are sentenced
Disconnected unit 163, the second control unit 164, the second recognition unit 165, the second judging unit 166 and confirmation focusing unit 167.Step
Rapid S161 can be realized that step S162 can realize that step S163 can by the first recognition unit 162 by the first control unit 161
To be realized by the first judging unit 163, step S164 can realize that step S165 can be by second by the second control unit 164
Recognition unit 165 realizes that step S166 can be realized by the second judging unit 166, and step S167 can be by confirmation focusing unit
167 realize.
In other words, the first control unit 181 is driven to focus lens 21 from nearly Jiao position to remote Jiao for controlling motor 22
Jiao is sought in position with the first step away from progressively movement;First recognition unit 162 is used to process each first step to focus lens 22 away from right
The cache image answered is to recognize human face region;First judging unit 163 is described to judge for processing the human face region
Whether the contrast of human face region there is the first flex point;Second control unit 164 is used to be controlled when there is first flex point
Motor 22 is driven and focus lens 21 are returned a step and with second step away to the remote burnt position movement, and the second step is away from less than institute
State the first step away from;Second recognition unit 165 is used to process each second step to focus lens 21 away from the corresponding cache image
To recognize human face region;Second judging unit 166 is used to process the human face region to judge the contrast of the human face region
Whether Second Inflexion Point is occurred;Confirm that focusing unit 167 is used to determine that imaging device 20 is focused when there is the Second Inflexion Point.
Specifically, incorporated by reference to Fig. 9, when electronic installation 100 is under steady statue, focus operation is proceeded by.Focusing
Eyeglass 21 starts to move a first step away from the meeting of imaging device 20 away from Jiao is sought, often with the first step to remote burnt position from nearly burnt position
The corresponding cache image of a frame is exported, recognizes the human face region in each frame buffer image with recognition unit 162, and by first
Judging unit 163 calculates the contrast of human face region.When contrast reaches highest, focus lens 21 may proceed to remote burnt position
Direction move a first step away from the contrast of a frame buffer image of reentrying.Electronic installation 100 finds the slow of current output
The contrast for depositing image has declined compared to the contrast of the cache image of previous frame and occur in that the first flex point, then, control
Motor processed 22 return a first step away from, and using less than the first step away from second step away from carrying out seeking Jiao, until find second turning
Focusing during point is completed.Wherein, the contrast of the human face region of a frame buffer image can be the difference of minimum brightness and maximum brightness,
Show to be located at focal position to focus lens 21 when the minimum brightness for calculating is maximum with the difference of maximum brightness, focusing is completed.
Thus, imaging device 20 is accurately focused and exports clearly image.In due to only calculating each frame buffer image
The data processed needed for electronic installation 100 in human face region, therefore focus process are less, and focusing time is also less.
In the description of embodiments of the present invention, it is to be understood that term " " center ", " longitudinal direction ", " horizontal ", " length
Degree ", " width ", " thickness ", " on ", D score, "front", "rear", "left", "right", " vertical ", " level ", " top ", " bottom ", " interior ",
" outward ", the orientation or position relationship of the instruction such as " clockwise ", " counterclockwise " is based on orientation shown in the drawings or position relationship, only
It is to describe for the ease of describing embodiments of the present invention and simplifying, rather than indicates or imply that the device or element of indication are necessary
With specific orientation, with specific azimuth configuration and operation, therefore it is not intended that the restriction to embodiments of the present invention.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or implying relative importance
Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or
Implicitly include one or more feature.In the description of embodiments of the present invention, " multiple " are meant that two
Individual or two or more, unless otherwise expressly limited specifically.
In the description of embodiments of the present invention, it should be noted that unless otherwise clearly defined and limited, term
" installation ", " connected ", " connection " should be interpreted broadly, for example, it may be fixedly connected, or be detachably connected, or one
The connection of body ground;Can be mechanically connected, or electrically connect or can mutually communicate;Can be joined directly together, it is also possible to logical
Cross intermediary to be indirectly connected to, can be connection or the interaction relationship of two elements of two element internals.For ability
For the those of ordinary skill in domain, above-mentioned term specifically containing in embodiments of the present invention can be as the case may be understood
Justice.
In embodiments of the present invention, unless otherwise clearly defined and limited, fisrt feature second feature it
" on " or D score can include the first and second feature directly contacts, it is also possible to including the first and second features be not directly to connect
Touch but by the other characterisation contact between them.And, fisrt feature second feature " on ", " top " and " on
Face " includes fisrt feature directly over second feature and oblique upper, or to be merely representative of fisrt feature level height special higher than second
Levy.Fisrt feature second feature " under ", " lower section " and " below " include fisrt feature immediately below second feature and tiltedly under
Side, or fisrt feature level height is merely representative of less than second feature.
Above disclosure provides many different embodiments or example is used for realizing embodiments of the present invention not
Same structure.In order to simplify the disclosure of embodiments of the present invention, above the part and setting of specific examples are described.When
So, they are only merely illustrative, and purpose does not lie in the restriction present invention.Additionally, embodiments of the present invention can be in different examples
Repeat reference numerals and/or reference letter in son, this repetition is for purposes of simplicity and clarity, itself not indicate to be begged for
By the relation between various embodiments and/or setting.Additionally, the various specific technique that embodiments of the present invention are provided
With the example of material, but those of ordinary skill in the art can be appreciated that the application of other techniques and/or making for other materials
With.
In the description of this specification, reference term " embodiment ", " some embodiments ", " schematically enforcement
The description of mode ", " example ", " specific example " or " some examples " etc. means to combine the tool that the embodiment or example are described
Body characteristicses, structure, material or feature are contained at least one embodiment of the present invention or example.In this manual,
Identical embodiment or example are not necessarily referring to the schematic representation of above-mentioned term.And, the specific features of description, knot
Structure, material or feature can in an appropriate manner be combined in any one or more embodiments or example.
In flow chart or here any process described otherwise above or method description are construed as, expression includes
It is one or more for realizing specific logical function or process the step of the module of code of executable instruction, fragment or portion
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussion suitable
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Although embodiments of the invention have been shown and described above, it is to be understood that above-described embodiment is example
Property, it is impossible to limitation of the present invention is interpreted as, one of ordinary skill in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, changes, replacing and modification.
Claims (14)
1. a kind of control method, for controlling electronic installation, it is characterised in that the electronic installation include motion sensor and into
As device, the control method is comprised the following steps:
Process the motion sensor senses to the electronic installation exercise data to obtain the shake of the electronic installation
Amplitude;
Judge the jitter amplitude of the electronic installation whether less than or equal to predetermined amplitude;
Add up the steady of the cache image that the imaging device is exported when the jitter amplitude is less than or equal to the predetermined amplitude
Framing number;
The stable frame number is reset when the jitter amplitude is more than the predetermined amplitude;With
It is more than imaging device focusing described in predetermined frame number time control system in the stable frame number.
2. control method as claimed in claim 1, it is characterised in that the control method is comprised the following steps:
Process the cache image to recognize whether human face region;
When there is the human face region into the motion for processing the electronic installation that the motion sensor senses are arrived
The step of data are with the jitter amplitude for obtaining the electronic installation;With
The imaging device focusing is controlled when there is no the human face region.
3. control method as claimed in claim 1, it is characterised in that the jitter amplitude includes side-play amount, the pre- tentering
Spend for 0.12 millimeter;Or
The jitter amplitude includes deflection angle, and the predetermined amplitude is 0.05 degree;Or
The jitter amplitude includes side-play amount and deflection angle, and the predetermined amplitude is 0.12 millimeter and 0.05 degree.
4. control method as claimed in claim 1, it is characterised in that the predetermined frame number is 3 frames.
5. control method as claimed in claim 1, it is characterised in that the imaging device is included to focus lens and motor, institute
State and comprised the following steps the step of the stable frame number is focused more than imaging device described in predetermined frame number time control system:
Control the motor and drive described to seek Jiao away from progressively movement with the first step from nearly Jiao position to remote burnt position to focus lens;
Described each first step to focus lens is processed away from the corresponding cache image to recognize human face region;
Whether the contrast for processing the human face region to judge the human face region there is the first flex point;
Control when there is first flex point motor drive it is described focus lens are returned with a step and with second step away to institute
State the movement of remote Jiao position, the second step away from less than the first step away from;
Described each second step to focus lens is processed away from the corresponding cache image to recognize human face region;
Whether the contrast for processing the human face region to judge the human face region there is Second Inflexion Point;With
The imaging device focusing is determined when there is the Second Inflexion Point.
6. a kind of control device, for controlling electronic installation, it is characterised in that the electronic installation include motion sensor and into
As device, the control device includes:
Processing module, the processing module is used to process the exercise data of the electronic installation that the motion sensor senses are arrived
To obtain the jitter amplitude of the electronic installation;
Whether judge module, the judge module is used to judge the jitter amplitude of the electronic installation less than or equal to pre- tentering
Degree;
Accumulation module, the accumulation module be used for the jitter amplitude be less than or equal to the predetermined amplitude when add up it is described into
As the stable frame number of the cache image of device output;
Module is reset, the replacement module is used to reset the stabilizer frame when the jitter amplitude is more than the predetermined amplitude
Number;With
Focusing module, the Focusing module is used to be more than imaging device pair described in predetermined frame number time control system in the stable frame number
It is burnt.
7. control device as claimed in claim 6, it is characterised in that the control device also includes identification module, the knowledge
Other module is used to process the cache image to recognize whether human face region;
The processing module is used to process the institute that the motion sensor senses are arrived into described when there is the human face region
The step of exercise data of electronic installation is stated with the jitter amplitude for obtaining the electronic installation;With
The Focusing module is additionally operable to control the imaging device focusing when there is no the human face region.
8. control device as claimed in claim 6, it is characterised in that the jitter amplitude includes side-play amount, the pre- tentering
Spend for 0.12 millimeter;Or
The jitter amplitude includes deflection angle, and the predetermined amplitude is 0.05 degree;Or
The jitter amplitude bag side-play amount and deflection angle, the predetermined amplitude is 0.12 millimeter and 0.05 degree.
9. control device as claimed in claim 6, it is characterised in that the predetermined frame number is 3 frames.
10. control device as claimed in claim 6, it is characterised in that the imaging device is included to focus lens and motor, institute
Stating Focusing module includes:
First control unit, first control unit be used to controlling the motor drive it is described to focus lens from nearly Jiao position to
Jiao is sought in remote Jiao position with the first step away from progressively movement;
First recognition unit, first recognition unit is used to process described each first step to focus lens away from corresponding described
Cache image is recognizing human face region;
First judging unit, first judging unit is used to process the human face region to judge the contrast of the human face region
Whether degree there is the first flex point;
Second control unit, second control unit is used to control when there is first flex point described in the motor driving
Focus lens are returned with a step and with second step away to the remote burnt position movement, the second step away from less than the first step away from;
Second recognition unit, second recognition unit is used to process described each second step to focus lens away from corresponding described
Cache image is recognizing human face region;
Second judging unit, second judging unit is used to process the human face region to judge the contrast of the human face region
Whether degree there is Second Inflexion Point;With
Confirm focusing unit, the confirmation focusing unit is used to determine the imaging device pair when there is the Second Inflexion Point
It is burnt.
11. a kind of electronic installations, it is characterised in that the electronic installation includes:
Motion sensor;
Imaging device;With
Control device as described in claim 6-10 any one, the control device and the motion sensor and it is described into
As device is electrically connected.
12. electronic installations as claimed in claim 11, it is characterised in that the electronic installation includes mobile phone and/or flat board electricity
Brain.
13. electronic installations as claimed in claim 11, it is characterised in that the motion sensor includes gyroscope and/or adds
Velocity sensor.
14. electronic installations as claimed in claim 11, it is characterised in that the imaging device include front-facing camera and/or
Post-positioned pick-up head.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611155265.4A CN106603915B (en) | 2016-12-14 | 2016-12-14 | Control method, control device and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611155265.4A CN106603915B (en) | 2016-12-14 | 2016-12-14 | Control method, control device and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106603915A true CN106603915A (en) | 2017-04-26 |
CN106603915B CN106603915B (en) | 2019-09-06 |
Family
ID=58801311
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611155265.4A Active CN106603915B (en) | 2016-12-14 | 2016-12-14 | Control method, control device and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106603915B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111669499A (en) * | 2020-06-12 | 2020-09-15 | 杭州海康机器人技术有限公司 | Video anti-shake method and device and video acquisition equipment |
CN112653842A (en) * | 2020-12-23 | 2021-04-13 | 维沃移动通信有限公司 | Video anti-shake method and device |
WO2022000258A1 (en) * | 2020-06-30 | 2022-01-06 | 深圳市大疆创新科技有限公司 | Focusing method and apparatus, electronic device, and computer readable medium |
CN114339015A (en) * | 2020-09-27 | 2022-04-12 | 北京小米移动软件有限公司 | Photographing processing method, photographing processing device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102520858A (en) * | 2011-12-08 | 2012-06-27 | 深圳市万兴软件有限公司 | Mobile terminal application control method and device |
CN102801915A (en) * | 2012-08-28 | 2012-11-28 | 广东欧珀移动通信有限公司 | Automatic photo-taking method of handheld device |
CN103051836A (en) * | 2012-12-14 | 2013-04-17 | 中兴通讯股份有限公司 | Anti-shake photographing method and anti-shake photographing device for mobile terminal |
CN104104856A (en) * | 2013-04-09 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Image acquisition method and device and electronic device |
CN105391918A (en) * | 2014-08-25 | 2016-03-09 | 佳能株式会社 | Image processing apparatus and method of controlling image processing apparatus |
-
2016
- 2016-12-14 CN CN201611155265.4A patent/CN106603915B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102520858A (en) * | 2011-12-08 | 2012-06-27 | 深圳市万兴软件有限公司 | Mobile terminal application control method and device |
CN102801915A (en) * | 2012-08-28 | 2012-11-28 | 广东欧珀移动通信有限公司 | Automatic photo-taking method of handheld device |
CN103051836A (en) * | 2012-12-14 | 2013-04-17 | 中兴通讯股份有限公司 | Anti-shake photographing method and anti-shake photographing device for mobile terminal |
CN104104856A (en) * | 2013-04-09 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Image acquisition method and device and electronic device |
CN105391918A (en) * | 2014-08-25 | 2016-03-09 | 佳能株式会社 | Image processing apparatus and method of controlling image processing apparatus |
Non-Patent Citations (1)
Title |
---|
郑静: "一种改进的自动聚焦搜索算法及其实现", 《电脑开发与应用》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111669499A (en) * | 2020-06-12 | 2020-09-15 | 杭州海康机器人技术有限公司 | Video anti-shake method and device and video acquisition equipment |
CN111669499B (en) * | 2020-06-12 | 2021-11-19 | 杭州海康机器人技术有限公司 | Video anti-shake method and device and video acquisition equipment |
WO2022000258A1 (en) * | 2020-06-30 | 2022-01-06 | 深圳市大疆创新科技有限公司 | Focusing method and apparatus, electronic device, and computer readable medium |
CN114339015A (en) * | 2020-09-27 | 2022-04-12 | 北京小米移动软件有限公司 | Photographing processing method, photographing processing device and storage medium |
CN114339015B (en) * | 2020-09-27 | 2023-08-22 | 北京小米移动软件有限公司 | Photographing processing method, photographing processing device and storage medium |
CN112653842A (en) * | 2020-12-23 | 2021-04-13 | 维沃移动通信有限公司 | Video anti-shake method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106603915B (en) | 2019-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106603915A (en) | Control method, control device and electronic device | |
CN100510931C (en) | Image capture device | |
CN106060409B (en) | Image pickup method, device and terminal device based on dual camera | |
KR100718124B1 (en) | Method and apparatus for displaying the motion of camera | |
CN107018313A (en) | Device for image stabilization and image stability method | |
CN107026970A (en) | Device for image stabilization and image stability method | |
KR101528860B1 (en) | Method and apparatus for correcting a shakiness in digital photographing apparatus | |
CN104202527A (en) | Method and equipment for adjusting lens of portable terminals | |
CN107918183A (en) | Equipment for driving optical reflector | |
CN101251706A (en) | Optical die set, camera and mobile terminal equipment | |
CN102170524A (en) | Focus control apparatus and focus control method | |
CN105049682B (en) | Digital camera system and the method for controlling the digital camera system | |
CN106303220A (en) | Stabilization system calibration method, device and mobile terminal | |
CN105744116A (en) | Detection method, control method, detection device, control device and electronic device | |
US20130002924A1 (en) | Electronic apparatus | |
JP2002139761A (en) | Camera having shake notifying function | |
CN109803079B (en) | Mobile terminal, photographing method thereof and computer storage medium | |
CN106303222A (en) | Stabilization processing method, device and terminal unit | |
CN105763798A (en) | Control method, control apparatus and electronic apparatus | |
CN102890329A (en) | Focus controller | |
CN105872356A (en) | Imaging apparatus and imaging method | |
CN106101567B (en) | Shoot light-regulating method, device and mobile terminal | |
CN105827967B (en) | Control method, control device and electronic device | |
CN106993127A (en) | Camera device, as shake correction method | |
CN114762314A (en) | Electronic device and method for controlling camera motion |
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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |