Two-dimensional code distortion correction method and apparatus

一种畸变校正、二维码的技术,应用在二维码畸变校正方法及装置领域,能够解决不能校正二维码旋转等问题,达到快速获取、提升方便性、方便解码的效果

Inactive Publication Date: 2018-04-20
BEIJING LUSTER LIGHTTECH
View PDF5 Cites 18 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 that the existing two-dimensional code distortion correction method cannot correct the rotation of the two-dimensional code

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] see figure 2 , the embodiment of the present application provides a two-dimensional code distortion correction method, the method includes the following steps:

[0065] Step S101, acquiring a two-dimensional code image.

[0066] During specific implementation, the two-dimensional code image scanned by the code scanning tool can be obtained on the computer, or the two-dimensional code image can be directly obtained by using the device for collecting the two-dimensional code image.

[0067] Step S102, calculating the distorted 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 distorted, therefore ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06K7/14G06T3/00
CPCG06K7/1417G06K7/146G06T3/18
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