CN114295108A - A ranging method and system for external equipment and infrared telescopes - Google Patents
A ranging method and system for external equipment and infrared telescopes Download PDFInfo
- Publication number
- CN114295108A CN114295108A CN202111554027.1A CN202111554027A CN114295108A CN 114295108 A CN114295108 A CN 114295108A CN 202111554027 A CN202111554027 A CN 202111554027A CN 114295108 A CN114295108 A CN 114295108A
- Authority
- CN
- China
- Prior art keywords
- infrared
- target
- telescope
- image
- detection model
- 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
Links
- 238000000034 method Methods 0.000 title abstract description 35
- 238000001514 detection method Methods 0.000 abstract description 110
- 238000012549 training Methods 0.000 abstract description 55
- 239000011521 glass Substances 0.000 abstract description 22
- 238000003331 infrared imaging Methods 0.000 abstract description 13
- 238000002372 labelling Methods 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 21
- 230000008676 import Effects 0.000 description 20
- 230000008569 process Effects 0.000 description 13
- 210000001525 retina Anatomy 0.000 description 11
- 238000013480 data collection Methods 0.000 description 9
- 238000012937 correction Methods 0.000 description 5
- 230000003416 augmentation Effects 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 239000003086 colorant Substances 0.000 description 3
- 238000013527 convolutional neural network Methods 0.000 description 3
- 238000013135 deep learning Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000000691 measurement method Methods 0.000 description 3
- 241000282326 Felis catus Species 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000011176 pooling Methods 0.000 description 2
- 238000011897 real-time detection Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Optical Radar Systems And Details Thereof (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种测距系统,尤其涉及一种基于外部设备及红外望远镜测距方法及系统。The invention relates to a ranging system, in particular to a ranging method and system based on an external device and an infrared telescope.
背景技术Background technique
红外摄像机是一种接收景物本身发出或反射的红外光线,到达对景物成像目的的电子设备。红外望远镜是将小型化红外摄像机、电子显示屏幕和电池模块集成在集成后,能将即时的红外画面传递给用户的观测产品。由于红外图像能够分辨不同温度的目标,并不受环境光的影响,因此常用于野外打猎、警用侦察等领域,尤其是夜间应用。当用户需要获得被观测目标的距离值时,可以使用物理测距和图像测距两种方式。物理测距是通过在红外望远镜上集成一个光学测距模组,通过计算发射光束和反射光束之间的时间差,获得目标的距离,物理测距会增加红外望远镜的体积、重量、功耗和成本,所以图像测距更具有优势;图像测距是不借助其他设备,利用红外图像直接获得目标距离的方法,常见的图像测距方法分为手动测量法和网格对比法。手动测量方法是通过在屏幕上人工标注目标的上下边界,并输入目标的类型或物理高度值,系统通过计算能够得出目标的距离值;网格对比法是在电子显示屏幕上叠加水平或垂直的刻度,选择目标的类型后,在屏幕上显示该目标在不同距离下所占刻度值的大小,通过目标实际所占刻度值与理论值进行对比,能获得目标距离的估计值。An infrared camera is an electronic device that receives infrared light emitted or reflected by the scene itself and reaches the purpose of imaging the scene. The infrared telescope is an observation product that integrates a miniaturized infrared camera, an electronic display screen and a battery module, and can transmit an instant infrared image to the user. Because infrared images can distinguish targets of different temperatures and are not affected by ambient light, they are often used in fields such as field hunting and police reconnaissance, especially at night. When the user needs to obtain the distance value of the observed target, two methods of physical ranging and image ranging can be used. Physical ranging is to integrate an optical ranging module on the infrared telescope, and obtain the distance of the target by calculating the time difference between the emitted beam and the reflected beam. Physical ranging will increase the size, weight, power consumption and cost of the infrared telescope. , so image ranging is more advantageous; image ranging is a method of directly obtaining the target distance by using infrared images without the aid of other equipment. Common image ranging methods are divided into manual measurement method and grid comparison method. The manual measurement method is to manually mark the upper and lower boundaries of the target on the screen, and input the type or physical height value of the target, and the system can calculate the distance value of the target; the grid comparison method is to superimpose horizontal or vertical on the electronic display screen. After selecting the type of target, the size of the scale value occupied by the target at different distances is displayed on the screen, and the estimated value of the target distance can be obtained by comparing the actual scale value occupied by the target with the theoretical value.
网格对比法无法精确地获得目标的距离值,距离估计的误差较大;手动测量方法操作复杂,缺乏实时性,特别对于运动目标的测距难度很大。The grid comparison method cannot accurately obtain the distance value of the target, and the error of distance estimation is large; the manual measurement method is complicated in operation and lacks real-time performance, especially for moving targets, which is very difficult to measure.
发明内容SUMMARY OF THE INVENTION
本发明解决的技术问题是:构建一种红外望远镜测距方法及系统,克服现有技术的红外望远镜测距操作复杂、测距误差较大的技术问题。The technical problem solved by the invention is: constructing an infrared telescope ranging method and system to overcome the technical problems of complicated ranging operation and large ranging error of the infrared telescope in the prior art.
本发明的技术方案是:构建一种红外望远镜测距方法,不同曲率以及不同折射率的红外玻璃镜片在红外望远镜中的同一轴线上排列形成红外成像镜头,红外感光单元设置成非制冷红外焦平面阵列形成红外望远镜中的红外探测器,其特征在于,包括以下步骤:The technical scheme of the present invention is as follows: constructing a distance measuring method for an infrared telescope, infrared glass lenses with different curvatures and different refractive indices are arranged on the same axis in the infrared telescope to form an infrared imaging lens, and the infrared photosensitive unit is set as an uncooled infrared focal plane The array forms an infrared detector in an infrared telescope, which is characterized by comprising the following steps:
模型导入:针对所使用的红外望远镜嵌入式硬件平台,将训练检测模型转换成与嵌入式平台匹配的格式后,红外望远镜的嵌入式系统导入训练检测模型;所述训练检测模型根据目标外形特征以及目标的红外图像在外部设备建立形成;Model import: for the infrared telescope embedded hardware platform used, after the training detection model is converted into a format matching the embedded platform, the infrared telescope embedded system imports the training detection model; the training detection model is based on the target shape characteristics and The infrared image of the target is established and formed in an external device;
目标检测:红外望远镜获得红外图像后,进入所述训练检测模型,获得红外图像中的目标类别和覆盖目标整体的矩形框;Target detection: After the infrared telescope obtains the infrared image, it enters the training detection model to obtain the target category in the infrared image and the rectangular frame covering the entire target;
目标测距:根据预设待测目标的高度、目标人或物在画面中的像素高度、已知红外望远镜的镜头焦距和探测器像元尺寸,计算出目标和观察者之间的距离;Target ranging: Calculate the distance between the target and the observer according to the preset height of the target to be measured, the pixel height of the target person or object in the screen, the known focal length of the infrared telescope and the pixel size of the detector;
图像标识:获得当前目标距离形成目标距离标识;Image identification: obtain the current target distance to form the target distance identification;
观测展示:通过不同外形不同折射率的红外可见光玻璃镜片排列形成的目镜,将电子显示屏上的图像投射到人眼视网膜上。Observation display: The image on the electronic display screen is projected onto the retina of the human eye through an eyepiece formed by arranging infrared and visible glass lenses with different shapes and different refractive indices.
本发明的进一步技术方案是:根据预设待测目标的高度h0,目标人或物在画面中的像素高度为q、已知红外望远镜的镜头焦距f和探测器像元尺寸d,可通过以下公式计算出目标人或物当前和观察者之间的距离L:A further technical solution of the present invention is: according to the preset height h 0 of the target to be measured, the pixel height of the target person or object in the picture is q, the focal length f of the lens of the infrared telescope and the size d of the detector pixel are known, which can be obtained by The following formula calculates the distance L between the target person or object and the observer:
本发明的进一步技术方案是:将获取的当前目标的类别形成类别标识,将目标类别标识和距离标识以屏幕菜单的方式叠加在红外图像上。A further technical solution of the present invention is: forming the category identification of the acquired current target category, and superimposing the target category identification and the distance identification on the infrared image in the form of an on-screen menu.
本发明的技术方案是:提供一种基于外部设备训练的红外望远镜测距方法,The technical scheme of the present invention is to provide an infrared telescope ranging method based on external equipment training,
在外部设备中完成训练检测模型的建立,包括如下步骤:Complete the establishment of the training detection model in the external device, including the following steps:
确定待测目标类别:将待测目标根据目标外形特征进行分类;Determine the category of the target to be measured: classify the target to be measured according to the shape characteristics of the target;
红外图像数据采集:通过红外图像拍摄设备拍摄获得待测目标的红外图像,将多种类别的目标图像形成红外图像数据采集;Infrared image data acquisition: The infrared image of the target to be measured is obtained by shooting the infrared image shooting equipment, and the infrared image data collection is formed by various types of target images;
数据集标定:获得红外数据集后,完成对红外图像中待测目标的标定,标定内容包括每一个待测目标所属类别以及能覆盖目标整体的矩形框;Data set calibration: After obtaining the infrared data set, the calibration of the target to be measured in the infrared image is completed. The calibration content includes the category of each target to be measured and the rectangular frame that can cover the entire target;
训练检测模型:建立检测模型,将标定后的数据作为输入数据,得到完整的模型参数;Training detection model: establish a detection model, use the calibrated data as input data, and obtain complete model parameters;
在红外望远镜中进行测距,包括如下步骤:Ranging in an infrared telescope includes the following steps:
模型导入:针对所使用的红外望远镜嵌入式硬件平台,将训练检测模型转换成与嵌入式平台匹配的格式后,红外望远镜的嵌入式系统导入训练检测模型;Model import: For the infrared telescope embedded hardware platform used, after the training detection model is converted into a format matching the embedded platform, the infrared telescope embedded system imports the training detection model;
目标检测:红外望远镜获得红外图像后,进入所述训练检测模型,获得红外图像中的目标类别和覆盖目标整体的矩形框;Target detection: After the infrared telescope obtains the infrared image, it enters the training detection model to obtain the target category in the infrared image and the rectangular frame covering the entire target;
目标测距:根据预设待测目标的高度、目标人或物在画面中的像素高度、已知红外望远镜的镜头焦距和探测器像元尺寸,计算出目标和观察者之间的距离;Target ranging: Calculate the distance between the target and the observer according to the preset height of the target to be measured, the pixel height of the target person or object in the screen, the known focal length of the infrared telescope and the pixel size of the detector;
图像标识:获得当前目标距离形成目标距离标识;Image identification: obtain the current target distance to form the target distance identification;
观测展示:通过不同外形不同折射率的红外可见光玻璃镜片排列形成的目镜,将电子显示屏上的图像投射到人眼视网膜上。Observation display: The image on the electronic display screen is projected onto the retina of the human eye through an eyepiece formed by arranging infrared and visible glass lenses with different shapes and different refractive indices.
本发明的进一步技术方案是:所述红外图像数据采集中的红外图像分为样本红外图像和背景红外图像。A further technical solution of the present invention is that: the infrared image in the infrared image data acquisition is divided into a sample infrared image and a background infrared image.
本发明的进一步技术方案是:数据集标定后,对红外数据集进行增广,通过原始红外数据样本生成新的红外数据样本,红外数据样本增广包括单图处理和多图处理。The further technical scheme of the present invention is: after the data set is calibrated, the infrared data set is augmented, and a new infrared data sample is generated by the original infrared data sample, and the infrared data sample augmentation includes single image processing and multi-image processing.
本发明的技术方案是:构建一种红外望远镜测距系统,包括红外成像镜头、红外探测器、嵌入式处理器模块、电子显示屏,目镜模块,不同曲率以及不同折射率的红外玻璃镜片在红外望远镜中的同一轴线上排列形成红外成像镜头,红外感光单元设置成非制冷红外焦平面阵列形成红外望远镜中的红外探测器,所述嵌入式处理器模块包括目标检测模块、目标测距模块、图像标识模块,针对所使用的红外望远镜嵌入式硬件平台,将训练检测模型转换成与嵌入式平台匹配的格式后,红外望远镜的嵌入式系统导入训练检测模型;所述训练检测模型根据目标外形特征以及目标的红外图像在外部设备建立形成,红外望远镜获得红外图像后,进入所述训练检测模型,所述目标检测模块获得红外图像中的目标类别和覆盖目标整体的矩形框,所述目标测距模块根据预设待测目标的高度、目标人或物在画面中的像素高度、已知红外望远镜的镜头焦距和探测器像元尺寸,计算出目标和观察者之间的距离,所述图像标识模块获得当前目标距离形成目标距离标识,不同外形不同折射率的红外可见光玻璃镜片排列形成的目镜模块,所述目镜模块将电子显示屏上的图像投射到人眼视网膜上。The technical scheme of the present invention is to construct an infrared telescope ranging system, including an infrared imaging lens, an infrared detector, an embedded processor module, an electronic display screen, an eyepiece module, and infrared glass lenses with different curvatures and different refractive indices in the infrared The infrared imaging lens is arranged on the same axis in the telescope, and the infrared photosensitive unit is arranged as an uncooled infrared focal plane array to form an infrared detector in the infrared telescope. The embedded processor module includes a target detection module, a target ranging module, an image The identification module, for the infrared telescope embedded hardware platform used, converts the training detection model into a format matching the embedded platform, and imports the training detection model into the infrared telescope embedded system; the training detection model is based on the target shape characteristics and The infrared image of the target is established and formed by external equipment. After the infrared telescope obtains the infrared image, it enters the training detection model. The target detection module obtains the target category in the infrared image and the rectangular frame covering the entire target. The target ranging module According to the preset height of the target to be measured, the pixel height of the target person or object in the picture, the known focal length of the infrared telescope and the pixel size of the detector, the distance between the target and the observer is calculated, and the image identification module The current target distance is obtained to form a target distance identifier, and an eyepiece module is formed by arranging infrared and visible glass lenses with different shapes and different refractive indices. The eyepiece module projects the image on the electronic display screen onto the retina of the human eye.
本发明的进一步技术方案是:所述目镜模块通过镜片位置调整机构,改变其中一片或多片可见光玻璃镜片的位置,从而改变电子显示屏的虚像位置。A further technical solution of the present invention is that the eyepiece module changes the position of one or more visible light glass lenses through the lens position adjustment mechanism, thereby changing the virtual image position of the electronic display screen.
本发明的进一步技术方案是:还包括接口管理单元,所述接口管理单元管理红外探测器信号的接收、按键模块I/O信号的接收和向电子显示屏的数据输出。A further technical solution of the present invention is: further comprising an interface management unit, the interface management unit manages the reception of infrared detector signals, the reception of I/O signals of the key module, and the data output to the electronic display screen.
本发明的进一步技术方案是:还包括非均匀校正模块,所述非均匀校正模块采用嵌入式处理器模块对所述红外探测器的阵列数字信号进行非均匀校正以校正所述红外探测器感光单元的温度响应率。A further technical solution of the present invention is: further comprising a non-uniform correction module, the non-uniform correction module adopts an embedded processor module to perform non-uniform correction on the array digital signal of the infrared detector to correct the photosensitive unit of the infrared detector temperature response rate.
本发明的技术方案是:构建一种基于外部设备的红外望远镜测距系统,其特征在于,包括外部设备、红外望远镜,所述外部设备包括训练检测模型生成模块,所述训练检测模型生成模块在生成检测模型过程中,将待测目标根据目标外形特征进行分类,通过红外图像拍摄设备拍摄获得待测目标的红外图像,将多种类别的目标图像形成红外图像数据采集,获得红外数据集后,完成对红外图像中待测目标的标定,标定内容包括每一个待测目标所属类别以及能覆盖目标整体的矩形框,建立检测模型,将标定后的数据作为输入数据,得到完整的模型参数;所述红外望远镜包括:红外成像镜头、红外探测器、嵌入式处理器模块、电子显示屏,目镜模块,不同曲率以及不同折射率的红外玻璃镜片在红外望远镜中的同一轴线上排列形成红外成像镜头,红外感光单元设置成非制冷红外焦平面阵列形成红外望远镜中的红外探测器,所述嵌入式处理器模块包括目标检测模块、目标测距模块、图像标识模块,针对所使用的红外望远镜嵌入式硬件平台,将训练检测模型转换成与嵌入式平台匹配的格式后,红外望远镜的嵌入式系统导入训练检测模型,红外望远镜获得红外图像后,进入所述训练检测模型,所述目标检测模块获得红外图像中的目标类别和覆盖目标整体的矩形框,所述目标测距模块根据预设待测目标的高度、目标人或物在画面中的像素高度、已知红外望远镜的镜头焦距和探测器像元尺寸,计算出目标和观察者之间的距离,所述图像标识模块获得当前目标距离形成目标距离标识,不同外形不同折射率的红外可见光玻璃镜片排列形成的目镜模块,所述目镜模块将电子显示屏上的图像投射到人眼视网膜上。The technical scheme of the present invention is to construct an infrared telescope ranging system based on external equipment, which is characterized in that it includes external equipment and an infrared telescope, and the external equipment includes a training detection model generation module, and the training detection model generation module is in In the process of generating the detection model, the target to be tested is classified according to the shape characteristics of the target, and the infrared image of the target to be tested is obtained by shooting with an infrared image shooting device, and various types of target images are formed into infrared image data collection, and after obtaining the infrared data set, The calibration of the target to be measured in the infrared image is completed. The calibration content includes the category of each target to be measured and the rectangular frame that can cover the entire target. A detection model is established, and the calibrated data is used as input data to obtain complete model parameters; The infrared telescope includes: an infrared imaging lens, an infrared detector, an embedded processor module, an electronic display screen, an eyepiece module, and infrared glass lenses with different curvatures and different refractive indices are arranged on the same axis in the infrared telescope to form an infrared imaging lens, The infrared photosensitive unit is arranged as an uncooled infrared focal plane array to form an infrared detector in the infrared telescope, and the embedded processor module includes a target detection module, a target ranging module, and an image identification module. Platform, after converting the training detection model into a format matching the embedded platform, the embedded system of the infrared telescope imports the training detection model, after the infrared telescope obtains the infrared image, it enters the training detection model, and the target detection module obtains the infrared image The target category and the rectangular frame covering the entire target, the target ranging module is based on the preset height of the target to be measured, the pixel height of the target person or object in the picture, the known focal length of the infrared telescope and the detector pixel. Size, calculate the distance between the target and the observer, the image identification module obtains the current target distance to form the target distance identification, and the eyepiece module formed by arranging infrared and visible glass lenses with different shapes and different refractive indices, the eyepiece module will electronically display The image on the screen is projected onto the retina of the human eye.
本发明的技术效果是:构建一种基于外部设备训练的红外望远镜测距方法及系统,不同曲率以及不同折射率的红外玻璃镜片在红外望远镜中的同一轴线上排列形成红外成像镜头,红外感光单元设置成非制冷红外焦平面阵列形成红外望远镜中的红外探测器,在外部设备中完成训练检测模型的建立,包括如下步骤:确定待测目标类别:将待测目标根据目标外形特征进行分类;红外图像数据采集:通过红外图像拍摄设备拍摄获得待测目标的红外图像,将多种类别的目标图像形成红外图像数据采集;数据集标定:获得红外数据集后,完成对红外图像中待测目标的标定,标定内容包括每一个待测目标所属类别以及能覆盖目标整体的矩形框;训练检测模型:建立检测模型,将标定后的数据作为输入数据,得到完整的模型参数;在红外望远镜中进行测距,包括如下步骤:模型导入:针对所使用的红外望远镜嵌入式硬件平台,将训练检测模型转换成与嵌入式平台匹配的格式后,红外望远镜的嵌入式系统导入训练检测模型;目标检测:红外望远镜获得红外图像后,进入所述训练检测模型,获得红外图像中的目标类别和覆盖目标整体的矩形框;目标测距:根据预设待测目标的高度、目标人或物在画面中的像素高度、已知红外望远镜的镜头焦距和探测器像元尺寸,计算出目标和观察者之间的距离;图像标识:获得当前目标距离形成目标距离标识;观测展示:通过不同外形不同折射率的红外可见光玻璃镜片排列形成的目镜,将电子显示屏上的图像投射到人眼视网膜上。本发明通过采集红外数据集、数据集标定和模型训练获得用于目标检测的检测模型,利用检测模型对红外目标进行类别识别、目标测距、图像标识再进行标识叠加,完成红外图像目标的实时测距及标注,解决了现有技术中,测距操作复杂、测距误差较大的技术问题。The technical effect of the invention is as follows: constructing a distance measuring method and system for an infrared telescope based on external equipment training, infrared glass lenses with different curvatures and different refractive indices are arranged on the same axis in the infrared telescope to form an infrared imaging lens, an infrared photosensitive unit Set up an uncooled infrared focal plane array to form an infrared detector in an infrared telescope, and complete the establishment of a training detection model in an external device, including the following steps: determining the category of the target to be measured: classifying the target to be measured according to the shape characteristics of the target; infrared Image data acquisition: The infrared image of the target to be measured is obtained by taking infrared image shooting equipment, and various types of target images are formed into infrared image data collection; Calibration, the calibration content includes the category of each target to be measured and the rectangular frame that can cover the entire target; training the detection model: establish a detection model, use the calibrated data as input data, and obtain complete model parameters; test in an infrared telescope. It includes the following steps: model import: for the infrared telescope embedded hardware platform used, after converting the training detection model into a format matching the embedded platform, the infrared telescope embedded system imports the training detection model; target detection: infrared After the telescope obtains the infrared image, it enters the training detection model to obtain the target category in the infrared image and the rectangular frame covering the entire target; target ranging: According to the preset height of the target to be measured, the pixels of the target person or object in the screen The height, the focal length of the lens of the infrared telescope and the pixel size of the detector are known, and the distance between the target and the observer is calculated; image identification: obtain the current target distance to form the target distance identification; The eyepiece formed by the arrangement of visible light glass lenses projects the image on the electronic display onto the retina of the human eye. The invention obtains a detection model for target detection by collecting infrared data sets, data set calibration and model training, and uses the detection model to carry out category recognition, target ranging, image identification and identification overlay for infrared targets, so as to complete the real-time detection of infrared image targets. The ranging and labeling solves the technical problems of complex ranging operations and large ranging errors in the prior art.
附图说明Description of drawings
图1为本发明的红外望远镜结构示意图。FIG. 1 is a schematic structural diagram of an infrared telescope of the present invention.
图2为本发明的红外望远镜及训练检测模型生成模块结构示意图。FIG. 2 is a schematic structural diagram of an infrared telescope and a training detection model generation module of the present invention.
图3为本发明的嵌入式处理器模块包含的结构示意图。FIG. 3 is a schematic diagram of the structure included in the embedded processor module of the present invention.
具体实施方式Detailed ways
下面结合具体实施例,对本发明技术方案进一步说明。The technical solutions of the present invention will be further described below with reference to specific embodiments.
本发明的技术实施方式是:构建一种红外望远镜测距方法,不同曲率以及不同折射率的红外玻璃镜片在红外望远镜中的同一轴线上排列形成红外成像镜头,红外感光单元设置成非制冷红外焦平面阵列形成红外望远镜中的红外探测器,包括以下步骤:The technical embodiment of the present invention is as follows: constructing a distance measuring method for an infrared telescope. Infrared glass lenses with different curvatures and different refractive indices are arranged on the same axis in the infrared telescope to form an infrared imaging lens, and the infrared photosensitive unit is set to an uncooled infrared focus. The planar array forms an infrared detector in an infrared telescope, including the following steps:
模型导入:针对所使用的红外望远镜嵌入式硬件平台,将训练检测模型转换成与嵌入式平台匹配的格式后,红外望远镜的嵌入式系统导入训练检测模型;所述训练检测模型根据目标外形特征以及目标的红外图像在外部设备建立形成。Model import: for the infrared telescope embedded hardware platform used, after the training detection model is converted into a format matching the embedded platform, the infrared telescope embedded system imports the training detection model; the training detection model is based on the target shape characteristics and The infrared image of the target is created by the external device.
具体实施方式是:以图像处理芯片做为嵌入式硬件平台,与该嵌入式平台匹配的检测模型格式为wk格式,生成wk格式文件需要一个标准的深度学习框架,图像处理芯片所支持的框架为Caffe框架(Convolutional Architecture for Fast Feature Embedding卷积神经网络框架),在具体的实施例中,需要通过模型转换工具例如RuyiStudio应用程序将Yolov3模型转换至Caffe框架,在Caffe框架下生成对应的wk格式文件;将wk文件导入至图像处理芯片的存储器中,在实现目标检测过程中被软件调用。The specific implementation is as follows: an image processing chip is used as an embedded hardware platform, the detection model format matched with the embedded platform is wk format, and a standard deep learning framework is required to generate a wk format file, and the framework supported by the image processing chip is Caffe framework (Convolutional Architecture for Fast Feature Embedding convolutional neural network framework), in a specific embodiment, it is necessary to convert the Yolov3 model to the Caffe framework through a model conversion tool such as RuyiStudio application program, and generate the corresponding wk format file under the Caffe framework ; Import the wk file into the memory of the image processing chip and be called by the software in the process of realizing the target detection.
目标检测:红外望远镜获得红外图像后,进入所述训练检测模型,获得红外图像中的目标类别和覆盖目标整体的矩形框。Target detection: After the infrared telescope obtains the infrared image, it enters the training detection model to obtain the target category in the infrared image and the rectangular frame covering the entire target.
具体实施方式是:红外望远镜对准包括待识别目标的场景,当软件开启目标检测功能后,从嵌入式芯片的存储器中调用wk模型文件,生成检测模型,软件将获得的红外图像载入检测模型中计算,获得红外图像中的目标类别和覆盖目标整体的矩形框。The specific embodiment is as follows: the infrared telescope is aimed at the scene including the target to be identified, after the software enables the target detection function, the wk model file is called from the memory of the embedded chip to generate the detection model, and the software loads the obtained infrared image into the detection model Calculated in the infrared image to obtain the target category in the infrared image and the rectangular frame covering the entire target.
目标测距:根据预设待测目标的高度、目标人或物在画面中的像素高度、已知红外望远镜的镜头焦距和探测器像元尺寸,计算出目标和观察者之间的距离。Target ranging: Calculate the distance between the target and the observer according to the preset height of the target to be measured, the pixel height of the target person or object in the screen, the lens focal length of the known infrared telescope and the size of the detector pixel.
具体实施方式是:目标检测获得的覆盖目标整体的矩形框的像素高度视为目标人或物在画面中的像素高度为q,预设待测目标的高度h0,已知红外望远镜的镜头焦距f和探测器像元尺寸d,可通过以下公式计算出目标人或物当前和观察者之间的距离L:The specific embodiment is: the pixel height of the rectangular frame covering the entire target obtained by target detection is regarded as the pixel height of the target person or object in the picture as q, the preset height h 0 of the target to be measured, the known focal length of the infrared telescope lens f and the detector pixel size d, the distance L between the target person or object and the observer can be calculated by the following formula:
以检测目标人为例,目标检测获得的覆盖目标人的矩形框像素高度为100像素,预先设置人的高度为1.7m,红外望远镜镜头焦距20mm,探测器像元尺寸17um,根据公式,目标人与观察者之间的距离:Taking the detection of a target person as an example, the pixel height of the rectangular frame covering the target person obtained by target detection is 100 pixels, the preset height of the person is 1.7m, the focal length of the infrared telescope lens is 20mm, and the pixel size of the detector is 17um. According to the formula, the target person and the Distance between observers:
图像标识:将获取的当前目标的类别形成类别标识,获得当前目标距离形成目标距离标识,将目标类别标识和距离标识以屏幕菜单的方式叠加在红外图像上。Image identification: The obtained category of the current target is formed into a category identification, the current target distance is obtained to form a target distance identification, and the target category identification and distance identification are superimposed on the infrared image in the form of an on-screen menu.
具体实施方式是:目标的类别可以但不限于使用英文或中文显示,目标距离可以但不限于使用“米”做为距离单位,目标类别和目标距离可以显示在目标的附近,例如目标的正上方位置,也可以显示在屏幕的四周,例如屏幕的左侧,通过线段将目标和标识关联起来;标识显示区域可以使用透明背景,也可以使用灰度背景或其他色彩的背景。The specific implementation is: the category of the target can be displayed in English or Chinese but not limited to, the target distance can be displayed in but not limited to "meter" as the distance unit, and the target category and target distance can be displayed near the target, such as directly above the target The position can also be displayed around the screen, such as the left side of the screen, and the target and the logo are associated by line segments; the logo display area can use a transparent background, a grayscale background or a background of other colors.
观测展示:通过不同外形不同折射率的红外可见光玻璃镜片排列形成的目镜,将电子显示屏上的图像投射到人眼视网膜上。Observation display: The image on the electronic display screen is projected onto the retina of the human eye through an eyepiece formed by arranging infrared and visible glass lenses with different shapes and different refractive indices.
本发明的技术实施方式是:提供一种基于外部设备训练的红外望远镜测距方法。The technical embodiment of the present invention is to provide an infrared telescope ranging method based on external equipment training.
在外部设备中完成训练检测模型的建立,这里所说的外部设备可以是外部的PC电脑、笔记本电脑等处理能力较强的处理系统设备。包括如下步骤:The establishment of the training detection model is completed in an external device, and the external device mentioned here may be an external PC computer, a notebook computer, or other processing system device with strong processing capability. It includes the following steps:
确定待测目标类别:将待测目标根据目标外形特征进行分类。Determine the category of the target to be tested: classify the target to be tested according to the target shape features.
具体实施过程如下:将待测目标根据目标外形特征进行分类,所述待测目标类别是指具有相同物理特征的物体类别,例如人、猫、椅子等,待测目标类别数量为有限值。The specific implementation process is as follows: classify the objects to be measured according to their shape features, and the categories of objects to be measured refer to object categories with the same physical characteristics, such as people, cats, chairs, etc. The number of object categories to be measured is limited.
红外图像数据采集:通过红外图像拍摄设备拍摄获得待测目标的红外图像,将多种类别的目标图像形成红外图像数据采集。Infrared image data collection: The infrared image of the target to be measured is obtained by shooting the infrared image shooting equipment, and the infrared image data collection is formed by various types of target images.
具体实施过程如下:所述红外图像数据采集中的红外图像分为样本红外图像和背景红外图像,样本红外图像中应包含一种或多种待测目标类别中的物体,背景红外图像中不出现待测目标类别。红外图像数据采集过程中,对于黑热、白热、伪彩色等色彩模式的选择,应该根据实际检测过程中所使用的色彩模式确定,选择其中一种或多种色彩模式。The specific implementation process is as follows: the infrared image in the infrared image data collection is divided into a sample infrared image and a background infrared image. The sample infrared image should contain one or more objects in the target category to be measured, and the background infrared image does not appear. The category of the target to be tested. In the process of infrared image data acquisition, the selection of color modes such as black heat, white heat, and false color should be determined according to the color mode used in the actual detection process, and one or more of these color modes should be selected.
数据集标定:获得红外数据集后,完成对红外图像中待测目标的标定,标定内容包括每一个待测目标所属类别以及能覆盖目标整体的矩形框。Data set calibration: After obtaining the infrared data set, the calibration of the target to be measured in the infrared image is completed. The calibration content includes the category of each target to be measured and the rectangular frame that can cover the entire target.
具体实施方式是:获得红外数据集后,由操作完成对红外图像中待测目标的标定,标定内容包括每一个待测目标所属类别以及能覆盖目标整体的矩形框。数据集标定后,对数据集进行增广,通过原始红外数据样本生成新数据样本,样本增广包括单图处理和多图处理;单图处理是通过调整原始红外图像的亮度,对比度,色调,饱和度以及噪声,随机增加尺度变化,裁剪,翻转以及旋转等方式形成新的红外图像,并调整响应的目标信息文本文件,作为新的红外图像样本;多图处理是通过对两张红外图像的像素值进行权重相加,或对多张图像进行裁剪拼接到同一张红外图像上,形成新的红外图像,并调整响应的目标信息文本文件,作为新的红外图像样本。The specific embodiment is: after obtaining the infrared data set, the calibration of the target to be measured in the infrared image is completed by the operation, and the calibration content includes the category to which each target to be measured belongs and a rectangular frame that can cover the entire target. After the data set is calibrated, the data set is augmented, and new data samples are generated from the original infrared data samples. The sample augmentation includes single image processing and multi-image processing; single image processing is to adjust the brightness, contrast, hue, Saturation and noise, randomly increase scale change, crop, flip and rotate to form a new infrared image, and adjust the corresponding target information text file as a new infrared image sample; multi-image processing is performed by combining two infrared images. The pixel values are weighted, or multiple images are cropped and spliced to the same infrared image to form a new infrared image, and the corresponding target information text file is adjusted as a new infrared image sample.
具体实施例中,其操作可以为人工标定操作,其形成的矩形框尽量为最小矩形框,这里“最小矩形框”非无限接近无法确定的“最小”的含义,而是根据具体操作过程中,可以操作的“最小矩形框”。具体方法如下:所述最小矩形框的上边界位置为待测目标的最上端像素,下边界位置为待测目标的最下端像素,左边界位置为待测目标的最左端像素,右边界位置为待测目标的最右端像素;标定后,每张红外图像对应一个文本文件,文件中保存红外图像中的所有待测目标信息,待测目标信息包括目标的类别和覆盖该目标最小矩形框在红外图像中的位置坐标,位置坐标通常以红外图像的左上角为坐标原点,向右为横坐标正方向,向下为纵坐标正方向,矩形框位置坐标可以使用左上角和右下角两点坐标来确定,也可以通过左上角坐标和矩形框长宽像素值来确定。In a specific embodiment, the operation can be a manual calibration operation, and the rectangular frame formed by it is as small as possible. The "minimum rectangle" that can be manipulated. The specific method is as follows: the position of the upper boundary of the minimum rectangular frame is the uppermost pixel of the object to be measured, the position of the lower boundary is the lowermost pixel of the object to be measured, the position of the left boundary is the position of the leftmost pixel of the object to be measured, and the position of the right boundary is The rightmost pixel of the target to be measured; after calibration, each infrared image corresponds to a text file, and the file saves all the information of the target to be measured in the infrared image. The information of the target to be measured includes the category of the target and the smallest rectangular frame covering the target. The position coordinates in the image, the position coordinates usually take the upper left corner of the infrared image as the coordinate origin, the right direction is the positive direction of the horizontal coordinate, and the downward direction is the positive direction of the vertical coordinate. It can also be determined by the coordinates of the upper left corner and the pixel value of the length and width of the rectangular frame.
训练检测模型:建立检测模型,将标定后的数据作为输入数据,得到完整的模型参数。Training detection model: Establish a detection model, use the calibrated data as input data, and obtain complete model parameters.
具体实施方式是:所述训练检测模型是基于Yolov3特征提取网络,在主干网络Darknet-53后增加了三个深度的卷积层、四个不同尺度的最大池化层以及一个由1个和5个深度卷积层分支组成的残差网络模块。The specific embodiment is: the training detection model is based on the Yolov3 feature extraction network, and after the backbone network Darknet-53, three deep convolutional layers, four maximum pooling layers of different scales, and one composed of 1 and 5 are added. Residual network module composed of deep convolutional layer branches.
在红外望远镜中进行测距,包括如下步骤:Ranging in an infrared telescope includes the following steps:
模型导入:针对所使用的嵌入式硬件平台,将模型转换成与嵌入式平台匹配的格式后,导入嵌入式系统中。Model import: For the used embedded hardware platform, convert the model into a format matching the embedded platform and import it into the embedded system.
具体实施方式是:针对所使用的红外望远镜嵌入式硬件平台,将训练检测模型转换成与嵌入式平台匹配的格式后,红外望远镜的嵌入式系统导入训练检测模型;所述训练检测模型根据目标外形特征以及目标的红外图像在外部设备建立形成。以图像处理芯片做为嵌入式硬件平台,与该嵌入式平台匹配的检测模型格式为wk格式,生成wk格式文件需要一个标准的深度学习框架,图像处理芯片所支持的框架为Caffe框架(ConvolutionalArchitecture for Fast Feature Embedding卷积神经网络框架),在具体的实施例中,需要通过模型转换工具例如RuyiStudio应用程序将Yolov3模型转换至Caffe框架,在Caffe框架下生成对应的wk格式文件;将wk文件导入至图像处理芯片的存储器中,在实现目标检测过程中被软件调用。The specific embodiment is: for the used infrared telescope embedded hardware platform, after the training detection model is converted into a format matching the embedded platform, the embedded system of the infrared telescope imports the training detection model; the training detection model is based on the shape of the target. Infrared images of features and targets are created with external equipment. The image processing chip is used as the embedded hardware platform, and the detection model format that matches the embedded platform is wk format. A standard deep learning framework is required to generate wk format files. The framework supported by the image processing chip is the Caffe framework (Convolutional Architecture for Fast Feature Embedding convolutional neural network framework), in a specific embodiment, it is necessary to convert the Yolov3 model to the Caffe framework through a model conversion tool such as the RuyiStudio application, and generate the corresponding wk format file under the Caffe framework; import the wk file to In the memory of the image processing chip, it is called by the software in the process of realizing the target detection.
目标检测:红外望远镜获得红外图像后,进入所述训练检测模型,获得红外图像中的目标类别和覆盖目标整体的矩形框。Target detection: After the infrared telescope obtains the infrared image, it enters the training detection model to obtain the target category in the infrared image and the rectangular frame covering the entire target.
具体实施方式是:红外望远镜对准包括待识别目标的场景,当软件开启目标检测功能后,从嵌入式芯片的存储器中调用wk模型文件,生成检测模型,软件将获得的红外图像载入检测模型中计算,获得红外图像中的目标类别和覆盖目标整体的矩形框。The specific embodiment is as follows: the infrared telescope is aimed at the scene including the target to be identified, after the software enables the target detection function, the wk model file is called from the memory of the embedded chip to generate the detection model, and the software loads the obtained infrared image into the detection model Calculated in the infrared image to obtain the target category in the infrared image and the rectangular frame covering the entire target.
目标测距:根据预设待测目标的高度、目标人或物在画面中的像素高度、已知红外望远镜的镜头焦距和探测器像元尺寸,计算出目标和观察者之间的距离。Target ranging: Calculate the distance between the target and the observer according to the preset height of the target to be measured, the pixel height of the target person or object in the screen, the lens focal length of the known infrared telescope and the size of the detector pixel.
具体实施方式是:目标检测获得的覆盖目标整体的矩形框的像素高度视为目标人或物在画面中的像素高度为q,预设待测目标的高度h0,已知红外望远镜的镜头焦距f和探测器像元尺寸d,可通过以下公式计算出目标人或物当前和观察者之间的距离L:The specific embodiment is: the pixel height of the rectangular frame covering the entire target obtained by target detection is regarded as the pixel height of the target person or object in the picture as q, the preset height h 0 of the target to be measured, the known focal length of the infrared telescope lens f and the detector pixel size d, the distance L between the target person or object and the observer can be calculated by the following formula:
以检测目标人为例,目标检测获得的覆盖目标人的矩形框像素高度为100像素,预先设置人的高度为1.7m,红外望远镜镜头焦距20mm,探测器像元尺寸17um,根据公式,目标人与观察者之间的距离:Taking the detection of a target person as an example, the pixel height of the rectangular frame covering the target person obtained by target detection is 100 pixels, the preset height of the person is 1.7m, the focal length of the infrared telescope lens is 20mm, and the pixel size of the detector is 17um. According to the formula, the target person and the Distance between observers:
图像标识:将获取的当前目标的类别形成类别标识,获得当前目标距离形成目标距离标识,将目标类别标识和距离标识以屏幕菜单的方式叠加在红外图像上。Image identification: The obtained category of the current target is formed into a category identification, the current target distance is obtained to form a target distance identification, and the target category identification and distance identification are superimposed on the infrared image in the form of an on-screen menu.
具体实施方式是:目标的类别可以但不限于使用英文或中文显示,目标距离可以但不限于使用“米”做为距离单位,目标类别和目标距离可以显示在目标的附近,例如目标的正上方位置,也可以显示在屏幕的四周,例如屏幕的左侧,通过线段将目标和标识关联起来;标识显示区域可以使用透明背景,也可以使用灰度背景或其他色彩的背景。The specific implementation is: the category of the target can be displayed in English or Chinese but not limited to, the target distance can be displayed in but not limited to "meter" as the distance unit, and the target category and target distance can be displayed near the target, such as directly above the target The position can also be displayed around the screen, such as the left side of the screen, and the target and the logo are associated by line segments; the logo display area can use a transparent background, a grayscale background or a background of other colors.
观测展示:通过不同外形不同折射率的红外可见光玻璃镜片排列形成的目镜,将电子显示屏上的图像投射到人眼视网膜上。Observation display: The image on the electronic display screen is projected onto the retina of the human eye through an eyepiece formed by arranging infrared and visible glass lenses with different shapes and different refractive indices.
如图2、图3所示,本发明的具体实施方式是:构建一种红外望远镜测距系统,包括红外成像镜头1、红外探测器2、嵌入式处理器模块3、电子显示屏4,目镜模块5,不同曲率以及不同折射率的红外玻璃镜片在红外望远镜中的同一轴线上排列形成红外成像镜头1,红外感光单元设置成非制冷红外焦平面阵列形成红外望远镜中的红外探测器2,所述嵌入式处理器模块3包括目标检测模块31、目标测距模块32、图像标识模块33,针对所使用的红外望远镜嵌入式硬件平台,将训练检测模型转换成与嵌入式平台匹配的格式后,红外望远镜的嵌入式系统导入训练检测模型,红外望远镜获得红外图像后,进入所述训练检测模型,所述目标检测模块31获得红外图像中的目标类别和覆盖目标整体的矩形框,所述目标测距模块32根据预设待测目标的高度、目标人或物在画面中的像素高度、已知红外望远镜的镜头焦距和探测器像元尺寸,计算出目标和观察者之间的距离,所述图像标识模块33获得当前目标距离形成目标距离标识,不同外形不同折射率的红外可见光玻璃镜片排列形成的目镜模块5,所述目镜模块5将电子显示屏上的图像投射到人眼视网膜上。As shown in FIG. 2 and FIG. 3 , the specific embodiment of the present invention is to construct an infrared telescope ranging system, including an infrared imaging lens 1, an infrared detector 2, an embedded
本发明的具体实施过程是:以图像处理芯片做为嵌入式硬件平台,与该嵌入式平台匹配的检测模型格式为wk格式,生成wk格式文件需要一个标准的深度学习框架,图像处理芯片所支持的框架为Caffe框架(Convolutional Architecture for Fast FeatureEmbedding卷积神经网络框架),在具体的实施例中,需要通过模型转换工具例如RuyiStudio应用程序将Yolov3模型转换至Caffe框架,在Caffe框架下生成对应的wk格式文件;将wk文件导入至图像处理芯片的存储器中,在实现目标检测过程中被软件调用。红外望远镜对准包括待识别目标的场景,当软件开启目标检测功能后,从嵌入式芯片的存储器中调用wk模型文件,生成检测模型,软件将获得的红外图像载入检测模型中计算,所述目标检测模块31获得红外图像中的目标类别和覆盖目标整体的矩形框。目标检测获得的覆盖目标整体的矩形框的像素高度视为目标人或物在画面中的像素高度为q,预设待测目标的高度h0,已知红外望远镜的镜头焦距f和探测器像元尺寸d,可通过以下公式计算出目标人或物当前和观察者之间的距离L:The specific implementation process of the present invention is as follows: an image processing chip is used as an embedded hardware platform, the detection model format matched with the embedded platform is wk format, and a standard deep learning framework is required to generate a wk format file, and the image processing chip supports The framework is the Caffe framework (Convolutional Architecture for Fast FeatureEmbedding Convolutional Neural Network Framework). In a specific embodiment, it is necessary to convert the Yolov3 model to the Caffe framework through a model conversion tool such as the RuyiStudio application, and generate the corresponding wk under the Caffe framework. Format file; import the wk file into the memory of the image processing chip, and be called by the software in the process of realizing target detection. The infrared telescope is aimed at the scene including the target to be identified. After the software enables the target detection function, the wk model file is called from the memory of the embedded chip to generate the detection model. The software loads the obtained infrared image into the detection model for calculation. The
以检测目标人为例,目标检测获得的覆盖目标人的矩形框像素高度为100像素,预先设置人的高度为1.7m,红外望远镜镜头焦距20mm,探测器像元尺寸17um,根据公式,目标人与观察者之间的距离:Taking the detection of a target person as an example, the pixel height of the rectangular frame covering the target person obtained by target detection is 100 pixels, the preset height of the person is 1.7m, the focal length of the infrared telescope lens is 20mm, and the pixel size of the detector is 17um. According to the formula, the target person and the Distance between observers:
所述目标测距模块32根据预设待测目标的高度、目标人或物在画面中的像素高度、已知红外望远镜的镜头焦距和探测器像元尺寸,计算出目标和观察者之间的距离。The
目标的类别可以但不限于使用英文或中文显示,目标距离可以但不限于使用“米”做为距离单位,目标类别和目标距离可以显示在目标的附近,例如目标的正上方位置,也可以显示在屏幕的四周,例如屏幕的左侧,通过线段将目标和标识关联起来;标识显示区域可以使用透明背景,也可以使用灰度背景或其他色彩的背景。所述图像标识模块33获得当前目标距离形成目标距离标识,不同外形不同折射率的红外可见光玻璃镜片排列形成的目镜模块5,所述目镜模块5将电子显示屏上的图像投射到人眼视网膜上。The category of the target can be displayed in English or Chinese but not limited to, the target distance can be but not limited to use "meter" as the distance unit, the target category and target distance can be displayed near the target, such as the position directly above the target, can also be displayed Around the screen, such as the left side of the screen, the target and the logo are associated by line segments; the logo display area can use a transparent background, a grayscale background or a background of other colors. The image identification module 33 obtains the current target distance to form a target distance identification, and the
所述训练检测模型生成模块6在生成检测模型过程中,将待测目标根据目标外形特征进行分类,通过红外图像拍摄设备拍摄获得待测目标的红外图像,将多种类别的目标图像形成红外图像数据采集,获得红外数据集后,完成对红外图像中待测目标的标定,标定内容包括每一个待测目标所属类别以及能覆盖目标整体的矩形框,建立检测模型,将标定后的数据作为输入数据,得到完整的模型参数;In the process of generating the detection model, the training detection
本发明的优选实施方式是:所述目镜模块5通过镜片位置调整机构,改变其中一片或多片可见光玻璃镜片的位置,从而改变电子显示屏的虚像位置。所述目镜模块可以使用反射镜。A preferred embodiment of the present invention is that the
本发明的优选实施方式是:还包括接口管理单元,所述接口管理单元管理红外探测器信号的接收、按键模块I/O信号的接收和向电子显示屏的数据输出。还包括非均匀校正模块,所述非均匀校正模块采用嵌入式处理器模块对所述红外探测器的阵列数字信号进行非均匀校正以校正所述红外探测器感光单元的温度响应率。The preferred embodiment of the present invention further includes an interface management unit, which manages the reception of infrared detector signals, the reception of I/O signals of the key module, and the data output to the electronic display screen. It also includes a non-uniform correction module, which adopts an embedded processor module to perform non-uniform correction on the array digital signal of the infrared detector to correct the temperature responsivity of the infrared detector photosensitive unit.
本发明的技术方案是:构建一种基于外部设备的红外望远镜测距系统,其特征在于,包括外部设备、红外望远镜,所述外部设备包括训练检测模型生成模块6,所述训练检测模型生成模块6在生成检测模型过程中,将待测目标根据目标外形特征进行分类,通过红外图像拍摄设备拍摄获得待测目标的红外图像,将多种类别的目标图像形成红外图像数据采集,获得红外数据集后,完成对红外图像中待测目标的标定,标定内容包括每一个待测目标所属类别以及能覆盖目标整体的矩形框,建立检测模型,将标定后的数据作为输入数据,得到完整的模型参数;所述红外望远镜包括:红外成像镜头1、红外探测器2、嵌入式处理器模块3、电子显示屏4,目镜模块5,不同曲率以及不同折射率的红外玻璃镜片在红外望远镜中的同一轴线上排列形成红外成像镜头1,红外感光单元设置成非制冷红外焦平面阵列形成红外望远镜中的红外探测器2,所述嵌入式处理器模块3包括目标检测模块31、目标测距模块32、图像标识模块33,针对所使用的红外望远镜嵌入式硬件平台,将训练检测模型转换成与嵌入式平台匹配的格式后,红外望远镜的嵌入式系统导入训练检测模型,红外望远镜获得红外图像后,进入所述训练检测模型,所述目标检测模块31获得红外图像中的目标类别和覆盖目标整体的矩形框,所述目标测距模块32根据预设待测目标的高度、目标人或物在画面中的像素高度、已知红外望远镜的镜头焦距和探测器像元尺寸,计算出目标和观察者之间的距离,所述图像标识模块33获得当前目标距离形成目标距离标识,不同外形不同折射率的红外可见光玻璃镜片排列形成的目镜模块5,所述目镜模块5将电子显示屏上的图像投射到人眼视网膜上。The technical scheme of the present invention is to construct an infrared telescope ranging system based on external equipment, which is characterized in that it includes external equipment and an infrared telescope, and the external equipment includes a training detection
在外部设备中完成训练检测模型的建立,包括如下步骤:Complete the establishment of the training detection model in the external device, including the following steps:
将待测目标根据目标外形特征进行分类,所述待测目标类别是指具有相同物理特征的物体类别,例如人、猫、椅子等,待测目标类别数量为有限值。所述红外图像数据采集中的红外图像分为样本红外图像和背景红外图像,样本红外图像中应包含一种或多种待测目标类别中的物体,背景红外图像中不出现待测目标类别。红外图像数据采集过程中,对于黑热、白热、伪彩色等色彩模式的选择,应该根据实际检测过程中所使用的色彩模式确定,选择其中一种或多种色彩模式。获得红外数据集后,由操作完成对红外图像中待测目标的标定,标定内容包括每一个待测目标所属类别以及能覆盖目标整体的矩形框。数据集标定后,对数据集进行增广,通过原始红外数据样本生成新数据样本,样本增广包括单图处理和多图处理;单图处理是通过调整原始红外图像的亮度,对比度,色调,饱和度以及噪声,随机增加尺度变化,裁剪,翻转以及旋转等方式形成新的红外图像,并调整响应的目标信息文本文件,作为新的红外图像样本;多图处理是通过对两张红外图像的像素值进行权重相加,或对多张图像进行裁剪拼接到同一张红外图像上,形成新的红外图像,并调整响应的目标信息文本文件,作为新的红外图像样本。The objects to be tested are classified according to the shape features of the objects, and the categories of objects to be tested refer to object categories with the same physical characteristics, such as people, cats, chairs, etc. The number of categories of objects to be tested is limited. The infrared image in the infrared image data collection is divided into a sample infrared image and a background infrared image. The sample infrared image should contain one or more objects in the target category to be measured, and the target category to be detected does not appear in the background infrared image. In the process of infrared image data acquisition, the selection of color modes such as black heat, white heat, and false color should be determined according to the color mode used in the actual detection process, and one or more of these color modes should be selected. After the infrared data set is obtained, the calibration of the target to be measured in the infrared image is completed by the operation, and the calibration content includes the category to which each target to be measured belongs and a rectangular frame that can cover the entire target. After the data set is calibrated, the data set is augmented, and new data samples are generated from the original infrared data samples. The sample augmentation includes single image processing and multi-image processing; single image processing is to adjust the brightness, contrast, hue, Saturation and noise, randomly increase scale change, crop, flip and rotate to form a new infrared image, and adjust the corresponding target information text file as a new infrared image sample; multi-image processing is performed by combining two infrared images. The pixel values are weighted, or multiple images are cropped and spliced to the same infrared image to form a new infrared image, and the corresponding target information text file is adjusted as a new infrared image sample.
具体实施例中,其操作可以为人工标定操作,其形成的矩形框尽量为最小矩形框,这里“最小矩形框”非无限接近无法确定的“最小”的含义,而是根据具体操作过程中,可以操作的“最小矩形框”。具体方法如下:所述最小矩形框的上边界位置为待测目标的最上端像素,下边界位置为待测目标的最下端像素,左边界位置为待测目标的最左端像素,右边界位置为待测目标的最右端像素;标定后,每张红外图像对应一个文本文件,文件中保存红外图像中的所有待测目标信息,待测目标信息包括目标的类别和覆盖该目标最小矩形框在红外图像中的位置坐标,位置坐标通常以红外图像的左上角为坐标原点,向右为横坐标正方向,向下为纵坐标正方向,矩形框位置坐标可以使用左上角和右下角两点坐标来确定,也可以通过左上角坐标和矩形框长宽像素值来确定。建立检测模型,将标定后的数据作为输入数据,得到完整的模型参数。具体实施方式是:所述训练检测模型是基于Yolov3特征提取网络,在主干网络Darknet-53后增加了三个深度的卷积层、四个不同尺度的最大池化层以及一个由1个和5个深度卷积层分支组成的残差网络模块。In a specific embodiment, the operation can be a manual calibration operation, and the rectangular frame formed by it is as small as possible. The "minimum rectangle" that can be manipulated. The specific method is as follows: the position of the upper boundary of the minimum rectangular frame is the uppermost pixel of the object to be measured, the position of the lower boundary is the lowermost pixel of the object to be measured, the position of the left boundary is the position of the leftmost pixel of the object to be measured, and the position of the right boundary is The rightmost pixel of the target to be measured; after calibration, each infrared image corresponds to a text file, and the file saves all the information of the target to be measured in the infrared image. The information of the target to be measured includes the category of the target and the smallest rectangular frame covering the target. The position coordinates in the image, the position coordinates usually take the upper left corner of the infrared image as the coordinate origin, the right direction is the positive direction of the horizontal coordinate, and the downward direction is the positive direction of the vertical coordinate. It can also be determined by the coordinates of the upper left corner and the pixel value of the length and width of the rectangular frame. A detection model is established, and the calibrated data is used as input data to obtain complete model parameters. The specific embodiment is: the training detection model is based on the Yolov3 feature extraction network, and after the backbone network Darknet-53, three deep convolutional layers, four maximum pooling layers of different scales, and one composed of 1 and 5 are added. Residual network module composed of deep convolutional layer branches.
本发明的技术效果是:构建一种红外望远镜测距方法及系统,不同曲率以及不同折射率的红外玻璃镜片在红外望远镜中的同一轴线上排列形成红外成像镜头,红外感光单元设置成非制冷红外焦平面阵列形成红外望远镜中的红外探测器,红外望远镜测距方法包括以下步骤:确定待测目标类别:将待测目标根据目标外形特征进行分类;红外图像数据采集:通过红外图像拍摄设备拍摄获得待测目标的红外图像,将多种类别的目标图像形成红外图像数据采集;数据集标定:获得红外数据集后,完成对红外图像中待测目标的标定,标定内容包括每一个待测目标所属类别以及能覆盖目标整体的矩形框;训练检测模型:建立检测模型,将标定后的数据作为输入数据,得到完整的模型参数;模型导入:针对所使用的嵌入式硬件平台,将模型转换成与嵌入式平台匹配的格式后,导入嵌入式系统中;目标检测:红外望远镜获得红外图像后,进入所述训练检测模型,获得红外图像中的目标类别和覆盖目标整体的矩形框;目标测距:根据预设待测目标的高度、目标人或物在画面中的像素高度、已知红外望远镜的镜头焦距和探测器像元尺寸,计算出目标和观察者之间的距离;图像标识:获得当前目标距离形成目标距离标识;观测展示:通过不同外形不同折射率的红外可见光玻璃镜片排列形成的目镜,将电子显示屏上的图像投射到人眼视网膜上。本发明通过采集红外数据集、数据集标定和模型训练获得用于目标检测的检测模型,利用检测模型对红外目标进行类别识别、目标测距、图像标识再进行标识叠加,完成红外图像目标的实时测距及标注,解决了现有技术中,测距操作复杂、测距误差较大的技术问题。The technical effect of the invention is as follows: a method and a system for measuring distances of an infrared telescope are constructed. Infrared glass lenses with different curvatures and different refractive indices are arranged on the same axis in the infrared telescope to form an infrared imaging lens, and the infrared photosensitive unit is set as an uncooled infrared The focal plane array forms an infrared detector in an infrared telescope. The infrared telescope ranging method includes the following steps: determining the category of the target to be measured: classifying the target to be measured according to the shape characteristics of the target; infrared image data collection: obtained by shooting with infrared image shooting equipment Infrared image of the target to be measured, various types of target images are formed into infrared image data acquisition; data set calibration: after obtaining the infrared data set, the calibration of the target to be measured in the infrared image is completed, and the calibration content includes the belonging of each target to be measured. category and a rectangular box that can cover the entire target; training detection model: establish a detection model, use the calibrated data as input data, and obtain complete model parameters; model import: according to the embedded hardware platform used, convert the model into After matching the format of the embedded platform, import it into the embedded system; target detection: after the infrared telescope obtains the infrared image, it enters the training detection model to obtain the target category in the infrared image and the rectangular frame covering the entire target; target ranging: According to the preset height of the target to be measured, the pixel height of the target person or object in the picture, the lens focal length of the known infrared telescope and the size of the detector pixel, the distance between the target and the observer is calculated; image identification: obtain the current The target distance forms the target distance identification; Observation display: The image on the electronic display screen is projected onto the retina of the human eye through the eyepiece formed by the arrangement of infrared and visible glass lenses with different shapes and different refractive indices. The invention obtains a detection model for target detection by collecting infrared data sets, data set calibration and model training, and uses the detection model to carry out category recognition, target ranging, image identification and identification overlay for infrared targets, so as to complete the real-time detection of infrared image targets. The ranging and labeling solves the technical problems of complex ranging operations and large ranging errors in the prior art.
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in combination with specific preferred embodiments, and it cannot be considered that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deductions or substitutions can be made, which should be regarded as belonging to the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111554027.1A CN114295108A (en) | 2021-12-17 | 2021-12-17 | A ranging method and system for external equipment and infrared telescopes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111554027.1A CN114295108A (en) | 2021-12-17 | 2021-12-17 | A ranging method and system for external equipment and infrared telescopes |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114295108A true CN114295108A (en) | 2022-04-08 |
Family
ID=80966839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111554027.1A Pending CN114295108A (en) | 2021-12-17 | 2021-12-17 | A ranging method and system for external equipment and infrared telescopes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114295108A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118424204A (en) * | 2024-07-04 | 2024-08-02 | 山东北方光学电子有限公司 | Automatic target identification reconnaissance telescope system and automatic target identification method thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008060319A2 (en) * | 2006-03-27 | 2008-05-22 | Horus Vision Llc | Apparatus and method for calculating aiming point information |
CN103926010A (en) * | 2014-04-18 | 2014-07-16 | 山东神戎电子股份有限公司 | Multifunctional dual-spectrum portable observation instrument |
CN105203073A (en) * | 2015-09-08 | 2015-12-30 | 上海巨哥电子科技有限公司 | Imager with electronic distance measurement reticle |
CN113610695A (en) * | 2021-05-07 | 2021-11-05 | 浙江兆晟科技股份有限公司 | Infrared telescope full-frame imaging output method and system |
-
2021
- 2021-12-17 CN CN202111554027.1A patent/CN114295108A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008060319A2 (en) * | 2006-03-27 | 2008-05-22 | Horus Vision Llc | Apparatus and method for calculating aiming point information |
CN103926010A (en) * | 2014-04-18 | 2014-07-16 | 山东神戎电子股份有限公司 | Multifunctional dual-spectrum portable observation instrument |
CN105203073A (en) * | 2015-09-08 | 2015-12-30 | 上海巨哥电子科技有限公司 | Imager with electronic distance measurement reticle |
CN113610695A (en) * | 2021-05-07 | 2021-11-05 | 浙江兆晟科技股份有限公司 | Infrared telescope full-frame imaging output method and system |
Non-Patent Citations (2)
Title |
---|
张强等: "《基于深度神经网络技术的高分遥感图像处理及应用》", vol. 1, 31 August 2020, 中国宇航出版社, pages: 85 - 89 * |
陈云霁等: "《智能计算系统》", vol. 1, 30 April 2020, 机械工业出版社, pages: 170 - 171 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118424204A (en) * | 2024-07-04 | 2024-08-02 | 山东北方光学电子有限公司 | Automatic target identification reconnaissance telescope system and automatic target identification method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109377469B (en) | Processing method, system and storage medium for fusing thermal imaging with visible light image | |
US9681066B2 (en) | Facilitating improved calibration of captured infrared data values by an IR imaging system in a thermography arrangement | |
Horvath et al. | Ground-based full-sky imaging polarimetry of rapidly changing skies and its use for polarimetric cloud detection | |
JP5772272B2 (en) | Information processing apparatus and information processing method | |
US8427632B1 (en) | Image sensor with laser for range measurements | |
CN111339951A (en) | Body temperature measuring method, device and system | |
CN107024339B (en) | Testing device and method for head-mounted display equipment | |
AU2011242408B2 (en) | Shape and photometric invariants recovery from polarisation images | |
CN102538983B (en) | CCD (Charge Coupled Device) temperature measuring device | |
CN111323125B (en) | A temperature measurement method, device, computer storage medium, and electronic equipment | |
WO2021175281A1 (en) | Infrared temperature measurement method, apparatus, and device, and storage medium | |
CN112434598A (en) | Non-contact body temperature measuring method and system | |
CN103808414B (en) | A kind of overlength distance heat detector | |
CN103390290A (en) | Information processing device and information processing method | |
CN109191520A (en) | A kind of Measurement Approach of Leaf Area and system based on color calibration | |
CN116754076B (en) | A method for inverting land surface temperature with high heterogeneity in complex three-dimensional urban scenes | |
CN112418251A (en) | Infrared body temperature detection method and system | |
CN117315783A (en) | Personnel detection method, device, equipment and computer storage medium | |
CN109632092A (en) | A kind of luminance test system and method based on spatial light field | |
CN113610695B (en) | A method and system for outputting full-frame imaging of infrared telescope | |
CN114445330A (en) | Method and system for detecting appearance defects of components | |
CN114295108A (en) | A ranging method and system for external equipment and infrared telescopes | |
CN115797998A (en) | A dual-band intelligent temperature measurement device and intelligent temperature measurement method based on image fusion | |
Stets et al. | Scene reassembly after multimodal digitization and pipeline evaluation using photorealistic rendering | |
JP6843439B2 (en) | Information retrieval system and method, information retrieval program |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220408 |
|
RJ01 | Rejection of invention patent application after publication |