CN104683693A - Automatic focusing method - Google Patents

Automatic focusing method Download PDF

Info

Publication number
CN104683693A
CN104683693A CN201510070514.9A CN201510070514A CN104683693A CN 104683693 A CN104683693 A CN 104683693A CN 201510070514 A CN201510070514 A CN 201510070514A CN 104683693 A CN104683693 A CN 104683693A
Authority
CN
China
Prior art keywords
terminal
camera lens
focal point
focusing
relative motion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510070514.9A
Other languages
Chinese (zh)
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510070514.9A priority Critical patent/CN104683693A/en
Publication of CN104683693A publication Critical patent/CN104683693A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)
  • Focusing (AREA)

Abstract

The embodiment of the invention discloses an automatic focusing method. The method comprises the following steps: obtaining an object distance between the terminal and a target to be shot in real time; determining a first focusing range according to an object distance and a measurement error of the object distance when the terminal and the target generate relative motion, and determining a first estimation position of an optimal focusing point of a lens of the terminal within the first focusing range according to a mapping relation between the object distance and the optimal focusing point of the lens of the terminal; searching and determining a second estimation position of the optimal focusing point of the lens by a preset searching algorithm when the terminal and the target do not generate relative motion; focusing the lens of the terminal according to the first estimation position of the optimal focusing point of the lens or the second estimation position of the optimal focusing point of the lens. According to the automatic focusing method disclosed by the embodiment of the invention, a proper focusing mode is selected according to whether the relative motion is generated between the terminal and the target, so that the accuracy of automatic focusing of the lens of the terminal is improved, and the automatic focusing speed of the lens of the terminal is increased.

Description

A kind of self-focusing method
Technical field
The present invention relates to optical focus technical field, particularly relate to a kind of self-focusing method.
Background technology
Along with the development of terminal technology, the function of terminal is day by day diversified.Nowadays the many terminals on market are all equipped with camera, can implement to take pictures or camera function.A kind of common cam lens automatic focus (Auto Focus, AF) mode is that passive type focuses on, passive type focusing refers to and utilizes drive unit to drive camera motion, make lens focus at diverse location, camera lens often moves once, just calculate the autofocus evaluation function value of the image obtained focused in current location, compare and focus on corresponding autofocus evaluation function value at diverse location, focal position the highest for autofocus evaluation function value is defined as the best focal point of camera lens.
For passive type focuses on, owing to determining focus by autofocus evaluation function value, do not rely on the assembling of hardware, in general when terminal and object geo-stationary or relative motion not obvious time, the focal position determined is more accurate.But, when there is obvious relative motion in terminal and object, even if in focal position focusing accurately, due to the change of scene or rocking of terminal, the imaging of object is still unintelligible, causes the camera lens best focal point cannot determining terminal, now needs to wait for that relative motion stops and after maintaining certain hour, again could focus on, thus reduce the self-focusing speed of terminal camera lens.
Summary of the invention
The embodiment of the invention discloses a kind of self-focusing method, the self-focusing accuracy of terminal camera lens can be improved and the self-focusing speed of increasing terminal camera lens.
The embodiment of the invention discloses a kind of self-focusing method, it can comprise:
Object distance between Real-time Obtaining terminal and object to be captured;
If there is relative motion between described terminal and described object, then determine the first focusing range according to the measure error of described object distance and described object distance, according to the first estimated position of the mapping relations determination camera lens best focal point between described object distance and camera lens best focal point in described first focusing range;
If there is not relative motion between described terminal and described object, then the searching algorithm by presetting is searched for and determines the second estimated position of camera lens best focal point;
Focus on according to the first estimated position of described camera lens best focal point or the camera lens of the second estimated position to described terminal of described camera lens best focal point.
In the embodiment of the present invention, the object distance between Real-time Obtaining terminal and object to be captured; When there is relative motion between terminal and object, according to the first estimated position of the camera lens best focal point of the mapping relations determination terminal between object distance and the camera lens best focal point of terminal, the focusing that causes because image motion is fuzzy can be avoided inaccurate, improve the self-focusing accuracy of terminal camera lens, avoid simultaneously and wait for that relative motion stops and confirming the process that relative motion stops, the self-focusing speed of increasing terminal camera lens; When there is not relative motion between terminal and object, searched for by the searching algorithm preset and determined the second estimated position of the camera lens best focal point of terminal, its focusing accuracy is than high according to the accuracy of the mapping relations determination camera lens best focal point between object distance and the camera lens best focal point of terminal.Visible, the embodiment of the present invention can select the suitable type of focusing according to whether occurring between terminal and object relative motion, improves the self-focusing accuracy of terminal camera lens and the self-focusing speed of increasing terminal camera lens.
Accompanying drawing explanation
In order to be illustrated more clearly in embodiment of the present invention technical scheme, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of an embodiment of the self-focusing method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of another embodiment of the self-focusing method that the embodiment of the present invention provides;
Fig. 3 is the structural representation of an embodiment of the terminal that the embodiment of the present invention provides;
Fig. 4 is the structural representation of another embodiment of the terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another embodiment of the terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In specific implementation, the terminal described in the embodiment of the present invention can comprise: camera, mobile phone, panel computer, palmtop PC or other there is the equipment etc. of shoot function, above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
The self-focusing method provided the embodiment of the present invention below in conjunction with accompanying drawing and relevant apparatus are specifically described.
See Fig. 1, it is the schematic flow sheet of an embodiment of the self-focusing method that the embodiment of the present invention provides.As shown in Figure 1, the method can comprise the steps:
S101, the object distance between Real-time Obtaining terminal and object to be captured.
In the embodiment of the present invention, object to be captured can be an object, the scene that also can be made up of multiple object.
In the execution mode that some are feasible, terminal can built-in range unit, this range unit can initiatively launch light wave or sound wave, and receive the reflected wave reflected by object, then according to reflection intensity of wave and reflection interval, calculate the orientation of distance between terminal and object and object relative termination, i.e. object distance.Particularly, the range unit of terminal built-in can be laser range finder and/or ultrasonic range finder, includes but not limited to the above two kinds of devices enumerated.
In concrete enforcement, after terminal opens shoot function, this range unit can according to the object distance between the continuous measuring terminals of certain time interval and object to be captured, and terminal can get described object distance from this range unit.Wherein this time interval is shorter, and the real-time that terminal obtains this object distance is better.Alternatively, this range unit can measure an object distance every several milliseconds.
S102, if there is relative motion between described terminal and described object, then determine the first focusing range according to the measure error of described object distance and described object distance, in described first focusing range, determine the first estimated position of described camera lens best focal point according to the mapping relations between described object distance and the camera lens best focal point of terminal.
In the embodiment of the present invention, camera lens best focal point can be understood as when photographed, makes scenery the most clearly on sensor devices during imaging, the position residing for the lens set of camera lens.When the lens set of camera lens overlaps with camera lens best focal point, sensor devices drops on optimal imaging position, and imaging is the most clear.
In concrete enforcement, terminal first can judge whether there occurs relative motion between object.Alternatively, the mode whether relative motion occurs between terminal judges and object can include but not limited to following three kinds:
Mode one, judges the object distance that terminal obtains at current time and whether difference between the object distance obtained in previous moment exceedes default error range; If so, then can judge to there occurs relative motion between terminal and object, otherwise can judge relative motion not to occur between terminal and object.Particularly, the relative motion degree between this error range terminal that can be able to allow according to the time difference of current time and previous moment and passive type automatic focus mode and object is arranged.Such as: the time difference of current time and previous moment is 5ms, if passive type automatic focus mode allows the speed of related movement between terminal and object to be less than 1m/s, difference then between the object distance that obtains of the object distance that obtains of current time and previous moment is when being less than 0.5cms, can judge relative motion not to occur between terminal and object, otherwise judge to there occurs relative motion between terminal and object.
Mode two, judges whether relative motion occurs between terminal and object by the gyroscope in terminal.Particularly, by the gyroscope in terminal, can measuring terminals self rotate angle.The rotation of terminal self can cause shooting angle to change, thus makes, between terminal and object, relative motion occurs.When the angle that terminal rotates within a certain period of time is greater than certain angle value, can think and there occurs relative motion between terminal and object, such as, the angle rotated in 1s when terminal has exceeded 5 °, can think and there occurs relative motion between terminal and object.
Mode three, calculates the similarity of the imaging of object at current time and the imaging in previous moment; If similarity, higher than the similarity threshold preset, can judge, between described terminal and described object, relative motion occurs; Otherwise can judge, between described terminal and described object, relative motion does not occur.Particularly, can calculate current time imaging and distance between the histogram of previous moment imaging, such as histogrammic land mobile distance (Earth Mover s Distance, EMD), histogram intersection distance, card side apart from etc.When Histogram distance is greater than certain distance threshold value, can think that similarity is less than similarity threshold, exists relative motion between terminal and object.
In concrete enforcement, if there is relative motion between described terminal and described object, due to the motion of terminal self or the motion of object, often cause object at the motion blur of terminal lens imaging, cause autofocus evaluation function value lower.Now determine that the reliability of camera lens best focal point is not high according to autofocus evaluation function value, alternatively, the first estimated value of described camera lens best focal point can be determined according to the mapping relations between object distance and the camera lens best focal point of described terminal.
Alternatively, the first focusing range can be that object distance adds the scope that measure error obtains, and also can be greater than object distance and add the scope that measure error obtains.Such as, when the object distance measured is 25cm, the measure error of object distance is ± 4cm time, consider measure error, the first focusing range can be defined as 25cm ± 4cm, i.e. 21cm-29cm.If consider, the hardware assembling of different camera lens individuality cannot reach completely the same and error that is that cause, the first focusing range can be defined as the scope being greater than 21cm-29cm, such as 19cm-31cm.
S103, if there is not relative motion between described terminal and described object, then the searching algorithm by presetting is searched for and determines the second estimated position of described camera lens best focal point.
Alternatively, the searching algorithm preset can be ramping constraint, full search algorithm, binary search algorithm or rule-based searching algorithm, includes but not limited to the above-mentioned algorithm enumerated.The embodiment of the present invention is described as follows for ramping constraint:
Driving stepper motor terminal camera lens, from original position, then travels forward with unique step, after a step-length of often moving, just calculates the autofocus evaluation function value of present convergence location corresponding image.In the process of camera motion, if there is the phenomenon that autofocus evaluation function value reduces, illustrate that camera lens has missed the position at focus place, and progressively out of focus.Now, stepping motor drives camera lens counter motion, and the step-length of corresponding reduction stepping motor.In like manner, when autofocus evaluation function is worth reduction again, illustrate that camera lens misses again the position at focus place, stepping motor drive camera lens again counter motion reduces step-length simultaneously further.So repeatedly search for, till the step-length of stepping motor is less than set point.Now the position of lens focus is the second estimated position of the camera lens best focal point that ramping constraint is determined.
Particularly, autofocus evaluation function value can be the evaluation of estimate of the information such as gradient, contrast to image, when calculating autofocus evaluation function value, the image blurring detection algorithm of reference can be adopted, image by current acquisition compares with other images obtained under identical photographed scene, and its focus function evaluation of estimate of image that definition is higher is higher.
S104, focuses on according to the first estimated position of described camera lens best focal point or the camera lens of the second estimated position to described terminal of described camera lens best focal point.
In the embodiment of the present invention, the camera lens of terminal is focused on to the lens parameters being specially adjustment terminal, the sensor devices in camera lens is overlapped with camera lens best focal point.Alternatively, can by the lens moving of driving stepper motor terminal, adjust the position of CCD (Charge-coupled Device, charge coupled cell) in camera lens or photographic film with this, its first estimated position with camera lens best focal point or the second estimated position are overlapped.
In the embodiment of the present invention, the object distance between Real-time Obtaining terminal and object to be captured; When there is relative motion between terminal and object, according to the first estimated position of the camera lens best focal point of the mapping relations determination terminal between object distance and the camera lens best focal point of terminal, the focusing that causes because image motion is fuzzy can be avoided inaccurate, improve the self-focusing accuracy of terminal camera lens, avoid simultaneously and wait for that relative motion stops and confirming the process that relative motion stops, the self-focusing speed of increasing terminal camera lens; When there is not relative motion between terminal and object, searched for by the searching algorithm preset and determined the second estimated position of the camera lens best focal point of terminal, its focusing accuracy is than high according to the accuracy of the mapping relations determination camera lens best focal point between object distance and the camera lens best focal point of terminal.Visible, the embodiment of the present invention can select the suitable type of focusing according to whether occurring between terminal and object relative motion, improves the self-focusing accuracy of terminal camera lens and the self-focusing speed of increasing terminal camera lens.
See Fig. 2, it is the schematic flow sheet of another embodiment of the self-focusing method that the embodiment of the present invention provides.As shown in Figure 2, the method can comprise the steps:
S201, the object distance between Real-time Obtaining terminal and object to be captured.
Particularly, the execution mode of step S201 can be identical with middle step S101 embodiment illustrated in fig. 1, is not repeated herein.
S202, judges whether relative motion occurs between described terminal and described object; If so, forward S209 to, otherwise forward S203 to.
Alternatively, the mode whether relative motion occurs between terminal judges and object can include but not limited to following three kinds:
Mode one, judges the object distance that terminal obtains at current time and whether difference between the object distance obtained in previous moment exceedes default error range; If so, then can judge to there occurs relative motion between terminal and object, otherwise can judge relative motion not to occur between terminal and object.Particularly, the relative motion degree between this error range terminal that can be able to allow according to the time difference of current time and previous moment and passive type automatic focus mode and object is arranged.Such as: the time difference of current time and previous moment is 5ms, if passive type automatic focus mode allows the speed of related movement between terminal and object to be less than 1m/s, difference then between the object distance that obtains of the object distance that obtains of current time and previous moment is when being less than 0.5cms, can judge relative motion not to occur between terminal and object, otherwise judge to there occurs relative motion between terminal and object.
Mode two, judges whether relative motion occurs between terminal and object by the gyroscope in terminal.Particularly, by the gyroscope in terminal, can measuring terminals self rotate angle.The rotation of terminal self can cause shooting angle to change, thus makes, between terminal and object, relative motion occurs.When the angle that terminal rotates within a certain period of time is greater than certain angle value, can think and there occurs relative motion between terminal and object, such as, the angle rotated in 1s when terminal has exceeded 5 °, can think and there occurs relative motion between terminal and object.
Mode three, calculates the similarity of the imaging of object at current time and the imaging in previous moment; If similarity, higher than the similarity threshold preset, can judge, between described terminal and described object, relative motion occurs; Otherwise can judge, between described terminal and described object, relative motion does not occur.Particularly, can calculate current time imaging and distance between the histogram of previous moment imaging, such as histogrammic land mobile distance (Earth Mover s Distance, EMD), histogram intersection distance, card side apart from etc.When Histogram distance is greater than certain distance threshold value, can think that similarity is less than similarity threshold, exists relative motion between terminal and object.
S203, the measure error according to described object distance and described object distance determines the first focusing range.
Alternatively, the first focusing range can be that object distance adds the scope that measure error obtains, and also can be greater than object distance and add the scope that measure error obtains.Such as, when the object distance measured is 25cm, the measure error of object distance is ± 4cm time, consider measure error, the first focusing range can be defined as 25cm ± 4cm, i.e. 21cm-29cm.If consider, the hardware assembling of different camera lens individuality cannot reach completely the same and error that is that cause, the first focusing range can be defined as the scope being greater than 21cm-29cm, such as 19cm-31cm.
S204, judges that whether the confidence level of the described object distance obtained is higher than the confidence threshold value preset; If so, forward S205 to, otherwise forward S208 to.
In the execution mode that some are feasible, the range unit in terminal, can the confidence level of assessment of the measurement result when measuring distance, if confidence level is higher than the confidence threshold value preset, represents that measurement result is reliable.
Alternatively, range unit can according to the confidence level of the strength assessment measurement result of reflected wave.Such as, when range unit is Infrared LASER Ranger, it is initiatively launched infrared laser and receives reflected wave, object distance is judged according to the time that reflected wave returns, if object has higher absorptivity to infrared light, absorb more infrared laser, cause the infrared laser reflection wave strength that returns less, then range unit can be assessed and think that the confidence level of measurement result is lower.
Particularly, range unit can provide a confidence value, and terminal by this confidence value compared with the confidence threshold value preset, can judge that whether this confidence value is higher than the confidence threshold value preset.
S205, judges whether the step-size in search of the searching algorithm preset is less than or equal to described first focusing range; If so, forward S206 to, otherwise forward S209 to.
If the confidence level of the described object distance obtained is higher than the confidence threshold value preset, illustrates that the object distance obtained is reliable, now can judge whether the step-size in search of the searching algorithm preset is less than or equal to described first focusing range further.
If the step-size in search of the searching algorithm preset is less than or equal to described first focusing range, represent that the precision of the ratio of precision range unit range finding utilizing the searching algorithm preset to carry out searching for is high.Otherwise, if the step-size in search of the searching algorithm preset is greater than described second focusing range, then represent the precision that the precision utilizing the searching algorithm preset to carry out searching for is found range lower than range unit.
In the execution mode that some are feasible, if the variable searching step of the searching algorithm preset, then judge whether the minimum step-size in search of the searching algorithm preset is less than or equal to described first focusing range.
S206, judge when the lens focus of described terminal is in described first focusing range, whether the imaging definition of described object reaches default clarity threshold; If so, forward S207 to, otherwise forward S208 to.
In the execution mode that some are feasible, the object distance that range unit records may not be the distance between terminal and the user object wanting to take, such as: when range unit is ultrasonic range finder, if user and object are respectively in the both sides of glass, user needs the object through glass shooting opposite side, but due to glass to hyperacoustic reflectivity up to almost 100%, the object distance that now rangefinder provides will be the distance between glass and terminal.If now at the first focusing range inner focusing obtained according to the object distance obtained and measure error, the definition of object imaging is lower.For above-mentioned situation, can judge whether the imaging definition of object reaches default clarity threshold when terminal focuses in described first focusing range, determine the hunting zone of searching algorithm according to judged result.
In the embodiment of the present invention, judge when the lens focus of described terminal is in described first focusing range, whether the imaging definition of described object reaches default clarity threshold, be specially the searching algorithm utilizing and preset, multiple positions in the first focusing range focus on, and whether reach default clarity threshold when judging respectively to focus in these positions in the definition of the picture of photosurface one-tenth.
Alternatively, the fuzzy detection algorithm of non-reference picture can be adopted to detect the imaging definition of object.According to the imaging of object, the fuzzy detection algorithm of non-reference picture, without the need to reference to other images, directly judges that whether it is fuzzy.
S207, is searched for by the searching algorithm preset and is determined the second estimated position of the camera lens best focal point of terminal in described first focusing range.
Alternatively, the searching algorithm preset can be ramping constraint, full search algorithm, binary search algorithm or rule-based searching algorithm, includes but not limited to the above-mentioned algorithm enumerated.Be described as follows for ramping constraint:
Driving stepper motor terminal camera lens, from original position, then travels forward with unique step, after a step-length of often moving, just calculates the autofocus evaluation function value of present convergence location corresponding image.In the process of camera motion, if there is the phenomenon that autofocus evaluation function value reduces, illustrate that camera lens has missed the position at focus place, and progressively out of focus.Now, stepping motor drives camera lens counter motion, and the step-length of corresponding reduction stepping motor.In like manner, when autofocus evaluation function is worth reduction again, illustrate that camera lens misses again the position at focus place, stepping motor drive camera lens again counter motion reduces step-length simultaneously further.So repeatedly search for, till the step-length of stepping motor is less than set point.Now the position of lens focus is the second estimated position of the camera lens best focal point that ramping constraint is determined.Particularly, autofocus evaluation function value can be the evaluation of estimate of the information such as gradient, contrast to image, when calculating autofocus evaluation function value, the image blurring detection algorithm of reference can be adopted, image by current acquisition compares with other images obtained under identical photographed scene, and its focus function evaluation of estimate of image that definition is higher is higher.
As a rule, search in the maximum magnitude that searching algorithm can be able to focus at terminal camera lens, hunting zone is greater than the first focusing range determined according to the measure error of object distance and object distance.If at the first focusing range inner focusing, the definition of object imaging can reach default clarity threshold, can utilize default searching algorithm in the first focusing range, search for the second estimated position of camera lens best focal point, to reduce the operand of searching algorithm, both focusing effect was ensured, save search time again, improve the self-focusing efficiency of terminal camera lens.Wherein, when searching for the second estimated position of camera lens best focal point in the first focusing range, the scope of terminal camera motion is within the scope of camera lens best focal point corresponding to the first focusing range.
S208, is searched for by the searching algorithm preset and is determined the second estimated position of described camera lens best focal point in the second focusing range being greater than described first focusing range.
In the execution mode that some are feasible, if at the first focusing range inner focusing, the definition of object imaging fails to reach default clarity threshold, illustrate that object distance that range unit records may not be the distance between terminal and the user object wanting to take, the searching algorithm now by presetting is searched for and determines the second estimated position of the camera lens best focal point of terminal in the second focusing range larger than the first focusing range.
Alternatively, the second focusing range can be the maximum focusing range of the camera lens of terminal, also can between this maximum focusing range and first focusing range.
S209, determines the first estimated position of described camera lens best focal point in described first focusing range according to the mapping relations between described object distance and the camera lens best focal point of terminal.
In the execution mode that some are feasible, when there is relative motion between terminal and object, due to the motion of terminal self or the motion of object, often cause object at the motion blur of terminal lens imaging, cause autofocus evaluation function value lower.Now determine that the reliability of camera lens best focal point is not high according to autofocus evaluation function value, the first estimated position of described camera lens best focal point can be determined according to the mapping relations between object distance and described camera lens best focal point.
In the execution mode that some are feasible, although there is not relative motion between terminal and object, but the step-length of default searching algorithm is less than according to the first focusing range that range measurement and range error obtain, namely the precision of range measurement is higher than the search precision of the searching algorithm preset, and now can determine the first estimated position of the camera lens best focal point of described terminal according to the mapping relations between object distance and the camera lens best focal point of described terminal.
In the embodiment of the present invention, the object distance between Real-time Obtaining terminal and object to be captured also determines the first focusing range according to the measure error of object distance and object distance, when there is relative motion between terminal and object, or there is not relative motion between terminal and object, but when range accuracy is higher than the precision of searching algorithm preset, according to the first estimated position of the mapping relations determination camera lens best focal point between object distance and the camera lens best focal point of terminal, the focusing that causes because image motion is fuzzy can be avoided inaccurate and the type of focusing that choice accuracy is higher, improve the self-focusing accuracy of terminal camera lens, avoid simultaneously and wait for that relative motion stops and confirming the process that relative motion stops, the self-focusing speed of increasing terminal camera lens, do not occur between terminal and object relative motion, object distance confidence level higher and also in the first focusing range imaging constantly more clear, search in the first focusing range by the searching algorithm preset and determine the second estimated position of the camera lens best focal point of terminal, the operation time of default searching algorithm can be reduced, improve self-focusing efficiency further.
See Fig. 3, the structural representation of an embodiment of a kind of terminal provided for the embodiment of the present invention.As shown in Figure 3, this terminal can comprise:
Object distance acquiring unit 301, for the object distance between Real-time Obtaining terminal and object to be captured.
In the embodiment of the present invention, object to be captured can be an object, the scene that also can be made up of multiple object.
In the execution mode that some are feasible, terminal can built-in range unit, this range unit can initiatively launch light wave or sound wave, and receive the reflected wave reflected by object, then according to reflection intensity of wave and reflection interval, calculate the orientation of distance between terminal and object and object relative termination, i.e. object distance.Particularly, the range unit of terminal built-in can be laser range finder and/or ultrasonic range finder, includes but not limited to the above two kinds of devices enumerated.
In concrete enforcement, after terminal opens shoot function, this range unit can according to the object distance between the continuous measuring terminals of certain time interval and object to be captured, and terminal can get described object distance from this range unit.Wherein this time interval is shorter, and the real-time that terminal obtains this object distance is better.Alternatively, this range unit can measure an object distance every several milliseconds.
First determining unit 302, during for there is relative motion between described terminal and described object, measure error according to described object distance and described object distance determines the first focusing range, determines the first estimated position of described camera lens best focal point in described first focusing range according to the mapping relations between described object distance and the camera lens best focal point of terminal.
In the embodiment of the present invention, camera lens best focal point can be understood as when photographed, makes scenery the most clearly on sensor devices during imaging, the position residing for the lens set of camera lens.When the lens set of camera lens overlaps with camera lens best focal point, sensor devices drops on optimal imaging position, and imaging is the most clear.
In concrete enforcement, terminal first can judge whether there occurs relative motion between object.Alternatively, the mode whether relative motion occurs between terminal judges and object can include but not limited to following three kinds:
Mode one, judges the object distance that terminal obtains at current time and whether difference between the object distance obtained in previous moment exceedes default error range; If so, then can judge to there occurs relative motion between terminal and object, otherwise can judge relative motion not to occur between terminal and object.Particularly, the relative motion degree between this error range terminal that can be able to allow according to the time difference of current time and previous moment and passive type automatic focus mode and object is arranged.Such as: the time difference of current time and previous moment is 5ms, if passive type automatic focus mode allows the speed of related movement between terminal and object to be less than 1m/s, difference then between the object distance that obtains of the object distance that obtains of current time and previous moment is when being less than 0.5cms, can judge relative motion not to occur between terminal and object, otherwise judge to there occurs relative motion between terminal and object.
Mode two, judges whether relative motion occurs between terminal and object by the gyroscope in terminal.Particularly, by the gyroscope in terminal, can measuring terminals self rotate angle.The rotation of terminal self can cause shooting angle to change, thus makes, between terminal and object, relative motion occurs.When the angle that terminal rotates within a certain period of time is greater than certain angle value, can think and there occurs relative motion between terminal and object, such as, the angle rotated in 1s when terminal has exceeded 5 °, can think and there occurs relative motion between terminal and object.
Mode three, calculates the similarity of the imaging of object at current time and the imaging in previous moment; If similarity, higher than the similarity threshold preset, can judge, between described terminal and described object, relative motion occurs; Otherwise can judge, between described terminal and described object, relative motion does not occur.Particularly, can calculate current time imaging and distance between the histogram of previous moment imaging, such as histogrammic land mobile distance (Earth Mover s Distance, EMD), histogram intersection distance, card side apart from etc.When Histogram distance is greater than certain distance threshold value, can think that similarity is less than similarity threshold, exists relative motion between terminal and object.
In concrete enforcement, if there is relative motion between described terminal and described object, due to the motion of terminal self or the motion of object, often cause object at the motion blur of terminal lens imaging, cause autofocus evaluation function value lower.Now determine that the reliability of camera lens best focal point is not high according to autofocus evaluation function value, alternatively, the first estimated position of the camera lens best focal point of described terminal can be determined according to the mapping relations between object distance and the camera lens best focal point of described terminal.
Alternatively, the first focusing range can be that object distance adds the scope that measure error obtains, and also can be greater than object distance and add the scope that measure error obtains.Such as, when the object distance measured is 25cm, the measure error of object distance is ± 4cm time, consider measure error, the first focusing range can be defined as 25cm ± 4cm, i.e. 21cm-29cm.If consider, the hardware assembling of different camera lens individuality cannot reach completely the same and error that is that cause, the first focusing range can be defined as the scope being greater than 21cm-29cm, such as 19cm-31cm.
Second determining unit 303, during for relative motion not occurring between described terminal and described object, being searched for by the searching algorithm preset and being determined the second estimated position of described camera lens best focal point.
Alternatively, the searching algorithm preset can be ramping constraint, full search algorithm, binary search algorithm or rule-based searching algorithm, includes but not limited to the above-mentioned algorithm enumerated.The embodiment of the present invention is described for ramping constraint:
Driving stepper motor terminal camera lens, from original position, then travels forward with unique step, after a step-length of often moving, just calculates the autofocus evaluation function value of present convergence location corresponding image.In the process of camera motion, if there is the phenomenon that autofocus evaluation function value reduces, illustrate that camera lens has missed the position at focus place, and progressively out of focus.Now, stepping motor drives camera lens counter motion, and the step-length of corresponding reduction stepping motor.In like manner, when autofocus evaluation function is worth reduction again, illustrate that camera lens misses again the position at focus place, stepping motor drive camera lens again counter motion reduces step-length simultaneously further.So repeatedly search for, till the step-length of stepping motor is less than set point.Now the position of lens focus is the second estimated position of the camera lens best focal point that ramping constraint is determined.
Particularly, autofocus evaluation function value can be the evaluation of estimate of the information such as gradient, contrast to image, when calculating autofocus evaluation function value, the image blurring detection algorithm of reference can be adopted, image by current acquisition compares with other images obtained under identical photographed scene, and its focus function evaluation of estimate of image that definition is higher is higher.
Focusing unit 304, for focusing on according to the first estimated position of described camera lens best focal point or the camera lens of the second estimated position to described terminal of described camera lens best focal point.
In the embodiment of the present invention, the camera lens of terminal is focused on to the lens parameters being specially adjustment terminal, the sensor devices in camera lens is overlapped with camera lens best focal point.Alternatively, can by the lens moving of driving stepper motor terminal, adjust the position of CCD (Charge-coupled Device, charge coupled cell) in camera lens or photographic film with this, its first estimated position with camera lens best focal point or the second estimated position are overlapped.
In the embodiment of the present invention, the object distance between Real-time Obtaining terminal and object to be captured; When there is relative motion between terminal and object, according to the first estimated position of the camera lens best focal point of the mapping relations determination terminal between object distance and the camera lens best focal point of terminal, the focusing that causes because image motion is fuzzy can be avoided inaccurate, improve the self-focusing accuracy of terminal camera lens, avoid simultaneously and wait for that relative motion stops and confirming the process that relative motion stops, the self-focusing speed of increasing terminal camera lens; When there is not relative motion between terminal and object, searched for by the searching algorithm preset and determined the second estimated position of the camera lens best focal point of terminal, its focusing accuracy is than high according to the accuracy of the mapping relations determination camera lens best focal point between object distance and the camera lens best focal point of terminal.Visible, the embodiment of the present invention can select the suitable type of focusing according to whether occurring between terminal and object relative motion, improves the self-focusing accuracy of terminal camera lens and the self-focusing speed of increasing terminal camera lens.
In the execution mode that some are feasible, as shown in Figure 4, on the basis of Fig. 3, this terminal also can comprise, at least one in the first judging unit 305, the 4th determining unit 306, second judging unit 307, the 3rd judging unit 308, computing unit 309 and the 4th judging unit 310, wherein:
In the execution mode that some are feasible, second determining unit 303 also for: obtain described object distance confidence level higher than preset confidence threshold value time, by preset searching algorithm search in described first focusing range and determine the second estimated position of described camera lens best focal point.
In the execution mode that some are feasible, the range unit in terminal, can the confidence level of assessment of the measurement result when measuring distance, if confidence level is higher than the confidence threshold value preset, represents that measurement result is reliable.
As a rule, search in the searching algorithm maximum magnitude that can be able to focus at terminal camera lens preset, hunting zone is greater than the first focusing range determined according to the measure error of object distance and object distance.When the confidence level of object distance is higher, if utilize the searching algorithm preset to search for the second estimated position of camera lens best focal point in the first focusing range, the operand of searching algorithm can be reduced, both ensured focusing effect, save search time again, improve the self-focusing efficiency of terminal camera lens.Wherein, when searching for the second estimated position of camera lens best focal point in the first focusing range, the scope of terminal camera motion is within the scope of camera lens best focal point corresponding to the first focusing range.
Alternatively, range unit can according to the confidence level of the strength assessment measurement result of reflected wave.Such as, when range unit is Infrared LASER Ranger, it is initiatively launched infrared laser and receives reflected wave, object distance is judged according to the time that reflected wave returns, if object has higher absorptivity to infrared light, absorb more infrared laser, cause the infrared laser reflection wave strength that returns less, then range unit can be assessed and think that the confidence level of measurement result is lower.
Particularly, range unit can provide a confidence value, and terminal by this confidence value compared with the confidence threshold value preset, can judge that whether this confidence value is higher than the confidence threshold value preset.
Second determining unit 303 also for: when the step-size in search of described default searching algorithm is less than or equal to described first focusing range, by preset searching algorithm search in described first focusing range and determine the second estimated position of described camera lens best focal point.
If the confidence level of the described object distance obtained is higher than the confidence threshold value preset, illustrates that the object distance obtained is reliable, now can judge whether the step-size in search of the searching algorithm preset is less than or equal to described first focusing range further.
If the step-size in search of the searching algorithm preset is less than or equal to described first focusing range, represent that the precision of the ratio of precision range unit range finding utilizing the searching algorithm preset to carry out searching for is high, now the second determining unit 303 is searched for by the searching algorithm preset and determines the second estimated position of the camera lens best focal point of terminal in the first focusing range.Otherwise, if the step-size in search of the searching algorithm preset is greater than described second focusing range, then represent the precision that the precision utilizing the searching algorithm preset to carry out searching for is found range lower than range unit.
In the execution mode that some are feasible, if the variable searching step of the searching algorithm preset, then judge whether the minimum step-size in search of the searching algorithm preset is less than or equal to described first focusing range.
First judging unit 305, for judging whether the imaging definition of described object reaches default clarity threshold when the lens focus of described terminal is in described first focusing range.
In the execution mode that some are feasible, the object distance that range unit records may not be the distance between terminal and the user object wanting to take, such as: when range unit is ultrasonic range finder, if user and object are respectively in the both sides of glass, user needs the object through glass shooting opposite side, but due to glass to hyperacoustic reflectivity up to almost 100%, the object distance that now rangefinder provides will be the distance between glass and terminal.If now at the first focusing range inner focusing obtained according to the object distance obtained and measure error, the definition of object imaging is lower.For above-mentioned situation, can judge whether the imaging definition of object reaches default clarity threshold when terminal focuses in described first focusing range, determine the hunting zone of searching algorithm according to judged result.
In the embodiment of the present invention, judge when the lens focus of described terminal is in described first focusing range, whether the imaging definition of described object reaches default clarity threshold, be specially the searching algorithm utilizing and preset, multiple positions in the first focusing range focus on, and whether reach default clarity threshold when judging respectively to focus in these positions in the definition of the picture of photosurface one-tenth.
Alternatively, the fuzzy detection algorithm of non-reference picture can be adopted to detect the imaging definition of object.According to the imaging of object, the fuzzy detection algorithm of non-reference picture, without the need to reference to other images, directly judges that whether it is fuzzy.
Second determining unit 303 also for: when described first judging unit 305 is judged as YES, by preset searching algorithm search in described first focusing range and determine the second estimated position of described camera lens best focal point.
If at the first focusing range inner focusing, the definition of object imaging can reach default clarity threshold, can utilize default searching algorithm in the first focusing range, search for the second estimated position of camera lens best focal point, to reduce the operand of searching algorithm, both focusing effect was ensured, save search time again, improve the self-focusing efficiency of terminal camera lens.Wherein, when searching for the second estimated position of camera lens best focal point in the first focusing range, the scope of terminal camera motion is within the scope of camera lens best focal point corresponding to the first focusing range.
Second determining unit 303 also for: when described first judging unit 306 is judged as NO, is searched in the second focusing range being greater than described first focusing range by described default searching algorithm and determine the second estimated position of described camera lens best focal point.
In the execution mode that some are feasible, if at the first focusing range inner focusing, the definition of object imaging fails to reach default clarity threshold, illustrate that object distance that range unit records may not be the distance between terminal and the user object wanting to take, now the second determining unit 303 is searched for by the searching algorithm preset and is determined the second estimated position of camera lens best focal point in the second focusing range larger than the first focusing range.Wherein, when searching for the second estimated position of camera lens best focal point in the second focusing range, the scope of terminal camera motion is within the scope of camera lens best focal point corresponding to the second focusing range.
Alternatively, the second focusing range can be the maximum focusing range of the camera lens of terminal, also can between this maximum focusing range and first focusing range.
4th determining unit 306, for there is not relative motion between described terminal and described object, and the step-size in search of described default searching algorithm is when being greater than described first focusing range, determine the second estimated position of described camera lens best focal point according to the mapping relations between described object distance and the camera lens best focal point of described terminal.
In the execution mode that some are feasible, although there is not relative motion between terminal and object, but the step-length of default searching algorithm is less than according to the first focusing range that range measurement and range error obtain, namely the precision of range measurement is higher than the search precision of the searching algorithm preset, and now can determine the first estimated position of the camera lens best focal point of described terminal according to the mapping relations between object distance and the camera lens best focal point of described terminal.
Second judging unit 307, for judging whether the difference between the object distance that current time obtains and the object distance that previous moment obtains exceedes default error range;
, also there is relative motion for judging when being judged as YES between described terminal and described object in the second judging unit 307; Judge when being judged as NO, between described terminal and described object, relative motion does not occur.
Particularly, the relative motion degree between this error range terminal that can be able to allow according to the time difference of current time and previous moment and passive type automatic focus mode and object is arranged.Such as: the time difference of current time and previous moment is 5ms, if passive type automatic focus mode allows the speed of related movement between terminal and object to be less than 1m/s, difference then between the object distance that obtains of the object distance that obtains of current time and previous moment is when being less than 0.5cms, can judge relative motion not to occur between terminal and object, otherwise judge to there occurs relative motion between terminal and object.
3rd judging unit 308, for judging whether relative motion occurs between described terminal and described object by the gyroscope in described terminal.
Particularly, by the gyroscope in terminal, can measuring terminals self rotate angle.The rotation of terminal self can cause shooting angle to change, thus makes, between terminal and object, relative motion occurs.When the angle that terminal rotates within a certain period of time is greater than certain angle value, can think and there occurs relative motion between terminal and object, such as, the angle rotated in 1s when terminal has exceeded 5 °, can think and there occurs relative motion between terminal and object.
Computing unit 309, for calculating the similarity of the imaging of described object at current time and the imaging in previous moment;
4th judging unit 310, for judging that whether described similarity is higher than the similarity threshold preset; And judge when being judged as YES, between described terminal and described object, relative motion occurs, judge when being judged as NO, between described terminal and described object, relative motion does not occur.
Particularly, that computing unit 309 can calculate current time imaging and distance between the histogram of previous moment imaging, such as histogrammic land mobile distance (Earth Mover s Distance, EMD), histogram intersection distance, card side's distance etc.When Histogram distance is greater than certain distance threshold value, the 4th judging unit 310 can think that similarity is less than similarity threshold, exists relative motion between terminal and object.
In the embodiment of the present invention, the object distance between Real-time Obtaining terminal and object to be captured also determines the first focusing range according to the measure error of object distance and object distance, when there is relative motion between terminal and object, or there is not relative motion between terminal and object, but when range accuracy is higher than the precision of searching algorithm preset, according to the first estimated position of the camera lens best focal point of the mapping relations determination terminal between object distance and the camera lens best focal point of terminal, the focusing that causes because image motion is fuzzy can be avoided inaccurate and the type of focusing that choice accuracy is higher, improve the self-focusing accuracy of terminal camera lens, avoid simultaneously and wait for that relative motion stops and confirming the process that relative motion stops, the self-focusing speed of increasing terminal camera lens, do not occur between terminal and object relative motion, object distance confidence level higher and also in the first focusing range imaging constantly more clear, search in the first focusing range by the searching algorithm preset and determine the second estimated position of the camera lens best focal point of terminal, the operation time of default searching algorithm can be reduced, improve self-focusing efficiency further.
See Fig. 5, it is the structural representation of the another embodiment of the terminal that the embodiment of the present invention provides.As shown in Figure 5, this terminal can comprise: at least one input equipment 1000; At least one output equipment 2000; At least one processor 3000, such as CPU; With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor 3000 are connected by bus 5000 with memory 4000.
Wherein, above-mentioned input equipment 1000 specifically can be the contact panel of terminal, comprises touch-screen and touch screen, the operational order on sense terminals contact panel.
Above-mentioned output equipment 2000 specifically can be the display screen of terminal, for output, display image data (comprising the first view data and the second view data).
Above-mentioned memory 4000 can be high-speed RAM memory, also can be non-labile memory (non-volatile memory), such as magnetic disc store.Above-mentioned memory 4000 is for program code stored and some non-program data (such as view data), and above-mentioned processor 3000, for calling the program code stored in memory 4000, performs and operates as follows:
Object distance between Real-time Obtaining terminal and object to be captured;
When there is relative motion between described terminal and described object, measure error according to described object distance and described object distance determines the first focusing range, determines the first estimated position of described camera lens best focal point in described first focusing range according to the mapping relations between described object distance and the camera lens best focal point of terminal;
When there is not relative motion between described terminal and described object, search for by the searching algorithm preset and determine the second estimated position of described camera lens best focal point; And,
Focus on according to the first estimated position of described camera lens best focal point or the camera lens of the second estimated position to described terminal of described camera lens best focal point.
In the execution mode that some are feasible, above-mentioned processor 3000 also for:
When the confidence level of the described object distance obtained is higher than the confidence threshold value preset, searches in described first focusing range by the searching algorithm preset and determine the second estimated position of described camera lens best focal point.
In the execution mode that some are feasible, above-mentioned processor 3000 also for:
When the step-size in search of described default searching algorithm is less than or equal to described first focusing range, searches in described first focusing range by the searching algorithm preset and determine the second estimated position of described camera lens best focal point.
In the execution mode that some are feasible, above-mentioned processor 3000 also for:
Judge when the lens focus of described terminal is in described first focusing range, whether the imaging definition of described object reaches default clarity threshold;
When the imaging definition of described object reaches default clarity threshold, search in described first focusing range by the searching algorithm preset and determine the second estimated position of described camera lens best focal point; And,
When the imaging definition of described object does not reach default clarity threshold, searched in the second focusing range being greater than described first focusing range by described default searching algorithm and determine the second estimated position of described camera lens best focal point.
In the execution mode that some are feasible, above-mentioned processor 3000 also for:
Relative motion is there is not between described terminal and described object, and the step-size in search of described default searching algorithm is when being greater than described first focusing range, determine the first estimated position of described camera lens best focal point according to the mapping relations between described object distance and described camera lens best focal point.
In the execution mode that some are feasible, above-mentioned processor 3000 also for:
Judge whether the difference between the object distance that current time obtains and the object distance that previous moment obtains exceedes default error range; And,
Judge when being judged as YES, between described terminal and described object, relative motion occurs; Judge when being judged as NO, between described terminal and described object, relative motion does not occur.
In the execution mode that some are feasible, above-mentioned processor 3000 also for:
Judge whether relative motion occurs between described terminal and described object by the gyroscope in described terminal.
In the execution mode that some are feasible, above-mentioned processor 3000 also for:
Calculate the similarity of the imaging of described object at current time and the imaging in previous moment; And,
Judge that whether described similarity is higher than the similarity threshold preset; And judge when being judged as YES, between described terminal and described object, relative motion occurs, judge when being judged as NO, between described terminal and described object, relative motion does not occur.
Adopt the embodiment of the present invention, the focusing that causes because image motion is fuzzy can be avoided inaccurate and the type of focusing that choice accuracy is higher, improve the self-focusing accuracy of terminal camera lens, avoid simultaneously and wait for that relative motion stops and confirming the process that relative motion stops, the self-focusing speed of increasing terminal camera lens; Can also when adopting the searching algorithm determination camera lens best focal point preset, when ensureing focusing accuracy, prioritizing selection is searched in the first less focusing range, thus reduce the operation time of the searching algorithm preset, improve self-focusing efficiency further.
In specific implementation, the input equipment 1000 described in the embodiment of the present invention, output equipment 2000 and processor 3000 can perform the embodiment of the method as shown in Fig. 1-2 of the present invention, also can perform the terminal embodiment as shown in Fig. 3-4 of the present invention.Do not repeat them here.
Unit in all embodiments of the present invention, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application Specific Integrated Circuit, application-specific integrated circuit (ASIC)).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention device can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a self-focusing method, is characterized in that, comprising:
Object distance between Real-time Obtaining terminal and object to be captured;
If there is relative motion between described terminal and described object, then determine the first focusing range according to the measure error of described object distance and described object distance, in described first focusing range, determine the first estimated position of described camera lens best focal point according to the mapping relations between described object distance and the camera lens best focal point of terminal;
If there is not relative motion between described terminal and described object, then the searching algorithm by presetting is searched for and determines the second estimated position of described camera lens best focal point;
Focus on according to the first estimated position of described camera lens best focal point or the camera lens of the second estimated position to described terminal of described camera lens best focal point.
2. method according to claim 1, is characterized in that, the described searching algorithm by presetting is searched for and determines the second estimated position of camera lens best focal point, comprising:
If the confidence level of the described object distance obtained is higher than the confidence threshold value preset, then the searching algorithm by presetting is searched for and determines the second estimated position of described camera lens best focal point in described first focusing range.
3. method according to claim 2, is characterized in that, the described searching algorithm by presetting is searched for and determines the second estimated position of the camera lens best focal point of described terminal in described first focusing range, comprising:
If the step-size in search of described default searching algorithm is less than or equal to described first focusing range, then the searching algorithm by presetting is searched for and determines the second estimated position of described camera lens best focal point in described first focusing range.
4. method according to claim 2, is characterized in that, the described searching algorithm by presetting searches in described first focusing range and before determining the second estimated position of described camera lens best focal point, described method also comprises:
Judge when the lens focus of described terminal is in described first focusing range, whether the imaging definition of described object reaches default clarity threshold;
If the imaging definition of described object reaches described default clarity threshold, then the searching algorithm by presetting is searched for and determines the second estimated position of described camera lens best focal point in described first focusing range.
5. method according to claim 4, is characterized in that, the described searching algorithm by presetting is searched for and determines the second estimated position of described camera lens best focal point, also comprises:
If the imaging definition of described object does not reach described default clarity threshold, then searched in the second focusing range being greater than described first focusing range by described default searching algorithm and determine the second estimated position of described camera lens best focal point.
6. method according to claim 3, is characterized in that, described method also comprises:
If there is not relative motion between described terminal and described object, and the step-size in search of described default searching algorithm is greater than described first focusing range, then determine the first estimated position of described camera lens best focal point according to the mapping relations between described object distance and camera lens best focal point.
7. method according to claim 1, is characterized in that, described method also comprises:
Judge whether the difference between the object distance that current time obtains and the object distance that previous moment obtains exceedes default error range;
If so, then judge, between described terminal and described object, relative motion occurs; Otherwise judge, between described terminal and described object, relative motion does not occur.
8. method according to claim 1, is characterized in that, described method also comprises:
Judge whether relative motion occurs between described terminal and described object by the gyroscope in described terminal.
9. method according to claim 1, is characterized in that, described method also comprises:
Calculate the similarity of the imaging of described object at current time and the imaging in previous moment;
Judge that whether described similarity is higher than the similarity threshold preset, and if so, then judges, between described terminal and described object, relative motion occurs; Otherwise judge, between described terminal and described object, relative motion does not occur.
10. the method according to any one of claim 1-6, is characterized in that, described default searching algorithm, comprising:
Ramping constraint, full search algorithm, binary search algorithm or rule-based searching algorithm.
CN201510070514.9A 2015-02-10 2015-02-10 Automatic focusing method Pending CN104683693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510070514.9A CN104683693A (en) 2015-02-10 2015-02-10 Automatic focusing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510070514.9A CN104683693A (en) 2015-02-10 2015-02-10 Automatic focusing method

Publications (1)

Publication Number Publication Date
CN104683693A true CN104683693A (en) 2015-06-03

Family

ID=53318198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510070514.9A Pending CN104683693A (en) 2015-02-10 2015-02-10 Automatic focusing method

Country Status (1)

Country Link
CN (1) CN104683693A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105423998A (en) * 2015-11-07 2016-03-23 陕西科技大学 Lens distance measurement device and measurement method thereof
CN105611151A (en) * 2015-12-17 2016-05-25 深圳市金立通信设备有限公司 Terminal control method and terminal
CN108600612A (en) * 2015-09-28 2018-09-28 广东欧珀移动通信有限公司 A kind of photographic method and mobile terminal
CN109688340A (en) * 2019-01-25 2019-04-26 Oppo广东移动通信有限公司 Time for exposure control method, device, electronic equipment and storage medium
CN111131789A (en) * 2019-12-31 2020-05-08 上海宏英智能科技有限公司 Wireless zoom video monitoring system
CN111147732A (en) * 2018-11-06 2020-05-12 浙江宇视科技有限公司 Focusing curve establishing method and device
CN112114320A (en) * 2020-08-31 2020-12-22 金钱猫科技股份有限公司 Measuring method and device based on image algorithm
CN112136312A (en) * 2019-10-21 2020-12-25 深圳市大疆创新科技有限公司 Method for obtaining target distance, control device and mobile platform
CN114514737A (en) * 2019-10-11 2022-05-17 谷歌有限责任公司 Low light auto-focusing technology
CN114827481A (en) * 2022-06-29 2022-07-29 深圳思谋信息科技有限公司 Focusing method, focusing device, zooming equipment and storage medium
CN116600201A (en) * 2023-07-17 2023-08-15 北京中科科仪股份有限公司 Automatic focusing method and device based on scanning electron microscope

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001255456A (en) * 2000-03-13 2001-09-21 Olympus Optical Co Ltd Range-finding device
CN1469184A (en) * 2002-06-17 2004-01-21 ������������ʽ���� Automatic focasing device and image inputting device
CN1811516A (en) * 2005-01-25 2006-08-02 佳能株式会社 Camera, control method therefor, program, and storage medium
CN101750847A (en) * 2008-12-15 2010-06-23 索尼株式会社 Image pickup apparatus and focus control method
CN101998054A (en) * 2009-08-18 2011-03-30 佳能株式会社 Focus adjustment apparatus and focus adjustment method
CN102364930A (en) * 2011-11-28 2012-02-29 天津长城科安电子科技有限公司 Intelligent double-automatic focusing infrared high-speed video camera
CN102472881A (en) * 2009-07-07 2012-05-23 佳能株式会社 Focus detection apparatus
JP2013037101A (en) * 2011-08-05 2013-02-21 Nikon Corp Focus detector and imaging apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001255456A (en) * 2000-03-13 2001-09-21 Olympus Optical Co Ltd Range-finding device
CN1469184A (en) * 2002-06-17 2004-01-21 ������������ʽ���� Automatic focasing device and image inputting device
CN1811516A (en) * 2005-01-25 2006-08-02 佳能株式会社 Camera, control method therefor, program, and storage medium
CN101750847A (en) * 2008-12-15 2010-06-23 索尼株式会社 Image pickup apparatus and focus control method
CN102472881A (en) * 2009-07-07 2012-05-23 佳能株式会社 Focus detection apparatus
CN101998054A (en) * 2009-08-18 2011-03-30 佳能株式会社 Focus adjustment apparatus and focus adjustment method
JP2013037101A (en) * 2011-08-05 2013-02-21 Nikon Corp Focus detector and imaging apparatus
CN102364930A (en) * 2011-11-28 2012-02-29 天津长城科安电子科技有限公司 Intelligent double-automatic focusing infrared high-speed video camera

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600612B (en) * 2015-09-28 2021-03-09 Oppo广东移动通信有限公司 Photographing method and mobile terminal
CN108600612A (en) * 2015-09-28 2018-09-28 广东欧珀移动通信有限公司 A kind of photographic method and mobile terminal
CN105423998A (en) * 2015-11-07 2016-03-23 陕西科技大学 Lens distance measurement device and measurement method thereof
CN105611151A (en) * 2015-12-17 2016-05-25 深圳市金立通信设备有限公司 Terminal control method and terminal
CN111147732B (en) * 2018-11-06 2021-07-20 浙江宇视科技有限公司 Focusing curve establishing method and device
CN111147732A (en) * 2018-11-06 2020-05-12 浙江宇视科技有限公司 Focusing curve establishing method and device
CN109688340A (en) * 2019-01-25 2019-04-26 Oppo广东移动通信有限公司 Time for exposure control method, device, electronic equipment and storage medium
CN114514737A (en) * 2019-10-11 2022-05-17 谷歌有限责任公司 Low light auto-focusing technology
CN112136312A (en) * 2019-10-21 2020-12-25 深圳市大疆创新科技有限公司 Method for obtaining target distance, control device and mobile platform
CN111131789A (en) * 2019-12-31 2020-05-08 上海宏英智能科技有限公司 Wireless zoom video monitoring system
CN112114320A (en) * 2020-08-31 2020-12-22 金钱猫科技股份有限公司 Measuring method and device based on image algorithm
CN114827481A (en) * 2022-06-29 2022-07-29 深圳思谋信息科技有限公司 Focusing method, focusing device, zooming equipment and storage medium
CN116600201A (en) * 2023-07-17 2023-08-15 北京中科科仪股份有限公司 Automatic focusing method and device based on scanning electron microscope
CN116600201B (en) * 2023-07-17 2023-11-03 北京中科科仪股份有限公司 Automatic focusing method and device based on scanning electron microscope

Similar Documents

Publication Publication Date Title
CN104683693A (en) Automatic focusing method
CN105659580B (en) A kind of Atomatic focusing method, device and electronic equipment
US7711201B2 (en) Method of and apparatus for generating a depth map utilized in autofocusing
US8213782B2 (en) Predictive autofocusing system
US11956536B2 (en) Methods and apparatus for defocus reduction using laser autofocus
US20070189750A1 (en) Method of and apparatus for simultaneously capturing and generating multiple blurred images
US20220383530A1 (en) Method and system for generating a depth map
KR20190104216A (en) Focus method, terminal and computer readable storage media
US20120200725A1 (en) Autofocus Method
US7602435B2 (en) Image-taking apparatus and focus control program for image-taking apparatus
US20100189427A1 (en) Auto-focusing method
CN103209298A (en) Blur-matching Model Fitting For Camera Automatic Focusing Adaptability
CN105007420A (en) Focusing method and mobile terminal
JP2003131121A (en) Device and method for automatic focus adjustment
CN105007425A (en) Contrast type focusing method and mobile terminal
EP3055986B1 (en) Imaging device and method for automatic focus in an imaging device as well as a corresponding computer program
JP2005195893A (en) Imaging apparatus, its control method and program
CN110213491B (en) Focusing method, device and storage medium
US20210006709A1 (en) Control device, photographing device, control method, and program
CN110246188B (en) Internal reference calibration method and device for TOF camera and camera
TW201439659A (en) Auto focus method and auto focus apparatus
CN112333379A (en) Image focusing method and device and image acquisition equipment
CN114125268A (en) Focusing method and device
CN104683694A (en) Terminal
US10880536B2 (en) Three-dimensional image capturing device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150603

WD01 Invention patent application deemed withdrawn after publication