CN115345188A - Code scanning settlement method and device based on commodity two-dimensional code - Google Patents

Code scanning settlement method and device based on commodity two-dimensional code Download PDF

Info

Publication number
CN115345188A
CN115345188A CN202211270474.9A CN202211270474A CN115345188A CN 115345188 A CN115345188 A CN 115345188A CN 202211270474 A CN202211270474 A CN 202211270474A CN 115345188 A CN115345188 A CN 115345188A
Authority
CN
China
Prior art keywords
text
commodity
code
dimensional code
outputting
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
Application number
CN202211270474.9A
Other languages
Chinese (zh)
Inventor
郭锐
林强
程璐璐
林文都
马琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Standardization Research Institute Brics National Standardization Zhejiang Research Center And Zhejiang Article Coding Center
Original Assignee
Zhejiang Standardization Research Institute Brics National Standardization Zhejiang Research Center And Zhejiang Article Coding Center
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Standardization Research Institute Brics National Standardization Zhejiang Research Center And Zhejiang Article Coding Center filed Critical Zhejiang Standardization Research Institute Brics National Standardization Zhejiang Research Center And Zhejiang Article Coding Center
Priority to CN202211270474.9A priority Critical patent/CN115345188A/en
Publication of CN115345188A publication Critical patent/CN115345188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods 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/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images

Abstract

The invention provides a code scanning settlement method and device based on a commodity two-dimensional code, and belongs to the technical field of two-dimensional code scanning. The commodity two-dimension code recognition system solves the problems that an existing business super system cannot recognize a commodity two-dimension code in an off-line state and the like. The commodity two-dimension code scanning settlement method in the offline state comprises the following steps: step S1: identifying the two-dimensional code; step S2: judging input; and step S3: locking the keyboard; and step S4: judging the text, and if the text is a commodity two-dimensional code text, executing the step S5; if the text is not the commodity two-dimensional code text, executing the step S6; step S5: outputting the bar code text; step S6: and outputting the text. The invention has the advantages of being capable of adapting to the conventional merchant super-junction accounting device and the conventional settlement system, not needing to replace the settlement device or the settlement system, saving cost and the like.

Description

Code scanning settlement method and device based on commodity two-dimensional code
Technical Field
The invention belongs to the technical field of two-dimension code scanning, and particularly relates to a code scanning settlement method and device based on a commodity two-dimension code.
Background
The codes of the commodity bar codes follow the principle of uniqueness so as to ensure that the commodity bar codes are not repeated all over the world, namely, one commodity item only has one code, or one code only can identify one commodity item. The commodities with different specifications, different packages, different varieties, different prices and different colors can only use different commodity codes, and the commodity super scanning bar code can read out the corresponding information such as commodity names, prices and the like due to the storage of related information in the commodity super database. When the commodity is over-settled, the bar code is scanned by the scanning equipment, the corresponding code of the bar code is read, and then the corresponding commodity information is automatically read.
The two-dimensional code is a pattern which is distributed on a plane (in a two-dimensional direction) according to a certain rule by using a certain specific geometric figure, is black and white and is alternated and records data symbol information; the concept of 0 and 1 bit stream forming the internal logic base of computer is used ingeniously in coding, several geometric forms correspondent to binary system are used to represent literal numerical information, and the information can be automatically read by means of image input equipment or photoelectric scanning equipment so as to implement automatic information processing.
However, in the conventional business-super system, both the settlement device and the settlement system are only suitable for bar codes, when a scanning gun scans two-dimensional codes of commodities in an off-line state, website text information is read, and the conventional settlement device and the conventional settlement system cannot directly read the two-dimensional codes for settlement.
Disclosure of Invention
The invention aims to provide a code scanning settlement method and device based on a commodity two-dimensional code, aiming at the problems in the prior art.
The first object of the present invention can be achieved by the following technical solutions: a code scanning settlement method based on a commodity two-dimensional code comprises the following steps:
step S1: recognizing the two-dimensional code: scanning the two-dimensional code by a code scanning gun to identify a two-dimensional code text of the commodity;
step S2: and (3) judging and inputting: judging whether a two-dimensional code text is input or not, and executing the step S3 when the input is judged;
and step S3: locking the keyboard: locking the keyboard according to preset time, wherein the preset time for locking the keyboard is 100-300 milliseconds;
and step S4: judging the text: judging whether the text input within the preset time is a commodity two-dimensional code text, wherein the commodity two-dimensional code text comprises a website and a commodity bar code,
if the text is a commodity two-dimensional code text, executing the step S5;
if the text is not the commodity two-dimensional code text, executing the step S6;
step S5: outputting bar code text: extracting and outputting a bar code text in the commodity two-dimensional code text;
step S6: outputting a text: and outputting the text input within the preset time length.
The working principle of the invention is as follows: the working principle of the code scanning gun is equal to that of keyboard input, the existing code scanning gun can directly enter for input after inputting a text, so that a two-dimensional code text of a commodity read by the code scanning gun cannot be recognized by an existing settlement device or a settlement system, in the scheme, when the code scanning gun scans the barcode or the two-dimensional code, the code scanning gun reads information and converts the information into text input, namely, the text input is input into a computer and returned according to the sequence of symbols, letters or numbers of the text, when a first input symbol or letter is detected by the computer, the keyboard is locked according to a preset duration, and a business super worker cannot input the information by the keyboard, so that the problem that the two-dimensional code of the commodity cannot be recognized or is wrongly recognized due to the fact that the keyboard input is mixed in the code scanning gun input is solved, the read text information cannot be directly input by the return within the time of locking the keyboard, the text input within the preset duration is firstly judged, when the text of the two-dimensional code text of the commodity is judged as the two-dimensional code text of the commodity, the barcode is extracted from the two-dimensional code text, and the barcode is input into the existing settlement device or the settlement system, and the existing settlement device or the settlement system can be directly adapted to the settlement system. The invention enables the existing settlement device or settlement system to be directly suitable for code scanning settlement of the two-dimensional code of the commodity without replacing the existing settlement device or settlement system, thereby saving a large amount of cost.
In the above code scanning settlement method based on the two-dimensional code of the commodity, the barcode of the commodity includes a prefix, a barcode text and a suffix.
In the code scanning settlement method based on the commodity two-dimensional code, the prefix is gtin/, the bar code text is 14-digit digital code, and the suffix is/.
In the above method for clearing and settling the two-dimensional code of the commodity, step S5 includes determining whether the first digit of the text of the barcode is "0",
when the number of the bar code text is 0, removing the number and outputting a twelve-digit coded bar code text;
and when the number of the bar code text is not 0, outputting the fourteen-digit coded bar code text.
In the code scanning settlement method based on the two-dimension code of the commodity, the text of the two-dimension code of the commodity further comprises a batch number, a single number, a production date, an expiration date, a quality guarantee period and an expiration date.
The second object of the present invention can be achieved by the following technical solutions: a two-dimensional code scanning settlement device based on commodities comprises a computer end, a code scanning gun, a keyboard, a display, a server, one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the programs comprise a code scanning settlement method based on the two-dimensional codes of the commodities.
Compared with the prior art, the method has the advantages that the method can be adapted to the conventional merchant super-junction computing device and the conventional settlement system, the settlement device or the settlement system does not need to be replaced, and the cost is saved.
Drawings
Fig. 1 is a flow chart of a code scanning settlement method based on a two-dimensional code of a commodity according to the present invention.
Detailed Description
The following are specific embodiments of the present invention and are further described with reference to the drawings, but the present invention is not limited to these embodiments.
As shown in fig. 1, the code scanning settlement method based on the two-dimensional code of the commodity comprises the following steps:
step S1: recognizing the two-dimensional code: scanning the two-dimensional code by a code scanning gun to identify a two-dimensional code text of the commodity;
step S2: and (3) judging and inputting: judging whether input exists or not, and executing the step S3 when the input exists;
and step S3: locking the keyboard: locking the keyboard for 200 milliseconds;
and step S4: judging the text: judging whether the text input within the preset time length is a commodity two-dimensional code text,
if the text is a commodity two-dimensional code text, executing the step S5;
if the text is not the commodity two-dimensional code text, executing the step S6;
step S5: outputting a bar code text: the scanned and read two-dimensional code text of the commodity comprises a website, a commodity bar code, a single product number, a production date, an expiration date, a failure date and a quality guarantee period, the commodity bar code comprises a prefix, a bar code text and a suffix, the bar code text in the two-dimensional code text of the commodity is extracted and output, and when the first digit of the bar code text is '0', the '0' is automatically removed;
step S6: outputting a text: and outputting the text input within the preset time length.
In further detail, the prefix is gtin/, the bar code text is 14-digit digital code, and the suffix is/.
In further detail, the step S5 further includes judging whether the initial number of the barcode text is "0", and when the initial number of the barcode text is 0, removing the initial number and outputting a coded barcode text with twelve digits; and when the characteristic number of the bar code text is 0, outputting fourteen-digit coded bar code text. At present, the commodity bar code attribute in the merchant super-junction computing platform supports two code structures, namely GTIN-14 and GTIN-13. In order to satisfy the filling of the two code structures, the page is set to be 14 bits, and when the commodity bar code is GTIN-13, the platform supplements '0' in the front and has no influence on bar code information.
The first embodiment is as follows:
the commodity two-dimensional code text is https:// gm2d.zjamr.zj.gov.cn/gtin/0690215486521/bat/202110110002/ser/0001/pro/210720/bestb/220431/exp/220531
Wherein https is// gm2d.zjamr.zj.gov.cn/is website, gtin/0690215486521/is commodity bar code, bat/202110002/is batch number, ser/0001/is single product number, pro/210720/is production date, bestb/220431/is quality guarantee period, and exp/220531/expiration date.
The bar code scanning gun scans the two-dimensional code, the input is judged at the moment, the keyboard is locked for 200 milliseconds, the bar code scanning gun completely inputs the two-dimensional code text of the commodity within 200 milliseconds during the period of locking the keyboard, the bar code text is identified and extracted according to the two-dimensional code text of the commodity, namely 0690215486521, after the first digit 0 is removed, the output bar code text is 690215486521, the bar code text is input into the conventional settlement device and system, and the bar code scanning settlement can be realized by scanning the two-dimensional code of the commodity in an off-line state.
Example two:
the number of the commodities needs to be changed by the merchant and super staff, when 5 needs to be input, the merchant and super staff presses a 5 key, the input is judged at the moment, the keyboard is locked for 200 milliseconds, the input text is 5 in the period of locking the keyboard, and the text is not the two-dimensional code text of the commodities, so that the text in the period of locking the keyboard is output, namely 5.
The method does not affect the normal use and input of the keyboard.
The code scanning settlement device based on the two-dimensional codes of the commodities comprises a computer end, a code scanning gun, a keyboard, a display, a server, one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the programs comprise the following steps:
step S1: reading the two-dimensional code: scanning the two-dimensional code by a code scanning gun to read a two-dimensional code text of the commodity;
step S2: and (3) judging and inputting: judging whether input exists or not, and executing a step S3 when the input exists;
and step S3: locking the keyboard: locking the keyboard for 200 milliseconds;
and step S4: judging the text: judging whether the text input within the preset time is a commodity two-dimensional code text,
if the text is a commodity two-dimensional code text, executing the step S5;
if the text is not the commodity two-dimensional code text, executing the step S6;
step S5: outputting a bar code text: scanning and reading the two-dimension code text of the commodity, wherein the scanned and read two-dimension code text of the commodity comprises a website, a barcode text of the commodity, a batch number, a single product number, a production date, an expiration date, a quality guarantee period and an expiration date, and extracting and outputting the barcode text in the two-dimension code text of the commodity;
step S6: and (3) outputting a text: and outputting the text input within the preset time length.
The specific embodiments described herein are merely illustrative of the spirit of the invention. Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.
Although a large number of terms are used here more, the possibility of using other terms is not excluded. These terms are used merely to more conveniently describe and explain the nature of the present invention; they are to be construed as being without limitation to any additional limitations that may be imposed by the spirit of the present invention.

Claims (6)

1. A code scanning settlement method based on a commodity two-dimensional code is characterized by comprising the following steps:
step S1: recognizing the two-dimensional code: scanning the two-dimensional code by a code scanning gun to identify a two-dimensional code text of the commodity;
step S2: and (3) judging and inputting: judging whether a two-dimensional code text is input or not, and executing the step S3 when the input is judged;
and step S3: locking the keyboard: locking the keyboard according to a preset time length, wherein the preset time length for locking the keyboard is 100-300 milliseconds;
and step S4: judging the text: judging whether the text input within the preset time is a commodity two-dimensional code text, wherein the commodity two-dimensional code text comprises a website and a commodity bar code,
if the text is a commodity two-dimensional code text, executing the step S5;
if the text is not the commodity two-dimensional code text, executing the step S6;
step S5: outputting bar code text: extracting and outputting a bar code text in the commodity two-dimensional code text;
step S6: outputting a text: and outputting the text input within the preset time length.
2. The code scanning settlement method based on the commodity two-dimensional code as claimed in claim 1, wherein the commodity bar code comprises a prefix, a bar code text and a suffix.
3. The two-dimensional code scanning settlement method for commodities as claimed in claim 2, wherein the prefix is gtin/, the barcode text is 14-digit code, and the suffix is/.
4. The code scanning settlement method based on the commodity two-dimensional code as claimed in claim 1, wherein the step S5 comprises judging whether the first digit of the bar code text is "0",
when the number of the bar code text is 0, removing the number and outputting a twelve-digit coded bar code text;
and when the number of the bar code text is not 0, outputting the fourteen-digit coded bar code text.
5. The code scanning settlement method based on the commodity two-dimensional code as claimed in claim 1, wherein the commodity two-dimensional code text further comprises a batch number, a single product number, a production date, an expiration date, a quality guarantee period and an expiration date.
6. A two-dimension code scanning settlement device based on goods, comprising a computer terminal, a code scanning gun, a keyboard, a display, a server, one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the program comprises a code scanning settlement method based on two-dimension codes of goods according to any one of claims 1 to 5.
CN202211270474.9A 2022-10-18 2022-10-18 Code scanning settlement method and device based on commodity two-dimensional code Pending CN115345188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211270474.9A CN115345188A (en) 2022-10-18 2022-10-18 Code scanning settlement method and device based on commodity two-dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211270474.9A CN115345188A (en) 2022-10-18 2022-10-18 Code scanning settlement method and device based on commodity two-dimensional code

Publications (1)

Publication Number Publication Date
CN115345188A true CN115345188A (en) 2022-11-15

Family

ID=83957629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211270474.9A Pending CN115345188A (en) 2022-10-18 2022-10-18 Code scanning settlement method and device based on commodity two-dimensional code

Country Status (1)

Country Link
CN (1) CN115345188A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07152963A (en) * 1993-11-29 1995-06-16 Fujitsu Ltd Pos system
CN101452345A (en) * 2007-10-22 2009-06-10 得逻辑公司 System lock
CN104021364A (en) * 2013-05-06 2014-09-03 昆山瑞恒峰技术咨询有限公司 Novel barcode scanner
CN104240079A (en) * 2014-09-28 2014-12-24 王干 Two-dimensional code recognition payment system based on unique identity authentication of individual commodities
CN107134088A (en) * 2016-02-29 2017-09-05 东芝泰格有限公司 Commodity data input unit and its control method, terminal device
CN107609884A (en) * 2017-09-27 2018-01-19 北京吉码慧世网络信息科技有限责任公司 Commodity based on Internet of Things recall method and device
CN111241433A (en) * 2020-01-15 2020-06-05 蔡志诚 Commodity temporary and recall monitoring and retail tracking method based on two-dimensional code
CN112328635A (en) * 2020-10-27 2021-02-05 中国信息通信研究院 Settlement method and system based on industrial internet identification
CN112581114A (en) * 2019-09-30 2021-03-30 王宝伦 Shopping settlement method, related device and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07152963A (en) * 1993-11-29 1995-06-16 Fujitsu Ltd Pos system
CN101452345A (en) * 2007-10-22 2009-06-10 得逻辑公司 System lock
CN104021364A (en) * 2013-05-06 2014-09-03 昆山瑞恒峰技术咨询有限公司 Novel barcode scanner
CN104240079A (en) * 2014-09-28 2014-12-24 王干 Two-dimensional code recognition payment system based on unique identity authentication of individual commodities
CN107134088A (en) * 2016-02-29 2017-09-05 东芝泰格有限公司 Commodity data input unit and its control method, terminal device
CN107609884A (en) * 2017-09-27 2018-01-19 北京吉码慧世网络信息科技有限责任公司 Commodity based on Internet of Things recall method and device
CN112581114A (en) * 2019-09-30 2021-03-30 王宝伦 Shopping settlement method, related device and system
CN111241433A (en) * 2020-01-15 2020-06-05 蔡志诚 Commodity temporary and recall monitoring and retail tracking method based on two-dimensional code
CN112328635A (en) * 2020-10-27 2021-02-05 中国信息通信研究院 Settlement method and system based on industrial internet identification

Similar Documents

Publication Publication Date Title
CN202916873U (en) Multifunctional product anti-counterfeit identification system
CN102236800B (en) The word identification of the text of experience OCR process
US4421978A (en) Decoding method for multicharacter labels
CN103839148A (en) Express recognizing and sorting system and method
CN112258074B (en) E-commerce commodity storage logistics intelligent scheduling method based on big data analysis
CN110991446B (en) Label identification method, device, equipment and computer readable storage medium
US5742039A (en) Commodity management system
CN115345188A (en) Code scanning settlement method and device based on commodity two-dimensional code
CN114021596A (en) Bar code identification method and device based on deep learning
US11593591B2 (en) Optical character recognition systems and methods
CN107563689A (en) Use bar code management system and method
CN115345717A (en) Expired commodity intercepting method and device based on two-dimensional code scanning settlement method
CN113297434B (en) Material gene code generation method and system
AU2019295416A1 (en) Product ID conversion method, device and product management system
CN111667214B (en) Goods information acquisition method and device based on two-dimensional code and electronic equipment
CN104766349A (en) Geometrical form graph coding and decoding method applied to external packing of commodities
CN112733568B (en) One-dimensional bar code recognition method, device, equipment and storage medium
CN111783787A (en) Method and device for identifying image characters and electronic equipment
US8915433B2 (en) Indentifier eligibility
CN111144532B (en) Asset code element, asset code and construction method of asset code
CN108470135A (en) A kind of Quick Response Code wrong identification method based on automobile product
CN116738343B (en) Material data identification method and device for construction industry and electronic equipment
US11128775B2 (en) Meta information transmission system through printed matter, printing control apparatus, printed matter reading apparatus, method for applying meta information for printed matter, and method for acquiring meta information from printed matter
CN114997203A (en) Method and system for identifying material codes of production workshop
CN101369317A (en) Method for generating simple recognition code based on serial number conversion in bill system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination