A kind of qr code positioning and identification method

A technology of positioning method and recognition method, which is applied in the field of image recognition, can solve problems such as high restriction recognition efficiency, and achieve the effect of reducing image requirements and accurate geometric distortion correction

Active Publication Date: 2017-09-26
HUAZHONG UNIV OF SCI & TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the above defects or improvement needs of the prior art, the present invention provides a QR code positioning and recognition method, the purpose of which is to locate and recognize the QR codes that generate geometric distortion through image correction, thus solving the problem of existing QR codes. Scanning recognition requires high technical problems that limit recognition efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A kind of qr code positioning and identification method
  • A kind of qr code positioning and identification method
  • A kind of qr code positioning and identification method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] A QR code positioning method, comprising the following steps:

[0059] (1) Image acquisition and preprocessing: acquire the grayscale image of the QR code to be detected, and use the maximum inter-class variance method to perform binarization processing on the collected QR code graphics to obtain the binarized image of the QR code, such as image 3 shown;

[0060] (2) Judgment of positioning graphic coordinates: in the QR code binary image obtained in step (1), according to connected domain extraction, rectangularity analysis and island feature judgment, extract three positioning graphic coordinates of QR code, the specific steps are as follows:

[0061] (2-1) connected domain extraction: the QR code binarization image obtained in step (1), adopts the regional seed growth method to carry out connected domain analysis, and extracts the connected domain of black pixels;

[0062] (2-2) Rectangularity analysis: For each connected domain of black pixels obtained in step (2-...

Embodiment 2

[0067] A method for identifying a QR code, comprising the steps of:

[0068] S1. Perform positioning according to the described QR code positioning method, and obtain a QR code positioning image in the binarized image of the QR code according to the positioning result;

[0069] S2. For the QR code positioning image obtained in step S1, perform multiple erosion and expansion operations on the entire graphic, eliminate the color difference between the black and white modules of the QR code, and finally obtain a unified black area, such as Figure 4 shown. Then use the canny operator to detect the edge, get the QR code edge, the edge of the image is a white point, such as Figure 5 shown.

[0070] S3. For the QR code edge obtained in step S2, obtain the four sides of the QR code through an edge algorithm, and calculate the intersection point of the four sides as a distortion control point; the edge algorithm is an edge tracking algorithm or a point scanning algorithm. The conc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a QR code positioning and identification method. The positioning method includes the following steps: (1) obtain and binarize the image of the QR code to be detected; (2) extract the coordinates of the three positioning graphics of the QR code according to the connected domain extraction, rectangularity analysis and island feature judgment: , extract the connected domain of black pixels; obtain the rectangularity of the connected area, and retain the connected domain of black pixels whose rectangularity is greater than the screening threshold as the rectangular connected domain; retain the connected domain of rectangular pixels with the characteristics of islands of black pixels as the positioning mark, and obtain the positioning graph . The identification method includes the following steps: S1, positioning according to the positioning method; S2, detecting the edge of the QR code; S3, calculating the intersection point of the four sides as a distortion control point; S4, using a bilinear difference algorithm to geometrically correct the QR code image ; S5. Recognize according to the QR code recognition algorithm. This method is suitable for location and recognition of QR code images with geometric distortion.

Description

technical field [0001] The invention belongs to the field of image recognition, and more specifically relates to a QR code positioning and recognition method. Background technique [0002] QR code is a matrix two-dimensional code symbol. QR code not only has large information capacity, high reliability and low cost, but also can represent various text information such as Chinese characters and images. It has strong security and anti-counterfeiting and is very convenient to use. These characteristics determine that QR two-dimensional codes are suitable for forms, logistics tracking, licenses, inventory and other aspects. [0003] In many application scenarios, the two-dimensional code image acquired by the image acquisition device may have geometric distortion caused by various factors such as shooting angle and image bending. The obtained barcode image is not a standard square, but an arbitrary quadrilateral , due to the existence of this geometric distortion, the tradition...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06K7/10
Inventor 杨华尹周平胡洋
Owner HUAZHONG UNIV OF SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products