Two-dimensional code distortion correction method and apparatus

A distortion correction and two-dimensional code technology, which is applied in the field of two-dimensional code distortion correction method and device, can solve problems such as the inability to correct the rotation of two-dimensional codes, and achieve the effects of quick acquisition, improved convenience, and convenient decoding

Inactive Publication Date: 2018-04-20
BEIJING LUSTER LIGHTTECH
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a two-dimensional code distortion correction method and device to solve the problem tha

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
  • Two-dimensional code distortion correction method and apparatus
  • Two-dimensional code distortion correction method and apparatus
  • Two-dimensional code distortion correction method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0064] See figure 2 An embodiment of the present application provides a method for correcting distortion of a two-dimensional code, and the method includes the following steps:

[0065] Step S101: Obtain a two-dimensional code image.

[0066] In specific implementation, the QR code image scanned by the code scanning tool can be obtained on the computer, or the QR code image can be directly obtained by the device that collects the QR code image.

[0067] Step S102: Calculate the distortion image coordinates p of the four vertices of the two-dimensional code image according to the two-dimensional code image.

[0068] In this step, the distorted image coordinates p of the four vertices of the two-dimensional code image refer to the coordinates of the four vertices of the quadrilateral formed by the edges of the two-dimensional code image. Since the quadrilateral is obtained after the two-dimensional code image is deformed, The coordinates of the four vertices of the quadrilateral are ca...

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

Embodiments of the invention disclose a two-dimensional code distortion correction method and apparatus. The method comprises the steps of obtaining a two-dimensional code image; according to the two-dimensional code image, calculating distorted image coordinates of four vertexes of the two-dimensional code image; according to a preset length-width ratio of a two-dimensional code, calculating undistorted image coordinates corresponding to the four vertexes of the two-dimensional code image; according to the distorted image coordinates and the undistorted image coordinates, establishing a linear equation set; according to the linear equation set, calculating unknown parameters in a homography matrix; according to a calculation result, correcting the two-dimensional code image; and outputting a rectangular image containing the corrected two-dimensional code image. The method and the apparatus can be used for distortion correction of different types of two-dimensional codes; the use convenience and the diversity of application scenes are remarkably improved; the rotation-free corrected two-dimensional code image can be quickly obtained; the correction process is simple and quick; thefinally output corrected two-dimensional code image is a rectangular region image only containing two-dimensional code region information; subsequent decoding is facilitated; and the decoding efficiency can be improved.

Description

technical field [0001] The present application relates to the technical field of two-dimensional code recognition, and in particular to a two-dimensional code distortion correction method and device. Background technique [0002] With the development of intelligent hardware technology, the application of QR codes in daily life and industry is becoming more and more common. QR codes can store more information than traditional barcodes, and can also represent more data types. [0003] In the actual use of two-dimensional codes, due to imaging conditions and other reasons, there are often projection distortions in the two-dimensional code image, which affects subsequent code reading and recognition. see figure 1 For example, when using a mobile phone to scan a QR code for payment in a supermarket, due to the performance parameter error of the mobile phone lens, or the imaging plane of the QR code is not perpendicular to the optical axis of the mobile phone lens, etc., the pro...

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
IPC IPC(8): G06K7/14G06T3/00
CPCG06K7/1417G06K7/146G06T3/0093
Inventor 柯俊山姚毅
Owner BEIJING LUSTER LIGHTTECH
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