CN111539233A - Method for avoiding bar code scanning by mistake and decoder for avoiding bar code scanning by mistake - Google Patents
Method for avoiding bar code scanning by mistake and decoder for avoiding bar code scanning by mistake Download PDFInfo
- Publication number
- CN111539233A CN111539233A CN202010193114.8A CN202010193114A CN111539233A CN 111539233 A CN111539233 A CN 111539233A CN 202010193114 A CN202010193114 A CN 202010193114A CN 111539233 A CN111539233 A CN 111539233A
- Authority
- CN
- China
- Prior art keywords
- code scanning
- bar code
- module
- button
- aiming light
- 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/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
-
- 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
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Studio Devices (AREA)
Abstract
The invention provides a method for avoiding bar code scanning by mistake and a decoder for avoiding bar code scanning by mistake, wherein the design of scanning the bar code is carried out only by emitting aiming light when a trigger key is pressed down and releasing the trigger key after the aiming light is aligned with the bar code, 100 percent of accurate bar code scanning can be realized, the problem of bar code scanning by mistake by a two-dimensional bar code scanning engine is effectively solved, and the decoding precision is ensured.
Description
Technical Field
The invention relates to the technical field of bar code scanning, in particular to a method for avoiding bar code scanning by mistake and a decoder for avoiding bar code scanning by mistake.
Background
The mainstream two-dimensional code decoder at present mainly comprises three parts: the camera module, the illumination module and the aiming light module of sensitization formation of image. The aiming light is mainly used for aiming at a target bar code, so that the bar code imaging can be positioned at the center of the camera, and the decoding success rate is improved; the camera of the photosensitive imaging is mainly used for collecting the image of the bar code, then the captured image is transmitted to a decoding library, the decoding library scans the image, and the bar code in the image is converted into corresponding content according to the bar code rule. Because the image is captured by taking a picture, when a plurality of dense barcodes appear in the image, the decoding library is difficult to decode accurately.
Currently, there are two main approaches to this problem. The first method is to set a central window in a decoding library, a photosensitive camera captures a picture, and the decoding library only decodes the bar code at the position of the central window, so that the decoding precision can be improved to a certain extent, but the probability of error scanning is high; the second method is to record the position of the aiming light on each two-dimensional decoding engine, and then the decoding library only decodes the bar code covered by the position of the aiming light, which can greatly improve the decoding precision.
However, neither of the above two methods can solve the false scanning situation that the user first starts scanning the code. For example, when a user wants to scan the third barcode in the image, the user holds the scanning device to align with the third barcode, and then the user triggers scanning, but when the user presses the scanning key to trigger scanning, the aiming light or the central window is not necessarily above the barcode that the user wants to scan, which still causes a false scan.
Disclosure of Invention
The invention aims to solve the problem that a two-dimensional bar code scanning engine scans bar codes by mistake in the prior art, and provides a method for avoiding scanning bar codes by mistake and a decoder for avoiding scanning bar codes by mistake.
In order to achieve the purpose, the invention adopts the following technical scheme: a method for avoiding bar code scanning by mistake comprises the following steps:
s1, pressing a code scanning key by a user;
s2, emitting aiming light by a two-dimensional code scanning engine;
s3, aligning aiming light to a bar code by a user;
s4, releasing a code scanning key by a user, and triggering code scanning;
s5, scanning codes successfully.
Preferably, in step S1, the Button _ down event is triggered after the user presses the code scan key, and the Button _ down event controls the two-dimensional code scan engine to emit the aiming light without performing the code scan operation.
Preferably, in step S4, the user releases the code scanning Button and then triggers a Button _ up event, where the Button _ up event controls the two-dimensional code scanning engine to perform code scanning operation.
The invention also provides a decoder for avoiding bar code scanning by mistake, which comprises a camera module, an aiming light module, a trigger module and a control module, wherein the trigger module comprises a trigger key, the output end of the trigger key is electrically connected with the input end of the control module, and the output end of the control module is respectively electrically connected with the camera module and the aiming light module; when the trigger button is in the first state, the control module controls the aiming light module to emit aiming light, and when the trigger button is converted from the first state to the second state, the control module controls the camera module to acquire the barcode image.
Preferably, the first state of the trigger button is a pressed state, and the second state of the trigger button is a released state.
Preferably, the decoder further comprises a decoding module, and an input end of the decoding module is electrically connected with an output end of the camera module. Furthermore, the output end of the decoding module is electrically connected with the input end of the control module.
Compared with the prior art, the invention has the beneficial effects that: only jet out aiming light when pressing the trigger button, and just scan the design of sign indicating number when releasing the trigger button behind aiming light alignment bar code, can accomplish 100% accurate sweep the sign indicating number, solved effectively that the two-dimentional code engine of sweeping is by mistake sweeps the problem of bar code to the precision of decoding has been guaranteed.
Drawings
Fig. 1 is a schematic structural diagram of a decoder according to an embodiment of the present invention.
Detailed Description
In order to further understand the objects, structures, features and functions of the present invention, the following embodiments are described in detail.
The invention discloses a method for avoiding bar code scanning errors of a two-dimensional bar code scanning engine, which comprises the following steps:
s1, pressing a code scanning key by a user;
s2, emitting aiming light by a two-dimensional code scanning engine;
s3, aligning aiming light to a bar code by a user;
s4, releasing a code scanning key by a user, and triggering code scanning;
s5, scanning codes successfully.
In step S1, the user presses the code scanning key and then triggers a Button _ down event, where the Button _ down event controls the two-dimensional code scanning engine to emit aiming light without performing code scanning operation; in step S4, the user releases the code scanning key and then triggers a Button _ up event, where the Button _ up event is used to control the two-dimensional code scanning engine to perform code scanning operation. The Button _ down event and the Button _ up event are software control events, and when a code scanning key is pressed down to trigger the Button _ down event, the software part controls the two-dimensional code scanning engine to emit aiming light without performing code scanning operation; when the Button _ up event is triggered by releasing the code scanning key, the software part controls the two-dimensional code scanning engine to scan codes.
Referring to fig. 1, the present invention further provides a decoder for avoiding bar code scanning by mistake, the decoder includes a camera module 1, an aiming light module 2, a trigger module 3 and a control module 4, the trigger module 3 includes a trigger button 31, an output end of the trigger button 31 is electrically connected with an input end of the control module 4, and an output end of the control module 4 is electrically connected with the camera module 1 and the aiming light module 2, respectively; when the trigger button 31 is in the first state, the control module 4 controls the aiming light module 2 to emit aiming light, and when the trigger button 31 is switched from the first state to the second state, the control module 4 controls the camera module to collect the barcode image. In a preferred embodiment, the first state of the trigger button 31 is a pressed state, and the second state of the trigger button 31 is a released state, so as to facilitate the operation of the user.
Preferably, the decoder further comprises a decoding module 5, wherein an input end of the decoding module 5 is electrically connected with an output end of the camera module 1 to receive the barcode image transmitted by the camera module 1. Further, the output end of the decoding module 5 is electrically connected to the input end of the control module 4 to send decoding success information to the control module 4, so that the control module 4 controls the camera module 1 to stop the collection of the barcode image.
According to the method for avoiding scanning the bar code by mistake and the decoder for avoiding scanning the bar code by mistake, the design of scanning the bar code is carried out only by emitting the aiming light when the trigger key is pressed down and releasing the trigger key after the aiming light is aligned with the bar code, 100% of accurate bar code scanning can be achieved, the problem that the bar code is scanned by mistake by a two-dimensional bar code scanning engine is effectively solved, and the decoding precision is guaranteed.
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 (7)
1. A method for avoiding bar code scanning by mistake is characterized by comprising the following steps:
s1, pressing a code scanning key by a user;
s2, emitting aiming light by a two-dimensional code scanning engine;
s3, aligning aiming light to a bar code by a user;
s4, releasing a code scanning key by a user, and triggering code scanning;
s5, scanning codes successfully.
2. The method of claim 1, wherein a Button _ down event is triggered after the user presses a scan Button in step S1, and the Button _ down event controls the two-dimensional code scan engine to emit the aiming light without performing a code scan operation.
3. The method for avoiding the bar code scanning error of the two-dimensional code scanning engine as claimed in claim 1, wherein in step S4, the Button _ up event is triggered after the user releases the code scanning Button, and the Button _ up event is used for controlling the two-dimensional code scanning engine to perform the code scanning operation.
4. The decoder for avoiding bar code scanning by mistake is characterized by comprising a camera module, an aiming light module, a trigger module and a control module, wherein the trigger module comprises a trigger key, the output end of the trigger key is electrically connected with the input end of the control module, and the output end of the control module is respectively electrically connected with the camera module and the aiming light module; when the trigger button is in a first state, the control module controls the aiming light module to emit aiming light, and when the trigger button is switched from the first state to a second state, the control module controls the camera module to acquire the barcode image.
5. The decoder of claim 4, wherein the first state of the trigger button is a depressed state and the second state of the trigger button is a released state.
6. The decoder for avoiding bar code scanning error of claim 4 or 5, further comprising a decoding module, wherein an input end of the decoding module is electrically connected with an output end of the camera module.
7. The decoder of claim 6, wherein the output terminal of the decoding module is electrically connected to the input terminal of the control module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010193114.8A CN111539233A (en) | 2020-03-18 | 2020-03-18 | Method for avoiding bar code scanning by mistake and decoder for avoiding bar code scanning by mistake |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010193114.8A CN111539233A (en) | 2020-03-18 | 2020-03-18 | Method for avoiding bar code scanning by mistake and decoder for avoiding bar code scanning by mistake |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111539233A true CN111539233A (en) | 2020-08-14 |
Family
ID=71974966
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010193114.8A Pending CN111539233A (en) | 2020-03-18 | 2020-03-18 | Method for avoiding bar code scanning by mistake and decoder for avoiding bar code scanning by mistake |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111539233A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112560533A (en) * | 2020-12-26 | 2021-03-26 | 苏州斯普锐智能系统股份有限公司 | Real-time aiming designated decoding method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5504316A (en) * | 1990-05-08 | 1996-04-02 | Symbol Technologies, Inc. | Laser scanning system and scanning method for reading 1-D and 2-D barcode symbols |
CN1534538A (en) * | 1995-07-20 | 2004-10-06 | ��ʿͨ��ʽ���� | Optical readers for many purposes |
CN2653606Y (en) * | 2003-08-13 | 2004-11-03 | 精技电脑股份有限公司 | Illumination for Handheld Barcode Readers |
JP2005309562A (en) * | 2004-04-19 | 2005-11-04 | Matsushita Electric Ind Co Ltd | Information terminal |
US20070057067A1 (en) * | 2005-09-15 | 2007-03-15 | Symbol Technologies, Inc. | Sensor for activating an aiming pattern of a handheld scanner |
-
2020
- 2020-03-18 CN CN202010193114.8A patent/CN111539233A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5504316A (en) * | 1990-05-08 | 1996-04-02 | Symbol Technologies, Inc. | Laser scanning system and scanning method for reading 1-D and 2-D barcode symbols |
CN1534538A (en) * | 1995-07-20 | 2004-10-06 | ��ʿͨ��ʽ���� | Optical readers for many purposes |
CN2653606Y (en) * | 2003-08-13 | 2004-11-03 | 精技电脑股份有限公司 | Illumination for Handheld Barcode Readers |
JP2005309562A (en) * | 2004-04-19 | 2005-11-04 | Matsushita Electric Ind Co Ltd | Information terminal |
US20070057067A1 (en) * | 2005-09-15 | 2007-03-15 | Symbol Technologies, Inc. | Sensor for activating an aiming pattern of a handheld scanner |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112560533A (en) * | 2020-12-26 | 2021-03-26 | 苏州斯普锐智能系统股份有限公司 | Real-time aiming designated decoding method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102073839B (en) | Long range selective RFID using laser photodetection wakeup | |
US9805225B2 (en) | Apparatus for recognizing character and barcode simultaneously and method for controlling the same | |
US7447362B2 (en) | System and method of enabling a cellular/wireless device with imaging capabilities to decode printed alphanumeric characters | |
CN101667251B (en) | OCR recognition method and device with auxiliary positioning function | |
CN100412890C (en) | Improved bar code scanner and method | |
CN111539236A (en) | Method for reading multiple bar codes at one time | |
US20090017765A1 (en) | System and Method of Enabling a Cellular/Wireless Device with Imaging Capabilities to Decode Printed Alphanumeric Characters | |
CN101609505B (en) | Method and apparatus for recognizing characters | |
CN101882227A (en) | Recognition method and system based on image matching and network searching | |
CN111539233A (en) | Method for avoiding bar code scanning by mistake and decoder for avoiding bar code scanning by mistake | |
CN110751862B (en) | Handheld reader and data processing method thereof | |
CN102663338A (en) | Method for intelligent mobile phone terminal to scan and identify two-dimension code of paper lottery | |
US8836959B2 (en) | Method and apparatus for recognizing characters | |
CN111539235A (en) | Method for preventing bar code from being scanned by two-dimensional bar code scanning engine by mistake and decoder applying same | |
CN1150440C (en) | interface arrangment for use with coded data processing systems | |
CN113452991A (en) | Lens focusing state determining method, device, equipment and storage medium | |
CN1384463A (en) | Optical reading device and mobile communicator provided with the device | |
US12124900B2 (en) | Barcode-reading system in which decoding occurs on a remote server | |
JP3212310U (en) | Scanner capable of scanning one-dimensional (1D) and two-dimensional (2D) barcodes | |
CN101980526A (en) | Remote controller and identifying and reading method thereof | |
CN116562318A (en) | Encoding format detection method and device based on PDA terminal and electronic equipment | |
CN113111675B (en) | Method and system for rapidly identifying bar code based on bar code scanner | |
CN101499135A (en) | Quasi-omni-directional bar code scanner | |
CN101196982A (en) | Recognition device for OSD character string and code graphics of mobile communication terminal | |
US20110073649A1 (en) | Method and system for recognizing barcode |
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: 20200814 |
|
RJ01 | Rejection of invention patent application after publication |