基于FPGA的红外镜头自动聚焦技术研究与实现

孙少伟, 杨粤涛, 杨炳伟, 万安军, 钟海林

孙少伟, 杨粤涛, 杨炳伟, 万安军, 钟海林. 基于FPGA的红外镜头自动聚焦技术研究与实现[J]. 红外技术, 2021, 43(5): 464-472.
引用本文: 孙少伟, 杨粤涛, 杨炳伟, 万安军, 钟海林. 基于FPGA的红外镜头自动聚焦技术研究与实现[J]. 红外技术, 2021, 43(5): 464-472.
SUN Shaowei, YANG Yuetao, YANG Bingwei, WAN Anjun, ZHONG Hailin. Research and Implementation of Infrared Lens Auto-focus Technology Based on Field Programmable Gate Array[J]. Infrared Technology , 2021, 43(5): 464-472.
Citation: SUN Shaowei, YANG Yuetao, YANG Bingwei, WAN Anjun, ZHONG Hailin. Research and Implementation of Infrared Lens Auto-focus Technology Based on Field Programmable Gate Array[J]. Infrared Technology , 2021, 43(5): 464-472.

基于FPGA的红外镜头自动聚焦技术研究与实现

详细信息
    作者简介:

    孙少伟(1982-),男,硕士,高级工程师,主要从事图像处理方面研究。E-mail: shaowei_sun171@sina.com

  • 中图分类号: THB11

Research and Implementation of Infrared Lens Auto-focus Technology Based on Field Programmable Gate Array

  • 摘要: 自动聚焦技术在红外热像仪监控领域有着非常重要的作用。目前业内红外自动聚焦技术存在聚焦成功率低、架构复杂、聚焦速度慢等状况,为此提出了一种基于FPGA的红外镜头自动聚焦技术,采用单FPGA实现了红外图像处理显示和自动聚焦的功能。鉴于红外图像普遍存在竖条纹噪声和随机噪声等特点,本文在实现聚焦过程中对红外清晰度评价算法和爬山算法做了改进和优化。实验结果表明本文提出的算法和实现方式能够很好地实现红外镜头的自动聚焦,同时具备集成度高、聚焦速度快、成功率高等特点,有比较广泛的应用前景。
    Abstract: Autofocus technology plays an important role in the field of infrared thermal imager monitoring. At present, there exist some problems with infrared auto focusing technology, such as low success rate, complex architecture and low focusing speed. Therefore, this study proposes an auto focusing technology of infrared lens based on FPGA, which realizes the functions of infrared image processing, display, and auto focusing with a single FPGA. In view of the common characteristics of vertical stripe noise and random noise in infrared images, this study improves and optimizes the infrared definition evaluation algorithm and mountain climbing algorithm in the focusing process. The experimental results show that the algorithm and implementation method proposed in this study can help infocusing on the infrared lens remarkably. Meanwhile, the proposed method has characteristics such as high integration, fast focusing speed, and high success rate, and thus has wide application prospects.
  • 图  1   自动聚焦红外热像仪实物图

    Figure  1.   Autofocus infrared thermal imager

    图  2   红外热像仪主要架构

    Figure  2.   Main structure of infrared thermal imager

    图  3   自动聚焦流程

    Figure  3.   Auto focus process

    图  4   利用3×3掩码计算梯度能量

    Figure  4.   Calculation of gradient energy using 3×3 mask

    图  5   在1/3中心窗格内选用3×5掩模示意图

    Figure  5.   Select 3×5 mask in 1/3 center pane

    图  6   利用FIFO和寄存器缓存3×3掩模数据

    Figure  6.   Cache 3×3 mask data by FIFO and register

    图  7   爬山算法示意

    Figure  7.   Hill climbing algorithm

    图  8   红外图像聚焦的爬山示意

    Figure  8.   Hill climbing of infrared image focusing

    图  9   本文提出的改进爬山算法在FPGA PS端实现流程

    Figure  9.   The improved hill climbing algorithm implemented on FPGA PS

    图  10   本文提出的自动聚焦后效果与其他方案效果对比

    Figure  10.   The effect of autofocus proposed in this paper is compared with other schemes

    图  11   两种区域像素求梯度能量值的图像显示对比

    Figure  11.   Comparison of image display based on gradient energy of two regions

    图  12   三种算法爬山过程电机转动聚焦曲线

    Figure  12.   Focusing curves of motor rotation with three algorithms for mountain climbing

    图  13   自动聚焦用时分析

    Figure  13.   Time spent on autofocus

    表  1   四幅画面的灰度方差值

    Table  1   Gray variance of four pictures

    Picture Picture description Gray variance
    Fig. 10(b) Original infrared image 2564.8
    Fig. 10(c) Picture focused of Document[2] 2682.6
    Fig. 10(d) Picture focused of Document[4] 2735.7
    Fig. 10(e) Picture focused of this article 2842.2
    下载: 导出CSV

    表  2   FPGA资源消耗对比

    Table  2   Comparison of FPGA resource consumption

    Whole area calculation 1/3area calculation FPGA total resource
    LUT(num) 19405 9814 78600
    LUTRAM(num) 6408 2061 26600
    FF(num) 84852 13188 157200
    Block RAM(num) 165 90 265
    DSPs(num) 32 8 400
    下载: 导出CSV
  • [1] 赵志彬. 机载光电平台可见光摄像机自动调焦技术研究[D]. 长春: 中国科学院研究生院(长春光学精密机械与物理研究所), 2010.

    ZHAO Zhibin. Research on Automatic Focusing Technology of Visible Light Camera for Airborne Photoelectric Platform[D]. Graduate School of Chinese Academy of Sciences (Changchun Institute of Optics, Precision Machinery and Physics), 2010.

    [2] 倪文佳. 基于FPGA的可自动聚焦视频监控系统[D]. 武汉: 武汉理工大学, 2012.

    NI Wenjia. Auto Focusing Video Monitoring System Based on FPGA[D]. Wuhan: Wuhan University of Technology, 2012.

    [3] 李申燕. 基于红外图像能量值的自动聚焦算法[J]. 山西电子技术, 2014(4): 6-9. https://www.cnki.com.cn/Article/CJFDTOTAL-SXDS201404002.htm

    LI Shenyan. Auto Focusing Algorithm Based on Infrared Image Energy Value[J]. Shanxi Electronic Technology, 2014(4): 6-9. https://www.cnki.com.cn/Article/CJFDTOTAL-SXDS201404002.htm

    [4] 张博, 张刚, 程永强. 具有自动聚焦功能的视频处理器的设计[J]. 液晶与显示, 2010, 25(3): 396-400. DOI: 10.3969/j.issn.1007-2780.2010.03.020

    ZHANG Bo, ZHANG Gang, CHENG Yongqiang. Design of Video Processor WithAuto Focus Function[J]. LCD and Display, 2010, 25(3): 396-400. DOI: 10.3969/j.issn.1007-2780.2010.03.020

    [5] 万晓帆, 吕耀文, 章冬岩, 等. 在线自动聚焦红外热像仪系统设计[J]. 红外技术, 2018, 40(8): 743-748. http://hwjs.nvir.cn/article/id/hwjs201808004

    WAN Xiaofan, LYU Yaowen, ZHANG Dongyan. Design of an Auto-focusing Infrared Thermal Imager Online System[J]. Infrared Technology, 2018, 40(8): 743-748. http://hwjs.nvir.cn/article/id/hwjs201808004

    [6] 王健. 基于图像处理的自动调焦技术研究[D]. 成都: 中国科学院研究生院(光电技术研究所), 2013.

    WANG Jian. Research on Automatic Focusing Technology Based on Image Processing[D]. Chengdu: Graduate School of Chinese Academy of Sciences(Institute of Optoelectronic Technology), 2013.

    [7] 徐志丽. 基于FPGA的SEM自动聚焦系统研究[D]. 南京: 东南大学, 2016.

    XU Zhili. Research on SEM auto focusing system based on FPGA[D]. Nanjing: Southeast University, 2016.

    [8] 陈国金, 朱妙芬, 张克松. 图像调焦过程的清晰度评价函数研究[J]. 数据采集与处理, 2009, 24(2): 165-169. DOI: 10.3969/j.issn.1004-9037.2009.02.008

    CHEN Guojin, ZHU Miaofen, ZHANG Kesong. Study on sharpness evaluation function of image focusing processk[J]. Data Acquisition and Processing, 2009, 24(2): 165-169. DOI: 10.3969/j.issn.1004-9037.2009.02.008

  • 期刊类型引用(3)

    1. 周坤,彭雄,钟新谷,张文辉,李千禧,赵超. 基于高光谱成像的桥梁混凝土表面露筋病害识别. 红外技术. 2024(02): 216-224 . 本站查看
    2. 张运轲,任登凤,韩玉阁,李继源. 基于连续投影算法提取特征波长的空中目标参考光谱选取. 红外与激光工程. 2021(04): 240-250 . 百度学术
    3. 韩伟佳,王国伟,孙亚东,李超然. 基于立体视觉的光谱聚类算法在目标识别中的研究. 激光杂志. 2019(05): 23-26 . 百度学术

    其他类型引用(0)

图(13)  /  表(2)
计量
  • 文章访问数:  547
  • HTML全文浏览量:  156
  • PDF下载量:  174
  • 被引次数: 3
出版历程
  • 收稿日期:  2020-11-06
  • 修回日期:  2021-03-23
  • 刊出日期:  2021-05-21

目录

    /

    返回文章
    返回