首页> 外国专利> TWO-DIMENSIONAL CODE PRELIMINARY POSITIONING METHOD AND SYSTEM

TWO-DIMENSIONAL CODE PRELIMINARY POSITIONING METHOD AND SYSTEM

机译:二维码的初步定位方法和系统

摘要

The invention provides a primary localization method and system for QR codes. The primary localization method for QR codes comprises the steps: S1, binarizing pixel points of a received image containing a QR code; S2, partitioning the image containing the QR code into at least one mesh region including m*n pixel points; S3, recording the number of black pixel points in each mesh region, assigning the value 1 to mesh regions including black points, and assigning the value 0 to mesh regions not including black points; S4, marking the image containing the QR code as a non-object region after values are assigned to the mesh regions; S5, scanning the non-object region line-by-line and column by column and marking the union of the mesh regions continuously with the value 1 for the first time in each line and the mesh regions continuously with the value 1 for the first time in each column as an object region; S6, judging whether the object region is the QR code region or not, if not, returning to step S5 to perform corresponding operation again, and if yes, outputting the line numbers and the column numbers of the pixel points corresponding to the boundaries of the object region. The method is rapid and accurate.
机译:本发明提供了一种用于QR码的主要定位方法和系统。 QR码的主要定位方法包括以下步骤:S1,对包含QR码的接收图像的像素点进行二值化; S2,将包含QR码的图像划分为至少一个包括m * n个像素点的网格区域; S3,记录每个网格区域中的黑色像素点的数量,将值1分配给包括黑点的网格区域,将值0分配给不包括黑点的网格区域; S4,将值分配给网格区域后,将包含QR码的图像标记为非对象区域; S5,逐行,逐列扫描非对象区域,并在每一行中第一次连续地将网格区域的并集标记为1,并且将第一次连续地将网格区域的并集标记为1在每一列中作为对象区域; S6,判断对象区域是否为QR码区域,如果不是,则返回步骤S5再次进行对应的操作,如果是,则输出与像素区域的边界相对应的像素点的行号和列号。对象区域。该方法快速准确。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号