Double-view field thermal imaging system intelligent control system and method
Technical field
The present invention relates to a kind of double-view field thermal imaging system intelligent control system and method, in particular, particularly relate to a kind of to double-view field thermal imaging system can carry out quick and precisely visual field switch, environmentally temperature variation carry out double-view field thermal imaging system intelligent control system and the method for focal position intelligent compensation.
Background technology
Infrared ray because of its wavelength long, by Human Perception, invisible light cannot be belonged to.As a part for electromagnetic spectrum, our its temperature detectable.As long as the temperature of object will outside radiations heat energy more than absolute zero.Thermal imaging is a kind of by using infrared imaging measuring instrument " to check " or the technology of " measurement " object radiation heat energy.The infrared ray sent from object focuses on by the infrared optical lens on thermal imaging detector.Detector sends information to sensor electronics, to carry out image procossing.The data that detector is sent by electronic component are translated into the image can checked on view finder or standard video monitors.Infrared acquisition is particularly useful for the target detection under night and bad-weather condition, has certain to penetrate the abilities such as cigarette, mist, haze, snow, can realize remote, round-the-clock observation, be widely used in the fields such as national defence, industry, medical treatment, safety monitoring.
Double-view field thermal imaging system can realize the target search aiming of Large visual angle and the tracking of small field of view, compared with monoscopic thermal imaging system, and complete function, application is convenient, can meet multiple MODE of operation; Compared with continuous zoom thermal imaging system, cost of development is low, and the design cycle is short, and optical system is simpler and more direct, practical.
In actual applications, double-view field thermal imaging system, when carrying out visual field and switching, requires quick and precisely, to meet the search of target and the requirement of catching.When larger change occurs environment temperature, because infrared eyeglass self character, focal position can offset, and causes imaging clear not, affects monitoring effect.
Summary of the invention
The present invention, in order to overcome the shortcoming of above-mentioned technical matters, provides a kind of double-view field thermal imaging system intelligent control system and method.
Double-view field thermal imaging system intelligent control system of the present invention, comprise infrared lens, thermal imaging detector, microprocessor, order about the stepper motor of infrared lens motion, detect the limit switch of infrared lens reference position, infrared ray in infrared lens acquisition field of view, light signal is converted into electric signal by thermal imaging detector, and limit switch is connected with the input end of microprocessor; It is characterized in that: described microprocessor orders about stepper motor work by motor-drive circuit, the input end of microprocessor is connected with the photoelectric encoder gathering stepper motor motion state; Microprocessor is also connected with the temperature sensor for gathering ambient temperature.
Extraneous infrared ray is entered by infrared lens, and light signal is converted into electric signal by thermal imaging detector, and can form vision signal and export.Microprocessor has the effect that signals collecting, data operation and control export, and microprocessor orders about stepper motor by motor-drive circuit and rotates, and stepper motor drives infrared lens to move.By limit switch, microprocessor can detect whether infrared lens is in reference position, can know the positional information residing for infrared lens by photoelectric encoder.Extraneous environment temperature can be recorded, to carry out position compensation according to the ambient temperature value in the external world, to obtain clear, infrared image accurately by temperature sensor.
Double-view field thermal imaging system intelligent control system of the present invention, described microprocessor controls the imaging parameters of thermal imaging detector by RS232 driving circuit; Microprocessor is connected with host computer by RS485 driving circuit.Microprocessor controls the parameter of thermal imaging detector by RS232 driving circuit, as the regulation and control that contrast, brightness, pseudo-colours, image detail strengthen.Realize, with the communication of host computer, the status information of current system to be fed back to host computer, as field conditions, lens location, environment temperature and parameter detector, with the running status facilitating staff to grasp system in real time by RS485 driving circuit.
Double-view field thermal imaging system intelligent control system of the present invention, described microprocessor is connected with the eeprom memory stored for data.
The control method of double-view field thermal imaging system intelligent control system of the present invention, is characterized in that, comprise the following steps:
A). detect limit switch state, after system electrification, microprocessor, by the state of detectability bit switch, judges whether infrared lens is in reference position, if the reference position of being in, then performs step c); If be not in reference position, then perform step b); B). move to reference position, stepper motor rotates forward and orders about infrared lens and move to reference position, performs step c); C). determine Large visual angle distance, microprocessor reads the data message of Large visual angle from eeprom memory, and determines the distance of Large visual angle and infrared lens reference position
; D). move to Large visual angle position, stepper motor rotates backward and orders about infrared lens motion, when the positional information of the infrared lens that photoelectric encoder exports being detected
with
time equal, then show that infrared lens has moved to Large visual angle position; E). judge whether to carry out visual field switching, judge whether the instruction switching to small field of view from Large visual angle receiving host computer transmission, if received, perform step f); If do not received, then continue to wait for; F). determine field positions and temperature, obtain the field of regard position needing to be switched to
, and gather extraneous temperature by temperature sensor
; G). obtain reference temperature, microprocessor reads reference temperature from eeprom memory
; H). judge whether to need position compensation, if
for temperature variation benchmark, judge
with
magnitude relationship, if
>
, then show that ambient temperature change has exceeded change benchmark, need the compensation carrying out focal position, perform step j); If
≤
, then show that ambient temperature change is in change reference range, without the need to carrying out the compensation of focal position, performs step I); I). switch to small field of view position, microcontroller orders about infrared lens to small field of view position by stepper motor
motion, when the output information of photoelectric encoder being detected
=
, stop the rotation of stepper motor, now switched to small field of view position; J). determine focus offset, if
for positive number, then need forward compensating focusing position, according to
size from eeprom memory, read focus offset
, perform step k); If
for negative, then need Contrary compensation focal position, according to
size from EEPROM, read focus offset
, perform step l); K). forward compensates, and microcontroller orders about infrared lens motion, when the output information of photoelectric encoder being detected by stepper motor
=
time, stop the rotation of stepper motor, the visual field switching that band forward position compensates puts in place; L). Contrary compensation, microcontroller orders about infrared lens motion, when the output information of photoelectric encoder being detected by stepper motor
=
-
time, stop the rotation of stepper motor, the visual field switching that band reverse position compensates puts in place.
Step a) for whether to be in reference position by the condition adjudgement infrared lens of limit switch, if not being in reference position then by step b) adjust; Step c) for determining the distance of Large visual angle and reference position
.Steps d) by gathering the infrared lens positional information that photoelectric encoder exports, moved to Large visual angle position.Step e) for judging whether the visual field switching command receiving host computer transmission, as do not received, continue to wait for.Step h) in, by judging ambient temperature
with reference temperature
the absolute value of difference and temperature variation benchmark
size determine whether the compensation that needs to carry out focal position; When
>
, illustrate that the reference temperature difference stored in ambient temperature and system is comparatively large, in infrared lens, the focal length of eyeglass there occurs larger change, needs to carry out position compensation; When
≤
, illustrate that in infrared lens, the focal length variations of eyeglass is not obvious, without the need to carrying out position compensation.Step j) in, because infrared optical system has obvious thermal effect, during temperature variation, refractive index can have greatly changed, in addition the expanding with heat and contract with cold of lens barrel, and this will affect the imaging performance of optical system, need carry out the compensation of focal position.
The control method of double-view field thermal imaging system intelligent control system of the present invention, described steps d) in also comprise the focal position compensation process of Large visual angle: d-1). gather ambient temperature, gather extraneous temperature by temperature sensor
; D-2). obtain reference temperature, microprocessor reads reference temperature from eeprom memory
; D-3). judge whether to need position compensation, judge
with
magnitude relationship, if
>
, then show that ambient temperature change has exceeded change benchmark, need the compensation carrying out focal position, perform steps d-4); If
≤
, then show that ambient temperature change is in change reference range, without the need to carrying out the compensation of focal position, performs step e); D-4). determine focus offset, if
for positive number, then need forward compensating focusing position, according to
size from EEPROM, read focus offset
, perform steps d-5); If
for negative, then need Contrary compensation focal position, according to
size from eeprom memory, read focus offset
, perform steps d-6); D-5). forward compensates, and microcontroller orders about infrared lens motion, when the output information of photoelectric encoder being detected by stepper motor
=
time, stop the rotation of stepper motor, show that the forward position of Large visual angle has compensated; D-6). Contrary compensation, microcontroller orders about infrared lens motion, when the output information of photoelectric encoder being detected by stepper motor
=
-
time, stop the rotation of stepper motor, show that the reverse position of Large visual angle has compensated.
The invention has the beneficial effects as follows: double-view field thermal imaging system intelligent control system of the present invention and control method, microcontroller drives infrared lens to rotate by stepper motor, and gather the information of photoelectric encoder, infrared lens is accurately located, realizes accurately switching fast of visual field.The situation of change of environment temperature relative to reference temperature is judged by temperature sensor, coordinate data in eeprom memory, the change of lens focus position under calculating acquisition condition of different temperatures, Driving Stepping Motor realizes the intelligent compensation to lens location, can guarantee high-quality blur-free imaging all the time.
Double-view field thermal imaging system intelligent control system of the present invention has following characteristics: (1) is accurately reliable, stable, and the control system of the double-view field or many visual fields infrared lens that can be used as all size uses.(2) applying flexible, simple to operation, meet visual field and switch fast and can carry out the requirement such as finely tuning.(3) under different ambient temperature conditions, can Intelligent adjustment lens focus position voluntarily, without the need to artificial setting, intelligent and high-efficiency, accurately and reliably.Weaponry can be widely used in, scout the numerous areas such as monitoring, personnel's search and rescue.
Accompanying drawing explanation
Fig. 1 is the circuit theory diagrams of double-view field thermal imaging system intelligent control system of the present invention;
Fig. 2 is the control method process flow diagram of double-view field thermal imaging system intelligent control system of the present invention.
In figure: 1 limit switch, 2 microprocessors, 3EEPROM storer, 4RS232 driving circuit, 5 stepper motors, 6 motor-drive circuits, 7RS485 driving circuit, 8 photoelectric encoders, 9 temperature sensors, 10 thermal imaging detectors, 11 infrared lens, 12 host computers.
Embodiment
Below in conjunction with accompanying drawing and embodiment, the invention will be further described.
As shown in Figure 1, give the circuit theory diagrams of double-view field thermal imaging system intelligent control system of the present invention, it comprises microprocessor 2, infrared lens 11, thermal imaging detector 10, limit switch 1, stepper motor 5, motor-drive circuit 6, photoelectric encoder 8, eeprom memory 3, temperature sensor 9; Microcontroller has collection, computing and control action, and the infrared ray that external object sends is entered by infrared lens 11, and thermal imaging detector 10, for light signal is converted into electric signal, can forms vision signal and export.Whether limit switch 1 is in initial position for detecting infrared lens 11, if limit switch 1 when infrared lens 11 is positioned at initial position is low level, then, when microcontroller detects limit switch 1 for low level state, can know that infrared lens 11 is in initial position.Microcontroller 2 can gather extraneous real-time temperature values by temperature sensor 9, to be determined whether by the temperature in the external world to need to carry out position compensation to thermal imaging system, and the size of position compensation numerical value.
Microcontroller 2 orders about stepper motor 5 by motor-drive circuit 6 and carries out work, drives infrared lens 11 to move to make stepper motor 5.Photoelectric encoder 8 for measuring the motion state of stepper motor 5, to reflect the positional information of infrared lens 11.Eeprom memory 3 is for the storage of relevant data and parameter.Microcontroller 2 is connected with thermal imaging detector 10 by RS232 driving circuit 4, to control the parameter of thermal imaging detector, as the regulation and control that contrast, brightness, pseudo-colours, image detail strengthen.Microprocessor 2 is connected with host computer 12 by RS485 driving circuit 7, to realize the communication with host computer 12, the status information of current system can be fed back to host computer, as field conditions, lens location, environment temperature and parameter detector, with the running status facilitating staff to grasp system in real time.
As shown in Figure 2, give the process flow diagram of the control method of double-view field thermal imaging system intelligent control system of the present invention, it can be realized by following steps:
A). detect limit switch state, after system electrification, microprocessor leads to the state that 2 cross detectability bit switch 1, judges whether infrared lens 11 is in reference position, if the reference position of being in, then performs step c); If be not in reference position, then perform step b);
B). move to reference position, stepper motor 5 rotates forward and orders about infrared lens 11 and move to reference position, performs step c);
C). determine Large visual angle distance, microprocessor 2 reads the data message of Large visual angle from eeprom memory 3, and determines the distance of Large visual angle and infrared lens 11 reference position
;
D). move to Large visual angle position, stepper motor 5 rotates backward and orders about infrared lens 11 and move, when the positional information of infrared lens 11 that photoelectric encoder 8 exports being detected
with
time equal, then show that infrared lens 11 has moved to Large visual angle position;
E). judge whether to carry out visual field switching, judge whether the instruction switching to small field of view from Large visual angle receiving host computer transmission, if received, perform step f); If do not received, then continue to wait for;
F). determine field positions and temperature, obtain the field of regard position needing to be switched to
, and gather extraneous temperature by temperature sensor 9
;
G). obtain reference temperature, microprocessor 2 reads reference temperature from eeprom memory 3
;
H). judge whether to need position compensation, if
for temperature variation benchmark, judge
with
magnitude relationship, if
>
, then show that ambient temperature change has exceeded change benchmark, need the compensation carrying out focal position, perform step j); If
≤
, then show that ambient temperature change is in change reference range, without the need to carrying out the compensation of focal position, performs step I);
I). switch to small field of view position, microcontroller 2 orders about infrared lens 11 to small field of view position by stepper motor 5
motion, when the output information of photoelectric encoder 8 being detected
=
, stop the rotation of stepper motor, now switched to small field of view position;
J). determine focus offset, if
for positive number, then need forward compensating focusing position, according to
size from eeprom memory, read focus offset
, perform step k); If
for negative, then need Contrary compensation focal position, according to
size from eeprom memory 3, read focus offset
, perform step l);
K). forward compensates, and microcontroller 2 orders about infrared lens 11 by stepper motor 5 and moves, when the output information of photoelectric encoder 8 being detected
=
time, stop the rotation of stepper motor 5, band forward position compensates visual field switching and puts in place;
L). Contrary compensation, microcontroller orders about infrared lens 11 by stepper motor 5 and moves, when the output information of photoelectric encoder 8 being detected
=
-
time, stop the rotation of stepper motor 5, the visual field switching that band reverse position compensates puts in place.
Wherein, steps d) in also can comprise the focal position compensation process of following Large visual angle:
D-1). gather ambient temperature, gather extraneous temperature by temperature sensor
;
D-2). obtain reference temperature, microprocessor reads reference temperature from eeprom memory
;
D-3). judge whether to need position compensation, judge
with
magnitude relationship, if
>
, then show that ambient temperature change has exceeded change benchmark, need the compensation carrying out focal position, perform steps d-4); If
≤
, then show that ambient temperature change is in change reference range, without the need to carrying out the compensation of focal position, performs step e);
D-4). determine focus offset, if
for positive number, then need forward compensating focusing position, according to
size from EEPROM, read focus offset
, perform steps d-5); If
for negative, then need Contrary compensation focal position, according to
size from eeprom memory, read focus offset
, perform steps d-6);
D-5). forward compensates, and microcontroller orders about infrared lens motion, when the output information of photoelectric encoder being detected by stepper motor
=
time, stop the rotation of stepper motor, show that the forward position of Large visual angle has compensated;
D-6). Contrary compensation, microcontroller orders about infrared lens motion, when the output information of photoelectric encoder being detected by stepper motor
=
-
time, stop the rotation of stepper motor, show that the reverse position of Large visual angle has compensated.
As shown in table 1, give the focal length of 30/90mm double-view field camera lens, rear cut-off distance variation with temperature tables of data, corresponding Large visual angle when focal length is 30mm, corresponding small field of view when focal length is 90mm; Data in table 1 are stored in eeprom memory 3, in order to calling.
Table 1
In the focal position compensation process of Large visual angle, small field of view, reference temperature
all be chosen for 20 DEG C,
5 DEG C can be chosen for.Due to the impact by temperature, 20 DEG C time, the focal length that Large visual angle is corresponding is 30.0012mm, rear cut-off distance is 18.912mm; Focal length corresponding to small field of view is 89.9991mm, rear cut-off distance is 18.912mm.In the process that focal position compensates, if collect extraneous temperature be-10 DEG C, then the focal length under Large visual angle becomes 29.9997mm, rear cut-off distance should be become 19.122mm, can realize the focal position compensation under Large visual angle; Focal length under small field of view becomes 89.2679mm, rear cut-off distance should be become 19.362mm, and the focal position that can realize under small field of view compensates.Similarly, corresponding focus-compensating method is adopted at different temperature; There is no the temperature recorded in table 1, adopts the temperature nearest with it to compensate, as 4 DEG C of employings, 0 DEG C of corresponding data, the data that 6 DEG C of employings 10 DEG C are corresponding.
Double-view field thermal imaging system intelligent control system of the present invention and method, by Driving Stepping Motor, coordinate and gather photoelectric encoder information, realize the quick and precisely switching of visual field; By temperature sensor, detect if variation of ambient temperature exceedes the reference range of specifying, then when carrying out visual field and switching, intelligent compensation can be carried out to lens focus position, guarantee that each view field imaging is clear, not by the impact of variation of ambient temperature.
Native system adopts high speed microprocessor, stable, complete function; Adopt high precision stepper motor and photoelectric encoder, fast and accurate for positioning, response in time rapidly; Adopt high-sensitivity temperature sensor, realize the accurate measurements to environment temperature; Adopt ripe motor driving, RS232 and RS485 driving circuit, stable and reliable operation.Programmed control is short and sweet, and system features in convenient is quick, effectively can ensure the round-the-clock stable operation of double-view field thermal imaging system at complicated applications environment.