CN106338807B - A kind of Atomatic focusing method, device and terminal - Google Patents
A kind of Atomatic focusing method, device and terminal Download PDFInfo
- Publication number
- CN106338807B CN106338807B CN201610974311.7A CN201610974311A CN106338807B CN 106338807 B CN106338807 B CN 106338807B CN 201610974311 A CN201610974311 A CN 201610974311A CN 106338807 B CN106338807 B CN 106338807B
- Authority
- CN
- China
- Prior art keywords
- motor
- current value
- current location
- current
- driving
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 239000000571 coke Substances 0.000 claims abstract description 39
- 230000008569 process Effects 0.000 claims abstract description 10
- 230000005611 electricity Effects 0.000 claims description 7
- 230000007246 mechanism Effects 0.000 claims description 6
- 230000015654 memory Effects 0.000 description 10
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 3
- 238000012512 characterization method Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 206010048669 Terminal state Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B7/00—Mountings, adjusting means, or light-tight connections, for optical elements
- G02B7/02—Mountings, adjusting means, or light-tight connections, for optical elements for lenses
- G02B7/04—Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification
- G02B7/09—Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification adapted for automatic focusing or varying magnification
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Lens Barrels (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a kind of Atomatic focusing method, device and terminals, it is related to camera mould technical group field, wherein, this method comprises: obtaining the motor in the driving current value of the current location when target position corresponding when determining that motor need to be from current location to coke number maximum is mobile;The driving current that the motor is inputed to according to the adjustment of the driving current value of the current location, so that the motor is moved to the position between the current location and the target position from current location;The operation for obtaining driving current value of the motor in the current location is returned to, until the motor is moved to the target position.The embodiment of the present invention solves in focus process, motor moving distance picture position corresponding when clearest is excessive cause it is sluggish excessive, caused by focus failure the problem of.
Description
Technical field
The present invention relates to camera mould technical group field more particularly to an Atomatic focusing methods, device and terminal.
Background technique
With the development of electronic technology, the electronic equipment with camera function is more more and more universal, and it is daily to be increasingly becoming people
It lives indispensable a part.Meanwhile more stringent requirements are proposed for photographic property of the people to equipment.For example, clear to image
The requirement of clear degree.
Currently, the fine definition in order to realize shooting picture, motor needs mobile or from remote from perifocus to over focus
Focus is mobile to perifocus, with obtain picture it is clearest when corresponding position, complete focusing.When motor is moved to target position
When, it is smaller and smaller to coke number if picture image is maximum to coke number, and during motor continues to move to, and variation range
It is larger, then it is assumed that for motor at target position, picture is clearest, and motor need to return to target position, and focusing is completed.
But inventor execute the present invention during discovery prior art have the defects that it is as follows: when the picture of shooting
It is smaller due to changing to coke number during being further continued for movement after motor is moved to target position when face details is fewer,
So biggish variation range can be just generated to coke number when motor moving distance target position is larger, therefore, because motor is slow
It is stagnant, make motor be not easy to return to target position, focusing is caused to fail, image is fuzzy.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of Atomatic focusing method, device and terminal, to solve focus process
In, motor moving distance picture position corresponding when clearest is excessive cause it is sluggish excessive, caused by focus failure the problem of.
In a first aspect, the embodiment of the invention provides a kind of Atomatic focusing methods, comprising:
When corresponding target position is mobile when determining that motor need to be from current location to coke number maximum, the horse is obtained
Up to the driving current value in the current location;
The driving current that the motor is inputed to according to the adjustment of the driving current value of the current location, so that the motor
The position between the current location and the target position is moved to from current location;
The operation for obtaining driving current value of the motor in the current location is returned to, until the motor is moved to institute
State target position.
Second aspect, the embodiment of the invention also provides a kind of automatic focusing mechanisms, comprising:
Electric current obtains module, for the target position corresponding when determining that motor need to be from current location to coke number maximum
When mobile, the motor is obtained in the driving current value of the current location;
Current adjusting module, for inputing to the driving of the motor according to the adjustment of the driving current value of the current location
Electric current, so that the motor is moved to the position between the current location and the target position from current location;
Return module, for returning to the operation for obtaining driving current value of the motor in the current location, until institute
It states motor and is moved to the target position.
The embodiment of the invention provides a kind of terminal, the terminal is integrated with auto-focusing dress provided in an embodiment of the present invention
It sets.
Technical solution provided in an embodiment of the present invention, by adjusting the driving current of motor, so that motor is from current location
It is moved to the position between current location and target position, returns again to the operation of the driving current of adjustment motor, until motor moves
It moves to target position, wherein target position corresponding position, i.e., corresponding position when picture is clearest when being to coke number maximum
It sets.The embodiment of the present invention solves during the focusing process, and motor moving distance picture position corresponding when clearest is excessive to lead
Cause it is sluggish excessive, caused by focus failure the problem of.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other
Feature, objects and advantages will become more apparent upon:
Fig. 1 a is a kind of Atomatic focusing method flow chart that the embodiment of the present invention one provides;
Fig. 1 b is the motor mobile route schematic diagram that the embodiment of the present invention one provides;
Fig. 2 a is a kind of Atomatic focusing method flow chart provided by Embodiment 2 of the present invention;
Fig. 2 b is motor mobile route schematic diagram provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of Atomatic focusing method flow chart that the embodiment of the present invention three provides;
Fig. 4 is a kind of automatic focusing mechanism structural block diagram that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
In description, only some but not all contents related to the present invention are shown in the drawings.
Embodiment one
Fig. 1 a is a kind of Atomatic focusing method flow chart that the embodiment of the present invention one provides, and the method is filled by auto-focusing
It sets to execute, described device is executed by software and/or hardware, and described device is generally disposed at the terminal with camera function
In.As shown in Figure 1a, technical solution provided in this embodiment is specific as follows:
S110: it when determining that motor need to be from current location to coke number maximum, corresponding target position is mobile, obtains
Driving current value of the motor in the current location.
It in the present embodiment, is the number for handling and calculating such as to be filtered by picture image of the terminal to acquisition to coke number
Value.Wherein, bigger to coke number, characterization picture is more clear.When the position where motor is not simultaneously as the picture image obtained is clear
Clear degree is different, so being also different to coke number.Target position position corresponding when being to coke number maximum, i.e. picture are clearest
When corresponding position.During the focusing process, motor can be mobile from perifocus to over focus, or can also from over focus to
Perifocus is mobile, to find to the maximum position of coke number.
Focus process is illustrated, for example, as shown in Figure 1 b, A is perifocus, B is over focus.If motor from
Perifocus A moves the movement to realize focusing, with motor from perifocus A to over focus B to over focus B, gradually to coke number elder generation
Become larger, if when motor is moved to C point, it is relatively large to coke number, and motor since C point move when, pair of next frame picture
Coke number starts to become smaller, and since C point is mobile, each frame picture to coke number compared with previous frame picture is to coke number, reduce
Range it is smaller.In order to find to the maximum position of coke number, motor needs to continue mobile to B point.If when motor is moved to D point
When, D point is corresponding to have reached preset value to the coke number difference between coke number corresponding with C point, then judges C point for target position
It sets, i.e., corresponding position when picture is clear, then motor needs not continue to mobile to B point, then returns to C point from D point, complete
At focusing.In the present embodiment, current location is the position of D point locating for motor, i.e. motor is further continued for behind target position
Mobile pre-determined distance reaches current location, and corresponding to current location it is corresponding with target location to coke number to coke number it
Between difference reach preset value.
It should be noted that the longer arrow of length (lower section of figure) characterizes motor from perifocus to over focus in Fig. 1 b
Moving direction, mobile side of shorter arrow (top of figure) the characterization motor of length from current location to target position in Fig. 1 b
To.
Similarly, when motor is from over focus to the mobile principle to realize focusing of perifocus, with motor from perifocus to remote coke
Point is mobile to realize that the principle of focusing is identical, is not repeated.
In the present embodiment, during realizing focusing, the position where motor is different, inputs to the driving electricity of motor
Flow valuve is also different.When the position where motor is D point, driving current value of the motor in D point is obtained.
S120: the driving current of the motor is inputed to according to the adjustment of the driving current value of the current location, so that institute
It states motor and is moved to the position between the current location and the target position from current location.
In the present embodiment, adjustment inputs to the driving current of motor, changes the position of motor, makes motor from current location
It is moved to the position between current location and target position.For example, as shown in Figure 1 b, when motor is mobile to C point from D point, adjusting
The whole electric current for inputing to motor makes motor be moved to E point, wherein E point is located between D point and C point.When keeping motor mobile from D point
When to E point, the driving current value for inputing to motor is less than the driving current value that motor is inputed to when motor is moved to C point from D point.
S130: returning to the operation for obtaining driving current value of the motor in the current location, until the motor moves
Move the target position.
In the present embodiment, for example, when motor is moved to E point, the driving electricity that motor is inputed in E point is obtained
Flow valuve is further continued for the driving current of adjustment motor, until motor is moved to target position, i.e. motor is moved to C point.
In the present embodiment, it is moved in target location processes in motor from current location, can control and input to motor
Driving current value change a setting step value each time, or also can control and input to the driving current value of motor according to setting
Fixed formula or function is changed;Or it is also possible to the mode of other adjustment, so that motor is gradually moved from current location
It moves to target position.
By above-mentioned method, by gradually adjusting electric current, motor is made to gradually return to target position from current position,
It avoids that electric current adjusting range is larger to lead to the biggish situation of motor moving distance, and solves that motor moving distance is larger to be caused
It is sluggish excessive, caused by focus failure the problem of.
It should be noted that the driving current value of motor can be the current value for being actually inputted to motor, or can be
Input to the Logic current value of motor, wherein the Logic current value for inputing to motor has with the current value for being actually inputted to motor
There is corresponding relationship.
A kind of Atomatic focusing method provided in this embodiment, by adjusting the driving current of motor, so that motor is from current
Position is moved to the position between current location and target position, the operation of the driving current of adjustment motor is returned again to, until horse
Up to being moved to target position, wherein target position corresponding position when being to coke number maximum, i.e., it is corresponding when picture is clearest
Position solves during the focusing process, and motor moving distance picture position corresponding when clearest is excessive to cause sluggishness excessive,
Caused by focus failure the problem of.
Embodiment two
Fig. 2 a is a kind of flow chart of Atomatic focusing method provided by Embodiment 2 of the present invention, on the basis of above-described embodiment
On, optionally, the driving current that the motor is inputed to according to the adjustment of the driving current value of the current location, so that institute
It states motor and is moved to the position between the current location and the target position from current location, comprising:
If difference of the motor between the driving current value and target current value of the current location is greater than setting threshold
Value, then the drive current variations one that control inputs to the motor set step value, so that the motor is mobile from current location
Position between the current location and the target position.
Step value is set by the drive current variations one of control motor as a result, so that motor is moved to from current location
Between current location and target position, solve cause because motor moving distance is excessive it is sluggish excessive, and caused by focus failure
The problem of.
Optionally, described to return to the operation for obtaining driving current value of the motor in the current location, until described
Motor is moved to the target position, comprising:
The operation for obtaining driving current value of the motor in the current location is returned to, until the driving electricity of the motor
When difference between flow valuve and the target current value is less than the given threshold, control inputs to the driving current of the motor
Value is equal with the target current value, so that the motor is moved to target position.
Motor is obtained in the operation of the driving current of current location by returning as a result, can be realized and repeatedly motor is driven
The adjustment of streaming current, until the driving current value of control motor is equal with target current value, so that motor is moved to target position,
Solve the problems, such as because motor it is sluggish it is excessive caused by focus failure.
Based on above-mentioned optimization, as shown in Figure 2 a, technical solution provided in this embodiment is specific as follows:
S210: it when determining that motor need to be from current location to coke number maximum, corresponding target position is mobile, obtains
Driving current value of the motor in the current location.
In the present embodiment, optionally, driving current value is to input to the Logic current value of motor.
S220: judge whether difference of the motor between the driving current value and target current value of the current location is greater than
Given threshold.
In the present embodiment, target current value is driving current value of the motor in target location.Given threshold can basis
It is set.For example, as shown in Figure 2 b, C point is target position, D point is the current location where motor.Driving electricity
Flow valuve is indicated using Logic current value.If driving current value of the motor in D point is 450code, drive of the motor in C point
Streaming current value is 300code, given threshold 50code.Since motor is in the driving current value of current location (D point)
Difference between (450code) and target current value (300code) is 150code, judges whether the difference is greater than given threshold
(50code)。
If so, executing S230, and return to 210.If it is not, returning to S240.
The drive current variations one that S230, control input to the motor set step value, so that the motor is from current
Position is moved to the position between the current location and the target position.
In the present embodiment, when difference of the motor between the driving current value and target current value of the current location is big
In given threshold, then the drive current variations one that control inputs to the motor set step value.Wherein, setting step value can root
It is illustrated according to needs, for the purpose of the distance for causing motor movement shorter.
For example, if setting step value as 50code, as shown in Figure 2 b, arrow direction is motor from current location to mesh
The moving direction of cursor position.During motor is from D point back to C point, motor drive current value is adjusted, in present current value
On the basis of change 50code, i.e., 50code is reduced on the basis of present current value, so that motor is moved between D point and C
Position, that is, be moved to E point.The operation of S210 is returned to, the driving current value for obtaining motor in E point is 400code, and motor is in E
Difference between the driving current value (400code) and target current value (300code) of point is greater than given threshold (50code), then
Reduce by setting step value (50code) on the basis of 400code, so that motor continues, arrival F point mobile to C point.Continue
S210 is returned, above-mentioned operation is repeated, until the difference between the present drive current value and target current value of motor is less than in advance
If threshold value.
S240: the driving current value that control inputs to the motor is equal with the target current value, so that the motor
It is moved to target position.
In the present embodiment, for example, as shown in Figure 2 b, if motor is respectively in the driving current value of C point and D point
300code and 350code, then when motor is mobile to C point from D point, the driving current value for controlling motor is equal to 300, so that horse
Reach target position.Since difference of the motor between C point and the driving current of D point is smaller, therefore motor is needed from D point to C
Distance is smaller when point is mobile, and the sluggishness of motor is smaller, it is not easy to lead to the problem of focusing failure.
By above-mentioned method, the setting step value of drive current variations one of motor is inputed to by controlling, so that motor
Mobile shorter distance every time, and the target position for keeping motor corresponding when being gradually moved to coke number maximum, can be avoided horse
The phenomenon that causing sluggishness excessive up to moving distance is excessive, cause focusing failure.
A kind of Atomatic focusing method is present embodiments provided, the drive current variations one by controlling motor set step-length
Value is avoided and is led because motor current adjustment is excessive so that motor is moved between current location and target position from current location
Cause it is sluggish excessive, and caused by focus failure the problem of;By return obtain motor the driving current of current location operation,
It can be realized the adjustment repeatedly to motor drive current, until the driving current value of control motor is equal with target current value, with
So that motor is moved to target position, solve the problems, such as because motor it is sluggish it is excessive caused by focus failure.
Embodiment three
Fig. 3 is a kind of Atomatic focusing method flow chart that the embodiment of the present invention three provides, on the basis of the above embodiments,
Optionally, the operation for obtaining driving current value of the motor in the current location is returned to, until the motor is moved to institute
State target position, comprising:
By setting time, the operation for obtaining driving current value of the motor in the current location is returned to, until institute
It states motor and is moved to the target position.
As a result, by passing through setting time, returns and obtain motor in the operation of the driving current of current location, can guarantee
The stability of motor realizes exact focus.
Optionally, the driving current of the motor is inputed to according to the adjustment of the driving current value of the current location, comprising:
If difference of the motor between the driving current value and target current value of the current location is greater than given threshold, and described
Driving current value of the motor in the current location is greater than the target current value, and control inputs to the driving current of the motor
Reduce a setting step value.
Further, optionally, the driving electricity of the motor is inputed to according to the adjustment of the driving current value of the current location
Stream, comprising: if difference of the motor between the driving current value and target current value of the current location is greater than setting threshold
Value, and driving current value of the motor in the current location is less than the target current value, control inputs to the motor
Driving current increase by one setting step value.
Increased as a result, by the driving current of control motor or reduce by a setting step value, so that motor is from present bit
It sets and is moved between current location and target position, until being moved to target position, solve and led because motor moving distance is excessive
Cause it is sluggish excessive, and caused by focus failure the problem of.
Based on above-mentioned optimization, as shown in figure 3, technical solution provided in an embodiment of the present invention is specific as follows:
S310: it when determining that motor need to be from current location to coke number maximum, corresponding target position is mobile, obtains
Driving current value of the motor in the current location.
S320: judge whether difference of the motor between the driving current value and target current value of the current location is greater than
Given threshold.
If so, S330 is executed, if it is not, executing S370
S330: judge whether motor is greater than target current value in the driving current value of current location.
If so, S340 is executed, if it is not, executing S350
S340: the driving current that control inputs to the motor reduces a setting step value.
In the present embodiment, when driving current value of the motor in current location is greater than target current value, control is inputed to
The driving current value of motor reduces by a setting step value.If the driving current value of motor is characterized with Logic current value, when
When driving current value of the motor in current location is greater than target current value, motor need to be mobile from current location to perifocus.
S350: the driving current that control inputs to the motor increases by a setting step value.
In the present embodiment, when driving current value of the motor in current location is less than target current value, control inputs to horse
The driving current value reached increases by a setting step value.If the driving current value of motor is characterized using Logic current value, when
When driving current value of the motor in current location is greater than target current value, motor need to be mobile from current location to over focus.
S360: passing through setting time, returns to S310.
In the present embodiment, setting time can be set as needed, to guarantee that the every movement of motor once keeps stable
Carry out movement next time again afterwards.Optionally, in the present embodiment, setting time 20ms.Wherein setting time can also be it
His time value, size to setting time and without limitation.
In the present embodiment, for example, as shown in Figure 2 b, during motor is moved to C point from D point, adjusting horse
Up to driving current value, the driving current for inputing to motor is to change 50code on the basis of present current value, so that motor moves
The position between D point and C is moved, that is, is moved to E point.Start timing when inputing to motor drive current, by 20ms, returns
S310 repeats above-mentioned operation.
S370: the driving current value that control inputs to the motor is equal with the target current value, so that the motor
It is moved to target position.
In the present embodiment, by control motor driving current increase or reduce one setting step value, and when motor into
After each primary current adjustment of row, carries out electric current adjustment next time again by setting time, can guarantee the stability of motor,
It solves the problems, such as failure of focusing caused by sluggishness, realizes exact focus.
It should be noted that S310-S370 is illustratively formed one embodiment by the embodiment of the present invention executes one kind certainly
The method of dynamic focusing, but a kind of only example, in other embodiments of the invention, S360 can also in embodiment one
S110-S130 form one embodiment, execute in the method or S360 and embodiment two of a kind of auto-focusing
S210-S240 forms a kind of method that one embodiment executes auto-focusing.
Executed it should be noted that S350 is illustratively placed on after S340 by the embodiment of the present invention, but S340 and
The execution sequence of S350 is not restricted by.
A kind of Atomatic focusing method provided in this embodiment returns by passing through setting time and obtains motor in present bit
The operation for the driving current set can guarantee the stability of motor, realize exact focus, and the driving current by controlling motor increases
Add or reduce by a setting step value, so that motor is moved between current location and target position from current location, until moving
Move to target position, solve cause because motor moving distance is excessive it is sluggish excessive, and caused by focus failure the problem of.
Example IV
Fig. 4 is a kind of structural block diagram for automatic focusing mechanism that the embodiment of the present invention four provides, and described device is for executing
Atomatic focusing method.As shown in figure 4, described device includes that electric current obtains module 410, current adjusting module 420 and returns to mould
Block 430.
Wherein, electric current obtains module 410, for corresponding when determining that motor need to be from current location to coke number maximum
When target position is mobile, the motor is obtained in the driving current value of the current location;
Current adjusting module 420, for inputing to the motor according to the adjustment of the driving current value of the current location
Driving current, so that the motor is moved to the position between the current location and the target position from current location;
Return module 430, for returning to the operation for obtaining driving current value of the motor in the current location, until
The motor is moved to the target position.
Further, the current adjusting module 420, is specifically used for:
If difference of the motor between the driving current value and target current value of the current location is greater than setting threshold
Value, then the drive current variations one that control inputs to the motor set step value, so that the motor is mobile from current location
Position between the current location and the target position;Wherein, the target current value is the motor in the mesh
Driving current value at cursor position;
The return module 430, is specifically used for:
The operation for obtaining driving current value of the motor in the current location is returned to, until the driving electricity of the motor
When difference between flow valuve and the target current value is less than the given threshold, control inputs to the driving current of the motor
Value is equal with the target current value, so that the motor is moved to target position.
Further, the return module 430, is specifically used for:
By setting time, the operation for obtaining driving current value of the motor in the current location is returned to, until institute
It states motor and is moved to the target position.
Further, if difference of the motor between the driving current value and target current value of the current location is big
In given threshold, then the drive current variations one that control inputs to the motor set step value, comprising:
If difference of the motor between the driving current value and target current value of the current location is greater than setting threshold
Value, and driving current value of the motor in the current location is greater than the target current value, control inputs to the motor
Driving current reduce one setting step value.
Further, if difference of the motor between the driving current value and target current value of the current location is big
In given threshold, then the drive current variations one that control inputs to the motor set step value, comprising:
If difference of the motor between the driving current value and target current value of the current location is greater than setting threshold
Value, and driving current value of the motor in the current location is less than the target current value, control inputs to the motor
Driving current increase by one setting step value.
A kind of automatic focusing mechanism is present embodiments provided, by adjusting the driving current of motor, so that motor is from current
Position is moved to the position between current location and target position, the operation of the driving current of adjustment motor is returned again to, until horse
Up to being moved to target position, wherein target position corresponding position when being to coke number maximum, i.e., it is corresponding when image is clearest
Position solves during the focusing process, and motor moving distance image position corresponding when clearest is excessive to cause sluggishness excessive,
Caused by focus failure the problem of.
Embodiment five
The embodiment of the present invention five provides a kind of terminal, is integrated with the provided auto-focusing dress of any embodiment of that present invention
It sets.Specifically, the terminal includes: as shown in figure 5, the embodiment of the present invention provides a kind of terminal
One or more processor 510, in Fig. 5 by taking a processor 510 as an example;
Memory 520;And one or more module.
The terminal can also include: input unit 530 and output device 540.Processor 510 in the terminal is deposited
Reservoir 520, input unit 530 and output device 540 can be connected by bus or other modes, to be connected by bus in Fig. 5
It is connected in example.
Memory 520 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, if the corresponding program instruction/module of the Atomatic focusing method in the embodiment of the present invention is (for example, attached shown in Fig. 4
Electric current obtains module 410, current adjusting module 420 and return module 430).Processor 510 is stored in memory by operation
Software program, instruction and module in 520 are realized thereby executing the various function application and data processing of terminal
State the Atomatic focusing method in embodiment of the method.
Memory 520 may include storing program area and storage data area, wherein storing program area can storage program area,
Application program needed at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.In addition,
Memory 520 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a disk
Memory device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 520 can be wrapped further
The memory remotely located relative to processor 510 is included, these remote memories can pass through network connection to terminal.Above-mentioned net
The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 530 can be used for receiving the number or character information of input, and generate with the user setting of terminal with
And the related key signals input of function control.Output device 540 may include that display screen etc. shows equipment.
Atomatic focusing method provided by any embodiment of the invention can be performed in above-mentioned terminal, and it is corresponding to have execution method
Functional module and beneficial effect.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (9)
1. a kind of Atomatic focusing method, which is characterized in that the method is applied to when shooting picture details is less, moves in motor
It moves behind target position, is further continued in moving process, motor moving distance picture target position corresponding when clearest is larger
Scene in, which comprises
When corresponding target position is mobile when determining that motor need to be from current location to coke number maximum, obtains the motor and exist
The driving current value of the current location, wherein determine target corresponding when motor need to be from current location to coke number maximum
Position is mobile, specifically: motor is further continued for mobile pre-determined distance and reaches current location, work as current location behind target position
It is corresponding when reaching preset value to the coke number difference between coke number corresponding with target location, determine that motor starts to mesh
Cursor position is mobile;
The driving current of the motor is inputed to according to the adjustment of the driving current value of the current location, so that the motor is from working as
Front position is moved to the position between the current location and the target position;
The operation for obtaining driving current value of the motor in the current location is returned to, until the motor is moved to the mesh
Cursor position;
Wherein, the driving current that the motor is inputed to according to the adjustment of the driving current value of the current location, so that institute
It states motor and is moved to the position between the current location and the target position from current location, comprising:
If difference of the motor between the driving current value and target current value of the current location is greater than given threshold,
The drive current variations one that control inputs to the motor set step value so that the motor be moved to from current location it is described
Position between current location and the target position;Wherein, the target current value is the motor in the target position
The driving current value at place;
It is described to return to the operation for obtaining driving current value of the motor in the current location, until the motor is moved to institute
State target position, comprising:
The operation for obtaining driving current value of the motor in the current location is returned to, until the driving current value of the motor
When difference between the target current value is less than the given threshold, control input to the driving current value of the motor with
The target current value is equal, so that the motor is moved to target position.
2. obtaining the motor in the driving of the current location the method according to claim 1, wherein returning
The operation of current value, until the motor is moved to the target position, comprising:
By setting time, the operation for obtaining driving current value of the motor in the current location is returned to, until the horse
Up to being moved to the target position.
3. the method according to claim 1, wherein described adjust according to the driving current value of the current location
Input to the driving current of the motor, comprising:
If difference of the motor between the driving current value and target current value of the current location is greater than given threshold, and
Driving current value of the motor in the current location is greater than the target current value, and control inputs to the driving of the motor
Electric current reduces a setting step value.
4. the method according to claim 1, wherein described adjust according to the driving current value of the current location
Input to the driving current of the motor, comprising:
If difference of the motor between the driving current value and target current value of the current location is greater than given threshold, and
Driving current value of the motor in the current location is less than the target current value, and control inputs to the driving of the motor
Electric current increases by a setting step value.
5. a kind of automatic focusing mechanism, which is characterized in that described device is applied to when shooting picture details is less, moves in motor
It moves behind target position, is further continued in moving process, motor moving distance picture target position corresponding when clearest is larger
Scene in, described device includes:
Electric current obtains module, mobile for the target position corresponding when determining that motor need to be from current location to coke number maximum
When, obtain the motor in the driving current value of the current location, wherein determine motor need to from current location to coke number most
Corresponding target position is mobile when big, specifically: motor is further continued for mobile pre-determined distance and reaches currently behind target position
Position, when reaching preset value to the coke number difference between coke number corresponding with target location corresponding to the current location,
It is mobile to target position to determine that motor starts;
Current adjusting module, for inputing to the driving electricity of the motor according to the adjustment of the driving current value of the current location
Stream, so that the motor is moved to the position between the current location and the target position from current location;
Return module, for returning to the operation for obtaining driving current value of the motor in the current location, until the horse
Up to being moved to the target position;
The current adjusting module, is specifically used for:
If difference of the motor between the driving current value and target current value of the current location is greater than given threshold,
The drive current variations one that control inputs to the motor set step value so that the motor be moved to from current location it is described
Position between current location and the target position;Wherein, the target current value is the motor in the target position
The driving current value at place;
The return module, is specifically used for:
The operation for obtaining driving current value of the motor in the current location is returned to, until the driving current value of the motor
When difference between the target current value is less than the given threshold, control input to the driving current value of the motor with
The target current value is equal, so that the motor is moved to target position.
6. device according to claim 5, which is characterized in that the return module is specifically used for:
By setting time, the operation for obtaining driving current value of the motor in the current location is returned to, until the horse
Up to being moved to the target position.
7. device according to claim 5, which is characterized in that described to be adjusted according to the driving current value of the current location
Input to the driving current of the motor, comprising:
If difference of the motor between the driving current value and target current value of the current location is greater than given threshold, and
Driving current value of the motor in the current location is greater than the target current value, and control inputs to the driving of the motor
Electric current reduces a setting step value.
8. device according to claim 5, which is characterized in that described to be adjusted according to the driving current value of the current location
Input to the driving current of the motor, comprising:
If difference of the motor between the driving current value and target current value of the current location is greater than given threshold, and
Driving current value of the motor in the current location is less than the target current value, and control inputs to the driving of the motor
Electric current increases by a setting step value.
9. a kind of terminal, which is characterized in that the terminal is integrated with any automatic focusing mechanism of claim 5-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610974311.7A CN106338807B (en) | 2016-11-04 | 2016-11-04 | A kind of Atomatic focusing method, device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610974311.7A CN106338807B (en) | 2016-11-04 | 2016-11-04 | A kind of Atomatic focusing method, device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106338807A CN106338807A (en) | 2017-01-18 |
CN106338807B true CN106338807B (en) | 2019-10-25 |
Family
ID=57840926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610974311.7A Expired - Fee Related CN106338807B (en) | 2016-11-04 | 2016-11-04 | A kind of Atomatic focusing method, device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106338807B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109151307A (en) * | 2018-08-27 | 2019-01-04 | 惠州Tcl移动通信有限公司 | It is a kind of for solve to take pictures interface fuzzy method, storage medium and mobile terminal |
CN111082715B (en) * | 2019-12-31 | 2021-08-31 | 普冉半导体(上海)股份有限公司 | Voice coil motor driver drive current segmentation control circuit |
CN112954307B (en) * | 2021-01-29 | 2023-01-03 | 昆山丘钛光电科技有限公司 | Position feedback device and method and camera device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101790043A (en) * | 2009-01-22 | 2010-07-28 | 华为终端有限公司 | Control method for automatic focusing and device thereof |
CN105530385A (en) * | 2015-12-14 | 2016-04-27 | 维沃移动通信有限公司 | Method for controlling voice coil motor of mobile terminal and mobile terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006208818A (en) * | 2005-01-28 | 2006-08-10 | Sony Corp | Focus controller and focus control method |
JP2006330394A (en) * | 2005-05-26 | 2006-12-07 | Nikon Corp | Autofocus device |
KR101578037B1 (en) * | 2015-05-14 | 2015-12-17 | 주식회사 지니틱스 | Method for fast Auto Focus control of lens and device for the same |
-
2016
- 2016-11-04 CN CN201610974311.7A patent/CN106338807B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101790043A (en) * | 2009-01-22 | 2010-07-28 | 华为终端有限公司 | Control method for automatic focusing and device thereof |
CN105530385A (en) * | 2015-12-14 | 2016-04-27 | 维沃移动通信有限公司 | Method for controlling voice coil motor of mobile terminal and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106338807A (en) | 2017-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9179070B2 (en) | Method for adjusting focus position and electronic apparatus | |
CN105554367B (en) | A kind of moving camera shooting method and mobile terminal | |
CN103051841B (en) | The control method of time of exposure and device | |
CN107950018B (en) | Image generation method and system, and computer readable medium | |
EP3200446A1 (en) | Method and apparatus for generating high dynamic range image | |
JP2016149765A (en) | Video generating device for generating depth map utilizing phase detection pixel | |
CN106657805A (en) | Shooting method in movement and mobile terminal | |
CN106338807B (en) | A kind of Atomatic focusing method, device and terminal | |
CN102957864A (en) | Imaging device and control method thereof | |
CN105657238B (en) | Track focusing method and device | |
US9538066B2 (en) | Information processing method and electronic device | |
US20150098000A1 (en) | System and Method for Dynamic Image Composition Guidance in Digital Camera | |
CN102739962A (en) | Image processing device capable of generating wide-range image | |
JP2021052396A (en) | Electronic device for performing video hdr processing based on image data obtained by plurality of image sensors | |
CN107707809A (en) | A kind of method, mobile device and the storage device of image virtualization | |
CN105629428B (en) | Optical device and lens control method | |
CN102469253A (en) | Image shooting device and exposure time adjusting method thereof | |
CN106331497A (en) | Image processing method and terminal | |
US20230106509A1 (en) | Shake correction control device, imaging apparatus, shake correction method of imaging apparatus, and program | |
CN104767937A (en) | Photographing method | |
CN104967778A (en) | Focusing reminding method and terminal | |
CN105635568A (en) | Image processing method in mobile terminal and mobile terminal | |
CN102547130A (en) | Image shooting device and image shooting method thereof | |
CN105827932A (en) | Image synthesis method and mobile terminal | |
CN109996005A (en) | A kind of convergence correction method and device |
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: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191025 |