CN111241857A - Method based on conversion scanning between one-dimensional code and two-dimensional code - Google Patents
Method based on conversion scanning between one-dimensional code and two-dimensional code Download PDFInfo
- Publication number
- CN111241857A CN111241857A CN202010071292.3A CN202010071292A CN111241857A CN 111241857 A CN111241857 A CN 111241857A CN 202010071292 A CN202010071292 A CN 202010071292A CN 111241857 A CN111241857 A CN 111241857A
- Authority
- CN
- China
- Prior art keywords
- scanning
- dimensional
- code
- module
- attribute
- 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
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 15
- 230000009191 jumping Effects 0.000 claims abstract description 10
- 238000005070 sampling Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 3
- 238000012952 Resampling Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
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/0004—Hybrid readers
-
- 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/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
- G06K7/10861—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing of data fields affixed to objects or articles, e.g. coded labels
-
- 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/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1413—1D bar codes
-
- 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/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Electromagnetism (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Character Input (AREA)
Abstract
The invention discloses a method based on conversion scanning between one-dimensional codes and two-dimensional codes, which comprises the following steps: circularly identifying a decoding request; starting any scanning module to scan and search the distinguishing characteristic points of the image object codes, and judging the category attribute of the object codes according to the distinguishing characteristic points of the image object codes; and judging whether the image article code corresponds to the started scanning module according to the category attribute of the article code, and if the scanning fails and the article code does not correspond to the started scanning module, automatically jumping to another scanning module for scanning and identification to finish the scanning and identification. The category attribute of the commodity code is rapidly identified by comparing the distinguishing characteristic points of the image item code, whether the category attribute of the item code corresponds to the started scanning module or not is accurately judged, the identification is directly completed or another scanning module is skipped to carry out scanning identification without skipping, manual judgment is omitted, the scanning module is selected to carry out identification scanning, the operation is convenient, and the identification speed is high.
Description
Technical Field
The invention relates to the field of article coding identification, in particular to a method based on conversion scanning between a one-dimensional code and a two-dimensional code.
Background
The existing article codes are mainly divided into two-dimensional codes (such as QR Code, PDF417, DataMatrix and Hanxin codes) and one-dimensional codes (such as bar codes), wherein a two-dimensional Code module is used for identifying and scanning the two-dimensional codes or the one-dimensional codes, and a one-dimensional module is used for identifying the one-dimensional codes. Most of scanning modules for scanning article codes are installed on various handheld scanning guns or scanning platforms, and corresponding article information or payment information is acquired by scanning and recognizing graphic bar code identifiers. Because the length of one-dimensional code (bar code) is longer, and the identification area of two-dimensional code module is less, can't all scan complete one-dimensional code (bar code), lead to the discernment failure, need carry out adjustment scanning many times, the operation is complicated to the speed of one-dimensional code is deciphered in the discernment of two-dimensional code module is slower, is far away from speed and the precision of one-dimensional module discernment decipherment.
In the field of the current scanning method, different systems are required to be installed on two devices to respectively complete scanning of the two-dimensional code and the one-dimensional code, so that the two-dimensional code and the one-dimensional code are inconvenient to carry, and the number of rear-end devices is increased, so that the two-dimensional code scanning method is inconvenient to use. The existing scanning method is to integrate a one-dimensional module and a two-dimensional module in the same equipment, the method needs two systems to support simultaneously, needs manual identification of the type of an article code, and switches different systems to scan through keys.
Disclosure of Invention
The invention provides a method which has high recognition speed and can automatically convert and scan between one-dimensional codes and two-dimensional codes.
The invention relates to a method based on conversion scanning between one-dimensional codes and two-dimensional codes, which comprises the following steps:
circularly identifying a decoding request;
starting any scanning module to scan and search the distinguishing characteristic points of the image object codes, and judging the category attribute of the object codes according to the distinguishing characteristic points of the image object codes;
and judging whether the image article code corresponds to the started scanning module according to the category attribute of the article code, and if the scanning fails and the article code does not correspond to the started scanning module, automatically jumping to another scanning module for scanning and identification to finish the scanning and identification.
According to the method based on the conversion scanning between the one-dimensional code and the two-dimensional code, the category attribute of the commodity code can be rapidly identified by comparing the distinguishing characteristic points of the image item code, whether the category attribute of the item code corresponds to the started scanning module can be accurately judged, the identification is directly completed or the other scanning module is skipped for scanning identification without skipping automatically, manual judgment for selecting the scanning module for identification scanning is omitted, the scanning identification can be automatically selected by hand-held alignment, convenience and rapidness are realized, and the identification speed is high.
Drawings
Fig. 1 is a block diagram of a method based on conversion scanning between one-dimensional codes and two-dimensional codes.
Fig. 2 is a block diagram of a scanning system based on a method for converting and scanning between one-dimensional codes and two-dimensional codes.
Fig. 3 is a jump condition block diagram of a method based on conversion scanning between one-dimensional codes and two-dimensional codes.
Detailed Description
As shown in fig. 1, a method based on conversion scanning between one-dimensional codes and two-dimensional codes includes the following steps:
circularly identifying a decoding request;
starting any scanning module to scan and search the distinguishing characteristic points of the image object codes, and judging the category attribute of the object codes according to the distinguishing characteristic points of the image object codes;
and judging whether the image article code corresponds to the started scanning module according to the category attribute of the article code, and if the scanning fails and the article code does not correspond to the started scanning module, automatically jumping to another scanning module for scanning and identification to finish the scanning and identification.
According to the method based on the conversion scanning between the one-dimensional code and the two-dimensional code, the category attribute of the commodity code can be rapidly identified by comparing the distinguishing characteristic points of the image item code, whether the category attribute of the item code corresponds to the started scanning module can be accurately judged, the identification is directly completed or the other scanning module is skipped for scanning identification without skipping automatically, manual judgment for selecting the scanning module for identification scanning is omitted, the scanning identification can be automatically selected by hand-held alignment, convenience and rapidness are realized, and the identification speed is high.
As shown in fig. 2 and fig. 3, the method based on the conversion scanning between the one-dimensional code and the two-dimensional code further includes the following steps:
and preferentially starting the two-dimensional module for scanning, searching and comparing the boundary of the image object code to judge whether the two-dimensional attribute exists, analyzing the bar code attribute according to the boundary form to judge whether the two-dimensional attribute exists if the two-dimensional attribute exists, not skipping to finish scanning and identifying if the two-dimensional attribute exists, automatically skipping to the one-dimensional module for scanning and identifying if the two-dimensional attribute does not exist, and automatically skipping to the one-dimensional module for scanning and identifying if the two-dimensional attribute does not exist. By preferentially starting the two-dimensional module for sampling, if the two-dimensional module does not sample the image, the sampling is circulated until the image object code is collected, so that the accuracy of collecting the image object code can be improved, the collected image object code is decoded, and if the decoding is successfully completed, the user interface is directly output. If the decoding is unsuccessful and the coded attribute of the image object is judged to be the two-dimensional code, the image object is sampled and decoded again, the situation that the image acquisition is not clear or the boundary acquisition is not clear can be avoided by resampling and decoding, and the accuracy of the identification is further improved; if the decoding is unsuccessful and the attribute of the image object code is judged not to be the two-dimensional code, the state before the jump is closed, the automatic jump enters the one-dimensional module for sampling, the automatic jump is carried out by automatically identifying the attribute of the object code, manual key selection operation is not needed, and the method is convenient and quick. And circularly sampling until the image object code is acquired if the one-dimensional module does not complete sampling image, decoding the acquired image object code, directly outputting the user interaction interface after decoding is completed, performing sampling decoding again by the one-dimensional module if the decoding is unsuccessful and does not meet the requirement of jumping to start the two-dimensional module, and automatically jumping to the two-dimensional module for scanning if the decoding is unsuccessful and meets the requirement of jumping to start the two-dimensional module. Through the conversion scanning between two-dimensional module and the one-dimensional module, when scanning the one-dimensional code, if use two-dimensional module discernment just equally then can lead to recognition speed slow, and the recognition accuracy is not high, but at this moment automatic switch-over scans to the one-dimensional code, and is faster.
The method based on the conversion scanning between the one-dimensional code and the two-dimensional code further comprises the following steps:
preferentially starting the one-dimensional module to scan, searching the length of the strip width array of the code of the image object to be compared, judging whether the length of the strip width array is a one-dimensional attribute, calculating all strip width ratios, analyzing the bar code attribute according to a start and end symbol, judging whether the length of the strip width array is a correct one-dimensional attribute, if the length of the strip width array is the one-dimensional attribute, skipping to finish scanning and identifying, if the length of the strip width array is not the one-dimensional attribute, skipping to the two-dimensional module automatically for scanning and identifying, and if the length of the strip width array. The one-dimensional module is started to sample preferentially, and if the one-dimensional module does not sample the image, the sampling is circulated until the image object code is collected, so that the accuracy of image object code collection can be improved, the collected image object code is decoded, and if the decoding is successfully completed, the user interface is directly output. If the decoding is unsuccessful and the image object coding attribute is judged to be the one-dimensional code, the sampling and decoding are carried out again, the situation that the image acquisition is not clear or the acquisition of the length of the one-dimensional code bar width array is incomplete can be avoided by the resampling and decoding, and the accuracy of the identification is further improved; if the decoding is unsuccessful and the attribute of the image object code is judged not to be the one-dimensional code, the state before the skip is closed, the two-dimensional module is automatically skipped to carry out sampling, the automatic skip is carried out by automatically identifying the attribute of the object code, the manual key selection operation is not needed, and the method is convenient and quick. And circularly sampling until the image object code is acquired if the two-dimensional module does not complete sampling image, decoding the acquired image object code, directly outputting a user interaction interface if decoding is completed, performing sampling decoding again on the two-dimensional module if decoding is unsuccessful and does not meet the requirement of jumping to start the one-dimensional module, and automatically jumping to the one-dimensional module for scanning if decoding is unsuccessful and meets the requirement of jumping to start the one-dimensional module. Through the conversion scanning between one-dimensional module and the two-dimensional module, when the two-dimensional code is scanned, the one-dimensional module can not discern the scanning two-dimensional code, at this moment can automatic switch to the two-dimensional code and scan, and is faster.
Claims (3)
1. A method based on conversion scanning between one-dimensional codes and two-dimensional codes is characterized by comprising the following steps:
circularly identifying a decoding request;
starting any scanning module to scan and search the distinguishing characteristic points of the image object codes, and judging the category attribute of the object codes according to the distinguishing characteristic points of the image object codes;
and judging whether the image article code corresponds to the started scanning module according to the category attribute of the article code, and if the scanning fails and the article code does not correspond to the started scanning module, automatically jumping to another scanning module for scanning and identification to finish the scanning and identification.
2. The method for converting scanning between one-dimensional code and two-dimensional code according to claim 1, further comprising the steps of:
and preferentially starting the two-dimensional module for scanning, searching and comparing the boundary of the image object code to judge whether the two-dimensional attribute exists, analyzing the bar code attribute according to the boundary form to judge whether the two-dimensional attribute exists if the two-dimensional attribute exists, not skipping to finish scanning and identifying if the two-dimensional attribute exists, automatically skipping to the one-dimensional module for scanning and identifying if the two-dimensional attribute does not exist, and automatically skipping to the one-dimensional module for scanning and identifying if the two-dimensional attribute does not exist.
3. The method for converting scanning between one-dimensional code and two-dimensional code according to claim 1, further comprising the steps of:
preferentially starting the one-dimensional module to scan, searching the length of the strip width array of the code of the image object to be compared, judging whether the length of the strip width array is a one-dimensional attribute, calculating all strip width ratios, analyzing the bar code attribute according to a start and end symbol, judging whether the length of the strip width array is a correct one-dimensional attribute, if the length of the strip width array is the one-dimensional attribute, skipping to finish scanning and identifying, if the length of the strip width array is not the one-dimensional attribute, skipping to the two-dimensional module automatically for scanning and identifying, and if the length of the strip width array.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010071292.3A CN111241857A (en) | 2020-01-21 | 2020-01-21 | Method based on conversion scanning between one-dimensional code and two-dimensional code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010071292.3A CN111241857A (en) | 2020-01-21 | 2020-01-21 | Method based on conversion scanning between one-dimensional code and two-dimensional code |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111241857A true CN111241857A (en) | 2020-06-05 |
Family
ID=70865088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010071292.3A Pending CN111241857A (en) | 2020-01-21 | 2020-01-21 | Method based on conversion scanning between one-dimensional code and two-dimensional code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111241857A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112819118A (en) * | 2020-12-31 | 2021-05-18 | 上海思岚科技有限公司 | Coded radar marker and identification method and equipment thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101882201A (en) * | 2010-06-01 | 2010-11-10 | 福建新大陆电脑股份有限公司 | Barcode decoding chip and method |
JP3212310U (en) * | 2017-05-16 | 2017-09-07 | 茂森科技股▲ふん▼有限公司 | Scanner capable of scanning one-dimensional (1D) and two-dimensional (2D) barcodes |
CN206961138U (en) * | 2017-08-10 | 2018-02-02 | 广州三码物联科技有限公司 | A kind of dicode scanning means |
-
2020
- 2020-01-21 CN CN202010071292.3A patent/CN111241857A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101882201A (en) * | 2010-06-01 | 2010-11-10 | 福建新大陆电脑股份有限公司 | Barcode decoding chip and method |
JP3212310U (en) * | 2017-05-16 | 2017-09-07 | 茂森科技股▲ふん▼有限公司 | Scanner capable of scanning one-dimensional (1D) and two-dimensional (2D) barcodes |
CN206961138U (en) * | 2017-08-10 | 2018-02-02 | 广州三码物联科技有限公司 | A kind of dicode scanning means |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112819118A (en) * | 2020-12-31 | 2021-05-18 | 上海思岚科技有限公司 | Coded radar marker and identification method and equipment thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102375969B (en) | System and method for document processing | |
CN100382565C (en) | Method and apparatus for selecting particular decoder based on bitstream format detection | |
CA2282764C (en) | System and method for ocr assisted bar code decoding | |
CN101855640B (en) | Method for image analysis, especially for mobile wireless device | |
JP2001521821A (en) | Method and apparatus for identifying distribution information of delivery | |
CN111241857A (en) | Method based on conversion scanning between one-dimensional code and two-dimensional code | |
CN111539236A (en) | Method for reading multiple bar codes at one time | |
CN101609505A (en) | The method and apparatus of identification character | |
JP6090997B2 (en) | Bar code symbol reading apparatus and bar code symbol reading method | |
CN111460849B (en) | Method compatible with multiple sets of code setting and code scanning equipment | |
JP5808211B2 (en) | Bar code symbol reading apparatus and bar code symbol reading method | |
US7431214B2 (en) | Bar-code reader and method of reading bar code | |
CN101882201B (en) | Barcode decoding chip and method | |
EP3477547A1 (en) | Optical character recognition systems and methods | |
JP6454998B2 (en) | Form processing system, form processing apparatus, and form processing apparatus program | |
CN115759147A (en) | Configuration method and configuration system for sequencing template of code reading equipment | |
CN114118315A (en) | Electric energy measurement asset management system based on RFID | |
CN111723012A (en) | Input/output module test method, device, system and storage medium | |
JP2003316802A (en) | Image management system, image management method and image management program | |
JPH08272813A (en) | Filing device | |
EP0930787B1 (en) | Image coding apparatus using pattern coding | |
CN102810164A (en) | RFID (radio frequency identification) card issuing equipment and processing method thereof | |
CN113111675B (en) | Method and system for rapidly identifying bar code based on bar code scanner | |
CN112309102A (en) | Method for mobile acquisition of water meter data | |
CN211015561U (en) | Variable frequency controller performance test equipment and system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200605 |
|
RJ01 | Rejection of invention patent application after publication |