WO2017012581A1 - 二维码加权平均灰度法解码方法及系统 - Google Patents

二维码加权平均灰度法解码方法及系统 Download PDF

Info

Publication number
WO2017012581A1
WO2017012581A1 PCT/CN2016/090990 CN2016090990W WO2017012581A1 WO 2017012581 A1 WO2017012581 A1 WO 2017012581A1 CN 2016090990 W CN2016090990 W CN 2016090990W WO 2017012581 A1 WO2017012581 A1 WO 2017012581A1
Authority
WO
WIPO (PCT)
Prior art keywords
decoding
bit region
average grey
weighted average
image
Prior art date
Application number
PCT/CN2016/090990
Other languages
English (en)
French (fr)
Inventor
蒋声障
吴卫东
Original Assignee
福建联迪商用设备有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 福建联迪商用设备有限公司 filed Critical 福建联迪商用设备有限公司
Priority to EP16827272.2A priority Critical patent/EP3309703B1/en
Priority to BR112018001244A priority patent/BR112018001244A2/pt
Publication of WO2017012581A1 publication Critical patent/WO2017012581A1/zh
Priority to US15/871,161 priority patent/US10108835B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling

Definitions

  • the invention relates to the technical field of two-dimensional codes, in particular to a method and a system for decoding a two-dimensional code weighted average gray scale method.
  • the two-dimensional code decoding algorithm based on image processing can be roughly divided into six steps: acquiring images, image preprocessing, positioning and correction, reading data, error correction, and decoding.
  • the basic steps of image preprocessing are gradation transformation, image filtering, threshold segmentation, edge detection, and binarization is included in the threshold segmentation.
  • an enhancement algorithm such as contrast adaptation and brightness adjustment
  • the binarization algorithm is used to realize the segmentation of the background and the object in the image, and the image is converted into an image with only two colors of black and white for decoding.
  • the two-dimensional code images captured by the two-dimensional code reading device vary widely, the influence of noise, and the image illumination. Unevenness, too large contrast and too small will make the conversion of the two-dimensional code image into a binarized image.
  • the effect of the binarization process of the image is directly related to the reading effect of the two-dimensional code.
  • the binarization method in the prior art has some shortcomings in dealing with complex backgrounds, and cannot deal with problems such as darkness, uneven illumination, too large or too small contrast, and thus cannot obtain a good binarization effect.
  • the Chinese invention patent publication CN104517089A discloses a two-dimensional code decoding system and a method thereof, the decoding method is: performing binarization processing on a two-dimensional code image to obtain a binarized image, the binarization processing including : cutting the two-dimensional code image to obtain a plurality of block regions; obtaining gray values of all the pixels of each block region, and obtaining gray values of each block region according to gray values of all the pixel points Determining a gray threshold of the block area according to an average gray value of a predetermined range in which each block area is located; and performing pixel points in the block area according to a gray threshold corresponding to each block area
  • Binarization processing obtains a binarized image; decoding the binarized image to obtain information content included in the two-dimensional code.
  • the code image is binarized, by performing a block operation on the code image, whether the pixel point in each of the block regions is determined to be black or determined in the process of restoring the code image is

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Toxicology (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明提供了一种二维码加权平均灰度法解码方法及系统,所述方法为:将接收到的二维码图像划分为一个比特数据的比特区域;预设偏移阀值,将所述比特区域的四个原始边界线向外移动偏移阀值的距离得到四个预设边界线;以四个预设边界线中的像素点与所述比特区域的重叠面积为权数采用加权平均法计算所述比特区域的平均灰度值;根据所述比特区域的平均灰度值对二维码图像进行二值化;对二值化后的二维码图像进行解码。充分考虑了与比特区域有重叠面积的像素点对所述比特区域平均灰度值的影响,解码准确率和成功率高。

Description

二维码加权平均灰度法解码方法及系统 技术领域
本发明涉及二维码技术领域,特别涉及一种二维码加权平均灰度法解码方法及系统。
背景技术
基于图像处理的二维码解码算法大体上可分为六个步骤:获取图像、图像预处理、定位与校正、读取数据、纠错以及译码。图像预处理基本步骤是灰度变换、图像滤波、阀值分割、边缘检测,二值化是包括在阀值分割里的。将获得的灰度图形经过对比度适应、亮度调节等增强算法后,利用二值化算法实现图像中背景和目标物的分割,将图片转化为只有黑白两种颜色的图像,以备解码使用。
但是,由于二维码依附的介质不同,所处的光照环境不同,以及成像系统不同等因素,会导致通过二维码识读设备抓取到的二维码图像千差万别,噪声的影响、图像光照不均、对比度过大过小等都会使得二维码图像转化为二值化图像变得很复杂,而图像的二值化过程的效果优劣又直接关乎二维码的识读效果。现有技术中的二值化方法应对复杂背景时有些不足,无法很好的处理较暗、光照不均、对比度过大或过小等问题,也就无法获得良好的二值化效果。
公开号为CN104517089A的中国发明专利公开了一种二维码解码系统及其方法,所述解码方法为:对二维码图像进行二值化处理得到二值化图像,所述二值化处理包括:将二维码图像进行切割得到若干分块区域;获取每一分块区域的所有像素点的灰度值,并根据所述所有像素点的灰度值获得每一分块区域的灰度值;根据每一分块区域所在的预定范围的平均灰度值,确定该分块区域的灰度阀值;根据每一分块区域对应的灰度阀值对该分块区域中的像素点进行二值化处理,得到二值化图像;对所述二值化图像进行解码,得到二维码所包含的信息内容。在对码图像进行二值化处理时,通过对码图像进行分块操作,对每一个分块区域内的像素点在码图像被还原的过程中是判定为黑还是判定为

Claims (1)

  1. Figure PCTCN2016090990-appb-100001
PCT/CN2016/090990 2015-07-23 2016-07-22 二维码加权平均灰度法解码方法及系统 WO2017012581A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP16827272.2A EP3309703B1 (en) 2015-07-23 2016-07-22 Method and system for decoding qr code based on weighted average grey method
BR112018001244A BR112018001244A2 (pt) 2015-07-23 2016-07-22 ?método e sistema para decodificação de código bidimensional usando o algoritmo médio ponderado da escala de cinza?
US15/871,161 US10108835B2 (en) 2015-07-23 2018-01-15 Method and system for decoding two-dimensional code using weighted average gray-scale algorithm

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510437265.2 2015-07-23
CN201510437265.2A CN105069394B (zh) 2015-07-23 2015-07-23 二维码加权平均灰度法解码方法及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/871,161 Continuation US10108835B2 (en) 2015-07-23 2018-01-15 Method and system for decoding two-dimensional code using weighted average gray-scale algorithm

Publications (1)

Publication Number Publication Date
WO2017012581A1 true WO2017012581A1 (zh) 2017-01-26

Family

ID=54498756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/090990 WO2017012581A1 (zh) 2015-07-23 2016-07-22 二维码加权平均灰度法解码方法及系统

Country Status (5)

Country Link
US (1) US10108835B2 (zh)
EP (1) EP3309703B1 (zh)
CN (1) CN105069394B (zh)
BR (1) BR112018001244A2 (zh)
WO (1) WO2017012581A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111161300A (zh) * 2019-12-05 2020-05-15 西安工程大学 一种基于改进大津法的Nilback的图像分割方法
CN114143474A (zh) * 2021-12-06 2022-03-04 广州尚臣电子有限公司 一种基于图像平均灰度的物感处理方法
CN116824467A (zh) * 2023-08-30 2023-09-29 江西省水利科学院(江西省大坝安全管理中心、江西省水资源管理中心) 一种排水管道流量智能测量方法

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069394B (zh) * 2015-07-23 2017-10-10 福建联迪商用设备有限公司 二维码加权平均灰度法解码方法及系统
CN106953690B (zh) * 2017-04-19 2019-10-22 浙江工业大学 基于可见光的智能设备近场通信系统
CN107545259A (zh) * 2017-08-31 2018-01-05 华南理工大学 一种基于大津法的二维码重构方法
ES2848842T3 (es) * 2018-05-15 2021-08-12 Wooptix S L Método de detección de código de barras
CN109361654B (zh) * 2018-09-18 2021-10-26 广州市溢信科技股份有限公司 一种基于区块链协商加密管理商业秘密的方法和系统
CN109559318B (zh) * 2018-10-12 2023-08-29 昆山博泽智能科技有限公司 基于积分算法的局部自适应图像阈值处理方法
CN109948392B (zh) * 2019-03-19 2022-03-18 厦门码灵半导体技术有限公司 二维码边界检测方法、分割方法、存储介质和电子设备
CN111835936A (zh) * 2019-04-22 2020-10-27 四川大学 一种基于qr码的多图像加密容量提升方法
US11126808B1 (en) 2019-05-30 2021-09-21 Owens-Brockway Glass Container Inc. Methods for dot code image processing on a glass container
CN110348267A (zh) * 2019-07-19 2019-10-18 北京慧眼智行科技有限公司 一种点阵码检测定位方法及装置
CN111009208B (zh) * 2019-12-27 2021-07-06 Tcl华星光电技术有限公司 面板显示的优化方法、显示面板及存储介质
EP3855342B1 (de) 2020-01-27 2021-12-15 Sick Ag Lesen von optischen codes
CN111343339B (zh) * 2020-03-03 2021-07-23 青岛海信移动通信技术股份有限公司 移动终端及其图像显示方法
CN111815725B (zh) * 2020-07-29 2024-03-08 苏州中科全象智能科技有限公司 一种qr码区域定位方法
CN111881834B (zh) * 2020-07-29 2022-03-01 武汉理工大学 一种基于改进大津算法的结构化道路车道线识别方法
DE102020130929A1 (de) * 2020-07-31 2022-02-03 Technische Universität Dortmund Verfahren und Vorrichtung zur Auswertung von Matrixcodes
CN113160166B (zh) * 2021-04-16 2022-02-15 宁波全网云医疗科技股份有限公司 通过卷积神经网络模型进行医学影像数据挖掘工作方法
CN113361674B (zh) * 2021-06-04 2023-04-14 重庆邮电大学 一种嵌套引导二维码的编码解码方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130053663A1 (en) * 2011-08-31 2013-02-28 General Electric Company Method for controlling sensor placement time, physiological measurement apparatus, and sensor and computer program product for a physiological measurement apparatus
CN104517089A (zh) * 2013-09-29 2015-04-15 北大方正集团有限公司 一种二维码解码系统及其方法
CN104657737A (zh) * 2013-11-20 2015-05-27 航天信息股份有限公司 基于聚类对qr二维码图像进行校正的方法和装置
CN105069394A (zh) * 2015-07-23 2015-11-18 福建联迪商用设备有限公司 二维码加权平均灰度法解码方法及系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4180497B2 (ja) * 2003-12-05 2008-11-12 富士通株式会社 コード種類判別方法、およびコード境界検出方法
CN100481117C (zh) * 2004-03-15 2009-04-22 武汉矽感科技有限公司 一种二维条码编解码方法
JP4755415B2 (ja) * 2004-12-21 2011-08-24 株式会社アドイン研究所 カラー二次元コード
CN101826159B (zh) * 2009-03-07 2013-01-09 鸿富锦精密工业(深圳)有限公司 实现灰度图像分区二值化的方法和数据处理设备
JP2010286740A (ja) * 2009-06-12 2010-12-24 Optoelectronics Co Ltd 光学的情報読取装置
CN101882207B (zh) * 2010-06-01 2012-06-20 福建新大陆电脑股份有限公司 Data Matrix码条码解码芯片及其解码方法
CN101882210B (zh) * 2010-06-01 2012-06-27 福建新大陆电脑股份有限公司 矩阵式二维条码解码芯片及其解码方法
CN103093225B (zh) * 2013-01-05 2016-01-20 武汉矽感科技有限公司 二维码图像的二值化方法
CN104517110B (zh) * 2013-09-29 2018-01-05 北大方正集团有限公司 一种二维码图像的二值化方法及系统
CN104636702A (zh) * 2015-01-26 2015-05-20 川渝中烟工业有限责任公司 一种用于烟草行业的二维码识别方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130053663A1 (en) * 2011-08-31 2013-02-28 General Electric Company Method for controlling sensor placement time, physiological measurement apparatus, and sensor and computer program product for a physiological measurement apparatus
CN104517089A (zh) * 2013-09-29 2015-04-15 北大方正集团有限公司 一种二维码解码系统及其方法
CN104657737A (zh) * 2013-11-20 2015-05-27 航天信息股份有限公司 基于聚类对qr二维码图像进行校正的方法和装置
CN105069394A (zh) * 2015-07-23 2015-11-18 福建联迪商用设备有限公司 二维码加权平均灰度法解码方法及系统

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111161300A (zh) * 2019-12-05 2020-05-15 西安工程大学 一种基于改进大津法的Nilback的图像分割方法
CN111161300B (zh) * 2019-12-05 2023-03-21 西安工程大学 一种基于改进大津法的Niblack的图像分割方法
CN114143474A (zh) * 2021-12-06 2022-03-04 广州尚臣电子有限公司 一种基于图像平均灰度的物感处理方法
CN114143474B (zh) * 2021-12-06 2023-10-10 广州尚臣电子有限公司 一种基于图像平均灰度的物感处理方法
CN116824467A (zh) * 2023-08-30 2023-09-29 江西省水利科学院(江西省大坝安全管理中心、江西省水资源管理中心) 一种排水管道流量智能测量方法
CN116824467B (zh) * 2023-08-30 2023-11-07 江西省水利科学院(江西省大坝安全管理中心、江西省水资源管理中心) 一种排水管道流量智能测量方法

Also Published As

Publication number Publication date
EP3309703A4 (en) 2018-10-10
US10108835B2 (en) 2018-10-23
CN105069394B (zh) 2017-10-10
CN105069394A (zh) 2015-11-18
EP3309703A1 (en) 2018-04-18
US20180137321A1 (en) 2018-05-17
EP3309703B1 (en) 2020-11-04
BR112018001244A2 (pt) 2018-09-18

Similar Documents

Publication Publication Date Title
WO2017012581A1 (zh) 二维码加权平均灰度法解码方法及系统
JP6395759B2 (ja) レーン検出
EP3309704B1 (en) Two-dimensional code partitioning and decoding method and system
CN106096610B (zh) 一种基于支持向量机的文档图像二值化方法
CN107545207A (zh) 基于图像处理的dm二维码识别方法及装置
US9558403B2 (en) Chemical structure recognition tool
CN108985305B (zh) 一种激光蚀刻工业雷管编码图像定位及校正方法
CN108133216B (zh) 基于机器视觉的可实现小数点读取的数码管读数识别方法
CN107490582B (zh) 一种流水线工件检测系统
CN107945194A (zh) 基于OpenCV技术的票据分割方法
CN106204617B (zh) 基于残差图像直方图循环移位的自适应图像二值化方法
CN110648330B (zh) 摄像头玻璃的缺陷检测方法
CN112308872B (zh) 基于多尺度Gabor一阶导数的图像边缘检测方法
CN110751635B (zh) 一种基于帧间差分和hsv颜色空间的口腔检测方法
CN104361335B (zh) 一种基于扫描图像自动去除黑边的处理方法
Kanter Color Crack: Identifying Cracks in Glass
CA3048813A1 (en) Logo detection video analytics
CN112200019A (zh) 一种快速建筑夜景照明灯光故障检测方法
CN104537632A (zh) 基于边缘提取的红外图像直方图增强方法
CN112686872B (zh) 基于深度学习的木材计数方法
CN107424134B (zh) 图像处理方法、装置、计算机可读存储介质和计算机设备
CN108205641B (zh) 手势图像处理方法及装置
CN105721738B (zh) 一种彩色扫描文档图像预处理方法
CN112288726A (zh) 一种井下带式输送机带面异物检测方法
CN104408430B (zh) 一种车牌定位方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16827272

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2016827272

Country of ref document: EP

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112018001244

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112018001244

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20180122