首页>
外国专利>
METHOD AND SYSTEM FOR DECODING QR CODE BASED ON WEIGHTED AVERAGE GREY METHOD
METHOD AND SYSTEM FOR DECODING QR CODE BASED ON WEIGHTED AVERAGE GREY METHOD
展开▼
机译:基于加权平均灰度法的QR码解码方法及系统
展开▼
页面导航
摘要
著录项
相似文献
摘要
The invention provides a method and system for decoding two-dimensional code using weighted average gray-scale algorithm. The method comprises: segmenting a received two-dimensional code image into bit regions each containing one bit data; presetting a shifting threshold, and shifting four original boundary lines of the bit region outwards by a distance of the shifting threshold to obtain four preset boundary lines; calculating an average gray-scale value of the bit region using the weighted average algorithm by taking an overlapping area between pixels inside the four preset boundary lines and the bit region as a weight; binarizing the two-dimensional code image according to the average gray-scale value of the bit region; and decoding the binarized two-dimensional code image. The influence of the pixels which have an overlapping area with the bit region on the average gray-scale value of the bit region is fully considered, and the decoding accuracy and success rate are high.
展开▼