CN109543479B - Code scanning method, device, equipment and storage medium - Google Patents

Code scanning method, device, equipment and storage medium Download PDF

Info

Publication number
CN109543479B
CN109543479B CN201811242015.3A CN201811242015A CN109543479B CN 109543479 B CN109543479 B CN 109543479B CN 201811242015 A CN201811242015 A CN 201811242015A CN 109543479 B CN109543479 B CN 109543479B
Authority
CN
China
Prior art keywords
code scanning
article
value
global counter
code
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.)
Active
Application number
CN201811242015.3A
Other languages
Chinese (zh)
Other versions
CN109543479A (en
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.)
Kingdee Deeking Cloud Computing Co ltd
Original Assignee
Kingdee Deeking Cloud Computing Co ltd
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 Kingdee Deeking Cloud Computing Co ltd filed Critical Kingdee Deeking Cloud Computing Co ltd
Priority to CN201811242015.3A priority Critical patent/CN109543479B/en
Publication of CN109543479A publication Critical patent/CN109543479A/en
Application granted granted Critical
Publication of CN109543479B publication Critical patent/CN109543479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/10544Methods 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/10821Methods 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
    • G06K7/10861Methods 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 sensing of data fields affixed to objects or articles, e.g. coded labels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3276Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The application relates to a code scanning method, a code scanning device, computer equipment and a storage medium. The method comprises the following steps: calling a code scanning interface according to the code scanning operation instruction; continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article; and performing service operation according to the code scanning result. Because the articles are continuously scanned through the code scanning interface, the continuous code scanning is realized, a service interface does not need to be returned, a code scanning button does not need to be clicked for multiple times to enter the code scanning interface, and the code scanning efficiency can be greatly improved.

Description

Code scanning method, device, equipment and storage medium
Technical Field
The present application relates to the field of mobile code scanning, and in particular, to a code scanning method, apparatus, device, and storage medium.
Background
With the rapid development of networks and mobile intelligent terminals, the mobile intelligent terminal is convenient and rapid to use, and is widely applied to main places of life shopping such as supermarkets, convenience stores and the like. In particular, shopping settlement is an essential link for shopping, and plays an increasingly important role in the retail industry.
At present, the number of settlement through code scanning by a mobile terminal is continuously increasing, for example, in a small-sized convenience store, a merchant usually uses a mobile phone of the merchant directly, and after cash software is installed, a camera of the mobile phone is used for scanning a bar code on a commodity to complete settlement. For example, when the settlement is needed, the user clicks the scan button to enter the scan interface, the service interface is returned after the scan is completed, and when the second commodity is scanned, the user clicks the scan button again to enter the scan interface, so as to circulate until all the commodities are scanned.
However, in this way, the scan button needs to be clicked multiple times for multiple products, resulting in a significant inefficiency in code scanning.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a code scanning method, apparatus, computer device and storage medium.
A method of code scanning, the method comprising:
calling a code scanning interface according to the code scanning operation instruction;
continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article;
and performing service operation according to the code scanning result.
In one embodiment, the performing a service operation according to the code scanning result includes: acquiring a value of a preset global counter; carrying out accuracy verification on the code scanning result according to the value of the global counter; and if the verification is successful, performing service operation according to the code scanning result.
In one embodiment, the performing accuracy check on the code scanning result according to the value of the global counter includes: if the value of the global counter is equal to a preset threshold value, the verification is successful; and if the value of the global counter is not equal to the preset threshold value, the verification fails.
In one embodiment, the obtaining the value of the counter includes: judging whether the article identifiers in the two adjacent code scanning results are the same; if the global counter is the same as the global counter, the value of the global counter is increased by one; and if not, setting the value of the global counter to zero.
In one embodiment, the performing a service operation according to the code scanning result includes: acquiring the article information according to the code scanning result; and performing business operation on the article according to the article information and the user operation instruction.
In one embodiment, the performing a business operation on the article according to the article information and the user operation instruction includes: switching from the code scanning interface to a service operation interface according to the user operation instruction; the business operation interface is used for displaying the article information; receiving a service operation instruction through the service operation interface; the business operation instruction comprises an operation instruction of at least one article selected by a user; and performing business operation on the article according to the business operation instruction.
In one embodiment, the continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article includes: continuously scanning the identification codes of at least two articles through the code scanning interface to acquire the image information of the identification code of each article; identifying image information of the identification code of each article by adopting a preset image identification method to obtain a code scanning result; the code scanning result comprises an article identification.
An apparatus for scanning a code, the apparatus comprising:
the calling module is used for calling a code scanning interface according to the code scanning operation instruction;
the acquisition module is used for continuously scanning the identification codes of at least two articles through the code scanning interface by a user to acquire the code scanning result of each article;
and the service module is used for carrying out service operation according to the code scanning result.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
calling a code scanning interface according to the code scanning operation instruction;
continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article;
and performing service operation according to the code scanning result.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
calling a code scanning interface according to the code scanning operation instruction;
continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article;
and performing service operation according to the code scanning result.
According to the code scanning method, the code scanning device, the computer equipment and the storage medium, the code scanning interface is called according to the code scanning operation instruction; continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article; and performing service operation according to the code scanning result. Because the articles are continuously scanned through the code scanning interface, the continuous code scanning is realized, a service interface does not need to be returned, a code scanning button does not need to be clicked for multiple times to enter the code scanning interface, and the code scanning efficiency can be greatly improved.
Drawings
FIG. 1 is a diagram illustrating an internal structure of a computer device according to an embodiment;
FIG. 2 is a flow diagram illustrating a code scanning method according to an embodiment;
FIG. 3 is a schematic flowchart of an implementation manner of S203 in the embodiment of FIG. 2;
FIG. 4 is a schematic flow chart of another implementation manner of S203 in the embodiment of FIG. 2;
FIG. 5 is a flowchart illustrating an implementation manner of S402 in the embodiment of FIG. 4;
FIG. 6 is a flowchart illustrating an implementation manner of S202 in the embodiment of FIG. 2;
FIG. 7 is a block diagram of an exemplary code scanner;
FIG. 8 is a block diagram of another embodiment of a code scanning apparatus;
FIG. 9 is a block diagram of another embodiment of a code scanning apparatus;
FIG. 10 is a block diagram of another embodiment of a code scanning apparatus.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The code scanning method provided by the embodiment of the application can be applied to computer equipment, the computer equipment can be a terminal, and the internal structure diagram can be as shown in fig. 1. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a code scanning method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
In one embodiment, as shown in fig. 2, a code scanning method is provided, where an execution subject of the method is a computer device shown in fig. 1, and the application relates to a specific implementation process of continuous code scanning, including the following steps:
s201, calling a code scanning interface according to the code scanning operation instruction.
The code scanning operation instruction refers to a code scanning command initiated by a user on the computer device, and may be an instruction sent by clicking a code scanning button on a service operation interface by the user or by a user voice operation command. The code-scanning interface comprises a code-scanning window for application interaction of a user with the code-scanning system. Specifically, the computer device calls a code scanning interface after receiving a code scanning operation instruction sent by a user, and further switches the computer device from a service operation interface to the code scanning interface.
S202, continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article.
The identification code is used as a unique identity of the article, is a necessary attribute of the article, and is also a unique identifier of links such as article production, circulation and the like. The identification code may be a bar code, two-dimensional code, etc. of the article. The code scanning result can comprise the name of the article corresponding to the article identification code.
Specifically, in a code scanning interface, a camera carried by the computer equipment is called through an operating system of the computer equipment, codes are scanned for identification codes of the articles, code scanning information is returned to a decoding engine for decoding, and then code scanning results of the articles are obtained. For example, the image information of the article identification code may be acquired by the computer device, the image information is identified, and the corresponding article name is acquired, that is, the scanning result is determined, or the corresponding article name is acquired by the background server and is sent to the computer device as the scanning result, so that the computer device acquires the code scanning result of each article.
And S203, performing service operation according to the code scanning result.
The business operation may be to settle the total price of the article, add or subtract the article, discount the article, etc.
For example, two articles are scanned continuously, the code scanning result obtained according to the identification codes of the articles is 'one book and one pen', the articles are increased and decreased according to the code scanning result, for example, 'the purchase amount of the book is increased by one, the purchase amount of one pen is increased by 2', and the articles can be settled, for example, the total settlement price is 8 yuan according to the price of 'one book and one pen' respectively.
According to the code scanning method provided by the embodiment, a code scanning interface is called according to a code scanning operation instruction; continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article; and performing service operation according to the code scanning result. Because the articles are continuously scanned through the code scanning interface, the continuous code scanning is realized, a service interface does not need to be returned, a code scanning button does not need to be clicked for multiple times to enter the code scanning interface, and the code scanning efficiency can be greatly improved.
In one embodiment, for continuously scanning the identification codes of the articles, the identification code analysis thread needs to be called to obtain the code scanning result of each article, and then the service thread is called according to the code scanning result to perform service operation. The present embodiment provides a method of avoiding such a conflict. As shown in fig. 3, the step S203 of performing a service operation according to the code scanning result includes:
s301, acquiring a value of a preset global counter.
The preset global counter can be background program software, the value of the global counter can be obtained by judging whether the article identifiers in the two adjacent code scanning results are consistent, and the initial value of the preset global counter can be 0.
Optionally, one possible implementation manner of S301 includes: judging whether the article identifiers in the two adjacent code scanning results are the same or not, and if so, adding one to the value of the global counter; if not, the value of the global counter is set to zero. The item identification may include an item name, an item number, and the like.
For example, when the preset initial value of the global counter is 0, if the article identifiers in the two adjacent code scanning results are the same, the value of the global counter is incremented by one, at this time, the value of the global counter is 1, if the article identifiers in the next code scanning result are still the same, the value of the global counter is continuously incremented by one, at this time, the value of the global counter is 2, and if the article identifiers in the code scanning results are not the same, the value of the global counter is set to zero.
S302, carrying out accuracy verification on the code scanning result according to the value of the global counter.
Wherein, the accuracy check can be performed according to the value of the global counter and a preset threshold. For example, the accuracy may be checked according to the value of the global counter and the preset threshold, or the difference may be obtained by subtracting the preset threshold from the value of the global counter, and then the accuracy may be checked according to the difference, or the ratio of the value of the global counter and the preset threshold may be checked.
Optionally, if the value of the global counter is equal to a preset threshold, the verification is successful; and if the value of the global counter is not equal to the preset threshold value, the verification fails.
The preset threshold may be a value obtained after an experiment is performed on a certain platform according to a large amount of experimental data, and in this embodiment of the present application, the preset threshold may be fixed, for example, may be 6.
For example, if the preset threshold is 3, for scanning the identification code of an article, acquiring that the code scanning result is article a, checking the article according to the global counter, and if the code scanning result of the second time is still article a, adding one to the value of the global technologist, wherein the value of the global counter is 1 at this time; if the third code scan still results in item A, the value of the global technician is incremented by one, and the value of the global counter is now 2. If the result of the fourth scan is still item A, then the value of the global technician is incremented by one, and the value of the global counter is now 3. The value of the global counter is equal to a preset threshold value 3, which indicates that the verification is successful, namely the code scanning result is determined as an article A; if the fourth code scanning result is the article B, that is, the code scanning result of the scanned identification code of the article is biased, the reason for the bias may be that the scanned articles are inconsistent, the identification code is unclear, the code is jittered during code scanning, and the like, and the value of the global technologist is set to zero at this time.
Optionally, when the value of the global counter is not equal to the preset threshold 3 and the verification fails, the verification is continued until the verification succeeds.
And S303, if the verification is successful, performing service operation according to the code scanning result.
For example, if the fourth code scanning result is still the item a, the value of the global counter is equal to the preset threshold value 3, and if the verification is successful, the code scanning result is determined as the item a, and then the item a is subjected to business operation, for example, the price of the item a is displayed and settled, or the number of the item a is increased or removed, and the like.
In the method for checking the accuracy of the continuous code scanning provided by this embodiment, a preset value of a global counter is obtained; carrying out accuracy verification on the code scanning result according to the value of the global counter; if the verification is successful, the business operation is carried out according to the code scanning result, the accuracy verification can be carried out on the code scanning result, the conflict problem of continuous code scanning can be avoided, and the code scanning efficiency is greatly improved.
In one embodiment, as shown in fig. 4, S203 "perform a service operation according to the code scanning result" includes:
s401, the article information is obtained according to the code scanning result.
The article information may be price information, price discount information, production information, inventory information, and the like of the article corresponding to the code scanning result. For example, if the code scanning result is item a, the item information may be the price, price discount rate, etc. of item a.
For example, the computer device may obtain an article name of the code scanning result, determine corresponding article information by using a relationship between the article name and the article information stored in a local cache, or the computer device may send the scanning result to the background server, and the background server determines the article information according to the relationship between the article name and the article information and sends the article information to the computer device, so that the computer device obtains the article information.
S402, performing business operation on the article according to the article information and the user operation instruction.
For example, the user operation instruction may be that the user clicks a settlement button on the service operation interface, so that the computer device settles the item after receiving the user operation instruction; or the user adds or deletes the article, so that the computer equipment correspondingly adds or deletes the article after receiving the user operation instruction; or, the user selects the corresponding discount for the price of the article and clicks the settlement button, so that the computer device performs the service operation.
In this embodiment, a specific implementation flow manner for performing a service operation according to a code scanning result is provided, and the article information is obtained according to the code scanning result; and performing business operation on the article according to the article information and the user operation instruction. Because the article information is obtained according to the code scanning result, the business operation is further carried out, and the code scanning result is a continuous code scanning result, so that the business efficiency is greatly improved.
In one embodiment, as shown in fig. 5, the step S402 of performing a service operation on the item according to the item information and the user operation instruction includes:
s501, switching from the code scanning interface to a service operation interface according to the user operation instruction; and the business operation interface is used for displaying the article information.
And the user operation instruction is used for switching the code scanning interface to the service operation interface. For example, the computing device is currently located in a scan code interface, after the object is scanned, the user clicks a confirmation button, and after receiving a user operation instruction, the computing device switches from the scan interface to a service operation interface.
S502, receiving a service operation instruction through the service operation interface; the business operation instruction comprises an operation instruction of at least one article selected by a user.
The business operation instruction may be an instruction generated by a user operating an article on a business operation interface, for example, the user clicks a "+" or "-" function control for a quantity corresponding to an article, and the business operation instruction may also be that the user clicks a settlement button.
S503, carrying out business operation on the article according to the business operation instruction.
For example, when the user clicks the "+" or "-" function control on the number corresponding to an item, the computer device increases or decreases the item according to the clicking operation of the user. In addition, when the user clicks the settlement button, the computer device can realize the settlement operation of the article.
The embodiment provides a specific implementation process for performing business operation on an article according to the article information and a user operation instruction, and switches from the code scanning interface to a business operation interface according to the user operation instruction; the business operation interface is used for displaying the article information; receiving a service operation instruction through the service operation interface; the business operation instruction comprises an operation instruction of at least one article selected by a user; and performing business operation on the article according to the business operation instruction. Because the user does not need to initiate the user operation instruction for multiple articles to scan the code, the service efficiency is greatly improved.
In one embodiment, as shown in fig. 6, S202 "continuously scan the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article": the method comprises the following steps:
s601, continuously scanning the identification codes of at least two articles through the code scanning interface to acquire the image information of the identification code of each article.
And at the code scanning interface, calling a camera carried by the computer equipment through an operating system of the computer equipment, continuously shooting the whole identification code in a picture mode, and acquiring image information of the identification code of the article.
S602, identifying the image information of the identification code of each article by adopting a preset image identification method to obtain the code scanning result; the code scanning result comprises an article identification.
The preset image recognition method is a technology for recognizing various targets and objects in different modes by mainly utilizing a computer to process, analyze and understand images, and is an important field of artificial intelligence. The preset image recognition method may be a neural network-based image recognition method, a wavelet moment-based image recognition method, or the like.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, a code scanning apparatus is provided, which includes a calling module 11, an obtaining module 12, and a service module 13, where:
the calling module 11 is used for calling a code scanning interface according to the code scanning operation instruction;
the acquisition module 12 is used for continuously scanning the identification codes of at least two articles through the code scanning interface by a user to acquire a code scanning result of each article;
and the service module 13 is configured to perform service operation according to the code scanning result.
In one embodiment, as shown in fig. 8, on the basis of fig. 7, the service module 13 includes:
a first obtaining unit 130, configured to obtain a value of a preset global counter;
a checking unit 131, configured to perform accuracy checking on the code scanning result according to the value of the global counter;
the first service unit 132 is configured to perform a service operation according to the code scanning result if the verification is successful.
In one embodiment, the checking unit 131 is configured to, if the value of the global counter is equal to a preset threshold, check successfully; and if the value of the global counter is not equal to the preset threshold value, the verification fails.
In one embodiment, the first obtaining unit 130 is configured to determine whether the article identifiers in the two adjacent code scanning results are the same; if the global counter is the same as the global counter, the value of the global counter is increased by one; and if not, setting the value of the global counter to zero.
In one embodiment, as shown in fig. 9, on the basis of fig. 7, the service module 13 includes:
a second obtaining unit 133, configured to obtain the item information according to the code scanning result;
and the second service unit 134 is configured to perform a service operation on the article according to the article information and the user operation instruction.
In one embodiment, the second service unit 134 is configured to switch from the code scanning interface to a service operation interface according to the user operation instruction; the business operation interface is used for displaying the article information; receiving a service operation instruction through the service operation interface; the business operation instruction comprises an operation instruction of at least one article selected by a user; and performing business operation on the article according to the business operation instruction.
In one embodiment, as shown in fig. 10, on the basis of fig. 7, the obtaining module 12 includes:
a third obtaining unit 120, configured to continuously scan the identification codes of at least two articles through the code scanning interface, and obtain image information of the identification code of each article;
a fourth obtaining unit 121, configured to identify, by using a preset image identification method, image information of the identification code of each article, and obtain the code scanning result; the code scanning result comprises an article identification.
For the specific limitation of the code scanning apparatus, reference may be made to the above limitation on the output mode control method, which is not described herein again. The various modules in the output mode control described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
calling a code scanning interface according to the code scanning operation instruction;
continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article;
and performing service operation according to the code scanning result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a value of a preset global counter; carrying out accuracy verification on the code scanning result according to the value of the global counter; and if the verification is successful, performing service operation according to the code scanning result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the value of the global counter is equal to a preset threshold value, the verification is successful; and if the value of the global counter is not equal to the preset threshold value, the verification fails.
In one embodiment, the processor, when executing the computer program, further performs the steps of: judging whether the article identifiers in the two adjacent code scanning results are the same; if the global counter is the same as the global counter, the value of the global counter is increased by one; and if not, setting the value of the global counter to zero.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring the article information according to the code scanning result; and performing business operation on the article according to the article information and the user operation instruction.
In one embodiment, the processor, when executing the computer program, further performs the steps of: switching from the code scanning interface to a service operation interface according to the user operation instruction; the business operation interface is used for displaying the article information; receiving a service operation instruction through the service operation interface; the business operation instruction comprises an operation instruction of at least one article selected by a user; and performing business operation on the article according to the business operation instruction.
In one embodiment, the processor, when executing the computer program, further performs the steps of: continuously scanning the identification codes of at least two articles through the code scanning interface to acquire the image information of the identification code of each article; identifying image information of the identification code of each article by adopting a preset image identification method to obtain a code scanning result; the code scanning result comprises an article identification.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
calling a code scanning interface according to the code scanning operation instruction;
continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article;
and performing service operation according to the code scanning result.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a value of a preset global counter; carrying out accuracy verification on the code scanning result according to the value of the global counter; and if the verification is successful, performing service operation according to the code scanning result.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the value of the global counter is equal to a preset threshold value, the verification is successful; and if the value of the global counter is not equal to the preset threshold value, the verification fails.
In one embodiment, the computer program when executed by the processor further performs the steps of: judging whether the article identifiers in the two adjacent code scanning results are the same; if the global counter is the same as the global counter, the value of the global counter is increased by one; and if not, setting the value of the global counter to zero.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring the article information according to the code scanning result; and performing business operation on the article according to the article information and the user operation instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of: switching from the code scanning interface to a service operation interface according to the user operation instruction; the business operation interface is used for displaying the article information; receiving a service operation instruction through the service operation interface; the business operation instruction comprises an operation instruction of at least one article selected by a user; and performing business operation on the article according to the business operation instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of: continuously scanning the identification codes of at least two articles through the code scanning interface to acquire the image information of the identification code of each article; identifying image information of the identification code of each article by adopting a preset image identification method to obtain a code scanning result; the code scanning result comprises an article identification.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for scanning codes, the method comprising:
calling a code scanning interface according to the code scanning operation instruction;
continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article;
performing service operation according to the code scanning result;
wherein, the performing the service operation according to the code scanning result includes:
acquiring a value of a preset global counter;
carrying out accuracy verification on the code scanning result according to the value of the global counter;
if the verification is successful, performing service operation according to the code scanning result;
wherein, the obtaining of the value of the preset global counter includes:
judging whether the article identifiers in the code scanning results of the two adjacent times are the same;
if the global counter is the same as the global counter, the value of the global counter is increased by one;
if not, setting the value of the global counter to zero;
the accuracy check of the code scanning result according to the value of the global counter comprises the following steps:
if the value of the global counter is equal to a preset threshold value, the verification is successful;
and if the value of the global counter is not equal to the preset threshold value, the verification fails.
2. The method of claim 1, wherein the identification code comprises a bar code and a two-dimensional code of the item.
3. The method according to any of claims 1-2, wherein said performing a service operation according to the code scanning result comprises:
acquiring the information of the article according to the code scanning result;
and performing business operation on the article according to the information of the article and the user operation instruction.
4. The method of claim 3, wherein the information of the item comprises price information, price discount information, production information and inventory information of the item corresponding to the code scanning result.
5. The method according to claim 3, wherein the performing business operations on the article according to the information of the article and the user operation instructions comprises:
switching from the code scanning interface to a service operation interface according to the user operation instruction; the business operation interface is used for displaying the information of the article;
receiving a service operation instruction through the service operation interface; the business operation instruction comprises an operation instruction of at least one article selected by a user;
and performing business operation on the article according to the business operation instruction.
6. The method according to claim 5, wherein the user operation instruction is an instruction generated by a user operating the article on the business operation interface.
7. The method according to any one of claims 1-2, wherein the continuously scanning the identification codes of at least two articles through the code scanning interface to obtain the code scanning result of each article comprises:
continuously scanning the identification codes of at least two articles through the code scanning interface to acquire the image information of the identification code of each article;
identifying image information of the identification code of each article by adopting a preset image identification method to obtain a code scanning result; the code scanning result comprises an article identification.
8. An apparatus for scanning a code, the apparatus comprising:
the calling module is used for calling a code scanning interface according to the code scanning operation instruction;
the acquisition module is used for continuously scanning the identification codes of at least two articles through the code scanning interface by a user to acquire the code scanning result of each article;
the service module is used for carrying out service operation according to the code scanning result;
wherein, the service module comprises:
the first acquisition unit is used for acquiring the value of a preset global counter;
the checking unit is used for carrying out accuracy checking on the code scanning result according to the value of the global counter and a preset threshold value;
the first service unit is used for carrying out service operation according to the code scanning result if the verification is successful;
the first obtaining unit is specifically configured to:
judging whether the article identifiers in the code scanning results of the two adjacent times are the same; if the global counter is the same as the global counter, the value of the global counter is increased by one; if not, setting the value of the global counter to zero;
the verification unit is specifically configured to:
if the value of the global counter is equal to a preset threshold value, the verification is successful;
and if the value of the global counter is not equal to the preset threshold value, the verification fails.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201811242015.3A 2018-10-24 2018-10-24 Code scanning method, device, equipment and storage medium Active CN109543479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811242015.3A CN109543479B (en) 2018-10-24 2018-10-24 Code scanning method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811242015.3A CN109543479B (en) 2018-10-24 2018-10-24 Code scanning method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109543479A CN109543479A (en) 2019-03-29
CN109543479B true CN109543479B (en) 2021-12-07

Family

ID=65845147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811242015.3A Active CN109543479B (en) 2018-10-24 2018-10-24 Code scanning method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109543479B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112417914B (en) * 2020-11-27 2024-03-26 西安诺瓦星云科技股份有限公司 Data scanning method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6565004B2 (en) * 2000-07-21 2003-05-20 Fujitsu Limited Optical device to collectively read a plurality of bar codes and/or a plurality of optical readable symbols
CN101042726A (en) * 2007-03-14 2007-09-26 中兴通讯股份有限公司 Method for implementing continuance recognizing bar-code in terminal
CN104794610A (en) * 2014-01-21 2015-07-22 史浩 Supermarket self-service checkout system and operation management flow
CN108108646A (en) * 2017-12-29 2018-06-01 Tcl王牌电器(惠州)有限公司 Bar code information recognition methods, terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170001849A (en) * 2015-06-26 2017-01-05 아이크래프트 (주) Implement for a genuine certification, a genuine certification system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6565004B2 (en) * 2000-07-21 2003-05-20 Fujitsu Limited Optical device to collectively read a plurality of bar codes and/or a plurality of optical readable symbols
CN101042726A (en) * 2007-03-14 2007-09-26 中兴通讯股份有限公司 Method for implementing continuance recognizing bar-code in terminal
CN104794610A (en) * 2014-01-21 2015-07-22 史浩 Supermarket self-service checkout system and operation management flow
CN108108646A (en) * 2017-12-29 2018-06-01 Tcl王牌电器(惠州)有限公司 Bar code information recognition methods, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN109543479A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN110135823B (en) Order processing method and device, computer equipment and readable storage medium
CN108717633B (en) Virtual card data processing method, system, device, computer equipment and storage medium
CN108280626B (en) Contract data processing method and device, computer equipment and storage medium
CN109740137B (en) Name card generation method, device, computer equipment and storage medium
CN108334395B (en) Information processing method, apparatus, computer device, and storage medium
US20170177656A1 (en) Systems and methods for resolving data discrepancy
CN109871826A (en) Information displaying method, device, computer readable storage medium and computer equipment
CN107783861B (en) Transaction rollback method, device, storage medium and computer equipment
CN108805577B (en) Information processing method, device, system, computer equipment and storage medium
CN111209113A (en) Resource allocation method, device, equipment and storage medium based on intelligent contract
CN110766520A (en) Multi-system multi-shop order fusion method and device, computer equipment and storage medium
CN110838041B (en) Virtual resource activity processing method and device, computer equipment and storage medium
CN110609683B (en) Conversation robot configuration method and device, computer equipment and storage medium
CN109543479B (en) Code scanning method, device, equipment and storage medium
CN112785288A (en) Order data processing method and device, computer equipment and storage medium
CN112084403A (en) Data query method and device, computer equipment and storage medium
CN112527357A (en) Service hot loading updating method and device, computer equipment and storage medium
US10354223B2 (en) Systems, devices, and methods for machine reading
CN110597815A (en) Service processing method, device, computer equipment and storage medium
CN110738175A (en) Face image processing method and device, computer equipment and storage medium
CN113572900A (en) Outbound test method, device, computer equipment and computer readable storage medium
US11093993B2 (en) Systems and methods for providing user specific data
CN109711809B (en) Merchant attribute setting method and device, computer equipment and storage medium
CN112184213A (en) Code scanning payment method and related device
CN111882373B (en) Data operation method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant