Bar code recognition method and device

A barcode recognition and barcode technology, applied in the field of barcode recognition methods and devices, can solve the problems of calculating the width, decoding failure, photographing condition restrictions, etc., and achieve the effect of improving the recognition success rate

Active Publication Date: 2012-11-28
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF4 Cites 45 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method, which relies heavily on image binarization and grayscale gradient analysis, is easily limited by the camera conditions of the user terminal. For example, a user terminal with low resolution and blurred focus may not be able to accurately The grayscale information calculates the width of each black and white bar within the barcode, causing the decoding to fail

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
  • Bar code recognition method and device
  • Bar code recognition method and device
  • Bar code recognition method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0065] figure 2 The flow chart of the barcode recognition method provided by Embodiment 1 of the present invention, such as figure 2 As shown, the method may include the following steps:

[0066] Step 201: Binarize the barcode image acquired by the user terminal.

[0067] The user terminals involved in the embodiments of the present invention may include, but are not limited to: mobile phones, computers, cameras, ipads, scanners, etc. with camera or scanning functions. The barcode image obtained by the user terminal is as follows: figure 1 Shown includes the barcode and the characters below the barcode, including but not limited to numbers and letters.

[0068] The so-called image binarization is to set the gray value of the pixels on the image to 0 or 255, that is, to present the entire image with an obvious visual effect of only black and white. Binarization is the basic operation of image processing. In this step, any binarization method in the prior art may be used, ...

Embodiment 2

[0090] The difference between this embodiment and Embodiment 1 is that the geometric correction process is performed on the barcode image in advance to prevent the barcode image from occurring due to the limitation of the shooting conditions of the terminal, or the shooting distance and shooting angle of the user when the user terminal acquires the barcode image. Barcode recognition failure due to skew or distortion. Figure 5 The flow chart of the barcode recognition method provided by Embodiment 2 of the present invention, such as Figure 5 As shown, the method may include the following steps:

[0091] Step 501: Locate the barcode area in the barcode image acquired by the user terminal, and determine the corner points of the barcode area.

[0092] This step can be implemented as Image 6 shown, including:

[0093] Step 601: Grayscale the barcode image acquired by the user terminal.

[0094] Step 602: Perform edge detection on the grayscaled barcode image to obtain an edg...

Embodiment 3

[0110] Figure 7 The structure diagram of the barcode recognition device provided for the third embodiment of the present invention, the device can be set in a user terminal capable of obtaining barcode images, the user terminal can include but not limited to: mobile phones, computers, cameras, ipads with camera or scanning functions , a scanner, etc., the device may also be a device independent of the user terminal. Such as Figure 7 As shown, the device includes: an image binarization unit 700 , a character area positioning unit 710 , a character positioning unit 720 and a text recognition unit 730 .

[0111] First, the image binarization unit 700 binarizes the barcode image acquired by the user terminal. Any binarization method such as a global binarization method, a local adaptive binarization method, etc. can be used.

[0112] The character area positioning unit 710 performs lateral projection on the binarized barcode image, and locates the character area according to ...

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 provides a bar code recognition method and device. The method comprises the following steps of: performing binaryzation on a bar code image acquired by a user terminal; transversely projecting the bar code image subjected to the binaryzation, and positioning a character zone according to the distribution condition of transverse projection values; longitudinally projecting the character zone, and positioning each character according to the distribution condition of longitudinal projection values; and performing character recognition on each character, and combining the character recognition result to obtain a bar code recognition result. According to the invention, the character recognition technology is introduced into bar code recognition, the bar code recognition result is obtained in a mode of recognizing the characters below the bar code instead of a decoding mode of calculating the widths of black and white bars, and the success rate of bar code recognition is improved at the user terminal with limited shooting conditions.

Description

【Technical field】 [0001] The invention relates to the field of computer application technology, in particular to a barcode identification method and device. 【Background technique】 [0002] Barcode, also known as barcode (Barcode), is to arrange multiple black bars and white bars (also called blanks) of different widths according to certain coding rules to express a set of graphic identifiers for information. Characters such as numbers or letters, such as figure 1 shown. Barcodes can mark a lot of information such as the country of manufacture, manufacturer, product name, production date, book classification number, mail start and end location, category, date, etc. be widely used. [0003] The existing barcode recognition scheme is based on image processing, and performs binarization or grayscale gradient analysis on the barcode image captured or scanned by the user terminal, so as to obtain the accurate width of each black and white bar in the barcode, and then decode acc...

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/10
Inventor 刘经拓
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
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