计算机应用 ›› 2016, Vol. 36 ›› Issue (12): 3442-3447.DOI: 10.11772/j.issn.1001-9081.2016.12.3442

• 虚拟现实与数字媒体 • 上一篇    下一篇

大输液异物检测图像快速位移补偿方法

阮峰, 张辉, 李宣伦   

  1. 长沙理工大学 电气与信息工程学院, 长沙 410004
  • 收稿日期:2016-05-16 修回日期:2016-07-04 出版日期:2016-12-10 发布日期:2016-12-08
  • 通讯作者: 阮峰
  • 作者简介:阮峰(1989-),男,湖南隆回人,硕士研究生,主要研究方向:工业视觉检测、图像处理;张辉(1983-),男,陕西西安人,讲师,博士,主要研究方向:工业视觉检测、模式识别;李宣伦(1988-),男,湖南长沙人,硕士研究生,主要研究方向:图像处理。
  • 基金资助:
    国家自然科学基金资助项目(61401046);国家科技支撑计划项目(2015BAF11B01);湖南省自然科学基金资助项目(13JJ4058);湖南省教育厅资助科研项目(13B135);图像测量与视觉导航湖南省重点实验室开放课题(TXCL-KF2013-001)。

Rapid displacement compensation method for liquid impurity detection images

RUAN Feng, ZHANG Hui, LI Xuanlun   

  1. College of Electrical and Information Engineering, Changsha University of Science and Technology, Changsha Hunan 410004, China
  • Received:2016-05-16 Revised:2016-07-04 Online:2016-12-10 Published:2016-12-08
  • Supported by:
    This work is partially supported by the National Natural Science Foundation of China (61401046), the National Science and Technology Support Program of China (2015BAF11B01), the Natural Science Foundation of Hunan Province (13JJ4058), the Scientific Research Project of Educational Commission of Hunan Province (13B135), the Open Project of Hunan Key Laboratory of Image Measurement and Visual Navigation (TXCL-KF 2013-001).

摘要: 智能灯检机在进行大输液药液检测时,由于图像位移偏差带来的干扰,利用帧间差分法提取药液中的异物时经常出现误判的现象。针对上述问题,提出了一种基于加速分割测试特征(FAST)的二进制描述符分块匹配算法。首先,通过加速分割测试在不同尺度的图像上检测特征点,并利用非极大值抑制与熵值差法选择出优秀的特征点;然后,利用改进的模板在特征点周围进行采样,形成对尺度变化、噪声干扰及光照变化均有较强鲁棒性的新型二进制描述子,再将描述子进行降维;最后,利用分块匹配策略和阈值法,快速精确地匹配两帧图像,求解出并补偿位移偏差。实验仿真结果表明:在处理192万高像素图像时,该算法整体实时性能上可达到190 ms,其中新型描述子生成仅占96 ms;并且匹配准确率达到99%以上,成功地抑制了空间位置偏移较大的误匹配;计算出的误差远小于现在匹配精度较好的尺度不变特征转换(SIFT)、带方向的二进制鲁棒独立单元特征(ORB)算法,位移补偿量能精确至亚像素级,能快速补偿药瓶在图像中的位移偏差。

关键词: 智能灯检机, 特征点检测, 二进制描述子, 局部特征匹配, 位移补偿

Abstract: When the intelligent inspection machine extracts the impurity in infusion liquid, because of the interference of image displacement deviation, the misjudgment phenomenon always occurs when using the frame difference method to detect the impurity. In order to solve the problem, a new method of binary descriptor block matching was proposed based on Features of Accelerated Segment Test (FAST). Firstly, the feature points were detected by accelerating the segment test on different scales of the image, and the best feature point was chosen by using non-maximal suppression and the entropy difference. Then, the improved template was used for sampling around the feature point, which formed the new binary descriptor with strong robustness to scale changes, noise interference and illumination changes. The dimension of new descriptor was further reduced. Finally, by using the block matching and threshold method, the two frame images were matched quickly and accurately, and the displacement deviation was solved and compensated. The experimental results show that, when processing the 1.92 million pixel image, the overall real-time performance of the proposed method can be up to 190 ms, and the new descriptor generation only accounts 96 ms. The matching accuracy of the proposed algorithm is more than 99%, which suppresses the error matching of large spatial position offset successfully. The calculated deviation error of the proposed method is much less than the existing algorithms of Scale Invariant Feature Transform (SIFT) and ORiented Binary robust independent elementary features (ORB) with high matching precision. And with the displacement compensation which can be accurate to sub-pixel level, the proposed method can rapidly compensate the displacement deviation of the bottle in the image.

Key words: intelligent inspection machine, feature point detection, binary descriptor, local feature matching, displacement compensation

中图分类号: