×

METHOD AND SYSTEM FOR DECODING TWO-DIMENSIONAL CODE USING WEIGHTED AVERAGE GRAY-SCALE ALGORITHM

  • US 20180137321A1
  • Filed: 01/15/2018
  • Published: 05/17/2018
  • Est. Priority Date: 07/23/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method for decoding two-dimensional code using weighted average gray-scale algorithm, characterized by comprising:

  • 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.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×