CN106846670A - A kind of bar code reading method for being applied to POS terminal - Google Patents
A kind of bar code reading method for being applied to POS terminal Download PDFInfo
- Publication number
- CN106846670A CN106846670A CN201611225655.4A CN201611225655A CN106846670A CN 106846670 A CN106846670 A CN 106846670A CN 201611225655 A CN201611225655 A CN 201611225655A CN 106846670 A CN106846670 A CN 106846670A
- Authority
- CN
- China
- Prior art keywords
- bar code
- camera module
- camera
- pos terminal
- parameter
- 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
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0036—Checkout procedures
- G07G1/0045—Checkout procedures with a code reader for reading of an identifying code of the article to be registered, e.g. barcode reader or radio-frequency identity [RFID] reader
- G07G1/0081—Checkout procedures with a code reader for reading of an identifying code of the article to be registered, e.g. barcode reader or radio-frequency identity [RFID] reader the reader being a portable scanner or data reader
-
- 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
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3278—RFID or NFC payments by means of M-devices
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Electromagnetism (AREA)
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- General Business, Economics & Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Strategic Management (AREA)
- Accounting & Taxation (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Telephone Function (AREA)
- Cash Registers Or Receiving Machines (AREA)
Abstract
The present invention relates to a kind of bar code reading method for being applied to POS terminal, there is provided a reading device, including microcontroller, camera module and webcam driver module;The parameter of microprocessor switching camera module simultaneously continuously reads the reading device again, and the microcontroller is connected with the camera module, and the microcontroller is used to configure the camera module and reads the data in the camera module;The camera module is used to photosensitive and transfers data to the microcontroller;The webcam driver module is connected with the camera module, is used to configure the camera module, in the case of being arranged on during bar code reading at interval of N frames, the parameter of the camera module that automatically switches.The parameter includes object brightness and exposure value, is used to the special scenes for making the camera module meet mobile telephone bar code recognition.The present invention can complete the application of bar code reading in special scenes.
Description
Technical field
The present invention relates to POS terminal field, more particularly to a kind of bar code reading method for being applied to POS terminal.
Background technology
With continuing to develop for internet, mobile telephone bar code recognition turns into hot issue.For mobile telephone bar code recognition, including branch
Fu Bao, wechat, Baidu's wallet, Jingdone district wallet etc., and mobile phone terminal other various bar codes application, including U.S. group's certificate, pay
Precious invoice house keeper etc., it is more and more universal in real life.So that POS device need to adapt to the change in market, for mobile phone bar
The special scenes of code recognition, should use specific technology according to special scenes, complete the application of bar code reading.
The content of the invention
In view of this, it is an object of the invention to provide a kind of bar code reading method for being applied to POS terminal, can be in specific field
Scape completes the application of bar code reading.
The present invention is realized using following scheme:A kind of bar code reading method for being applied to POS terminal, comprises the following steps:
Step S1:One reading device, including microcontroller, camera module and webcam driver module are provided;
Step S2:One POS terminal is in holding state, waits recognition to instruct and judges whether the recognition instruction is correct, if described
Recognition instruction is correct then to open the camera module and continuously reads N frame camera images;
Step S3:The camera image is judged during the camera image is read with the presence or absence of bar code, if the shooting
There is bar code in head image, the microprocessor will run decoding storehouse and complete decoding, and then wait the recognition instruction next time,
Return to step S2;If the camera image does not exist bar code, into step S4;
Step S4:The parameter of the microprocessor switching camera module and again continuous reading N frame camera images, are reading
Judge the camera image with the presence or absence of bar code, if the camera image has bar code, institute during the camera image
Stating microprocessor will run decoding storehouse and completes decoding, and then wait the recognition instruction, return to step S2 next time;If described
Camera image does not exist bar code, and the microprocessor will switch camera parameter and again camera described in continuous reading N frames
Module image;If camera image described in circulation certain hour does not exist bar code, the microprocessor will be judged to time-out, then
Terminate barcode scanning and wait the recognition instruction, return to step S2 next time.
Further, in the step S4, the parameter of the microprocessor switching camera module is specially:Switching is described
The object brightness parameter of camera module so that POS terminal is applied to the different photoenvironments that the mobile telephone bar code distinguishes technology, together
When switch the exposure value parameter of the camera module so that the different mobile phones that POS terminal is applied to mobile telephone bar code recognition are bright
The environment of degree.
Further, in the reading device, the microcontroller is connected with the camera module, the microcontroller
It is used to configure the camera module and reads the data in the camera module;The camera module is used to photosensitive and passes
Transmission of data is to the microcontroller;The webcam driver module is connected with the camera module, is used to configure the shooting
Head mould group, in the case of being arranged on during bar code reading at interval of N frames, the parameter of the camera module that automatically switches.
Further, the parameter includes object brightness and exposure value, is used to make the camera module meet mobile phone bar
The special scenes of code recognition.
Compared to prior art, the invention has the advantages that:POS terminal mobile telephone bar code recognition proposed by the invention
Method, during mobile telephone bar code recognition, in the case of at interval of N frames, automatically switch the camera module
Different parameters:Object brightness parameter including switching the camera module so that POS terminal is distinguished suitable for the mobile telephone bar code
The different photoenvironments of technology;Exposure value parameter including switching the camera module so that POS terminal is applied to the mobile phone
The environment of the different mobile phone brightness of bar code reading;By as above technical scheme, high degree improves POS terminal to the mobile phone
The adaptability of bar code reading, and substantially increase the customer experience degree during the mobile telephone bar code recognition.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention schematic diagram.
Specific embodiment
Below in conjunction with the accompanying drawings and embodiment the present invention will be further described.
The present embodiment provides a kind of bar code reading method for being applied to POS terminal, as shown in figure 1, comprising the following steps:
Step S1:One reading device, including microcontroller, camera module and webcam driver module are provided;
Step S2:One POS terminal is in holding state, waits recognition to instruct and judges whether the recognition instruction is correct, if described
Recognition instruction is correct then to open the camera module and continuously reads N frame camera images;
Step S3:The camera image is judged during the camera image is read with the presence or absence of bar code, if the shooting
There is bar code in head image, the microprocessor will run decoding storehouse and complete decoding, and then wait the recognition instruction next time,
Return to step S2;If the camera image does not exist bar code, into step S4;
Step S4:The parameter of the microprocessor switching camera module and again continuous reading N frame camera images, are reading
Judge the camera image with the presence or absence of bar code, if the camera image has bar code, institute during the camera image
Stating microprocessor will run decoding storehouse and completes decoding, and then wait the recognition instruction, return to step S2 next time;If described
Camera image does not exist bar code, and the microprocessor will switch camera parameter and again camera described in continuous reading N frames
Module image;If camera image described in circulation certain hour does not exist bar code, the microprocessor will be judged to time-out, then
Terminate barcode scanning and wait the recognition instruction, return to step S2 next time.
In the present embodiment, in the step S4, the parameter of the microprocessor switching camera module is specially:Switching
The object brightness parameter of the camera module so that POS terminal is applied to the different illumination rings that the mobile telephone bar code distinguishes technology
Border, while switching the exposure value parameter of the camera module so that POS terminal is applied to the different hands of mobile telephone bar code recognition
The environment of machine brightness.
In the present embodiment, in the reading device, the microcontroller is connected with the camera module, the micro-control
Device processed is used to configure the camera module and reads the data in the camera module;The camera module is to photosensitive
And transfer data to the microcontroller;The webcam driver module is connected with the camera module, is used to configure described
Camera module, in the case of being arranged on during bar code reading at interval of N frames, the ginseng of the camera module that automatically switches
Number.
In the present embodiment, the parameter includes object brightness and exposure value, is used to make the camera module meet hand
The special scenes of machine bar code reading.
The foregoing is only presently preferred embodiments of the present invention, all impartial changes done according to scope of the present invention patent with
Modification, should all belong to covering scope of the invention.
Claims (4)
1. a kind of bar code reading method for being applied to POS terminal, it is characterised in that:Comprise the following steps:
Step S1:One reading device, including microcontroller, camera module and webcam driver module are provided;
Step S2:One POS terminal is in holding state, waits recognition to instruct and judges whether the recognition instruction is correct, if described
Recognition instruction is correct then to open the camera module and continuously reads N frame camera images;
Step S3:The camera image is judged during the camera image is read with the presence or absence of bar code, if the shooting
There is bar code in head image, the microprocessor will run decoding storehouse and complete decoding, and then wait the recognition instruction next time,
Return to step S2;If the camera image does not exist bar code, into step S4;
Step S4:The parameter of the microprocessor switching camera module and again continuous reading N frame camera images, are reading
Judge the camera image with the presence or absence of bar code, if the camera image has bar code, institute during the camera image
Stating microprocessor will run decoding storehouse and completes decoding, and then wait the recognition instruction, return to step S2 next time;If described
Camera image does not exist bar code, and the microprocessor will switch camera parameter and again camera described in continuous reading N frames
Module image;If camera image described in circulation certain hour does not exist bar code, the microprocessor will be judged to time-out, then
Terminate barcode scanning and wait the recognition instruction, return to step S2 next time.
2. a kind of bar code reading method for being applied to POS terminal according to claim 1, it is characterised in that:The step S4
In, the parameter of the microprocessor switching camera module is specially:Switch the object brightness parameter of the camera module, make
Obtain POS terminal and be applied to the different photoenvironments that the mobile telephone bar code distinguishes technology, while switching the exposure of the camera module
Value parameter so that POS terminal is applied to the environment of the different mobile phone brightness of mobile telephone bar code recognition.
3. a kind of bar code reading method for being applied to POS terminal according to claim 1, it is characterised in that:The recognition dress
In putting, the microcontroller is connected with the camera module, and the microcontroller is used to configure the camera module and read
Take the data in the camera module;The camera module is used to photosensitive and transfers data to the microcontroller;It is described
Webcam driver module is connected with the camera module, is used to configure the camera module, is set during bar code reading
Put in the case of at interval of N frames, the parameter of the camera module that automatically switches.
4. a kind of bar code reading method for being applied to POS terminal according to claim 1, it is characterised in that:The parameter bag
Object brightness and exposure value are included, is used to the special scenes for making the camera module meet mobile telephone bar code recognition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611225655.4A CN106846670A (en) | 2016-12-27 | 2016-12-27 | A kind of bar code reading method for being applied to POS terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611225655.4A CN106846670A (en) | 2016-12-27 | 2016-12-27 | A kind of bar code reading method for being applied to POS terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106846670A true CN106846670A (en) | 2017-06-13 |
Family
ID=59136994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611225655.4A Pending CN106846670A (en) | 2016-12-27 | 2016-12-27 | A kind of bar code reading method for being applied to POS terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106846670A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908998A (en) * | 2017-11-28 | 2018-04-13 | 百富计算机技术(深圳)有限公司 | Quick Response Code coding/decoding method, device, terminal device and computer-readable recording medium |
CN110012235A (en) * | 2019-05-24 | 2019-07-12 | 上海商米科技有限公司 | Imagewise exposure control method and device, computer readable storage medium, system |
EP3699878A1 (en) * | 2019-02-20 | 2020-08-26 | Toshiba TEC Kabushiki Kaisha | Article information reading apparatus |
CN112560536A (en) * | 2020-12-26 | 2021-03-26 | 苏州斯普锐智能系统股份有限公司 | Method for reading and decoding image bar code by applying enhanced code reading mode |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101093547A (en) * | 2007-05-18 | 2007-12-26 | 上海邮政科学研究院 | Method for recognizing article by cooperating bar code based on height parameter with digit |
CN101446783A (en) * | 2007-11-26 | 2009-06-03 | 富士施乐株式会社 | Image forming apparatus, image forming system, image forming method, computer-readable medium and computer data signal |
CN102110266A (en) * | 2009-12-28 | 2011-06-29 | 英华达股份有限公司 | Point-of-sale management device |
CN103024279A (en) * | 2012-12-27 | 2013-04-03 | 上海华勤通讯技术有限公司 | Camera brightness regulating device and implementation method thereof |
CN103218596A (en) * | 2013-04-17 | 2013-07-24 | 苏州斯普锐智能系统有限公司 | Bar-code scanner with dynamic multi-angle illuminating system and bar-code scanning method thereof |
CN203870627U (en) * | 2013-12-30 | 2014-10-08 | 山东泰安烟草有限公司 | Identification device for bar code of cigarette box |
CN104573597A (en) * | 2013-10-10 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Two-dimension code identification method and identification device |
CN105654633A (en) * | 2015-12-30 | 2016-06-08 | 福建联迪商用设备有限公司 | POS code scanning payment method, system and device |
CN205451322U (en) * | 2016-01-04 | 2016-08-10 | 福建新大陆自动识别技术有限公司 | POS machine with bar code recognition engine |
-
2016
- 2016-12-27 CN CN201611225655.4A patent/CN106846670A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101093547A (en) * | 2007-05-18 | 2007-12-26 | 上海邮政科学研究院 | Method for recognizing article by cooperating bar code based on height parameter with digit |
CN101446783A (en) * | 2007-11-26 | 2009-06-03 | 富士施乐株式会社 | Image forming apparatus, image forming system, image forming method, computer-readable medium and computer data signal |
CN102110266A (en) * | 2009-12-28 | 2011-06-29 | 英华达股份有限公司 | Point-of-sale management device |
CN103024279A (en) * | 2012-12-27 | 2013-04-03 | 上海华勤通讯技术有限公司 | Camera brightness regulating device and implementation method thereof |
CN103218596A (en) * | 2013-04-17 | 2013-07-24 | 苏州斯普锐智能系统有限公司 | Bar-code scanner with dynamic multi-angle illuminating system and bar-code scanning method thereof |
CN104573597A (en) * | 2013-10-10 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Two-dimension code identification method and identification device |
CN203870627U (en) * | 2013-12-30 | 2014-10-08 | 山东泰安烟草有限公司 | Identification device for bar code of cigarette box |
CN105654633A (en) * | 2015-12-30 | 2016-06-08 | 福建联迪商用设备有限公司 | POS code scanning payment method, system and device |
CN205451322U (en) * | 2016-01-04 | 2016-08-10 | 福建新大陆自动识别技术有限公司 | POS machine with bar code recognition engine |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908998A (en) * | 2017-11-28 | 2018-04-13 | 百富计算机技术(深圳)有限公司 | Quick Response Code coding/decoding method, device, terminal device and computer-readable recording medium |
CN107908998B (en) * | 2017-11-28 | 2020-11-03 | 百富计算机技术(深圳)有限公司 | Two-dimensional code decoding method and device, terminal equipment and computer readable storage medium |
EP3699878A1 (en) * | 2019-02-20 | 2020-08-26 | Toshiba TEC Kabushiki Kaisha | Article information reading apparatus |
CN111599118A (en) * | 2019-02-20 | 2020-08-28 | 东芝泰格有限公司 | Article information reading apparatus, article information reading control method, readable storage medium, and electronic device |
CN110012235A (en) * | 2019-05-24 | 2019-07-12 | 上海商米科技有限公司 | Imagewise exposure control method and device, computer readable storage medium, system |
CN110012235B (en) * | 2019-05-24 | 2020-09-25 | 上海商米科技集团股份有限公司 | Imaging exposure control method and device, computer readable storage medium and system |
CN112560536A (en) * | 2020-12-26 | 2021-03-26 | 苏州斯普锐智能系统股份有限公司 | Method for reading and decoding image bar code by applying enhanced code reading mode |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106846670A (en) | A kind of bar code reading method for being applied to POS terminal | |
CN104902177B (en) | A kind of Intelligent photographing method and terminal | |
CN103491299B (en) | One is taken pictures treating method and apparatus | |
CN101325659B (en) | Imaging device, imaging method | |
CN103971713B (en) | A kind of filter processing method of video file | |
CN105049737B (en) | A kind of light supplement control method, device and mobile terminal | |
CN106149286A (en) | A kind of control method for washing machine based on image recognition | |
US20150317510A1 (en) | Rating photos for tasks based on content and adjacent signals | |
CN107040726A (en) | Dual camera synchronization exposure method and system | |
CN102546945A (en) | Method for automatically optimizing mobile phone photography | |
CN105611139B (en) | Image processing method, image processing apparatus and terminal | |
CN105892965A (en) | Screen display method and device | |
CN103618851A (en) | Self-photographing method and terminal | |
CN103905739A (en) | Electronic equipment control method and electronic equipment | |
CN106815803A (en) | The processing method and processing device of picture | |
CN104618660A (en) | Photographing method and terminal for user-defined flash lamp photographing effect parameters | |
CN105701804A (en) | Object material identifying method and device | |
CN108008804A (en) | The screen control method and device of smart machine | |
CN106973231A (en) | Picture synthetic method and system | |
CN103581567B (en) | Visual encoding series processing method and system, the broadcasting of visual encoding sequence and system thereof | |
CN106126066A (en) | Control method, device and the mobile terminal of a kind of augmented reality function | |
CN101630112B (en) | Projector and operation method thereof | |
CN103019381A (en) | Method for controlling automatic backlight of display screen | |
CN117201930A (en) | Photographing method and electronic equipment | |
CN206075285U (en) | A kind of barcode scanner of employing twin-lens technology |
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: 20170613 |