CN109839714A - A kind of fast automatic focusing method and device suitable for infrared system - Google Patents
A kind of fast automatic focusing method and device suitable for infrared system Download PDFInfo
- Publication number
- CN109839714A CN109839714A CN201711216998.9A CN201711216998A CN109839714A CN 109839714 A CN109839714 A CN 109839714A CN 201711216998 A CN201711216998 A CN 201711216998A CN 109839714 A CN109839714 A CN 109839714A
- Authority
- CN
- China
- Prior art keywords
- focusing
- gradient value
- image
- motor
- module
- 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.)
- Withdrawn
Links
Landscapes
- Focusing (AREA)
Abstract
The present invention relates to the theoretical zero-bits that a kind of fast automatic focusing method and device suitable for infrared system, control are focused under motor movement to room temperature, calculate present image gradient value.The direction stepping that the past focusing of motor of focusing adds three times, and calculates the image gradient value of position three times, and gradient value is sequentially reduced, the direction stepping subtracted toward focusing is three times, it calculates image gradient value, gradient value three times to be still sequentially reduced, then opposite direction moves to the clearest position that theoretical zero-bit is current scene.If gradient value is sequentially increased, continue the direction stepping added to focusing, until the gradient value for current location occur is less than the gradient value of last position, then opposite direction moves to last position, the as clearest position of current scene.Present invention auto-focusing time < 1.2s under the same conditions substantially reduces the auto-focusing time, and the precision of auto-focusing and wow and flutter are equal to the whole strategy of single step.
Description
Technical field
The invention belongs to fast automatic focusing control technology, it is related to focus electric machines control technology, infrared system auto-focusing
Technology, image gradient computing technique and bus communication technology;More particularly to a kind of suitable for the fast automatic right of infrared system
Burnt method and device.
Background technique
There are mainly two types of focusing methods for infrared system at present, are the whole strategy of single step and the whole strategy of continuous movement respectively.
Wherein single step whole process strategy is each step-by-step movement single step run of focusing motor and the gradient for sampling current frame image, after covering whole process
Gradient sequence's table of entirely focusing stroke is obtained, then control focusing motor operation to the maximum position of image gradient works as front court
The clear position of scape.It is continuous move whole strategy be focus motor in the entirely motion process of focusing stroke at regular intervals
The gradient of uniform sampling current frame image obtains gradient sequence's table of entirely focusing stroke after covering whole process, then control focusing
Motor operation is to the clear position of the maximum position, that is, current scene of image gradient.The spy for having focal length long due to infrared system
Point, no wheel are which kind of above-mentioned methods, and the time of auto-focusing is all longer, in order to solve this problem, propose it is of the invention from
Dynamic focusing method.
Since infrared system zooming section has the particularity of oneself itself: first is that focusing stroke is long, if carrying out away whole plan
Slightly, then the auto-focusing time is longer.For the focusing stroke of 6mm, the auto-focusing time is 3s, and the present invention is in the same terms
Lower auto-focusing time < 1.2s substantially reduces the auto-focusing time, and the precision of auto-focusing and wow and flutter are equal to single step
Whole strategy.Second is that the gradient of image is in the wave crest form of the positive half of sine wave in the entire focusing stroke of infrared system
Trend,
Summary of the invention
Technical problems to be solved
In order to avoid the shortcomings of the prior art, the present invention proposes a kind of fast automatic focusing suitable for infrared system
Method and device does not have to walk the whole clearest position of focusing that can find current scene.
Technical solution
A kind of fast automatic focusing method suitable for infrared system, it is characterised in that steps are as follows:
Step 1: the theoretical zero-bit under control focusing motor movement to room temperature, i.e., under room temperature to the clear position in infinity,
It samples the image of current location and calculates gradient value, using gradient value as theoretical zero-bit;
Step 2: the continuous stepping in direction that focusing motor is added to focusing three times, samples the image of each position and calculates ladder
Angle value, the corresponding focusing motor encoder numerical value in each position;
Situation 1: when image gradient value three times successively sequentially reduces, then rapidly returning back to theoretical zero-bit for focusing motor,
Then the continuous stepping in direction that control focusing motor first subtracts to focusing three times, samples the image of each position and calculates gradient value,
Each corresponding focusing motor encoder numerical value in position;
If this image gradient value three times still successively sequence reduce, decision theory zero-bit be current scene focusing most
Clear position, the corresponding focusing motor encoder numerical value in the position;
If this image gradient value three times successively sequentially increases, focusing motor is continued into the direction stepping subtracted to focusing,
It samples the image of each position and calculates gradient value, until the gradient value for current location occur is less than the gradient value of last position
When, using last position as the clearest position of the focusing of current scene, the corresponding focusing motor encoder numerical value in the position;
Situation 2: if this image gradient value three times successively sequentially increases, the motor that will focus continues the direction added to focusing
Stepping samples the image of each position and calculates gradient value, until the gradient value for current location occur is less than last position
Gradient value determines last position then for the clearest position of focusing of current scene, and the corresponding focusing motor in the position is compiled
Code device numerical value.
The stepping-in amount of each focusing motor is equal.
It is a kind of realize described in be suitable for infrared system fast automatic focusing method device, it is characterised in that: including control
Molding block, bus communication module, image-forming module, focusing motor, focus adjusting mechanism, focusing motor encoder and focusing lens;Control
Module completes control focusing motor movement, receives and parses through focusing motor encoder and carries out bus communication with image-forming module;
The data that bus communication module is completed between control module and image-forming module send and receive task;Image-forming module completes image ladder
The calculating of degree is communicated by bus module and control module;Motor of focusing drives focusing lens movement to realize auto-focusing;It adjusts
Support of the focusing mechanism to motor of focusing, focus motor encoder and focusing lens, and mechanical position limitation is designed at focusing stroke both ends;Focusing
Motor encoder completes the position of Real-time Feedback focusing motor;Focusing lens complete imaging and focusing function optically.
Beneficial effect
A kind of fast automatic focusing method and device suitable for infrared system proposed by the present invention, auto-focusing one are opened
Begin, first the theoretical zero-bit under control focusing motor movement to room temperature, i.e., to, to the clear position in infinity, sampling is current under room temperature
The image of position simultaneously calculates its gradient value.Then the direction stepping that the past focusing of control focusing motor adds three times, and samples this three times
The image of position simultaneously calculates its gradient value, if the gradient value of these three positions is sequentially reduced, opposite direction moves to theoretical zero-bit,
Then control focusing motor toward the direction stepping that subtracts of focusing three times, and sample this and the image of position and calculate its gradient value three times,
If the gradient value of these three positions is still sequentially reduced, opposite direction moves to theoretical zero-bit, then theoretical zero-bit is current scene
Clearest position.If the gradient value of focusing plus three positions of stepping three times is sequentially increased, continue the direction added to focusing
Stepping, until the gradient value for current location occur is less than the gradient value of last position, then opposite direction moves to last position
It sets, as the clearest position of current scene, the gradient value that this process subtracts three positions of stepping three times with focusing is sequentially increased
Process it is completely the same.
By the method, the fast automatic focusing of infrared system may be implemented.
The invention has the advantages that outstanding advantages of the invention are that speed is fast compared with pervious Autofocus Technology, summarize
For the focusing stroke of 6mm, the auto-focusing time is 3s for the whole strategy of described single step and the whole strategy of continuous movement, this
Invention auto-focusing time < 1.2s under the same conditions, substantially reduces auto-focusing time, and the precision and mistake of auto-focusing
Tune rate is equal to the whole strategy of single step.
Detailed description of the invention
Fig. 1: control flow schematic diagram
Fig. 2: systematic schematic diagram
Specific embodiment
Now in conjunction with embodiment, attached drawing, the invention will be further described:
1, system principle designs
The present invention is based on thermal infrared imagers, are the subsystems of thermal imaging system control system, can complete automatic focusing function.
Therefore, it should include
A, the function of control focusing motor;
B, it acquires current frame image and calculates the function of its gradient;
C, the function of focusing motor encoder is received and parsed through;
D, there is bus communication function, interaction auto-focusing information between double-core.
Referring to Fig.1, system devises the hardware system of fast automatic focusing method by control module, bus communication module,
Image-forming module, focusing motor, focus adjusting mechanism, the focusing composition such as motor encoder and focusing lens, as shown in Figure 1, control module
Control focusing motor movement is completed, focusing motor encoder is received and parsed through and carries out the function such as bus communication with image-forming module
Energy;The data that bus communication module is completed between control module and image-forming module send and receive task;Image-forming module completes figure
It carries out the function such as communicating as the calculating of gradient, by bus module and control module;Focusing motor is mainly completed to drive focusing lens
Auto-focusing is realized in movement;Focus adjusting mechanism completes the support to motor of focusing, focus motor encoder and focusing lens, and goes in focusing
Design mechanical position limitation in journey both ends;Motor encoder of focusing completes the position of Real-time Feedback focusing motor;Focusing lens are completed optically
Imaging and focusing function.
2, auto-focusing process design
(1) auto-focusing is at the beginning, right under theoretical zero-bit, that is, room temperature under control module control focusing motor movement to room temperature
The clear position of infinite point, and to image module send current location focusing motor encoder numerical value;Image module is adopted at this time
The image gradient value and record of sample current location.
(2) control module control focuses the first continuous stepping in direction added to focusing of motor three times, and sends to image module
The focusing motor encoder numerical value of this position three times;Image module samples the image gradient value and record of this position three times at this time.
There are two types of situations at this time:
If i. this image gradient value three times successively sequentially reduces, control module control focusing motor rapidly returns back to theory
Zero-bit, the continuous stepping in direction that then control focusing motor first subtracts to focusing three times, and send this position three times to image module
Focusing motor encoder numerical value;Image module samples the image gradient value and record of this position three times at this time.There are two types of at this time
Situation:
If still successively sequence reduces this image gradient value three times, decision theory zero-bit is the focusing of current scene
Clearest position;
If this image gradient value three times successively sequentially increases, control module control focusing motor continues to subtract to focusing
Direction stepping.And the focusing motor encoder numerical value of current location is sent to image module, image module sampling at this time is current
The image gradient value and record of position.Until the gradient value for current location occur is less than the gradient value of last position, then determine
Last position is the clearest position of focusing of current scene.
If ii. this image gradient value three times successively sequentially increases, control module control focusing motor continues to focusing
The direction stepping added.And the focusing motor encoder numerical value of current location is sent to image module, image module sampling at this time is worked as
The image gradient value and record of front position.Until the gradient value for current location occur is less than the gradient value of last position, then sentence
Fixed last position is the clearest position of focusing of current scene.
(3) control module control focusing motor moves to rapidly the clearest position of focusing for the current scene being calculated.
When auto-focusing at the beginning, to nothing under theoretical zero-bit, that is, room temperature under control module control focusing motor movement to room temperature
Poor clear position at a distance, has broken original automatic focusing at the beginning, and control module first controls motor movement to one of focusing
The tradition of extreme position.It no longer executes whole strategy, substantially reduces the time of auto-focusing.
Control module control focusing motor subtracts both direction stepping three times toward focusing adduction focusing, judges in this manner
The variation tendency of image gradient value guides the next step process of auto-focusing.Image in focusing stroke is calculated by this process
The maximum position of gradient.
Control module control focusing motor moves to rapidly the clearest position of focusing for the current scene being calculated, and passes through
The clearest position of the focusing of the current scene of judgement, image module send image gradient to control module by bus communication module
It is worth the corresponding focusing encoder value in maximum position, control module control focusing motor precise motion to above-mentioned focusing encoder
The corresponding position of value.
Claims (3)
1. a kind of fast automatic focusing method suitable for infrared system, it is characterised in that steps are as follows:
Step 1: the theoretical zero-bit under control focusing motor movement to room temperature, i.e., under room temperature to the clear position in infinity, sampling
The image of current location simultaneously calculates gradient value, using gradient value as theoretical zero-bit;
Step 2: the continuous stepping in direction that focusing motor is added to focusing three times, samples the image of each position and calculates gradient
Value, the corresponding focusing motor encoder numerical value in each position;
Situation 1: when image gradient value three times successively sequentially reduces, then focusing motor is rapidly returned back into theoretical zero-bit, then
The continuous stepping in direction that control focusing motor first subtracts to focusing three times, samples the image of each position and calculates gradient value, every time
Position corresponds to a focusing motor encoder numerical value;
If still successively sequence reduces this image gradient value three times, decision theory zero-bit is that the focusing of current scene is clearest
Position, the corresponding focusing motor encoder numerical value in the position;
If this image gradient value three times successively sequentially increases, focusing motor is continued into the direction stepping subtracted to focusing, is sampled
The image of each position simultaneously calculates gradient value, until when the gradient value for current location occur is less than the gradient value of last position,
Using last position as the clearest position of the focusing of current scene, the corresponding focusing motor encoder numerical value in the position;
Situation 2: if this image gradient value three times successively sequentially increases, the direction that motor of focusing continues to add to focusing is walked
Into, it samples the image of each position and calculates gradient value, the ladder for being less than last position up to there is the gradient value of current location
Angle value determines last position then for the clearest position of focusing of current scene, which corresponds to a focusing motor encoder
Device numerical value.
2. being suitable for the fast automatic focusing method of infrared system according to claim 1, it is characterised in that: each tune
The stepping-in amount of burnt motor is equal.
3. a kind of device realized described in claim 1 suitable for the fast automatic focusing method of infrared system, it is characterised in that:
Including control module, bus communication module, image-forming module, focusing motor, focus adjusting mechanism, focusing motor encoder and focusing
Mirror;Control module completes control focusing motor movement, receives and parses through focusing motor encoder and carry out with image-forming module total
Line communication;The data that bus communication module is completed between control module and image-forming module send and receive task;Image-forming module is complete
It is communicated at the calculating of image gradient, by bus module and control module;Motor of focusing drives focusing lens movement to realize certainly
Dynamic focusing;Support of the focus adjusting mechanism to motor of focusing, focus motor encoder and focusing lens, and it is mechanical in the design of focusing stroke both ends
Limit;Motor encoder of focusing completes the position of Real-time Feedback focusing motor;Focusing lens complete imaging and focusing function optically
Energy.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711216998.9A CN109839714A (en) | 2017-11-28 | 2017-11-28 | A kind of fast automatic focusing method and device suitable for infrared system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711216998.9A CN109839714A (en) | 2017-11-28 | 2017-11-28 | A kind of fast automatic focusing method and device suitable for infrared system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109839714A true CN109839714A (en) | 2019-06-04 |
Family
ID=66881078
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711216998.9A Withdrawn CN109839714A (en) | 2017-11-28 | 2017-11-28 | A kind of fast automatic focusing method and device suitable for infrared system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109839714A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112817118A (en) * | 2021-01-18 | 2021-05-18 | 中国科学院上海技术物理研究所 | Infrared automatic focusing fast searching method |
CN115327847A (en) * | 2022-08-22 | 2022-11-11 | 深圳康佳电子科技有限公司 | Processing method and system for realizing automatic focusing of projector based on mobile phone photographing |
-
2017
- 2017-11-28 CN CN201711216998.9A patent/CN109839714A/en not_active Withdrawn
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112817118A (en) * | 2021-01-18 | 2021-05-18 | 中国科学院上海技术物理研究所 | Infrared automatic focusing fast searching method |
CN112817118B (en) * | 2021-01-18 | 2021-12-31 | 中国科学院上海技术物理研究所 | Infrared automatic focusing fast searching method |
CN115327847A (en) * | 2022-08-22 | 2022-11-11 | 深圳康佳电子科技有限公司 | Processing method and system for realizing automatic focusing of projector based on mobile phone photographing |
CN115327847B (en) * | 2022-08-22 | 2024-05-14 | 深圳康佳电子科技有限公司 | Processing method and system for realizing automatic focusing of projector based on mobile phone photographing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107529011B (en) | A kind of motorized zoom lens control method | |
CN104836954B (en) | Zoom tracking and its device | |
CN104155740B (en) | Camera system and focus adjusting method | |
CN105044879B (en) | Automatic focusing system using multiple lenses and method thereof | |
CN103345059B (en) | Method and system for zooming of reflective deformable mirror | |
CN1402076A (en) | Zoom lens controlling device | |
JP5868109B2 (en) | Optical apparatus, lens barrel, and automatic focusing method | |
CN109005340A (en) | The Atomatic focusing method and device of image definition curve matching are carried out based on least square method | |
CN106019550B (en) | Dynamic focusing device and focusing tracking for the micro- scanning of high speed | |
WO2013118559A1 (en) | Focus adjustment device, camera system and focus adjustment method | |
US20130010373A1 (en) | Lens control apparatus and interchangeable lens including lens control apparatus | |
CN109839714A (en) | A kind of fast automatic focusing method and device suitable for infrared system | |
JP2013097024A (en) | Optical device | |
US8654452B2 (en) | Image pickup apparatus that drives plural lens units using motors different from each other and drive control method of lens | |
CN103364933A (en) | Digital cam continuous zooming system | |
CN101329492A (en) | Automatic focusing system | |
CN105516600B (en) | Atomatic focusing method | |
US7852575B2 (en) | Lens apparatus and imaging taking apparatus using the same | |
CN203414678U (en) | Reflective deformable mirror zoom system | |
CN100559255C (en) | The image capture unit of automatic focusing method and use said method | |
CN105022138B (en) | Use the autofocus system and its method of more camera lenses | |
CN110119017A (en) | A kind of two grades of zoom lens control devices having focusing function and its control method | |
TWI440951B (en) | Lens actuating device and lens actuating method thereof | |
JP7427414B2 (en) | Control device, lens device, imaging device, control method, program | |
JP2015152817A (en) | imaging device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190604 |
|
WW01 | Invention patent application withdrawn after publication |