CN103018881B - A kind of automatic focusing method based on infrared image and system - Google Patents

A kind of automatic focusing method based on infrared image and system Download PDF

Info

Publication number
CN103018881B
CN103018881B CN201210538743.5A CN201210538743A CN103018881B CN 103018881 B CN103018881 B CN 103018881B CN 201210538743 A CN201210538743 A CN 201210538743A CN 103018881 B CN103018881 B CN 103018881B
Authority
CN
China
Prior art keywords
focusing
infrared image
automatic focusing
control device
image processing
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.)
Active
Application number
CN201210538743.5A
Other languages
Chinese (zh)
Other versions
CN103018881A (en
Inventor
张铮
赵凯生
汪江华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Luoyang Institute of Electro Optical Equipment AVIC
Original Assignee
Luoyang Institute of Electro Optical Equipment AVIC
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 Luoyang Institute of Electro Optical Equipment AVIC filed Critical Luoyang Institute of Electro Optical Equipment AVIC
Priority to CN201210538743.5A priority Critical patent/CN103018881B/en
Publication of CN103018881A publication Critical patent/CN103018881A/en
Application granted granted Critical
Publication of CN103018881B publication Critical patent/CN103018881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of automatic focusing method based on infrared image and system, belong to infrared system technical field.The present invention moves by the step-length of setting by controlling focusing eyeglass, whether the definition judgment focusing when eyeglass of focusing moves by the infrared image of calculation window puts in place, automatic focusing method of the present invention has high, the real-time feature of precision, this method makes the operation of infrared imaging system more flexibly easy, has possessed clear picture and advantage rapidly of focusing simultaneously.This method has applicability widely simultaneously, can be applied in the infrared system based on various infrared eye, by the strict demand of different system to automatic focusing precision and speed can be met to rationally arranging of infrared image definition judgment window and focusing motor step-length.

Description

A kind of automatic focusing method based on infrared image and system
Technical field
The present invention relates to a kind of automatic focusing method based on infrared image and system, belong to infrared system applied technical field.
Background technology
Infrared electro imaging system has been widely used in the every field such as industry, agricultural, medical treatment in recent years.As a kind of instrument obtaining image information, it may be used for the many aspects such as generative process monitoring, operating mode detection, image taking microexamination, medical image analysis, geologic remote sensing, meteorological remote sensing and imaging guiding.The various application scenario of development along with technology proposes more urgent demand to the function of infrared imaging system and performance, require that infrared imaging system possesses the features such as imaging definition is high, easy and simple to handle, real-time, and current infrared image can not automatic focusing.
Summary of the invention
The object of this invention is to provide a kind of automatic focusing method based on infrared image and system, can not the problem of automatic focusing to solve current infrared optical system.
The present invention is for solving the problems of the technologies described above and providing a kind of automatic focusing method based on infrared image, and the step of this focus adjustment method is as follows:
1). move along a direction with certain step-length according to automatic focusing command driven focusing eyeglass;
2). an often mobile step-length, gathers the view data of moving window frame by frame, and calculates the sharpness of the infrared image in this window;
3). whether the definition judgment focusing according to calculating puts in place, if focusing puts in place, sends focusing the finish command, focusing eyeglass is no longer moved, if not in place, then performs step 4);
4). drive focusing eyeglass to continue along this direction mobile, until when reaching focusing extreme position, if focusing does not still put in place, drive this focusing eyeglass with identical step-length along mobile in the other direction;
5). drive focusing eyeglass along mobile in the other direction until focusing puts in place, if reach focusing eyeglass arrive the extreme position focusing in this direction not yet in place time, then send focusing and unsuccessfully order, focusing eyeglass is stopped mobile.
Described step 2) in calculate the sharpness of infrared image be obtained by the method for computed image gradient.
In described step 4), two extreme positions of focusing lens adopt Hall device location, and the position that whether reaches capacity is judged by the level value of induction correspondence position Hall device.
If when described infrared image definition judgment does not still provide clear position judgment within the time set, sharpness judges to stop work, represents this automatic focusing time-out failure.
The present invention also provides a kind of automatic focusing system based on infrared image for solving the problems of the technologies described above, and this focusing system comprises infrared image processing device, control device, host computer, motor and focusing lens, and PC control connects infrared image processing device;
Described host computer is used for sending automatic focusing initiation command to infrared image processing device;
Described infrared image processing device is used for receiving automatic focusing initiation command and sends to control device, the view data of certain window is gathered frame by frame after control device is started working, infrared image sharpness in calculation window, whether put in place according to definition judgment focusing, if image is clear not yet, continue above-mentioned work, if think that image is clear, then send automatic focusing the finish command to control device;
Described control device is used for after the automatic focusing initiation command receiving the transmission of infrared image processing device, drive motor drives focusing eyeglass to move along a direction with the step-length that system initialization is arranged, when arriving focusing extreme position, control device reverse drive focusing eyeglass moves to another way, if stop drive motor work after performing the automatic focusing the finish command receiving the transmission of infrared image processing device in automatic focusing command procedure, focusing lens are made to rest on the position of clear picture, when control device drives the focusing lens automatic focusing that a mobile circulation does not receive the transmission of infrared image processing device yet in focusing range to cease and desist order, control device sends automatic focusing to infrared image processing device and unsuccessfully orders.
Described infrared image processing device judges whether image reaches sharpness by the method for computed image gradient.
Described control device is two extreme positions adopting Hall device location focusing lens, and control device judges whether by the level value of induction correspondence position Hall device the position that reaches capacity.
Described infrared image processing device adopts the mode of software counter to realize the overtime control of automatic focusing algorithm, when sharpness decision rule does not still provide clear position judgment within the time set, infrared image processing device stops sharpness and judges to calculate, and notifies that control device quits work.
Described automatic focusing system also comprises storer, and this storer is connected with the output terminal of control device, for storing the location parameter of automatic focusing.
The invention has the beneficial effects as follows: the present invention moves by the step-length of setting by controlling focusing eyeglass, whether the definition judgment focusing when eyeglass of focusing moves by the infrared image of calculation window puts in place, automatic focusing method of the present invention has high, the real-time feature of precision, this method makes the operation of infrared imaging system more flexibly easy, has possessed clear picture and advantage rapidly of focusing simultaneously.This method has applicability widely simultaneously, can be applied in the infrared system based on various infrared eye, by the strict demand of different system to automatic focusing precision and speed can be met to rationally arranging of infrared image definition judgment window and focusing motor step-length.
Accompanying drawing explanation
Fig. 1 is the automatic focusing system structural representation that the present invention is based on infrared image;
Fig. 2 is the workflow diagram of infrared image processing device in the automatic focusing system that the present invention is based on infrared image;
Fig. 3 is the workflow diagram of control device in the automatic focusing system that the present invention is based on infrared image.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is further described.
The embodiment of a kind of automatic focusing method based on infrared image of the present invention
As shown in Figure 2, its concrete process is as follows for the flow process of the automatic focusing method based on infrared image of the present invention:
1. host computer adopts the form of RS422 differential signal to send automatic focusing initiation command to infrared image processing device, and infrared image processing device adopts the form of RS422 differential signal to send to control device by receiving automatic focusing initiation command.
2. infrared image processing device gathers the view data of certain window frame by frame, judge whether infrared image meets the requirements of sharpness by the method for computed image gradient, if judge that image is not clear yet, continue above-mentioned work, if think that image is clear, then send automatic focusing the finish command to control device.
3. after the automatic focusing initiation command that the treating apparatus that control device receives infrared image sends, starting drive motor drives focusing eyeglass to move along a direction with the step-length that system initialization is arranged, when arrival focusing extreme position, then reverse drive focusing eyeglass moves to another way, control device stops driving click work after performing the automatic focusing the finish command being subject to the transmission of infrared image processing device in automatic focusing command procedure, focusing lens are made to rest on the cleaning positions of image, represent automatic focusing success, and parameter is now carried out stored record, if control device drives focusing lens, the automatic focusing that a mobile circulation has not received the transmission of infrared image processing device yet in focusing range is ceased and desisted order, then represent this automatic focusing failure, control device is unsuccessfully ordered to infrared image processing device loopback automatic focusing.
Control device adopts two extreme positions of Hall device location focusing lens, the position that reaches capacity is judged whether by the level value of induction correspondence position Hall device, infrared image processing device adopts the mode of software counter to realize the overtime control of automatic focusing algorithm, when sharpness decision rule does not still provide clear position judgment within the time that software counter sets, infrared image processing device stops sharpness and judges to calculate, and notify that control device quits work, represent this automatic focusing time-out failure.
The embodiment of a kind of automatic focusing system based on infrared image of the present invention
As shown in Figure 1, the automatic focusing system that the present invention is based on infrared image comprises infrared eye, infrared image processing device, control device, motor, focusing lens and storer, the output terminal of infrared eye is connected with the input end of infrared image processing device, infrared image processing device is connected with control device, control device control linkage motor, motor is for driving focusing lens, and host computer is connected with the control end of infrared image processing device, and its concrete course of work is as follows:
The infrared image detected is exported to infrared image processing device by infrared eye, when the imaging effect of infrared image optical system is bad, when needing to carry out focusing process, host computer sends automatic focusing initiation command to infrared image processing device, and infrared image processing device sends automatic focusing initiation command to control device, infrared image processing device notice control device gathers the view data of certain window frame by frame after starting working, adopt the infrared image sharpness in the method calculation window of computed image gradient and judge whether focusing puts in place, if judge that image is not clear yet, continue above-mentioned work, if think that image is clear, then send automatic focusing the finish command to control device, after control device receives the automatic focusing initiation command of infrared image processing device transmission, starting drive motor drives focusing lens sheet to move along a direction with the compensation that system initialization is arranged, when arriving focusing extreme position, control device controls motor anti-phase driving focusing eyeglass and moves to another way, when control device stops driving click work after performing the automatic focusing the finish command receiving the transmission of infrared image processing device in automatic focusing command procedure, focusing lens are made to rest on the clear position of image, represent automatic focusing success, and parameter is now stored in storer, if control device drives focusing lens, the automatic focusing that a mobile circulation has not received the transmission of infrared image processing device yet within the scope of instruction is ceased and desisted order, identify this automatic focusing failure, control device sends automatic focusing to infrared image processing device and unsuccessfully orders.

Claims (7)

1. based on an automatic focusing method for infrared image, it is characterized in that: the step of this automatic focusing method is as follows:
1). move along a direction with certain step-length according to automatic focusing command driven focusing eyeglass;
2). an often mobile step-length, gathers the view data of certain window frame by frame, and calculates the sharpness of the infrared image in this window;
3). whether the definition judgment focusing according to calculating puts in place, if focusing puts in place, sends focusing the finish command, focusing eyeglass is no longer moved, if not in place, then perform step 4);
4). drive focusing eyeglass to continue along this direction mobile, until when reaching focusing extreme position, if focusing does not still put in place, drive this focusing eyeglass with identical step-length along mobile in the other direction; Described step 4) in two extreme positions of focusing lens be adopt Hall device location, the position that whether reaches capacity is judged by the level value of induction correspondence position Hall device;
5). drive focusing eyeglass along mobile in the other direction until focusing puts in place, if reach focusing eyeglass arrive this reciprocal extreme position focusing not yet in place time, then send focusing and unsuccessfully order, focusing eyeglass is stopped mobile.
2. the automatic focusing method based on infrared image according to claim 1, is characterized in that: described step 2) in calculate the sharpness of infrared image be obtained by the method for computed image gradient.
3. the automatic focusing method based on infrared image according to claim 1, it is characterized in that: if when described infrared image definition judgment does not still provide clear position judgment within the time set, sharpness judges to stop work, represents this automatic focusing time-out failure.
4. based on an automatic focusing system for infrared image, it is characterized in that: this focusing system comprises infrared image processing device, control device, host computer, motor and focusing lens, PC control connects infrared image processing device,
Described host computer is used for sending automatic focusing initiation command to infrared image processing device;
Described infrared image processing device is used for receiving automatic focusing initiation command and sends to control device, the view data of certain window is gathered frame by frame after control device is started working, infrared image sharpness in calculation window, whether put in place according to definition judgment focusing, if image is clear not yet, continue above-mentioned work, if think that image is clear, then send automatic focusing the finish command to control device;
Described control device is used for after the automatic focusing initiation command receiving the transmission of infrared image processing device, drive motor drives focusing eyeglass to move along a direction with the step-length that system initialization is arranged, when arriving focusing extreme position, control device reverse drive focusing eyeglass moves to another way, if stop drive motor work after performing the automatic focusing the finish command receiving the transmission of infrared image processing device in automatic focusing command procedure, focusing lens are made to rest on the position of clear picture, when control device drives the focusing lens automatic focusing that a mobile circulation does not receive the transmission of infrared image processing device yet in focusing range to cease and desist order, control device sends automatic focusing to infrared image processing device and unsuccessfully orders, described control device is two extreme positions adopting Hall device location focusing lens, and control device judges whether by the level value of induction correspondence position Hall device the position that reaches capacity.
5. the automatic focusing system based on infrared image according to claim 4, is characterized in that: described infrared image processing device judges whether image reaches sharpness by the method for computed image gradient.
6. the automatic focusing system based on infrared image according to claim 4, it is characterized in that: described infrared image processing device adopts the mode of software counter to realize the overtime control of automatic focusing algorithm, when sharpness decision rule does not still provide clear position judgment within the time set, infrared image processing device stops sharpness and judges to calculate, and notifies that control device quits work.
7. the automatic focusing system based on infrared image according to claim 4, it is characterized in that: described automatic focusing system also comprises storer, this storer is connected with the output terminal of control device, for storing the location parameter of automatic focusing.
CN201210538743.5A 2012-12-12 2012-12-12 A kind of automatic focusing method based on infrared image and system Active CN103018881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210538743.5A CN103018881B (en) 2012-12-12 2012-12-12 A kind of automatic focusing method based on infrared image and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210538743.5A CN103018881B (en) 2012-12-12 2012-12-12 A kind of automatic focusing method based on infrared image and system

Publications (2)

Publication Number Publication Date
CN103018881A CN103018881A (en) 2013-04-03
CN103018881B true CN103018881B (en) 2016-01-27

Family

ID=47967680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210538743.5A Active CN103018881B (en) 2012-12-12 2012-12-12 A kind of automatic focusing method based on infrared image and system

Country Status (1)

Country Link
CN (1) CN103018881B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301601B (en) * 2013-11-27 2017-11-03 中国航空工业集团公司洛阳电光设备研究所 The infrared image automatic focusing method that a kind of coarse-fine tune is combined
CN104363373B (en) * 2014-11-06 2017-08-04 中国航空工业集团公司洛阳电光设备研究所 A kind of infrared image automatic focusing system and method based on NiosII
CN105915870A (en) * 2015-12-30 2016-08-31 乐视致新电子科技(天津)有限公司 Automatic focusing apparatus and method of projector
CN106125246A (en) * 2016-07-19 2016-11-16 湖北三江航天红峰控制有限公司 A kind of from the method seeking laser focal plane
CN106911921B (en) * 2017-05-12 2019-01-22 安徽大学 The infrared touch-control of projector and Atomatic focusing method based on single camera
CN107635094A (en) * 2017-09-20 2018-01-26 宁波舜宇红外技术有限公司 Infrared lens focus control and focus adjustment method
CN108107541A (en) * 2017-11-23 2018-06-01 北京环境特性研究所 It is a kind of based on the infrared optical system of image procossing without thermalization compensation method and device
CN109991714A (en) * 2018-01-03 2019-07-09 深圳光峰科技股份有限公司 Atomatic focusing method, autofocus system and projection device
CN110505407B (en) * 2019-09-04 2021-02-12 烟台艾睿光电科技有限公司 Lens focusing method, device and equipment of infrared imaging equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101261353A (en) * 2007-03-06 2008-09-10 三星电子株式会社 Autofocus method for a camera
CN101329493A (en) * 2007-06-19 2008-12-24 三星电子株式会社 Auto focus apparatus and method for camera

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4022828B2 (en) * 2003-06-30 2007-12-19 カシオ計算機株式会社 Imaging apparatus, autofocus control method, and autofocus control program
JP5011793B2 (en) * 2006-04-05 2012-08-29 株式会社ニコン Lens barrel and imaging device
JP4127297B2 (en) * 2006-06-09 2008-07-30 ソニー株式会社 IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP5704699B2 (en) * 2011-02-22 2015-04-22 株式会社タムロン Rear focus adjustment system for infrared camera and rear focus adjustment method for infrared camera

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101261353A (en) * 2007-03-06 2008-09-10 三星电子株式会社 Autofocus method for a camera
CN101329493A (en) * 2007-06-19 2008-12-24 三星电子株式会社 Auto focus apparatus and method for camera

Also Published As

Publication number Publication date
CN103018881A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN103018881B (en) A kind of automatic focusing method based on infrared image and system
EP4024848A1 (en) Information collection device and method, inspection robot and storage medium
US11852958B2 (en) Gimbal control method, device, and gimbal
CN108890652B (en) Transformer substation inspection robot and transformer substation equipment inspection method
CN104301601A (en) Coarse tuning and fine tuning combined infrared image automatic focusing method
CN203324017U (en) Performance test system for camera VCM motor
CN104301609A (en) Camera rotating control method used for mobile terminal and mobile terminal
TWI668993B (en) Control method, control device and electronic apparatus
WO2018209863A1 (en) Intelligent moving method and device, robot and storage medium
CN109612689B (en) Optical fiber end face detection method and system
CN109676602B (en) Self-adaptive calibration method, system, equipment and storage medium of walking robot
CN102981347A (en) Automatic SUSAN focusing method for video monitoring system
CN110413011B (en) Binocular holder control method and device and storage medium
CN106125246A (en) A kind of from the method seeking laser focal plane
CN106657777A (en) Automatic focusing method and system for infrared thermal imager
CN109242762A (en) Image-recognizing method, device, storage medium and electronic equipment
CN104639894A (en) Image focusing method and device for surveillance camera
CN111491096A (en) Automatic image acquisition system, method, device and storage medium
CN204697170U (en) A kind of autofocus system and video monitoring equipment
JP2015194809A (en) Information processing apparatus, method, and program
CN108509072B (en) The method, apparatus, equipment and computer readable storage medium of coordinate anti-trembling on screen
CN104980663B (en) The control method and device of Image Acquisition rapid focus
CN105759390A (en) Automatic positioning and placing apparatus and method for fiber
WO2022105575A1 (en) Image processing method and related device
CN105159157B (en) Video auxiliary system for industry mechanical arm remote control

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant