CN112560536A - Method for reading and decoding image bar code by applying enhanced code reading mode - Google Patents
Method for reading and decoding image bar code by applying enhanced code reading mode Download PDFInfo
- Publication number
- CN112560536A CN112560536A CN202011569268.9A CN202011569268A CN112560536A CN 112560536 A CN112560536 A CN 112560536A CN 202011569268 A CN202011569268 A CN 202011569268A CN 112560536 A CN112560536 A CN 112560536A
- Authority
- CN
- China
- Prior art keywords
- decoding
- barcode
- images
- bar code
- decoded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1439—Methods for optical code recognition including a method step for retrieval of the optical code
- G06K7/1443—Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/146—Methods for optical code recognition the method including quality enhancement steps
- G06K7/1465—Methods for optical code recognition the method including quality enhancement steps using several successive scans of the optical code
Abstract
The invention provides a method for reading and decoding bar codes by applying an enhanced code reading mode, which comprises the steps of shooting a plurality of bar code images when the bar codes rapidly pass through decoding equipment, decoding the bar codes of the shot plurality of images one by one within a long interval time before the next article attached with the bar codes to be decoded arrives until all the bar codes in the images are decoded and decoded data are output. The invention uses the moving time of the longer interval distance between two articles pasted with the bar codes to be decoded to decode a plurality of shot bar code images in sequence, can include a clear and complete bar code image in the plurality of bar code images, has sufficient decoding time and high decoding accuracy and can effectively prevent the condition of missing decoding.
Description
Technical Field
The invention relates to a decoding method of an image bar code, in particular to a method for reading and decoding the image bar code by applying an enhanced code reading mode.
Background
Bar code technology is an automatic identification technology that has been created and developed in the practical use of computers. It is designed for realizing automatic scanning of information, and is an effective means for realizing rapid, accurate and reliable data acquisition. The application of the bar code technology solves the bottleneck problems of data entry and data acquisition, and provides favorable technical support for logistics management. A bar code is a symbol consisting of a set of regular bars and spaces and corresponding characters, which is used to represent certain information. The core content of the bar code technology is that the photoelectric scanning equipment is used for recognizing and reading the bar code symbols to realize the automatic recognition of the machine, and the data is rapidly and accurately recorded into a computer for data processing, thereby achieving the purpose of automatic management.
In some application scenes, the distance between two objects to be detected is far, the objects and the barcodes on the objects are very fast in moving, the existing decoding mode is generally to decode while shooting, and as the barcode moving speed is too fast, the reserved decoding time is very short, the time required for decoding is very long, and the captured barcode images cannot be guaranteed to be complete and clear, the decoding sometimes cannot be successful, or the situation of missing shooting and missing decoding can occur due to too long decoding time, therefore, a method for reading and decoding the image barcodes by using Turbo codes is needed, the two object barcodes to be detected are respectively decoded in a long blank time between decoding equipment, and the barcodes on each object are guaranteed to have sufficient time for decoding.
Disclosure of Invention
The invention aims to solve the problems that the existing decoding mode of scanning and decoding while the decoding time is too long due to too fast moving speed of an article attached with a bar code to be decoded is easy to miss shooting and decoding due to insufficient decoding time or the decoding accuracy is influenced due to poor quality of a shot bar code image caused by too fast moving speed, and provides a method for reading the bar code by applying an enhanced code reading mode.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for reading bar codes by applying an enhanced code reading mode comprises the following steps:
s1: finishing decoding preparation work, wherein the decoding equipment is just opposite to a conveying track of the article attached with the bar codes, and the number of the bar codes on each article is at least 1;
s2: starting decoding equipment, triggering the decoding equipment to continuously shoot and capture N barcode images and cache when the article attached with the barcodes passes through the decoding equipment, wherein N is more than or equal to 2;
s3: outputting the N images to a decoding library;
s4: the decoding library decodes all the bar codes on the N images in sequence until all the bar codes on the images are decoded;
s5: and outputting the decoded data, and waiting for the next article with the attached bar code to pass through the decoding equipment.
Preferably, the decoding apparatus is connected to the PC side.
Preferably, the PC end is provided with a tool interface, and the tool interface is used for configuring the decoding parameters.
Preferably, the decoding parameters include the number of captured images, i.e., N is a modifiable custom value.
Preferably, a high frame rate image-taking caching method is adopted to take a picture of the barcode on the fast moving object, namely N is more than or equal to 40.
Preferably, the exposure time and exposure gain for each barcode image are individually configured and different.
Preferably, the decoding parameters include image selection for starting decoding, that is, the operator selects to decode the subsequent barcode images in sequence starting from one of the N barcode images.
Preferably, different image processing methods are adopted to decode the N barcode images during decoding.
Preferably, the triggering condition of the decoding device triggering the shooting of the image barcode is that the sensor automatically senses the triggering or the manual key triggering.
Preferably, when the decoding operation in step S4 is performed, all the N cached pictures are output to the decoding library, the decoding library sequentially decodes the first picture to the nth picture, and when the M is decoded and M is greater than or equal to 1 and less than or equal to N, all the barcodes on the pictures are completely decoded, and then decoding is stopped.
The invention discloses a method for reading and decoding bar codes by applying an enhanced code reading mode, which is different from the conventional method of 'shooting and decoding at the same time', can continuously shoot a plurality of bar code images and output the bar code images to a decoding library for decoding in sequence, is suitable for application scenes with high moving speed and large spacing distance between two adjacent articles with bar codes to be decoded, shoots the plurality of bar code images when the bar codes rapidly pass through decoding equipment, and decodes the bar codes of the shot plurality of images one by one within a long time interval before the next article with the bar codes to be decoded arrives until all the bar codes in the images are decoded and the decoded data is output. The invention uses the moving time of the longer interval distance between two articles pasted with the bar codes to be decoded to decode a plurality of shot bar code images in sequence, can include a clear and complete bar code image in the plurality of bar code images, has sufficient decoding time and high decoding accuracy and can effectively prevent the condition of missing decoding.
Drawings
FIG. 1 is a schematic flow chart of a method for reading a barcode using an enhanced reading mode.
Detailed Description
In order to further understand the objects, structures, features and functions of the present invention, the following embodiments are described in detail.
Referring to fig. 1, the present invention provides a method for reading a barcode by using an enhanced code reading mode, which includes the following steps:
s1: and finishing the decoding preparation work, wherein the decoding equipment is opposite to the conveying track of the articles attached with the bar codes, and the number of the bar codes on each article is at least 1.
S2: and starting the decoding equipment, triggering the decoding equipment to continuously shoot and capture N barcode images and cache when the article attached with the barcode passes through the decoding equipment, wherein N is more than or equal to 2.
S3: and outputting the N images to a decoding library.
S4: and the decoding library is used for sequentially decoding all the bar codes on the N images until all the bar codes on the images are decoded.
S5: and outputting the decoded data, and waiting for the next article with the attached bar code to pass through the decoding equipment.
And when the decoding operation of the step S4 is carried out, all the N cached pictures are output to a decoding library, the decoding library sequentially decodes from the first picture to the Nth picture, and when the Mth picture is decoded and M is not less than 1 and not more than N, all the bar codes on the pictures are completely decoded, and the decoding is stopped.
In one embodiment, 1 bar code to be decoded is pasted on an article, after the decoding preparation work is finished, the decoding equipment is started, the article triggers the decoding equipment when passing through the decoding equipment, and the triggering condition of triggering the shooting image bar code by the decoding equipment is that a sensor automatically senses triggering or manual key triggering. The decoding device continuously shoots N barcode images, for example 10 barcode images, and the 10 barcode images are output to the decoding library, because the moving speed of the article is high and the distance between two adjacent articles is long, the shot article leaves the lower part of the decoding device at the moment, but the second article attached with the barcode to be decoded does not arrive yet, and the blank time is long, so that the decoding device can be used for centralized decoding. The decoding library sequentially decodes the 10 bar code images, which can be images designated by an operator to start decoding, for example, if the operator selects to decode from the 2 nd bar code image, the decoding library selects the 2 nd bar code image to start decoding, if the first bar code image is decoded successfully, the decoding library stops decoding, decoded data is output, and the shooting of the bar code image on the next article is waited; if the first piece fails to be decoded successfully, then the 3 rd piece is decoded in sequence, the decoding is stopped until the bar code on the image is decoded successfully, the decoded data is output, and the bar code image on the next article is waited to be shot.
In another embodiment, the article has multiple barcodes attached to it to be decoded, for example a total of 3 barcodes attached. After the decoding preparation work is finished, the decoding equipment is started, the decoding equipment is triggered when the article passes through the decoding equipment, and the triggering condition of triggering the shooting image bar code by the decoding equipment is that the sensor automatically senses the triggering or the manual key triggering. The decoding device continuously shoots N barcode images, for example 10 barcode images, and the 10 barcode images are output to the decoding library, because the moving speed of the article is high and the distance between two adjacent articles is long, the shot article leaves the lower part of the decoding device at the moment, but the second article attached with the barcode to be decoded does not arrive yet, and the blank time is long, so that the decoding device can be used for centralized decoding. The decoding library decodes the 10 bar code images in sequence, wherein the decoding library can be an image which is specified by an operator to start decoding, for example, the operator selects the 2 nd bar code image to start decoding, the decoding library selects the 2 nd bar code image to start decoding, and as each bar code image has 3 bar codes, if the 2 nd bar code image is decoded, all the 3 bar codes are decoded, the decoding is stopped, the bar codes of the following image are not decoded, the decoded data are output, and the bar code image on the next article is waited to be shot; if the decoding work of 3 bar codes is not completed completely after the 2 nd image is decoded, the subsequent 3 rd image is decoded in sequence, the decoding is stopped in sequence until all the 3 bar codes in the image are decoded, the decoded data is output, and the bar code image on the next article is waited to be shot.
In one embodiment, the decoding device is connected with the PC terminal. The PC end is provided with a tool interface which is used for configuring decoding parameters. An operator can configure parameters through a tool interface of the PC end, and the PC end stores decoding data and the like to enhance human-computer interaction. Preferably, the decoding parameters include the number of captured images, that is, N is a changeable self-defined value, so that all barcode images have decoding time in the interval time.
Preferably, when decoding scenes on the fast moving object are decoded, the barcode on the fast moving object is photographed and image-captured by adopting a high frame rate image-capturing cache method, namely N is more than or equal to 40, so that when the object moves at a high speed, the barcode on the object can be clearly captured to at least 40 barcode images, the barcode images can be completely and clearly captured, and decoding is facilitated.
Preferably, the decoding parameters include exposure time and exposure gain of each barcode image, and the exposure gain and exposure time of each barcode image can be set to different parameters to obtain barcode images with different exposures, so as to ensure that at least 1 barcode image in the N photographed barcode images can be completely decoded.
Preferably, the decoding parameters include an image selection to start decoding, i.e., the operator selects to decode sequentially starting from one of the N barcode images. During decoding, decoding can be started from the 1 st starting point or the 3 rd starting point according to the selection of an operator, and the decoded initial image can be defined by the operator.
Preferably, different image processing methods are adopted to decode the N barcode images during decoding, and different image processing methods are adopted to shoot different barcode images, so that each image is clear and complete, and better decoding is facilitated.
The method for reading and decoding the bar code by applying the enhanced code reading mode is different from the conventional method of 'shooting and decoding at the same time', can continuously shoot a plurality of bar code images and output the images to a decoding library together for decoding in sequence, and is suitable for application scenes with high moving speed and large spacing distance between two adjacent articles with the bar codes to be decoded. The plurality of bar code images comprise a clear and complete bar code image, the decoding time is sufficient, the decoding accuracy is high, and the condition of missing solution can be effectively prevented.
The present invention has been described in relation to the above embodiments, which are only exemplary of the implementation of the present invention. It should be noted that the disclosed embodiments do not limit the scope of the invention. Rather, it is intended that all such modifications and variations be included within the spirit and scope of this invention.
Claims (10)
1. A method for reading a bar code by applying an enhanced code reading mode is characterized by comprising the following steps:
s1: finishing decoding preparation work, wherein the decoding equipment is just opposite to a conveying track of the article attached with the bar codes, and the number of the bar codes on each article is at least 1;
s2: starting decoding equipment, triggering the decoding equipment to continuously shoot and capture N barcode images and cache when the article attached with the barcodes passes through the decoding equipment, wherein N is more than or equal to 2;
s3: outputting the N images to a decoding library;
s4: the decoding library decodes all the bar codes on the N images in sequence until all the bar codes on the images are decoded;
s5: and outputting the decoded data, and waiting for the next article with the attached bar code to pass through the decoding equipment.
2. The method of claim 1 for decoding a barcode using an enhanced read mode, comprising: the decoding device is connected with the PC terminal.
3. The method of claim 2, wherein the barcode is read using an enhanced read mode, comprising: and the PC end is provided with a tool interface which is used for configuring decoding parameters.
4. The method of claim 3, wherein the barcode is read using an enhanced read mode, comprising: the decoding parameters comprise the number of captured images, namely N is a changeable self-defined numerical value.
5. The method of claim 4, wherein the barcode is read using an enhanced read mode, comprising: and (3) photographing and image-fetching the bar code on the fast moving object by adopting a high frame rate image-fetching cache method, namely N is more than or equal to 40.
6. The method of claim 5, wherein the barcode is read using an enhanced read mode, comprising: the exposure time and the exposure gain of each bar code image are configured independently and respectively different.
7. The method of claim 6, wherein the barcode is read using an enhanced read mode, comprising: the decoding parameters comprise image selection for starting decoding, namely, an operator selects one of the N barcode images to start, and then the subsequent barcode images are decoded sequentially.
8. The method of claim 6, wherein the barcode is read using an enhanced read mode, comprising: and decoding the N bar code images by adopting different image processing methods during decoding.
9. The method of claim 1 for decoding a barcode using an enhanced read mode, comprising: the trigger condition of the decoding device triggering the shooting of the image bar code is that a sensor automatically senses the trigger or a manual key trigger.
10. The method of claim 1 for decoding a barcode using an enhanced read mode, comprising: and when the decoding operation of the step S4 is carried out, all the N cached pictures are output to a decoding library, the decoding library sequentially decodes from the first picture to the Nth picture, and when the Mth picture is decoded and M is not less than 1 and not more than N, all the bar codes on the pictures are completely decoded, and the decoding is stopped.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011569268.9A CN112560536A (en) | 2020-12-26 | 2020-12-26 | Method for reading and decoding image bar code by applying enhanced code reading mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011569268.9A CN112560536A (en) | 2020-12-26 | 2020-12-26 | Method for reading and decoding image bar code by applying enhanced code reading mode |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112560536A true CN112560536A (en) | 2021-03-26 |
Family
ID=75033237
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011569268.9A Pending CN112560536A (en) | 2020-12-26 | 2020-12-26 | Method for reading and decoding image bar code by applying enhanced code reading mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112560536A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115426442A (en) * | 2022-08-11 | 2022-12-02 | 无锡盈达聚力科技有限公司 | Optical information collector and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070228174A1 (en) * | 2006-03-31 | 2007-10-04 | Symbol Technologies, Inc. | Imaging-based bar code reader utilizing stitching method and swipe guide |
CN102622574A (en) * | 2012-04-13 | 2012-08-01 | 南京华博科技有限公司 | Double-barcode scanning unit and scanning method and application thereof |
CN106778409A (en) * | 2016-11-28 | 2017-05-31 | 北京慧眼智行科技有限公司 | A kind of code figure detection method and detecting system |
CN106846670A (en) * | 2016-12-27 | 2017-06-13 | 福建瑞之付微电子有限公司 | A kind of bar code reading method for being applied to POS terminal |
CN111835981A (en) * | 2020-07-01 | 2020-10-27 | 上海视界纵横智能科技有限公司 | Industrial scanning equipment and method capable of identifying transmission speed |
-
2020
- 2020-12-26 CN CN202011569268.9A patent/CN112560536A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070228174A1 (en) * | 2006-03-31 | 2007-10-04 | Symbol Technologies, Inc. | Imaging-based bar code reader utilizing stitching method and swipe guide |
CN102622574A (en) * | 2012-04-13 | 2012-08-01 | 南京华博科技有限公司 | Double-barcode scanning unit and scanning method and application thereof |
CN106778409A (en) * | 2016-11-28 | 2017-05-31 | 北京慧眼智行科技有限公司 | A kind of code figure detection method and detecting system |
CN106846670A (en) * | 2016-12-27 | 2017-06-13 | 福建瑞之付微电子有限公司 | A kind of bar code reading method for being applied to POS terminal |
CN111835981A (en) * | 2020-07-01 | 2020-10-27 | 上海视界纵横智能科技有限公司 | Industrial scanning equipment and method capable of identifying transmission speed |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115426442A (en) * | 2022-08-11 | 2022-12-02 | 无锡盈达聚力科技有限公司 | Optical information collector and method |
CN115426442B (en) * | 2022-08-11 | 2023-06-27 | 无锡盈达聚力科技有限公司 | Optical information collector and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10325129B2 (en) | Method and apparatus for ordering code candidates in image for decoding attempts | |
US9224024B2 (en) | Invariant design image capture device | |
JP4506801B2 (en) | Image recognition apparatus, image recognition method, and image recognition program | |
EP1466291B1 (en) | Method and apparatus for rapid image capture in an image system | |
CN102034073B (en) | Bar code identification method and bar code identification device | |
JP2010218061A (en) | Image processing device | |
CN112560536A (en) | Method for reading and decoding image bar code by applying enhanced code reading mode | |
US8511572B2 (en) | Encoded information reading terminal with data formatting functionality | |
US20220345609A1 (en) | Camera multi-line time-division exposure processing method and system | |
CN100353370C (en) | Method and system for decoding bar code image | |
CN111931530B (en) | Industrial bar code recognition device and method based on deep learning | |
CN111539236A (en) | Method for reading multiple bar codes at one time | |
CN107403217A (en) | A kind of label aids in random frame identifying system | |
CN112001200A (en) | Identification code identification method, device, equipment, storage medium and system | |
WO2022062027A1 (en) | Wine product positioning method and apparatus, wine product information management method and apparatus, and device and storage medium | |
CN111327836B (en) | Camera exposure processing method and system | |
CN103581567B (en) | Visual encoding series processing method and system, the broadcasting of visual encoding sequence and system thereof | |
JP2000236493A5 (en) | ||
CN112560534B (en) | Multi-parameter configuration static sequential decoding output method | |
CN114692663B (en) | Photographing identification fault tolerance method for code reading failure | |
JP2023530979A (en) | Method and system for imaging moving prints | |
CN112560535A (en) | Decoding output method for panoramic sequencing | |
CN112634067A (en) | Intelligent terminal mobile phone insurance application method based on face recognition | |
CN111405194A (en) | Image processing method and device | |
CN111539235A (en) | Method for preventing bar code from being scanned by two-dimensional bar code scanning engine by mistake and decoder applying same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |