留言板

尊敬的读者、作者、审稿人, 关于本刊的投稿、审稿、编辑和出版的任何问题, 您可以本页添加留言。我们将尽快给您答复。谢谢您的支持!

姓名
邮箱
手机号码
标题
留言内容
验证码

基于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实现了红外图像处理显示和自动聚焦的功能。鉴于红外图像普遍存在竖条纹噪声和随机噪声等特点,本文在实现聚焦过程中对红外清晰度评价算法和爬山算法做了改进和优化。实验结果表明本文提出的算法和实现方式能够很好地实现红外镜头的自动聚焦,同时具备集成度高、聚焦速度快、成功率高等特点,有比较广泛的应用前景。
  • 图  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
  • 加载中
图(13) / 表(2)
计量
  • 文章访问数:  473
  • HTML全文浏览量:  128
  • PDF下载量:  150
  • 被引次数: 0
出版历程
  • 收稿日期:  2020-11-07
  • 修回日期:  2021-03-24
  • 刊出日期:  2021-05-22

目录

    /

    返回文章
    返回