CN103207982A - Two-dimensional bar code scanning method and system - Google Patents
Two-dimensional bar code scanning method and system Download PDFInfo
- Publication number
- CN103207982A CN103207982A CN2012100095445A CN201210009544A CN103207982A CN 103207982 A CN103207982 A CN 103207982A CN 2012100095445 A CN2012100095445 A CN 2012100095445A CN 201210009544 A CN201210009544 A CN 201210009544A CN 103207982 A CN103207982 A CN 103207982A
- Authority
- CN
- China
- Prior art keywords
- bar code
- dimensional bar
- decoding
- scanning
- code picture
- 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
Abstract
Provided is a two-dimensional bar code scanning method and system. The two-dimensional bar code scanning method includes steps of: starting: creating a text file, starting an image collection device, activating a timer and setting interval time for the timer; acquiring: when the timer triggers the image collection device to automatically collect two-dimensional bar code pictures of products to be scanned, acquiring and storing the collected two-dimensional bar code pictures; decoding: processing the acquired two-dimensional bar code pictures and invoking a decoding function to decode the two-dimensional bar code pictures; judging: judging whether decoding is successful, and finishing once operation of the timer and returning to the acquiring step to re-collect the two-dimensional bar code pictures of the products to be scanned if decoding fails: and storing: when the decoding succeeds, storing decoding information of the two-dimensional bar code pictures in the text file created in the starting step. The two-dimensional bar code scanning method and system achieves automatic scanning of two-dimensional bar codes, and the automatic scanning replaces manual scanning.
Description
Technical field
The present invention relates to a kind of method and system of scanning two-dimension bar code.
Background technology
In the various electronic products of current production, can trace back to each link of production for guaranteeing product, each worker station of product line will be scanned the two-dimensional bar code of product and upload, this two-dimensional bar code is equivalent to the proof of identification of product, use scanner to scan traditionally, but scanner price comparison costliness.Can recognize that according to the coding and decoding principle of two-dimension code two-dimension code is actually square or the rectangle code element be made up of many lattices and forms, change color by lattice is come statistics, the lattice that the lattice of black represents binary one white represents binary zero, the ripe code that the conversion of two-dimension code figure has been arranged on the network, the collection of image still needs manual operation, can't satisfy factory automation operation needs.
Summary of the invention
In view of above content, be necessary to provide a kind of method of scanning two-dimension bar code, can autoscan two-dimensional bar code and decoding.
In view of above content, also be necessary to provide a kind of system of scanning two-dimension bar code, can autoscan two-dimensional bar code and decoding.
The method of described scanning two-dimension bar code, this method may further comprise the steps: setting up procedure: a newly-built text, start image collecting device, activate timer and set the timer interval time; Obtaining step: when timer triggers the two-dimensional bar code picture of the automatic collection of image collecting device product to be scanned, obtain this two-dimensional bar code picture that collects and preservation; Decoding step: the two-dimensional bar code picture that gets access to is handled, called decoding functions to this two-dimensional bar code picture decoding; Determining step: judge whether success of decoding, if the decoding failure, that finishes timer once moves and returns the two-dimensional bar code picture collection that obtaining step carries out product to be scanned again; Preserve step: when decoding successfully, the decoded information of this two-dimensional bar code picture is kept at the newly-built text of setting up procedure.
The system of described scanning two-dimension bar code comprises: start module, be used for a newly-built text, start image collecting device, activate timer and set the timer interval time; Image collection module is used for obtaining two-dimensional bar code picture and preservation from this image collecting device when timer triggering image collecting device is gathered the two-dimensional bar code picture of product to be measured by certain time interval; Decoder module is used for the two-dimensional bar code picture that gets access to is handled, and calls decoding functions to this two-dimensional bar code picture decoding; Judge module be used for to be judged whether success of decoding, if the decoding failure, that finishes timer once moves and return the two-dimensional bar code picture collection that obtaining step carries out product to be scanned again; Preserve module, be used for when decoding successfully, deposit the decoded information of this two-dimensional bar code picture in newly-built text.
The present invention can realize the autoscan of two-dimensional bar, has replaced in the past manually scanning, has satisfied the needs of factory automation operation.
Description of drawings
Fig. 1 is scanning two-dimension bar code system running environment figure of the present invention.
Fig. 2 is the functional block diagram of scanning two-dimension bar code of the present invention system preferred embodiment.
Fig. 3 is the process flow diagram of scanning two-dimension bar code method of the present invention preferred embodiment.
The main element symbol description
Product to be scanned | 1 |
|
2 |
The scanning two-dimension |
10 |
|
12 |
|
14 |
|
16 |
|
100 |
The |
102 |
|
104 |
|
106 |
|
108 |
Following embodiment will further specify the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
Be the running environment figure of scanning two-dimension bar code of the present invention system as Fig. 1, scanning two-dimension bar code system 10 operates in a computing equipment, and as computing machine 2, this two-dimensional bar code scanning system 10 is used for the two-dimensional bar code of scanning product 1 to be measured.Product 1 to be measured can be electronic products such as smart phone, panel computer, personal digital assistant.
As shown in Figure 2, be the functional block diagram of scanning two-dimension bar code of the present invention system preferred embodiment.
This scanning two-dimension bar code system 10 comprises startup module 100, image collection module 102, decoder module 104, judge module 106, preservation module 108.
Preserving module 108, be used for when decoding successfully, is the text that the decoded information of two-dimensional bar code writes above-mentioned foundation with the data in the newly-built string variable.
As shown in Figure 3, be the process flow diagram of autoscan two-dimensional bar code method of the present invention preferred embodiment.
Step S200, a newly-built text starts the interface that module 100 is opened image collecting device 12 and operation image harvester 12, activates timer 16, and sets the time interval of timer 16, and the time interval can be 1 second.
Step S202, timer 16 is gathered the two-dimensional bar code picture of product to be measured automatically according to triggering image collecting device 12 interval time of aforementioned setting, and picture acquisition module 102 obtains this two-dimensional bar code picture that collects and is kept in the shear plate then;
Step S204, decoder module 104 call decoding functions and the picture in the shear plate are carried out operations such as pixel enhancing, locking data zone, data decoding.Can recognize that according to the coding and decoding principle of two-dimension code two-dimension code is actually square or the rectangle code element be made up of many lattices and forms, change color by lattice is come statistics, the lattice of black represents binary one, and the lattice of white represents binary zero.Decoder module 104 calls decoding functions the two-dimensional bar code picture in the shear plate is analyzed decoding, function return value namely is the decoded information of this two-dimensional bar code picture, decoder module 104 can convert the decoded information of two-dimensional bar code picture to character string type, and a newly-built string variable, give this newly-built string variable with the decoded information assignment that converts the two-dimension code of character string type to.
Step S206, judge module 106 judges whether to decode successfully, for example, judge by the value of the newly-built string variable of determining step S204 whether decoding is successful, if the value of newly-built string variable is empty, decoding failure then, finish the once operation of timer 16, return step S202 treat appointed interval after the time again running timer 16 trigger image collecting devices 12 and carry out the collection of two-dimensional bar code picture, this fixed time can be a second at interval, if the character value non-NULL in the string variable illustrates and decodes successfully.
Step S208, when decoding successfully, preserving module 108 is that the decoded information of two-dimensional bar code picture is kept in the described text with the data in the newly-built string variable, the closing image harvester 12 then.
In the above-mentioned flow process be the two-dimensional bar code picture that scans a product to be measured be that example describes, if being arranged, a lot of products to be measured wait for the scanning two-dimension bar code picture, so in step S208, after the decoded information with the two-dimensional bar code picture is kept in the described text, do not need to freeze timer and closing image harvester 12, but the once operation of end timer 16, and return step S202 treat appointed interval after the time again running timer 16 to trigger the two-dimensional bar code picture of image collecting device 12 scannings product 1 to be measured, repeated execution of steps S202 is to the two-dimensional bar code been scanned of step S208 up to all products to be measured, then, freeze timer then, closing image harvester 12.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.
Claims (10)
1. the method for a scanning two-dimension bar code is characterized in that, this method may further comprise the steps:
Setting up procedure: a newly-built text, start image collecting device, activate timer and set the timer interval time;
Obtaining step: when timer triggers the two-dimensional bar code picture of the automatic collection of image collecting device product to be scanned, obtain this two-dimensional bar code picture that collects and preservation;
Decoding step: the two-dimensional bar code picture that gets access to is handled, called decoding functions to this two-dimensional bar code picture decoding;
Determining step: judge whether success of decoding, if the decoding failure, that finishes timer once moves and returns the two-dimensional bar code picture collection that obtaining step carries out product to be scanned again;
Preserve step: when decoding successfully, the decoded information of this two-dimensional bar code picture is kept at the newly-built text of setting up procedure.
2. the method for scanning two-dimension bar code as claimed in claim 1, it is characterized in that, described decoding step also comprises: newly-built string variable, convert the decoded information of this two-dimensional bar code picture to character string type and assignment is given this newly-built string variable, whether described determining step is that sky determines whether to decode successfully by the value of judging this newly-built string variable.
3. the method for scanning two-dimension bar code as claimed in claim 1 is characterized in that, in decoding step, decoding comprises decoding functions to the two-dimensional bar code picture:
The two-dimensional bar code picture is carried out pixel enhancing, locking data zone and data decode.
4. the method for scanning two-dimension bar code as claimed in claim 1 is characterized in that, described image collector is set to a camera.
5. the method for scanning two-dimension bar code as claimed in claim 1 is characterized in that, this method also comprises step:
Repeating obtaining step finishes to preserving the two-dimensional bar code picture scanning of step up to all products to be scanned.
6. the method for scanning two-dimension bar code as claimed in claim 5 is characterized in that, this method also comprises step:
Freeze the operation of timer, the closing image harvester.
7. the system of a scanning two-dimension bar code is characterized in that, this system comprises:
Start module, be used for a newly-built text, start image collecting device, activate timer and set the timer interval time;
Image collection module is used for obtaining two-dimensional bar code picture and preservation from this image collecting device when timer triggering image collecting device is gathered the two-dimensional bar code picture of product to be measured by certain time interval;
Decoder module is used for the two-dimensional bar code picture that gets access to is handled, and calls decoding functions to this two-dimensional bar code picture decoding;
Judge module be used for to be judged whether success of decoding, if the decoding failure, that finishes timer once moves and return the two-dimensional bar code picture collection that obtaining step carries out product to be scanned again;
Preserve module, be used for when decoding successfully, deposit the decoded information of this two-dimensional bar code picture in newly-built text.
8. the system of scanning two-dimension bar code as claimed in claim 7, it is characterized in that, described decoder module also is used for newly-built string variable, convert the decoded information of this two-dimensional bar code picture to character string type and assignment is given this newly-built string variable, whether described judge module is that sky determines whether to decode successfully by the value of judging this newly-built string variable.
9. the system of scanning two-dimension bar code as claimed in claim 7 is characterized in that, decoding comprises decoding functions to the two-dimensional bar code picture:
The two-dimensional bar code picture is carried out pixel enhancing, locking data zone and data decoding.
10. the system of scanning two-dimension bar code according to claim 7 is characterized in that, described image collector is set to a camera.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100095445A CN103207982A (en) | 2012-01-13 | 2012-01-13 | Two-dimensional bar code scanning method and system |
TW101104609A TW201329871A (en) | 2012-01-13 | 2012-02-13 | System and method for scanning two-dimensional bar code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100095445A CN103207982A (en) | 2012-01-13 | 2012-01-13 | Two-dimensional bar code scanning method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103207982A true CN103207982A (en) | 2013-07-17 |
Family
ID=48755199
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100095445A Pending CN103207982A (en) | 2012-01-13 | 2012-01-13 | Two-dimensional bar code scanning method and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103207982A (en) |
TW (1) | TW201329871A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104008360A (en) * | 2014-05-16 | 2014-08-27 | 北京致胜宏达科技有限公司 | Automatic bar code induction reading method and reader |
CN104700305A (en) * | 2013-12-05 | 2015-06-10 | 航天信息股份有限公司 | Method for acquiring two-dimensional code from optional input frame of Android platform |
WO2017072779A1 (en) * | 2015-10-28 | 2017-05-04 | Hewlett-Packard Development Company, L.P. | Processing a machine-readable link |
CN106934318A (en) * | 2017-03-13 | 2017-07-07 | 东软集团股份有限公司 | Barcode scanning processing method, apparatus and system |
CN108427559A (en) * | 2018-03-14 | 2018-08-21 | 新华三技术有限公司 | A kind of script file generates and call method and device |
CN109472178A (en) * | 2018-09-18 | 2019-03-15 | 广州思林杰网络科技有限公司 | Two-dimensional code scanning method |
CN111539236A (en) * | 2020-04-13 | 2020-08-14 | 苏州摩比信通智能系统有限公司 | Method for reading multiple bar codes at one time |
CN112507747A (en) * | 2020-12-10 | 2021-03-16 | 北京爱创科技股份有限公司 | Tracing code scanning device and method |
CN113408314A (en) * | 2020-03-16 | 2021-09-17 | 华为技术有限公司 | Bar code identification method and related equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461797B (en) * | 2013-09-18 | 2017-07-21 | 达丰(上海)电脑有限公司 | Test the system and method for notebook computer external display interface |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1368704A (en) * | 2001-02-06 | 2002-09-11 | 虹光精密工业股份有限公司 | Image reader for continuously reading image |
US20050001035A1 (en) * | 2003-05-12 | 2005-01-06 | Thomas Hawley | Picture taking optical reader |
US20050094869A1 (en) * | 2003-09-25 | 2005-05-05 | Fuji Photo Film Co., Ltd. | Moving image generating apparatus, moving image generating method and moving image generating program |
CN1655171A (en) * | 2004-02-13 | 2005-08-17 | 鸿富锦精密工业(深圳)有限公司 | Bar code automatic scanning system and method |
CN101296441A (en) * | 2007-04-26 | 2008-10-29 | 中兴通讯股份有限公司 | Method and device for scanning two-dimension bar code and transmitting message |
-
2012
- 2012-01-13 CN CN2012100095445A patent/CN103207982A/en active Pending
- 2012-02-13 TW TW101104609A patent/TW201329871A/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1368704A (en) * | 2001-02-06 | 2002-09-11 | 虹光精密工业股份有限公司 | Image reader for continuously reading image |
US20050001035A1 (en) * | 2003-05-12 | 2005-01-06 | Thomas Hawley | Picture taking optical reader |
US20050094869A1 (en) * | 2003-09-25 | 2005-05-05 | Fuji Photo Film Co., Ltd. | Moving image generating apparatus, moving image generating method and moving image generating program |
CN1655171A (en) * | 2004-02-13 | 2005-08-17 | 鸿富锦精密工业(深圳)有限公司 | Bar code automatic scanning system and method |
CN101296441A (en) * | 2007-04-26 | 2008-10-29 | 中兴通讯股份有限公司 | Method and device for scanning two-dimension bar code and transmitting message |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104700305A (en) * | 2013-12-05 | 2015-06-10 | 航天信息股份有限公司 | Method for acquiring two-dimensional code from optional input frame of Android platform |
CN104008360B (en) * | 2014-05-16 | 2019-06-14 | 北京致胜宏达科技有限公司 | A kind of automatic sensing bar code reading method and automatic sensing barcode reader |
CN104008360A (en) * | 2014-05-16 | 2014-08-27 | 北京致胜宏达科技有限公司 | Automatic bar code induction reading method and reader |
WO2017072779A1 (en) * | 2015-10-28 | 2017-05-04 | Hewlett-Packard Development Company, L.P. | Processing a machine-readable link |
US10699360B2 (en) | 2015-10-28 | 2020-06-30 | Hewlett-Packard Development Company, L.P. | Processing a machine-readable link |
CN106934318A (en) * | 2017-03-13 | 2017-07-07 | 东软集团股份有限公司 | Barcode scanning processing method, apparatus and system |
CN106934318B (en) * | 2017-03-13 | 2020-03-06 | 东软集团股份有限公司 | Code scanning processing method, device and system |
CN108427559A (en) * | 2018-03-14 | 2018-08-21 | 新华三技术有限公司 | A kind of script file generates and call method and device |
CN109472178A (en) * | 2018-09-18 | 2019-03-15 | 广州思林杰网络科技有限公司 | Two-dimensional code scanning method |
CN109472178B (en) * | 2018-09-18 | 2021-12-14 | 广州思林杰科技股份有限公司 | Two-dimensional code scanning method |
CN113408314A (en) * | 2020-03-16 | 2021-09-17 | 华为技术有限公司 | Bar code identification method and related equipment |
CN111539236A (en) * | 2020-04-13 | 2020-08-14 | 苏州摩比信通智能系统有限公司 | Method for reading multiple bar codes at one time |
CN112507747A (en) * | 2020-12-10 | 2021-03-16 | 北京爱创科技股份有限公司 | Tracing code scanning device and method |
CN112507747B (en) * | 2020-12-10 | 2024-04-19 | 北京爱创科技股份有限公司 | Device and method for scanning traceability codes |
Also Published As
Publication number | Publication date |
---|---|
TW201329871A (en) | 2013-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103207982A (en) | Two-dimensional bar code scanning method and system | |
US9665756B2 (en) | Method and device for processing visual graphic codes of mobile terminal | |
KR101541263B1 (en) | Method and apparatus for executing user action commands | |
US20150379300A1 (en) | Business card management server, business card image acquiring apparatus, business card management method, business card image acquiring method, and storage medium | |
US20060098874A1 (en) | System and method of enabling a cellular/wireless device with imaging capabilities to decode printed alphanumeric characters | |
CN103366149B (en) | The method and apparatus that mobile terminal processes visual graphic code | |
CN103123683A (en) | Apparatus for recognizing character and barcode simultaneously and method for controlling the same | |
US20090017765A1 (en) | System and Method of Enabling a Cellular/Wireless Device with Imaging Capabilities to Decode Printed Alphanumeric Characters | |
CN105631378A (en) | Two-dimensional code scanning method, two-dimensional code scanning device and terminal comprising two-dimensional code scanning device | |
CN112436477A (en) | Instrument is checked fast to relay protection device definite value of transformer substation | |
WO2016008239A1 (en) | Two-dimensional code information acquisition method, device and terminal | |
CN110765293A (en) | Method and system for automatically opening two-dimensional code, electronic device and storage medium | |
CN110727495B (en) | Automatic segmentation screenshot method and system for interface elements | |
CN108108646B (en) | Bar code information identification method, terminal and computer readable storage medium | |
CN111382428A (en) | Malicious software recognition model training method, malicious software recognition method and device | |
CN112417918B (en) | Two-dimensional code identification method and device, storage medium and electronic equipment | |
CN111507119A (en) | Identification code identification method and device, electronic equipment and computer readable storage medium | |
CN113094418A (en) | Business processing method and system based on enterprise WeChat and computer equipment | |
KR100569194B1 (en) | Correction method of geometrical distortion for document image by camera | |
CN111950562A (en) | Picture processing method and device, terminal equipment and storage medium | |
CN114266267B (en) | Automatic identification method, device and storage medium for integrating two-dimension codes, documents, certificates and faces | |
CN113395523B (en) | Image decoding method, device, equipment and storage medium based on parallel threads | |
CN109005335B (en) | Camera of mobile terminal and processing method thereof | |
CN103955662B (en) | Embedded type Z-code recognition system | |
CN106227823A (en) | A kind of webpage update detection method, info web capture and rendering method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130717 |