Patent ID: 10528781

Abstract:
The invention provides a detection method and system for characteristic patterns of Han Xin codes. The detection method comprises the steps: binarizing a received two-dimensional code image, scanning the two-dimensional code image line-by-line and column-by-column so as to search out the four vertexes of a Han Xin code region, connecting every two vertexes of the four vertexes so as to form the four boundaries and two diagonal lines of the Han Xin code region, searching out four characteristic line segments starting from the vertexes and having the continuous binarization values 1, 0, 1, 0, 1 from the two diagonal lines and also searching out the end points of the characteristic line segments, and calculating the boundaries and the data bit width of position detection patterns of the Han Xin code according to the start points and the end points of the characteristic line segments.