Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A two-dimensional code decoding method and terminal

A decoding method and a decoding terminal technology, which are applied in the direction of electromagnetic radiation induction, etc., can solve problems such as the success rate of inkjet uneven two-dimensional code decoding, and achieve the effect of improving the success rate

Active Publication Date: 2022-04-19
厦门商集网络科技有限责任公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is: how to improve the two-dimensional code decoding success rate of uneven inkjet

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 two-dimensional code decoding method and terminal
  • A two-dimensional code decoding method and terminal
  • A two-dimensional code decoding method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] Such as figure 1 As shown, this embodiment provides a two-dimensional code decoding method, including:

[0057] S1. Acquiring a grayscale image of a two-dimensional code.

[0058]For example, input an image with a QR code graphic and the location information of the QR code graphic, intercept the area of ​​the QR code graphic, and grayscale the area of ​​the QR code graphic to obtain a grayscale image of the QR code ,Such as figure 2 shown. figure 2 The gray-scale image of the two-dimensional code shown in the dark module area is too large, the area of ​​the light-color module is relatively small, and some light-color modules are completely covered. The ratio of the number of black and white pixels in the standard QR code is 1:1, while figure 2 In the grayscale image of the two-dimensional code shown, due to the large amount of inkjet during the printing process of the printing device, the area occupied by the black pixels increases, and the two-dimensional code i...

Embodiment 2

[0081] This embodiment provides a two-dimensional code decoding terminal, including one or more processors and a memory, the memory stores a program, and is configured to perform the following steps by the one or more processors:

[0082] S1. Acquiring a grayscale image of a two-dimensional code.

[0083] For example, input an image with a QR code graphic and the location information of the QR code graphic, intercept the area of ​​the QR code graphic, and grayscale the area of ​​the QR code graphic to obtain a grayscale image of the QR code ,Such as figure 2 shown. figure 2 The gray-scale image of the two-dimensional code shown in the dark module area is too large, the area of ​​the light-color module is relatively small, and some light-color modules are completely covered. The ratio of the number of black and white pixels in the standard QR code is 1:1, while figure 2 In the grayscale image of the two-dimensional code shown, due to the large amount of inkjet during the ...

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 relates to a two-dimensional code decoding method and a terminal, belonging to the field of data processing. The present invention obtains the grayscale image of the two-dimensional code; obtains the grayscale histogram corresponding to the grayscale image; counts half of the total number of pixels in the grayscale image to obtain the target number; obtains the grayscale according to the preset formula degree threshold; the preset formula is specifically: T={t|min(dif(t))}; wherein, histGram[i] represents the number of pixels whose gray value is i in the gray histogram, S represents the number of targets, dif (t) represents the difference between the number of pixels whose gray value is not greater than t and the number of targets, and T represents the gray threshold; The above grayscale image is obtained to obtain a binary image; the barcode decoding algorithm is called to try to decode the binary image. Realize the improvement of the success rate of two-dimensional code decoding with inkjet unevenness.

Description

technical field [0001] The invention relates to a two-dimensional code decoding method and a terminal, belonging to the field of data processing. Background technique [0002] The traditional QR two-dimensional code decoding technology is limited to solving barcodes with relatively uniform depth and light modules captured by barcode reading equipment. However, in some scenarios, such as the value-added tax invoice printed by an inkjet printer, due to printer quality problems, too much ink causes the ink to spread in the dark module of the printed barcode, and finally the area of ​​​​the light module decreases; The area of ​​the light-colored module is enlarged. Both of these situations will lead to wrong values ​​when the pixel value sequence of the barcode is extracted in blocks, and finally the decoding fails. [0003] The patent document with application number 201510780603.2 provides a method and system for binarizing a QR two-dimensional code, including: obtaining a gr...

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/14
Inventor 吴建杭陈文传方恒凯
Owner 厦门商集网络科技有限责任公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products