One-dimensional barcode decoding method based on bar and space unit amplification

A decoding method and dimensional bar code technology, applied in instruments, inductive record carriers, electromagnetic radiation induction, etc., can solve problems such as decoding failure, and achieve the effect of improving the decoding rate

CN106570438BActive Publication Date: 2019-02-01SHANGHAI HUANGHE INFORMATION TECH CO LTD
5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2019-02-01

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a one-dimensional barcode decoding method based on bar vacancy unit amplification, which is characterized by comprising the steps of positioning the barcode center of a barcode image and determining an inclination angle of a barcode according to existing technologies, and determining a barcode center scanning line according to the inclination angle of the barcode and the barcode center; calculating bar vacancy unit boundary points on the barcode center scanning line, acquiring a width flow, decoding the width flow, and returning decoding information if the width flow is successfully decoded; if the width flow is decoded unsuccessfully and the barcode is horizontal or vertical, returning a decoding failure, if not, getting into a procedure of correcting and amplifying a bar vacancy unit of the barcode, and decoding a new width flow again. The one-dimensional barcode decoding method not only can meet decoding requirements of ordinary barcodes, but also can meet decoding requirements of inclined barcodes with certain decoding difficulty. Meanwhile, when the boundary points on the barcode scanning line are not accurately extracted, the one-dimensional barcode decoding method can achieve a certain correction effect, so that the decoding rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to a decoding method of a one-dimensional barcode. Background technique

[0002] The one-dimensional barcode decoding method mainly locates the boundary of the scanning line according to the prior art, determines the bar space unit, extracts the width stream, and uses the width stream to decode. When the one-dimensional barcode has an inclination angle of 45° or 135°, especially when the space unit of the barcode is narrow, the decoding failure rate is high.

[0003] like figure 1 As shown, it is a barcode image with an inclination angle of about 45°. It can be seen from the figure that this barcode is affected by the printing quality, the barcode clarity is not enough, and the image contrast is not strong, which will affect the determination of the boundary points. There may be some errors in the positioning of the location. to combine figure 2 , when the barcode image has a certain inclination angle and the narrow unit in t...

Examples

Embodiment Construction

[0018] In order to make the present invention more comprehensible, preferred embodiments are described in detail below with accompanying drawings.

[0019] The general idea of ​​the present invention is: locate the barcode center of the barcode image with the prior art and determine the inclination angle of the barcode, determine the barcode center scanning line according to the inclination angle of the barcode and the barcode center point, and calculate the bar space cell boundary on the barcode center scanning line Point, get the width stream, send it to the decoding, if the decoding is successful, it will return the decoding information, if the decoding fails and the barcode is horizontal or vertical, it will return the decoding failure, otherwise, enter the process of correcting and enlarging the barcode bar empty unit, and send it to the decoding again .

[0020] to combine Figure 4 , a kind of one-dimensional bar code decoding method based on bar empty unit amplificati...