CN106338807A - Automatic focusing method and device and terminal - Google Patents

Automatic focusing method and device and terminal Download PDF

Info

Publication number
CN106338807A
CN106338807A CN201610974311.7A CN201610974311A CN106338807A CN 106338807 A CN106338807 A CN 106338807A CN 201610974311 A CN201610974311 A CN 201610974311A CN 106338807 A CN106338807 A CN 106338807A
Authority
CN
China
Prior art keywords
motor
current value
location
current
described motor
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
Application number
CN201610974311.7A
Other languages
Chinese (zh)
Other versions
CN106338807B (en
Inventor
李小朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610974311.7A priority Critical patent/CN106338807B/en
Publication of CN106338807A publication Critical patent/CN106338807A/en
Application granted granted Critical
Publication of CN106338807B publication Critical patent/CN106338807B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/02Mountings, adjusting means, or light-tight connections, for optical elements for lenses
    • G02B7/04Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification
    • G02B7/09Mountings, 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

Abstract

The invention discloses an automatic focusing method and device and a terminal, and relates to the technical field of camera module groups. The method comprises that when it is determined that a motor needs to move from a present position to a target position corresponding to the maximal focusing value, the driving current value of the present position of the motor is obtained; the driving current input to the motor is adjusted according to the driving current value of the present position, so that the motor moves from the present to a position between the present position and the target position; and the step of obtaining the driving current value of the present position of the motor is returned to till the motor moves to the target position. The problem that lagging is too much and further focusing fails in the focusing process due to the fact that the motor is too far from the position corresponding to the clearest image is solved.

Description

A kind of Atomatic focusing method, device and terminal
Technical field
The present invention relates to camera module technical field, more particularly, to one Atomatic focusing method, device and terminal.
Background technology
With the development of electronic technology, the electronic equipment with camera function is increasingly popularized, and is increasingly becoming people daily The indispensable part of life.Meanwhile, people put forward higher requirement to the photographic property of equipment.For example, clear to image The requirement of clear degree.
At present, in order to realize the fine definition of shooting picture, motor needs to move or from remote to over focus from perifocus Focus moves to perifocus, with obtain picture the most clear when corresponding position, complete to focus.When motor moves to target location When, if picture image is maximum to coke number, and during motor continues to move to, less and less to coke number, and excursion Larger then it is assumed that motor is when target location, picture is the most clear, and motor need to return to target location, and focusing completes.
But, inventor finds that during the execution present invention prior art has following defect: when the picture shooting When face details is fewer, after motor moves to target location, during being further continued for moving, because focusing value changes are less, So when motor displacement target location is larger, larger excursion just can be produced to coke number, therefore, because motor is slow Stagnant, make motor be not easy to return to target location, cause to focus unsuccessfully, image blurring.
Content 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, the excessive problem leading to sluggish excessive, to cause focusing failure in corresponding position when motor displacement picture is the most clear.
In a first aspect, embodiments providing a kind of Atomatic focusing method, comprising:
When determining that motor need to move to the target location corresponding when maximum to coke number from current location, obtain described horse Reach the driving current value in described current location;
The driving current of described motor is inputed to according to the driving current value adjustment of described current location, so that described motor Move to the position between described current location and described target location from current location;
Return the operation obtaining the driving current value in described current location for the described motor, until described motor moves to institute State target location.
Second aspect, the embodiment of the present invention additionally provides a kind of automatic focusing mechanism, comprising:
Electric current acquisition module, for when determining that motor need to be from current location to the target location corresponding when maximum to coke number When mobile, obtain the driving current value in described current location for the described motor;
Current adjusting module, for inputing to the driving of described motor according to the driving current value adjustment of described current location Electric current, so that described motor moves to the position between described current location and described target location from current location;
Return module, for returning the operation obtaining the driving current value in described current location for the described motor, until institute State motor and move to described target location.
Embodiments provide a kind of terminal, described terminal is integrated with auto-focusing dress provided in an embodiment of the present invention Put.
Technical scheme provided in an embodiment of the present invention, by adjusting the driving current of motor, so that motor is from current location Move to the position between current location and target location, return again to adjust the operation of the driving current of motor, until motor moves Move target location, wherein, corresponding position when target location is maximum to coke number, i.e. corresponding position when the most clear of picture Put.The embodiment of the present invention solves in focus process, and when motor displacement picture is the most clear, corresponding position is excessive leads Cause sluggish excessive, the problem of the focusing failure causing.
Brief description
By reading the detailed description that non-limiting example is made made with reference to the following drawings, other of the present invention 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 that the motor that the embodiment of the present invention one provides moves route schematic diagram;
Fig. 2 a is a kind of Atomatic focusing method flow chart that the embodiment of the present invention two provides;
Fig. 2 b is that the motor that the embodiment of the present invention two provides moves route schematic diagram;
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 structured flowchart that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural representation 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 limitation of the invention.It also should be noted that, in order to just Part related to the present invention rather than full content is illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 a is a kind of Atomatic focusing method flow chart that the embodiment of the present invention one provides, and methods described is filled by auto-focusing Put to execute, described device to be executed by software and/or hardware, and described device is generally disposed at the terminal with camera function In.As shown in Figure 1a, the technical scheme that the present embodiment provides is specific as follows:
S110: when determining that motor need to move to the target location corresponding when maximum to coke number from current location, obtain Described motor is in the driving current value of described current location.
In the present embodiment, it is that the number that processes and calculate is filtered etc. by the picture image that terminal-pair obtains to coke number Value.Wherein, bigger to coke number, characterize picture more clear.When the position at motor place is not simultaneously as the picture image obtaining is clear Clear degree is different, so being also different to coke number.Target location is the position corresponding when maximum to coke number, and that is, picture is the most clear When corresponding position.In focus process, motor can from perifocus to over focus move, or can also from over focus to Perifocus moves, to find the position maximum to coke number.
Focus process is illustrated, for example, as shown in Figure 1 b, a is perifocus, and b is over focus.If motor from Perifocus a to over focus b mobile to realize focusing, with motor from perifocus a to the movement of over focus b, to coke number first gradually Become big, if when motor moves to c point, relatively large to coke number, and motor is when c point starts mobile, next frame picture right Coke number starts to diminish, and from c point mobile from the beginning of, each frame picture to coke number and previous frame picture to coke number compared with, reduce Scope less.In order to find the position maximum to coke number, motor needs to continue to move to b point.If when motor moves to d point When, d point corresponding corresponding with c point to coke number preset value has been reached to the difference between coke number, then judge c point for target position Put, corresponding position when that is, picture is clear, then motor needs not continue to move to b point, then return to c point from d point, complete Become focusing.In the present embodiment, current location is the position of the d point residing for motor, and that is, motor, behind target location, is further continued for Mobile predeterminable range reaches current location, and corresponding to current location 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, in Fig. 1 b, the shorter arrow of length (top of figure) characterizes the mobile side from current location to target location for the motor To.
In the same manner, when motor from over focus to perifocus movement with realize focus principle, with motor from perifocus to remote Jiao The mobile principle to realize focusing of point is identical, is not repeated.
In the present embodiment, during realizing focusing, the position that motor is located is different, inputs to the driving electricity of motor Flow valuve is also different.When the position that motor is located is d point, obtain the driving current value in d point for the motor.
S120: the driving current of described motor is inputed to according to the driving current value adjustment of described current location, so that institute State motor and move to the position between described current location and described target location 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 Move to the position between current location and target location.For example, as shown in Figure 1 b, when motor moves to c point from d point, adjust The whole electric current inputing to motor, makes motor move to e point, and wherein, e point is located between d point and c point.Move from d point when making motor During to e point, the driving current value inputing to motor inputs to the driving current value of motor when d point moves to c point less than motor.
S130: return the operation obtaining the driving current value in described current location for the described motor, until described motor moves Move described target location.
In the present embodiment, illustrate, when motor moves to e point, obtain the driving electricity inputing to motor in e point Flow valuve, is further continued for adjusting the driving current of motor, until motor moves to target location, that is, motor moves to c point.
In the present embodiment, move to target location processes in motor from current location, can be with control input to motor Driving current value change a setting step value each time, or can also control input to motor driving current value according to setting Fixed formula or function are changed;Or can also be the mode of other adjustment, so that motor progressively moves from current location Move target location.
By above-mentioned method, by progressively adjusting electric current, motor is made to gradually return to target location from current position, Avoid the larger situation leading to motor displacement larger of electric current adjusting range, and solve that motor displacement is larger to be led to Sluggish excessive, the problem of the focusing failure causing.
It should be noted that the driving current value of motor can be to be actually inputted to the current value of motor, or can be Input to the Logic current value of motor, wherein, the Logic current value inputing to motor and the current value tool being actually inputted to motor There is corresponding relation.
A kind of Atomatic focusing method that the present embodiment provides, by adjusting the driving current of motor, so that motor is from current Position moves to the position between current location and target location, returns again to adjust the operation of the driving current of motor, until horse Reach and move to target location, wherein, corresponding position when target location is maximum to coke number, that is, picture is corresponding when the most clear Position, solves in focus process, when motor displacement picture is the most clear corresponding position excessive lead to sluggish excessive, The problem of the focusing failure causing.
Embodiment two
Fig. 2 a is a kind of flow chart of Atomatic focusing method that the embodiment of the present invention two provides, on the basis of above-described embodiment On, optionally, the described driving current value adjustment according to described current location inputs to the driving current of described motor, so that institute State motor and move to the position between described current location and described target location from current location, comprising:
If difference between the driving current value of described current location and target current value for the described motor is more than sets threshold It is worth, then control input sets step value to the drive current variations one of described motor, so that described motor moves from current location Position between described current location and described target location.
Thus, the drive current variations one by controlling motor set step value, so that motor moves to from current location Between current location and target location, solve and lead to because motor displacement is excessive sluggishness excessive, and the focusing failure causing Problem.
Optionally, the described operation returning the acquisition driving current value in described current location for the described motor, until described Motor moves to described target location, comprising:
Return the operation obtaining the driving current value in described current location for the described motor, until the driving electricity of described motor When difference between flow valuve and described target current value is less than described given threshold, control input gives the driving current of described motor Value is equal with described target current value, so that described motor moves to target location.
Thus, by returning the operation obtaining the driving current in current location for the motor, it is capable of repeatedly motor being driven The adjustment of streaming current, until the driving current value of control motor is equal with target current value, so that motor moves to target location, Solve the problems, such as that causes because motor sluggishness is excessive focuses unsuccessfully.
Based on above-mentioned optimization, as shown in Figure 2 a, the technical scheme that the present embodiment provides is specific as follows:
S210: when determining that motor need to move to the target location corresponding when maximum to coke number from current location, obtain Described motor is in the driving current value of described current location.
In the present embodiment, optionally, driving current value is the Logic current value inputing to motor.
S220: judge whether difference between the driving current value of described current location and target current value for the motor is more than Given threshold.
In the present embodiment, target current value is the driving current value in target location for the motor.Given threshold can basis Needs are set.Illustrate, as shown in Figure 2 b, c point is target location, the current location that d point is located for motor.Drive electricity Flow valuve is indicated using Logic current value.If the driving current value in d point for the motor is 450code, the drive in c point for the motor Streaming current value is 300code, and given threshold is 50code.Because motor is in the driving current value of current location (d point) (450code) difference and target current value (300code) between is 150code, judges whether this difference is more than given threshold (50code).
If so, execute s230, and return 210.If it is not, returning s240.
S230, control input set step value, so that described motor is from current to the drive current variations one of described motor Position moves to the position between described current location and described target location.
In the present embodiment, when motor, the difference between the driving current value of described current location and target current value is big In given threshold, then control input is to the drive current variations one setting step value of described motor.Wherein, setting step value can root According to needing to illustrate, for the purpose of avoiding result in the shorter distance of motor movement.
Illustrate, if setting step value as 50code, as shown in Figure 2 b, the direction of arrow for motor from current location to mesh The moving direction of cursor position.During motor returns to c point from d point, adjust motor drive current value, in present current value On the basis of change 50code, that is, on the basis of present current value reduce 50code so that motor moves between d point and c Position, that is, move to e point.Return the operation of s210, the driving current value obtaining motor in e point is 400code, and motor is in e Difference between the driving current value (400code) of point and target current value (300code) is more than given threshold (50code), then Reduce one and set step value (50code) on the basis of 400code, so that motor continues to move to c point, reach f point.Continue Return s210, repeat above-mentioned operation, until the difference between the present drive current value of motor and target current value is less than in advance If threshold value.
S240: control input gives the driving current value of described motor equal with described target current value, so that described motor Move to target location.
In the present embodiment, illustrate, 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 moves to c point from d point, control the driving current value of motor to be equal to 300, so that horse Reach target location.Because difference between the driving current of c point and d point for the motor is less, therefore motor needs from d point to c When point is mobile, distance is less, the problem of the less failure it is not easy to generation is focused of the sluggishness of motor.
By above-mentioned method, step value is set to the drive current variations one of motor by control input, so that motor Move shorter distance every time, and make motor progressively move to the target location corresponding when maximum to coke number, it can be avoided that horse Reach the excessive phenomenon leading to sluggishness excessive, causing failure of focusing of displacement.
Present embodiments provide a kind of Atomatic focusing method, set step-length by the drive current variations one controlling motor Value, so that motor moves between current location and target location from current location, it is to avoid lead because motor current adjustment is excessive Cause sluggish excessive, and the problem of the focusing failure causing;By returning the operation obtaining the driving current in current location for the motor, It is capable of the adjustment repeatedly to motor drive current, until the driving current value of control motor is equal with target current value, with Make motor move to target location, solve the problems, such as that causes because motor sluggishness is excessive focuses unsuccessfully.
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 above-described embodiment, Optionally, return the operation obtaining the driving current value in described current location for the described motor, until described motor moves to institute State target location, comprising:
Through setting time, return the operation obtaining the driving current value in described current location for the described motor, until institute State motor and move to described target location.
Thus, by through setting time, returning the operation obtaining the driving current in current location for the motor, ensure that The stability of motor, realizes exact focus.
Optionally, the driving current of described motor is inputed to according to the driving current value adjustment of described current location, comprising: If difference between the driving current value of described current location and target current value for the described motor is more than given threshold, and described The driving current value in described current location for the motor is more than described target current value, and control input gives the driving current of described motor Reduce a setting step value.
Further, optionally, the driving electricity of described motor is inputed to according to the driving current value adjustment of described current location Stream, comprising: if difference between the driving current value of described current location and target current value for the described motor is more than sets threshold Value, and the driving current value in described current location for the described motor is less than described target current value, control input gives described motor Driving current increase by one setting step value.
Thus, the driving current by controlling motor increases or reduces by a setting step value, so that motor is from present bit Put and move between current location and target location, until moving to target location, solving and leading because motor displacement is excessive Cause sluggish excessive, and the problem of the focusing failure causing.
Based on above-mentioned optimization, as shown in figure 3, technical scheme provided in an embodiment of the present invention is specific as follows:
S310: when determining that motor need to move to the target location corresponding when maximum to coke number from current location, obtain Described motor is in the driving current value of described current location.
S320: judge whether difference between the driving current value of described current location and target current value for the motor is more than Given threshold.
If so, execute s330, if it is not, execution s370
S330: judge whether the driving current value in current location for the motor is more than target current value.
If so, execute s340, if it is not, execution s350
S340: control input reduces a setting step value to the driving current of described motor.
In the present embodiment, when when motor, the driving current value in current location is more than target current value, control input is given 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 the driving current value in current location for the motor is more than target current value, motor need to move to perifocus from current location.
S350: control input increases by a setting step value to the driving current of described motor.
In the present embodiment, when motor, the driving current value in current location is less than target current value, and control input is to horse The driving current value reaching increases by a setting step value.If the driving current value of motor is characterized using Logic current value, when When the driving current value in current location for the motor is more than target current value, motor need to move to over focus from current location.
S360: through setting time, return s310.
In the present embodiment, setting time can be set as needed, once keeps stable to ensure that motor is often mobile Carry out movement next time afterwards again.Optionally, in the present embodiment, setting time is 20ms.Wherein setting time can also be it His time value, does not limit to the size of setting time.
In the present embodiment, illustrate, as shown in Figure 2 b, during motor moves to c point from d point, adjust horse Reach driving current value, the driving current inputing to motor is change 50code on the basis of present current value, so that motor moves Move the position between d point and c, that is, move to e point.Start timing when inputing to motor drive current, through 20ms, return S310, repeats above-mentioned operation.
S370: control input gives the driving current value of described motor equal with described target current value, so that described motor Move to target location.
In the present embodiment, increase or reduce a setting step value by the driving current controlling motor, and when motor enters After row each primary current adjustment, the electric current carrying out again next time through setting time adjusts, and ensure that the stability of motor, Solve the problems, such as sluggishness cause focus unsuccessfully, realize exact focus.
It should be noted that exemplary one embodiment that forms s310-s370 of 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 with embodiment one in S110-s130 form an embodiment, execute a kind of method of auto-focusing, or in s360 and embodiment two S210-s240 forms an embodiment and executes a kind of method of auto-focusing.
It should be noted that the embodiment of the present invention exemplary s350 is placed on s340 after executed, but s340 and The execution sequence of s350 is not restricted by.
A kind of Atomatic focusing method that the present embodiment provides, obtains motor in present bit by through setting time, returning The operation of the driving current put, ensure that the stability of motor, realizes exact focus, is increased by the driving current controlling motor Plus or reduce by a setting step value, so that motor moves between current location and target location from current location, until moving Move target location, solve and lead to because motor displacement is excessive sluggishness excessive, and the problem of the focusing failure causing.
Example IV
Fig. 4 is a kind of structured flowchart of automatic focusing mechanism that the embodiment of the present invention four provides, and described device is used for executing Atomatic focusing method.As shown in figure 4, described device includes electric current acquisition module 410, current adjusting module 420 and returns mould Block 430.
Wherein, electric current acquisition module 410, for when determine motor need to from current location to maximum to coke number when corresponding When target location is mobile, obtain the driving current value in described current location for the described motor;
Current adjusting module 420, inputs to described motor for the driving current value adjustment according to described current location Driving current, so that described motor moves to the position between described current location and described target location from current location;
Return module 430, for returning the operation obtaining the driving current value in described current location for the described motor, until Described motor moves to described target location.
Further, described current adjusting module 420, specifically for:
If difference between the driving current value of described current location and target current value for the described motor is more than sets threshold It is worth, then control input sets step value to the drive current variations one of described motor, so that described motor moves from current location Position between described current location and described target location;Wherein, described target current value is described motor in described mesh Driving current value at cursor position;
Described return module 430, specifically for:
Return the operation obtaining the driving current value in described current location for the described motor, until the driving electricity of described motor When difference between flow valuve and described target current value is less than described given threshold, control input gives the driving current of described motor Value is equal with described target current value, so that described motor moves to target location.
Further, described return module 430, specifically for:
Through setting time, return the operation obtaining the driving current value in described current location for the described motor, until institute State motor and move to described target location.
Further, if difference between the driving current value of described current location and target current value for the described motor is big In given threshold, then control input is to the drive current variations one setting step value of described motor, comprising:
If difference between the driving current value of described current location and target current value for the described motor is more than sets threshold Value, and the driving current value in described current location for the described motor is more than described target current value, control input gives described motor Driving current reduce one setting step value.
Further, if difference between the driving current value of described current location and target current value for the described motor is big In given threshold, then control input is to the drive current variations one setting step value of described motor, comprising:
If difference between the driving current value of described current location and target current value for the described motor is more than sets threshold Value, and the driving current value in described current location for the described motor is less than described target current value, control input gives described motor Driving current increase by one setting step value.
Present embodiments provide a kind of automatic focusing mechanism, by adjusting the driving current of motor, so that motor is from current Position moves to the position between current location and target location, returns again to adjust the operation of the driving current of motor, until horse Reach and move to target location, wherein, corresponding position when target location is maximum to coke number, that is, image is corresponding when the most clear Position, solves in focus process, when motor displacement image is the most clear corresponding position excessive lead to sluggish excessive, The problem of the focusing failure causing.
Embodiment five
The embodiment of the present invention five provides a kind of terminal, is integrated with any embodiment of the present invention provided auto-focusing dress Put.Specifically, as shown in figure 5, the embodiment of the present invention provides a kind of terminal, this terminal includes:
One or more processor 510, in Fig. 5 taking a processor 510 as a example;
Memory 520;And one or more module.
Described terminal can also include: input unit 530 and output device 540.Processor 510 in described terminal, deposit Reservoir 520, input unit 530 and output device 540 can be connected by bus or other modes, with by bus even in Fig. 5 It is connected in example.
Memory 520, as a kind of computer-readable recording medium, can be used for storing software program, the executable journey of computer Corresponding programmed instruction/the module of Atomatic focusing method in sequence and module, the such as embodiment of the present invention is (for example, shown in accompanying drawing 4 Electric current acquisition module 410, current adjusting module 420 and return module 430).Processor 510 is stored in memory by operation Software program in 520, instruction and module, thus executing various function application and the data processing of terminal, that is, realize State the Atomatic focusing method in embodiment of the method.
Memory 520 may include storing program area and storage data field, wherein, storing program area can storage program area, Application program needed at least one function;Storage data field can store according to terminal using data being created etc..Additionally, Memory 520 can include high-speed random access memory, can also include nonvolatile memory, for example, at least one disk Memory device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 520 can wrap further Include the memory remotely located with respect to processor 510, these remote memories can be by network connection to terminal.Above-mentioned net The example of network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 530 can be used for numeral or the character information of receives input, and produce with the user setup of terminal with And the key signals input that function control is relevant.Output device 540 may include the display devices such as display screen.
Above-mentioned terminal can perform the Atomatic focusing method that any embodiment of the present invention is provided, and possesses execution method corresponding Functional module and beneficial effect.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other Equivalent embodiments more can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (11)

1. a kind of Atomatic focusing method is it is characterised in that include:
When determining that motor need to move to the target location corresponding when maximum to coke number from current location, obtain described motor and exist The driving current value of described current location;
Input to the driving current of described motor according to the adjustment of the driving current value of described current location, so that described motor is from working as Front position moves to the position between described current location and described target location;
Return the operation obtaining the driving current value in described current location for the described motor, until described motor moves to described mesh Cursor position.
2. method according to claim 1 is it is characterised in that the described driving current value according to described current location adjusts Input to the driving current of described motor, so that described motor moves to described current location and described target position from current location Position between putting, comprising:
If difference between the driving current value of described current location and target current value for the described motor is more than given threshold, Control input sets step value to the drive current variations one of described motor so that described motor move to from current location described Position between current location and described target location;Wherein, described target current value is described motor in described target location The driving current value at place;
The described operation returning the acquisition driving current value in described current location for the described motor, until described motor moves to institute State target location, comprising:
Return the operation obtaining the driving current value in described current location for the described motor, until the driving current value of described motor Difference and described target current value between be less than described given threshold when, control input give described motor driving current value with Described target current value is equal, so that described motor moves to target location.
3. method according to claim 1 obtains the driving in described current location for the described motor it is characterised in that returning The operation of current value, until described motor moves to described target location, comprising:
Through setting time, return the operation obtaining the driving current value in described current location for the described motor, until described horse Reach and move to described target location.
4. method according to claim 2 is it is characterised in that the described driving current value according to described current location adjusts Input to the driving current of described motor, comprising:
If difference between the driving current value of described current location and target current value for the described motor is more than given threshold, and The driving current value in described current location for the described motor is more than described target current value, and control input gives the driving of described motor Electric current reduces a setting step value.
5. method according to claim 2 is it is characterised in that the described driving current value according to described current location adjusts Input to the driving current of described motor, comprising:
If difference between the driving current value of described current location and target current value for the described motor is more than given threshold, and The driving current value in described current location for the described motor is less than described target current value, and control input gives the driving of described motor Electric current increases by a setting step value.
6. a kind of automatic focusing mechanism is it is characterised in that include:
Electric current acquisition module, for when determining that motor need to move to the target location corresponding when maximum to coke number from current location When, obtain the driving current value in described current location for the described motor;
Current adjusting module, for inputing to the driving electricity of described motor according to the driving current value adjustment of described current location Stream, so that described motor moves to the position between described current location and described target location from current location;
Return module, for returning the operation obtaining the driving current value in described current location for the described motor, until described horse Reach and move to described target location.
7. device according to claim 6 is it is characterised in that described current adjusting module, specifically for:
If difference between the driving current value of described current location and target current value for the described motor is more than given threshold, Control input sets step value to the drive current variations one of described motor so that described motor move to from current location described Position between current location and described target location;Wherein, described target current value is described motor in described target location The driving current value at place;
Described return module, specifically for:
Return the operation obtaining the driving current value in described current location for the described motor, until the driving current value of described motor Difference and described target current value between be less than described given threshold when, control input give described motor driving current value with Described target current value is equal, so that described motor moves to target location.
8. device according to claim 6 is it is characterised in that described return module, specifically for:
Through setting time, return the operation obtaining the driving current value in described current location for the described motor, until described horse Reach and move to described target location.
9. device according to claim 7 is it is characterised in that the described driving current value according to described current location adjusts Input to the driving current of described motor, comprising:
If difference between the driving current value of described current location and target current value for the described motor is more than given threshold, and The driving current value in described current location for the described motor is more than described target current value, and control input gives the driving of described motor Electric current reduces a setting step value.
10. device according to claim 7 is it is characterised in that the described driving current value according to described current location is adjusted The whole driving current inputing to described motor, comprising:
If difference between the driving current value of described current location and target current value for the described motor is more than given threshold, and The driving current value in described current location for the described motor is less than described target current value, and control input gives the driving of described motor Electric current increases by a setting step value.
A kind of 11. terminals are it is characterised in that described terminal is integrated with the arbitrary described automatic focusing mechanism of claim 6-10.
CN201610974311.7A 2016-11-04 2016-11-04 A kind of Atomatic focusing method, device and terminal Expired - Fee Related CN106338807B (en)

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 true CN106338807A (en) 2017-01-18
CN106338807B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN111082715A (en) * 2019-12-31 2020-04-28 普冉半导体(上海)有限公司 Voice coil motor driver drive current segmentation control circuit
CN112954307A (en) * 2021-01-29 2021-06-11 昆山丘钛光电科技有限公司 Position feedback device and method and camera device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811511A (en) * 2005-01-28 2006-08-02 索尼株式会社 Focus control device and focus control method
JP2006330394A (en) * 2005-05-26 2006-12-07 Nikon Corp Autofocus device
CN101790043A (en) * 2009-01-22 2010-07-28 华为终端有限公司 Control method for automatic focusing and device thereof
KR20150063333A (en) * 2015-05-14 2015-06-09 주식회사 지니틱스 Method for fast Auto Focus control of lens and device for the same
CN105530385A (en) * 2015-12-14 2016-04-27 维沃移动通信有限公司 Method for controlling voice coil motor of mobile terminal and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811511A (en) * 2005-01-28 2006-08-02 索尼株式会社 Focus control device and focus control method
JP2006330394A (en) * 2005-05-26 2006-12-07 Nikon Corp Autofocus device
CN101790043A (en) * 2009-01-22 2010-07-28 华为终端有限公司 Control method for automatic focusing and device thereof
KR20150063333A (en) * 2015-05-14 2015-06-09 주식회사 지니틱스 Method for fast Auto Focus control of lens and device for the same
CN105530385A (en) * 2015-12-14 2016-04-27 维沃移动通信有限公司 Method for controlling voice coil motor of mobile terminal and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
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
CN111082715A (en) * 2019-12-31 2020-04-28 普冉半导体(上海)有限公司 Voice coil motor driver drive current segmentation control circuit
CN111082715B (en) * 2019-12-31 2021-08-31 普冉半导体(上海)股份有限公司 Voice coil motor driver drive current segmentation control circuit
CN112954307A (en) * 2021-01-29 2021-06-11 昆山丘钛光电科技有限公司 Position feedback device and method and camera device

Also Published As

Publication number Publication date
CN106338807B (en) 2019-10-25

Similar Documents

Publication Publication Date Title
US9179070B2 (en) Method for adjusting focus position and electronic apparatus
CN107950018B (en) Image generation method and system, and computer readable medium
CN105554367B (en) A kind of moving camera shooting method and mobile terminal
US8194158B2 (en) Image processor, image processing method, digital camera, and imaging apparatus
CN103747179B (en) A kind of zoom tracking and system based on focusing evaluation of estimate feedback regulation
CN110213490B (en) Image anti-shake method and device, electronic equipment and storage medium
CN104253939A (en) Focusing position adjusting method and electronic device
CN103888683A (en) Mobile terminal and shooting method thereof
CN106338807A (en) Automatic focusing method and device and terminal
CN107395993A (en) Full-automatic focusing method and system
CN103209291A (en) Method, apparatus and device for controlling automatic image shooting
JP5522545B2 (en) Imaging apparatus, imaging method, and program
JP6116299B2 (en) Imaging apparatus and control method thereof
CN107707809A (en) A kind of method, mobile device and the storage device of image virtualization
US20150249783A1 (en) Information processing method and electronic device
CN102469253A (en) Image shooting device and exposure time adjusting method thereof
CN105049712A (en) Method of starting terminal wide angle camera and terminal
CN104767937A (en) Photographing method
CN104967778A (en) Focusing reminding method and terminal
JP2021052396A (en) Electronic device for performing video hdr processing based on image data obtained by plurality of image sensors
CN102547130A (en) Image shooting device and image shooting method thereof
CN105635568A (en) Image processing method in mobile terminal and mobile terminal
TWI515471B (en) Auto-focus system for multiple lens and method thereof
CN103577520A (en) Object searching apparatus, object searching method and computer-readable recording medium
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