Patent Document ID: 10102408
Application ID: 15871912
Patent Status: 1

Claim One:
1. A quick response (QR) code feature detection method, characterized by comprising: presetting a threshold of the number of rows, and dividing a received QR code image into a multi-row image of rows of pixels whose number is the same as the threshold of the number of rows; calculating an average grayscale value of each column of pixels in the multi-row image to form row data; binarizing the row data; counting the number of consecutive “1” and the number of consecutive “0” in the binarized row data to form row proportions; presetting a row proportion threshold, and extracting a rectangle image corresponding to a row proportion whose similarity to a preset proportion is smaller than the row proportion threshold from the row proportions; presetting a width threshold, and binarizing the rectangle image and a region formed by extending the rectangle image by the width threshold upwardly and downwardly respectively; searching for column line segments meeting the preset proportion on a middle column of the rectangle image; translating a diagonal line of a square image containing the rectangle image and the column line segments in upward and downward directions respectively; searching for and recording black-white demarcation points on the edge of the square image on the translated diagonal line; and connecting the black-white demarcation points to form a position detection pattern of the QR code; wherein the threshold of the number of rows is greater than 1, and less than or equal to the number of rows of pixels corresponding to the position detection pattern of the QR code.