A barcode decoding method and device
A decoding method and barcode technology, which are applied in the field of barcode decoding methods and devices, can solve problems such as inaccurate decoding templates, deviations between bar space width and theoretical width, and inaccurate decoding.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] figure 1 A schematic diagram of a barcode decoding process provided by an embodiment of the present invention, the process includes the following steps:
[0050] S101: For the character to be decoded in the barcode, according to the number of boundary points of the decoded character corresponding to the type of the barcode, and the first target end boundary point of the character preceding the character to be decoded located on the row scanning line, It is determined that the character to be decoded is located at a candidate end boundary point on the row scanning line.
[0051] The barcode decoding method provided by the embodiment of the present invention can be applied to electronic equipment, and the electronic equipment can be a barcode reading device such as a handheld barcode reader, a fixed barcode reader, or a terminal such as a mobile phone or a tablet computer with a barcode decoding function. equipment.
[0052] The electronic device can identify the charac...
Embodiment 2
[0066] When the boundary is unclear and the camera angle deviation is large, the width value corresponding to each character to be decoded in the barcode is closely related to the width value corresponding to the previous character, in order to further improve the accuracy of decoding. On the basis of the above-mentioned embodiments, in the embodiment of the present invention, the method further includes:
[0067] Perform the stored second width value of the decoded character according to the third width value corresponding to the first target end boundary point of the character to be decoded and the second target end boundary point range of the character to be decoded renew.
[0068] In the embodiment of the present invention, after the target end boundary point of each character to be decoded is determined, it may be based on the first target end boundary point of the previous character of the character to be decoded and the first target end boundary point of the character t...
Embodiment 3
[0070] In order to further improve the accuracy of decoding, on the basis of the above-mentioned embodiments, in the embodiment of the present invention,
[0071]According to the first width value corresponding to the first target end boundary point and the candidate end boundary point range and the stored second width value of the decoded character, determine that the character to be decoded is located on the row scanning line The second objective end boundary points include:
[0072] judging whether the absolute value of the difference between the first width value corresponding to the character to be decoded and the saved second width value is less than a set threshold;
[0073] If yes, the candidate end boundary point is used as the second target end boundary point where the character to be decoded is located on the row scanning line;
[0074] If not, identifying the distance between each boundary point on the line scan line and the first target end boundary point, and th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


