计算机应用 ›› 2012, Vol. 32 ›› Issue (11): 3206-3209.DOI: 10.3724/SP.J.1087.2012.03206

• 图形图像处理 • 上一篇    下一篇

基于链码跟踪的Data Matrix二维条码快速识别

徐义钊1,白瑞林2,余震虹1,吉峰3   

  1. 1. 江南大学 轻工过程先进控制教育部重点实验室,江苏 无锡 214122
    2. 江南大学 智能控制研究所
    3. 无锡信捷电气有限公司,江苏 无锡 214072
  • 收稿日期:2012-05-13 修回日期:2012-06-18 发布日期:2012-11-12 出版日期:2012-11-01
  • 通讯作者: 徐义钊
  • 作者简介:徐义钊(1988-),男,江苏兴化人,硕士研究生,主要研究方向:嵌入式机器视觉;白瑞林(1955-),男,黑龙江双城人,教授,博士生导师,主要研究方向:机器视觉、智能系统。
  • 基金资助:
    江苏高校优势学科建设工程资助项目(PAPD);江苏省科技成果转化项目(BA2011032)

Quick Identification of Data Matrix Two-dimensional Bar Code Based on chain Code Tracking

  • Received:2012-05-13 Revised:2012-06-18 Online:2012-11-12 Published:2012-11-01
  • Contact: XU Yi-zhao

摘要: 为实现工业现场中Data Matrix二维条码的快速识别,提出一种基于链码跟踪、直线段提取的条码快速识别方法。首先采用Sobel算子提取图像边缘;然后基于链码跟踪方法,跟踪图像的边缘点,记录链码;接着根据快速直线段提取方法,将直线相似度低于阈值的线段剔除,结合线形连接方法合并断裂线段,并使用长度判别剔除不可靠的线段;最后结合Data Matrix二维条码的特征,定位Data Matrix二维条码。实际测试表明,该识别方法能够快速、准确地定位二维条码区域,识别正确率可达99.39%以上,具有实时性强、可靠性好等特点,满足工业现场要求。

关键词: 二维条码, Data Matrix, 链码跟踪, 直线段提取, 线形连接

Abstract: A two-dimensional bar code recognition method based on chain code tracking and straight line segment extraction was proposed in order to realize quick identification of the Data Matrix two-dimensional bar code in the industrial field. Firstly, the Sobel operator was used to extract the edge of image. Secondly, the image edge points were tracked and chain codes were recorded based on chain code tracking method. Thirdly, line segment whose straight line similarity was below the threshold was removed with fast straight line segment extraction method. The fracture line was combined with the linear connection method and the unreliable line was excluded by length discrimination. Finally, the Data Matrix bar code was located with the characteristics of the Data Matrix two-dimensional bar code. The application test shows that the two-dimensional bar code area can be quickly and accurately located by the recognition method with the recognition rate of 99.39%. The proposed method is ready to meet the requirements of industrial field with strong real-time ability and high reliability.

Key words: two-dimensional bar code, Data Matrix, chain code tracking, straight line segment extraction, linear connection

中图分类号: