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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com