CN111539235A - Method for preventing bar code from being scanned by two-dimensional bar code scanning engine by mistake and decoder applying same - Google Patents
Method for preventing bar code from being scanned by two-dimensional bar code scanning engine by mistake and decoder applying same Download PDFInfo
- Publication number
- CN111539235A CN111539235A CN202010193113.3A CN202010193113A CN111539235A CN 111539235 A CN111539235 A CN 111539235A CN 202010193113 A CN202010193113 A CN 202010193113A CN 111539235 A CN111539235 A CN 111539235A
- Authority
- CN
- China
- Prior art keywords
- module
- barcode
- scan
- aiming light
- scanning
- 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 OR CALCULATING; 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 OR CALCULATING; 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
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Printers Characterized By Their Purpose (AREA)
Abstract
本发明提供一种避免二维扫码引擎误扫条码的方法及应用其的解码器,通过按下并释放触发按键时不触发扫码,而是在设置的时间结束后才触发扫码的设计,使得用户可以在延迟的这段时间里将瞄准光对准希望扫描的条码,能够做到100%的精准扫码,有效地解决了二维扫码引擎误扫条码的问题,从而提高了解码精度。
The invention provides a method for preventing a two-dimensional code scanning engine from scanning a barcode by mistake and a decoder using the same. The code scanning is not triggered when the trigger button is pressed and released, but the code scanning is triggered after the set time expires. , so that the user can aim the aiming light at the barcode they want to scan during the delay period, and can achieve 100% accurate barcode scanning, effectively solving the problem of the two-dimensional code scanning engine scanning the barcode incorrectly, thereby improving the decoding process. precision.
Description
技术领域technical field
本发明涉及条码扫描技术领域,尤其涉及一种避免二维扫码引擎误扫条码的方法及应用其的解码器。The invention relates to the technical field of barcode scanning, in particular to a method for preventing a two-dimensional code scanning engine from scanning a barcode by mistake and a decoder using the same.
背景技术Background technique
目前主流二维码解码器的组成主要包括三个部分:感光成像的camera模组、照明模组以及瞄准光模组。其中,瞄准光主要用于对准目标条码,使条码成像能够居于camera中心位置,从而提高解码成功率;感光成像的camera主要用于条码的图像采集,然后把抓到的图像传递给解码库,解码库扫描图像,把图像中的条码根据条码规则转换成对应的内容。因为图像的采集是通过拍照的形式,当图像中出现多个密集条码,解码库就很难精确地解码。At present, the mainstream QR code decoder mainly consists of three parts: camera module for photosensitive imaging, lighting module and aiming light module. Among them, the aiming light is mainly used to align the target barcode, so that the barcode imaging can be located in the center of the camera, thereby improving the decoding success rate; the camera of photosensitive imaging is mainly used for barcode image acquisition, and then the captured image is passed to the decoding library, The decoding library scans the image and converts the barcode in the image into the corresponding content according to the barcode rules. Because the image is collected by taking pictures, it is difficult for the decoding library to decode accurately when there are multiple dense barcodes in the image.
目前针对这个问题,主要的处理方法有两种。第一种方法是在解码库中设定一个中心窗口,感光camera抓取一幅图片,解码库只会去解码在中心窗口位置的条码,这种方法能在一定程度上提高解码精度,但是误扫的几率还是很高;第二种方法是记录每一个二维解码引擎上瞄准光的位置,然后解码库只是解出瞄准光的位置所覆盖的条码,这种方法可以极大地提高解码精度。At present, there are two main ways to deal with this problem. The first method is to set a central window in the decoding library, the photosensitive camera captures a picture, and the decoding library will only decode the barcode at the position of the central window. This method can improve the decoding accuracy to a certain extent, but it is wrong. The probability of scanning is still very high; the second method is to record the position of the aiming light on each 2D decoding engine, and then the decoding library only solves the barcode covered by the position of the aiming light, which can greatly improve the decoding accuracy.
然而,以上两种方法都不能解决用户第一次开启扫码的误扫情况。比如,用户想扫图中第三个条码,用户拿着扫码设备对准了第三个条码,然后用户触发扫码,但是当用户按下扫码按键触发扫码时,瞄准光或者中心窗口并不一定在用户想扫码的条码上面,这就依旧会造成误扫。However, neither of the above two methods can solve the mistaken scanning situation when the user starts scanning the code for the first time. For example, if the user wants to scan the third barcode in the picture, the user holds the scanning device and aligns the third barcode, and then the user triggers the scan, but when the user presses the scan button to trigger the scan, the aiming light or the center window It is not necessarily on the barcode that the user wants to scan, which will still cause false scans.
发明内容SUMMARY OF THE INVENTION
本发明的目的是为了解决现有技术中存在的二维扫码引擎误扫条码的问题,而提出的一种避免二维扫码引擎误扫条码的方法及应用其的解码器。The purpose of the present invention is to solve the problem of the two-dimensional code scanning engine mistakenly scanning the barcode in the prior art, and propose a method for preventing the two-dimensional code scanning engine from mistakenly scanning the barcode and a decoder using the same.
为实现上述目的,本发明采用了如下技术方案:一种避免二维扫码引擎误扫条码的方法,包括以下步骤:In order to achieve the above purpose, the present invention adopts the following technical solutions: a method for avoiding the mistaken scanning of barcodes by a two-dimensional code scanning engine, comprising the following steps:
S1.用户设置扫码延迟时间;S1. The user sets the scan delay time;
S2.用户按下并释放扫码按键;S2. The user presses and releases the scan code button;
S3.延迟时间开始,扫码引擎射出瞄准光;S3. When the delay time starts, the scanning engine emits aiming light;
S4.用户将瞄准光对准条码;S4. The user aligns the aiming light to the barcode;
S5.延迟时间结束,触发扫码;S5. When the delay time expires, the scan code is triggered;
S6.扫码成功。S6. Scan the code successfully.
较佳地,步骤S2中用户按下并释放扫码按键后触发Press事件和Timer_start事件,Press事件为控制二维扫码引擎射出瞄准光而不进行扫码操作,Timer_start事件为开始计时操作。Preferably, in step S2, after the user presses and releases the scan code button, the Press event and the Timer_start event are triggered. The Press event is to control the two-dimensional code scan engine to emit aiming light without scanning the code, and the Timer_start event is to start the timing operation.
较佳地,步骤S5中延迟时间结束后触发Timer_end事件,Timer_end事件为控制二维扫码引擎进行扫码操作。Preferably, in step S5, a Timer_end event is triggered after the delay time expires, and the Timer_end event is to control the two-dimensional code scanning engine to perform a code scanning operation.
本发明另一方面的一种应用上述避免二维扫码引擎误扫条码的方法的解码器,包括camera模块、瞄准光模块、触发模块、控制模块和计时模块,触发模块包括触发按键,触发按键的输出端与控制模块的输入端电性连接,控制模块的输出端分别与camera模块和瞄准光模块电性连接,控制模块和计时模块之间双向电连接;触发按键被按下并释放时,控制模块控制瞄准光模块射出瞄准光,同时控制模块控制计时模块开始计时,当计时模块计时达到预设值时,控制模块控制camera模块进行条码图像的采集。Another aspect of the present invention is a decoder applying the above-mentioned method for preventing a two-dimensional code scanning engine from scanning a barcode by mistake. The decoder includes a camera module, an aiming light module, a trigger module, a control module and a timing module. The output end of the control module is electrically connected with the input end of the control module, the output end of the control module is electrically connected with the camera module and the aiming light module respectively, and the control module and the timing module are electrically connected in both directions; when the trigger button is pressed and released, The control module controls the aiming light module to emit aiming light, and at the same time the control module controls the timing module to start timing, and when the timing of the timing module reaches a preset value, the control module controls the camera module to collect barcode images.
较佳地,该解码器还包括解码模块,解码模块的输入端与camera模块的输出端电性连接。进一步地,解码模块的输出端与控制模块的输入端电性连接。Preferably, the decoder further includes a decoding module, and the input end of the decoding module is electrically connected with the output end of the camera module. Further, the output end of the decoding module is electrically connected with the input end of the control module.
与现有技术相比,本发明的有益效果为:通过按下并释放触发按键时不触发扫码,而是在设置的时间结束后才触发扫码的设计,使得用户可以在延迟的这段时间里将瞄准光对准希望扫描的条码,能够做到100%的精准扫码,有效地解决了二维扫码引擎误扫条码的问题,从而提高了解码精度。Compared with the prior art, the beneficial effect of the present invention is: by pressing and releasing the trigger button, the scanning code is not triggered, but the scanning code is triggered after the set time expires, so that the user can be in the delayed period of time. Aiming the aiming light at the barcode you want to scan in time can achieve 100% accurate barcode scanning, which effectively solves the problem of the 2D barcode scanning engine scanning the barcode incorrectly, thereby improving the decoding accuracy.
附图说明Description of drawings
图1为本发明一实施例的一种解码器的结构示意图。FIG. 1 is a schematic structural diagram of a decoder according to an embodiment of the present invention.
具体实施方式Detailed ways
为使对本发明的目的、构造、特征、及其功能有进一步的了解,兹配合实施例详细说明如下。In order to have a further understanding of the purpose, structure, features, and functions of the present invention, the following detailed descriptions are given in conjunction with the embodiments.
本发明的一种避免二维扫码引擎误扫条码的方法,包括以下步骤:A method for preventing a two-dimensional code scanning engine from scanning a barcode by mistake in the present invention comprises the following steps:
S1.用户设置扫码延迟时间;S1. The user sets the scan delay time;
S2.用户按下并释放扫码按键;S2. The user presses and releases the scan code button;
S3.延迟时间开始,扫码引擎射出瞄准光;S3. When the delay time starts, the scanning engine emits aiming light;
S4.用户将瞄准光对准条码;S4. The user aligns the aiming light to the barcode;
S5.延迟时间结束,触发扫码;S5. When the delay time expires, the scan code is triggered;
S6.扫码成功。S6. Scan the code successfully.
其中,步骤S2中用户按下并释放扫码按键后触发Press事件和Timer_start事件,Press事件为控制二维扫码引擎射出瞄准光而不进行扫码操作,Timer_start事件为开始计时操作;步骤S5中延迟时间结束后触发Timer_end事件,Timer_end事件为控制二维扫码引擎进行扫码操作。Press事件、Timer_start事件和Timer_end事件均为软件控制事件,当按下并释放扫码按键触发Press事件时,软件部分控制二维扫码引擎射出瞄准光而不进行扫码操作;当按下并释放扫码按键同时触发Timer_start事件时,软件部分开始计时操作;当计时时间达到预设的延迟时间触发Timer_end事件时,软件部分控制二维扫码引擎进行扫码操作。Wherein, in step S2, after the user presses and releases the scan code button, the Press event and the Timer_start event are triggered, the Press event is to control the two-dimensional code scan engine to emit aiming light without scanning the code, and the Timer_start event is to start the timing operation; in step S5 After the delay time expires, the Timer_end event is triggered, and the Timer_end event controls the QR code scanning engine to scan the code. Press event, Timer_start event and Timer_end event are all software control events. When pressing and releasing the scan button to trigger the Press event, the software part controls the two-dimensional code scanning engine to emit aiming light without scanning the code; When the scan code button triggers the Timer_start event at the same time, the software part starts the timing operation; when the timing time reaches the preset delay time and triggers the Timer_end event, the software part controls the two-dimensional code scanning engine to scan the code.
请参见图1,本发明另一方面的一种应用上述避免二维扫码引擎误扫条码的方法的解码器,包括camera模块1、瞄准光模块2、触发模块3、控制模块4和计时模块5,触发模块3包括触发按键31,触发按键31的输出端与控制模块4的输入端电性连接,控制模块4的输出端分别与camera模块1和瞄准光模块2电性连接,控制模块4和计时模块5之间双向电连接;触发按键31被按下并释放时,控制模块4控制瞄准光模块2射出瞄准光,同时控制模块4控制计时模块5开始计时,当计时模块5计时达到预设值时,控制模块4控制camera模块1进行条码图像的采集。Please refer to FIG. 1, another aspect of the present invention is a decoder applying the above-mentioned method for preventing a two-dimensional code scanning engine from scanning a barcode by mistake, including a camera module 1, an aiming light module 2, a trigger module 3, a control module 4 and a timing module 5. The trigger module 3 includes a
优选地,该解码器还包括解码模块6,解码模块6的输入端与camera模块1的输出端电性连接,以接收camera模块1传送的条码图像。进一步地,解码模块6的输出端与控制模块4的输入端电性连接,以向控制模块4发送解码成功信息,从而使得控制模块4控制camera模块1停止条码图像的采集。Preferably, the decoder further includes a
在实际使用时,控制模块4包括存储单元,存储单元用以记录预设的扫码延迟时间;计时模块5的功能通过软件来实现,计时模块5也可以为控制模块4的一个子模块。In actual use, the control module 4 includes a storage unit, which is used to record the preset scan code delay time; the function of the timing module 5 is realized by software, and the timing module 5 can also be a sub-module of the control module 4 .
工作过程:首先,用户设置好扫码延迟时间,之后按下并释放触发按键31后,控制模块4控制瞄准光模块2射出瞄准光,同时控制模块4控制计时模块5开始计时,用户在预设的延迟时间里将瞄准光对准希望扫描的条码,当计时模块5计时达到预设值时,控制模块4控制camera模块1进行条码图像的采集,解码模块6接收到camera模块1传送的条码图像并解码成功后,向控制模块4发送解码成功信息,控制模块4接收到解码成功信息后控制camera模块1停止条码图像的采集。Working process: First, the user sets the scan code delay time, then presses and releases the
本发明的一种避免二维扫码引擎误扫条码的方法及应用其的解码器,通过按下并释放触发按键时不触发扫码,而是在设置的时间结束后才触发扫码的设计,使得用户可以在延迟的这段时间里将瞄准光对准希望扫描的条码,能够做到100%的精准扫码,有效地解决了二维扫码引擎误扫条码的问题,从而提高了解码精度。A method of preventing a two-dimensional code scanning engine from scanning a barcode by mistake and a decoder using the same of the present invention, the code scanning is not triggered when the trigger button is pressed and released, but the code scanning is triggered after the set time expires. , so that the user can aim the aiming light at the barcode they want to scan during the delay period, and can achieve 100% accurate barcode scanning, effectively solving the problem of the two-dimensional code scanning engine scanning the barcode incorrectly, thereby improving the decoding process. precision.
本发明已由上述相关实施例加以描述,然而上述实施例仅为实施本发明的范例。必需指出的是,已揭露的实施例并未限制本发明的范围。相反地,在不脱离本发明的精神和范围内所作的更动与润饰,均属本发明的专利保护范围。The present invention has been described by the above-mentioned related embodiments, however, the above-mentioned embodiments are only examples for implementing the present invention. It must be pointed out that the disclosed embodiments do not limit the scope of the present invention. On the contrary, changes and modifications made without departing from the spirit and scope of the present invention belong to the scope of patent protection of the present invention.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010193113.3A CN111539235A (en) | 2020-03-18 | 2020-03-18 | Method for preventing bar code from being scanned by two-dimensional bar code scanning engine by mistake and decoder applying same |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010193113.3A CN111539235A (en) | 2020-03-18 | 2020-03-18 | Method for preventing bar code from being scanned by two-dimensional bar code scanning engine by mistake and decoder applying same |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111539235A true CN111539235A (en) | 2020-08-14 |
Family
ID=71952094
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010193113.3A Pending CN111539235A (en) | 2020-03-18 | 2020-03-18 | Method for preventing bar code from being scanned by two-dimensional bar code scanning engine by mistake and decoder applying same |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111539235A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112949332A (en) * | 2021-02-20 | 2021-06-11 | 深圳市民德电子科技股份有限公司 | Sighting device auxiliary reading method and system of bar code reading equipment |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005309562A (en) * | 2004-04-19 | 2005-11-04 | Matsushita Electric Ind Co Ltd | Information terminal |
| CN204931698U (en) * | 2015-07-07 | 2016-01-06 | 马云辉 | The scanning flip flop equipment of imaging device |
| JP2017084262A (en) * | 2015-10-30 | 2017-05-18 | 株式会社東芝 | Code reader |
| CN107609434A (en) * | 2017-07-28 | 2018-01-19 | 福建联迪商用设备有限公司 | A kind of method and its system for testing barcode scanning equipment performance |
-
2020
- 2020-03-18 CN CN202010193113.3A patent/CN111539235A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005309562A (en) * | 2004-04-19 | 2005-11-04 | Matsushita Electric Ind Co Ltd | Information terminal |
| CN204931698U (en) * | 2015-07-07 | 2016-01-06 | 马云辉 | The scanning flip flop equipment of imaging device |
| JP2017084262A (en) * | 2015-10-30 | 2017-05-18 | 株式会社東芝 | Code reader |
| CN107609434A (en) * | 2017-07-28 | 2018-01-19 | 福建联迪商用设备有限公司 | A kind of method and its system for testing barcode scanning equipment performance |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112949332A (en) * | 2021-02-20 | 2021-06-11 | 深圳市民德电子科技股份有限公司 | Sighting device auxiliary reading method and system of bar code reading equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8520080B2 (en) | Apparatus, system, and method of use of imaging assembly on mobile terminal | |
| CN107154890A (en) | Method, the apparatus and system of contact person is added in social networks | |
| JP7760611B2 (en) | Image processing method, device, equipment, and storage medium | |
| CN107135351B (en) | Photographing method and photographing device | |
| CN111539236A (en) | Method for reading multiple bar codes at one time | |
| WO2016165379A1 (en) | Projection method, device, apparatus and computer storage medium | |
| CN111539235A (en) | Method for preventing bar code from being scanned by two-dimensional bar code scanning engine by mistake and decoder applying same | |
| WO2004091193A1 (en) | Method for capturing of real-time image | |
| CN105072348A (en) | Method, device and terminal for quickly focusing on face | |
| US20250053765A1 (en) | Barcode-Reading System in which Decoding Occurs on a Remote Server | |
| CN111539233A (en) | Method for avoiding bar code scanning by mistake and decoder for avoiding bar code scanning by mistake | |
| US10438043B2 (en) | Method and system for identifying fingerprint | |
| CN110533995A (en) | A kind of applied mathematics probability statistics compiling device | |
| CN112560536A (en) | Method for reading and decoding image bar code by applying enhanced code reading mode | |
| CN111079464B (en) | Data terminal and data acquisition method thereof | |
| CN109858296B (en) | Invoice processing device, invoice processing method, and storage medium | |
| CN111951312B (en) | Image registration, image acquisition time registration method, device, equipment and medium | |
| JP2015212866A (en) | Optical information reader and optical information read method | |
| CN119520694A (en) | Dynamic frame rate scanning head control method and system | |
| CN111787309A (en) | Video delay test method, device, system, equipment and storage medium | |
| CN116170682A (en) | Image acquisition device and method and electronic equipment | |
| US12347193B2 (en) | Dynamic image processing method, electronic device, and terminal device and mobile communication device connected thereto | |
| US12177392B2 (en) | Information processing system, image processing apparatus, information processing apparatus, server apparatus, information processing method, and storage medium | |
| CN119136047A (en) | Laser spot detection and image interaction method, device, equipment and medium | |
| CN112106341A (en) | Shooting method and device and shooting equipment |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200814 |