CN112183147A - Continuous code scanning method and device, scanning equipment and storage medium - Google Patents

Continuous code scanning method and device, scanning equipment and storage medium Download PDF

Info

Publication number
CN112183147A
CN112183147A CN201910632520.7A CN201910632520A CN112183147A CN 112183147 A CN112183147 A CN 112183147A CN 201910632520 A CN201910632520 A CN 201910632520A CN 112183147 A CN112183147 A CN 112183147A
Authority
CN
China
Prior art keywords
scanning
light source
timer
optical signal
commodity
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
CN201910632520.7A
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.)
Netum Intelligent Guangzhou Technology Co ltd
Original Assignee
Netum Intelligent Guangzhou Technology 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 Netum Intelligent Guangzhou Technology Co ltd filed Critical Netum Intelligent Guangzhou Technology Co ltd
Priority to CN201910632520.7A priority Critical patent/CN112183147A/en
Publication of CN112183147A publication Critical patent/CN112183147A/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/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1465Methods for optical code recognition the method including quality enhancement steps using several successive scans of the optical code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Electromagnetism (AREA)
  • Toxicology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Quality & Reliability (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The application relates to a continuous code scanning method, a continuous code scanning device, scanning equipment and a storage medium. The method comprises the following steps: receiving a continuous code scanning request; controlling the light source to start and send out a light signal; when a first optical signal reflected by the first commodity bar code is received, controlling the light source to be turned off and starting a timer; after the preset time length of the timer, controlling the light source to start and sending out a light signal; receiving a second optical signal reflected by a second commodity bar code, and converting the first optical signal and the second optical signal into a first electric signal and a second electric signal through an analog-to-digital conversion module; distributing the first electric signal and the second electric signal to corresponding decoders to obtain decoded data; sending the decoded data to a computer system; the effect of continuous scanning can be realized, operation convenience and production efficiency are improved, the light source can be turned off in the scanning time interval, the light source is not required to be kept normally bright, and energy is saved.

Description

Continuous code scanning method and device, scanning equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for continuously scanning a code, a scanning device, and a storage medium.
Background
With the progress of science and technology, online shopping becomes the first choice of more and more users for shopping, for example, a shopping application program of a PC (personal computer) end is operated for shopping, but in daily life, shopping in supermarkets and shopping malls is still the main shopping mode of users, because the online shopping mode has the advantages that the users can directly contact with commodities and buy the commodities on the spot, but the traditional shopping mode has longer queuing time and wastes the time of the users; more cashiers are needed, and the labor cost of supermarkets and shopping malls is increased.
In addition, the barcode of the commodity is generally recognized by a scanning device, such as a scanning gun, in the current supermarket and market, a cashier can only perform one-time scanning operation by pressing a trigger key once in the checkout process, and when a customer has a plurality of commodities, the cashier is required to press the trigger key for multiple times or a normally-on mode is started, so that the plurality of commodities can be scanned sequentially to obtain corresponding prices; the operation of pressing the multi-time trigger key is not convenient enough, the production efficiency is not improved, and the opening of the normally bright mode consumes more energy.
Disclosure of Invention
In view of the above, there is a need to provide a continuous code scanning method, device, scanning device and storage medium, which can improve the convenience of operation and production efficiency and save energy.
A continuous code scanning method is applied to a scanning device, the scanning device comprises a timer and a decoder, and the method comprises the following steps:
receiving a continuous code scanning request;
controlling the light source to start and send out a light signal;
when a first optical signal reflected by the first commodity bar code is received, controlling the light source to be turned off and starting a timer;
after the preset time length of the timer, controlling the light source to start and sending out a light signal;
receiving a second optical signal reflected by a second commodity bar code, and converting the first optical signal and the second optical signal into a first electric signal and a second electric signal through an analog-to-digital conversion module;
distributing the first electric signal and the second electric signal to corresponding decoders to obtain decoded data;
and sending the decoded data to a computer system.
In one embodiment, the scanning device further comprises a memory for storing the decoded data.
In one embodiment, the method further comprises:
and acquiring the setting information aiming at the preset duration of the timer.
In one embodiment, the scanning device further comprises a machine learning chip, wherein a machine learning model is preset in the machine learning chip; the method further comprises the following steps:
acquiring preset commodity characteristic information and corresponding preset time;
inputting the commodity characteristic information and preset duration into the machine learning model to obtain a trained machine learning model;
in one embodiment, the scanning device further comprises a camera, the camera is located above a scanning window of the scanning device, and the camera is used for acquiring an image of a commodity; the method further comprises the following steps:
acquiring the commodity image through the camera;
acquiring commodity characteristic information according to the commodity image;
and inputting the commodity characteristic information into the trained machine learning model to obtain preset duration.
A continuous code scanning device is applied to a scanning device, the scanning device comprises a timer and a decoder, and the method comprises the following steps:
the request receiving module is used for receiving the continuous code scanning request;
the first light source starting module is used for controlling the starting of the light source and sending out a light signal;
the timer starting module is used for controlling the light source to be closed and starting the timer when receiving the first optical signal reflected by the first commodity bar code;
the second light source starting module is used for controlling the light source to start and sending out a light signal after the preset duration of the timer;
the conversion module is used for receiving a second optical signal reflected by a second commodity bar code and converting the first optical signal and the second optical signal into a first electric signal and a second electric signal through the analog-to-digital conversion module;
the decoding module is used for distributing the first electric signal and the second electric signal to corresponding decoders to obtain decoded data;
and the sending module is used for sending the decoded data to the computer system.
In one embodiment, the scanning device further comprises a memory for storing the decoded data.
In one embodiment, the apparatus further comprises:
and the setting information module is used for acquiring the setting information aiming at the preset duration of the timer.
A scanning device comprises a camera, a scanning window, a light source, a timer, a scanning receiver, an analog-to-digital converter, a decoder, a data transmission interface, a memory and a processor;
the scanning window is positioned at the front end of the scanning device; the camera is positioned above the scanning window; the light source is connected with the timer and the scanning and receiving device; the scanning and receiving module is connected with the analog-to-digital conversion module; the decoder is connected with the analog-to-digital converter decoder and the data transmission interface;
the scanning and receiving device is used for forming a scanning line from the optical signal emitted by the light source and receiving the reflected optical signal; the analog-to-digital converter is used for converting optical signals into electric signals; the decoder is used for decoding the electric signal to obtain decoded data; the data transmission interface is used for transmitting the decoded data to a computer system.
The memory stores a computer program, and the processor implements the steps of the continuous code scanning method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the continuous code scanning method of any one of the above.
The continuous code scanning method in this embodiment applies a scanning device, where the scanning device includes a timer and a decoder, and the method includes: receiving a continuous code scanning request; controlling the light source to start and send out a light signal; when a first optical signal reflected by the first commodity bar code is received, controlling the light source to be turned off and starting a timer; after the preset time length of the timer, controlling the light source to start and sending out a light signal; receiving a second optical signal reflected by a second commodity bar code, and converting the first optical signal and the second optical signal into a first electric signal and a second electric signal through an analog-to-digital conversion module; distributing the first electric signal and the second electric signal to corresponding decoders to obtain decoded data; sending the decoded data to a computer system; the effect of continuous scanning can be realized, operation convenience and production efficiency are improved, the light source can be turned off in the scanning time interval, the light source is not required to be kept normally bright, and energy is saved.
Drawings
FIG. 1 is a block diagram of a scanning device of an embodiment;
FIG. 2 is a flow diagram of a method of continuous code scanning according to an embodiment;
fig. 3 is a block diagram of a continuous code scanning apparatus according to an embodiment.
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 embodiment discloses a scanning device, as shown in fig. 1, the scanning device includes a camera, a scanning window, a light source, a timer, a scanning and receiving device, an analog-to-digital converter, a decoder, a data transmission interface, a memory and a processor;
the scanning window is positioned at the front end of the scanning device; the camera is positioned above the scanning window; the light source is connected with the timer and the scanning and receiving device; the scanning and receiving module is connected with the analog-to-digital conversion module; the decoder is connected with the analog-to-digital converter and the data transmission interface;
the scanning and receiving device is used for forming a scanning line from the optical signal emitted by the light source and receiving the reflected optical signal; the analog-to-digital converter is used for converting optical signals into electric signals; the decoder is used for decoding the electric signal to obtain decoded data; the data transmission interface is used for transmitting the decoded data to a computer system.
The scanning device includes a processor, a memory 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 nonvolatile storage medium stores 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 computer program is executed by a processor to implement the steps described below.
Specifically, the memory stores a computer program, and the processor implements the following steps when executing the computer program: receiving a continuous code scanning request; controlling the light source to start and send out a light signal; when a first optical signal reflected by the first commodity bar code is received, controlling the light source to be turned off and starting a timer; after the preset time length of the timer, controlling the light source to start and sending out a light signal; receiving a second optical signal reflected by a second commodity bar code, and converting the first optical signal and the second optical signal into a first electric signal and a second electric signal through an analog-to-digital conversion module; distributing the first electric signal and the second electric signal to corresponding decoders to obtain decoded data; and sending the decoded data to a computer system.
In a core concept of this embodiment, a timer and a plurality of decoders are added on the basis of a scanning device of the principle, and the timer and the decoders respectively receive a first optical signal and a second optical signal of a first commodity barcode and a second commodity barcode and input the first optical signal and the second optical signal to corresponding decoders for decoding, so that a continuous scanning effect can be achieved.
In one embodiment, as shown in fig. 2, a continuous code scanning method is provided, which employs a scanning device including a timer and a decoder, and includes the following steps:
step 201, receiving a continuous code scanning request;
in this embodiment, the scanning device may first receive the continuous code scanning request, specifically, the scanning device may include a trigger button, which may include a push button or a virtual button, and this embodiment is not limited thereto, and in general, the scanning device may include a trigger button with multiple modes, such as a trigger button with a single code scanning mode or a trigger button with a continuous code scanning mode, and when the user presses the trigger button with the connected code scanning mode, the scanning device receives the continuous code scanning request.
For example, when a customer purchases a plurality of goods and places the goods on the counter of the cashier, the user (cashier) can press the trigger button of the continuous code scanning mode to enter the continuous code scanning mode of the goods.
Step 202, controlling a light source to start and send out a light signal;
further applied to the present embodiment, when receiving the continuous code scanning request, the scanning device may control the light source to start, and emit the optical signal, preferably, in the case that the light source is a laser light source, the emitted optical signal is a laser signal; specifically, the laser light source may be a non-axisymmetric elliptical beam, and the processor controls the laser light source to start and emit a laser signal in the case of the continuous code scanning mode.
In an application scenario, a user (cashier) can press a trigger button of the continuous code scanning mode to enter the continuous code scanning mode of the commodity, the user aligns a scanning window of the scanning device with a bar code of one commodity, and a laser light source is controlled by a scanning device processor to be started to send out a laser signal.
Step 203, when receiving a first optical signal reflected by the first commodity bar code, controlling a light source to be turned off and starting a timer;
specifically, in this embodiment, after the laser signal is sent to the barcode of a certain commodity, the scanning and receiving device of the scanning device receives the first optical signal reflected by the barcode of the first commodity, controls the light source to be turned off, and starts the timer, where the preset duration of the timer may be set according to an actual situation, for example, the preset duration of the timer may be set to 0.5s, 0.1s, or 0.05s, and this embodiment is not limited specifically.
Specifically, after the laser signal is emitted, a first optical signal reflected by a first commodity bar code of a certain commodity is received immediately, the light source is controlled to be turned off, and a timer is started to time.
Step 204, after the preset duration of the timer, controlling a light source to start and sending out a light signal;
in practical application, after the preset time of the timer, the light source is controlled to be started again to emit the light signal, namely, in a continuous scanning mode, after the first commodity bar code is scanned and the first light signal reflected by the first commodity bar code is received, the time for turning off the light source is controlled through the timer, after the preset time of the timer is reached, the laser light source is controlled to be started again to emit the laser signal, the second commodity bar code is scanned, and when the scanning is not needed, the light source is turned off, so that the energy is saved.
Step 205, receiving a second optical signal reflected by a second commodity barcode, and converting the first optical signal and the second optical signal into a first electrical signal and a second electrical signal through an analog-to-digital conversion module;
in this embodiment, the first optical signal and the second optical signal are converted into the first electrical signal and the second electrical signal through the analog-to-digital conversion module after the second optical signal is received and the first optical signal and the second optical signal are converted into the first electrical signal and the second electrical signal through the analog-to-digital conversion module, that is, after the second commodity barcode is scanned, the second optical signal is obtained, and the first optical signal and the second optical signal are converted into the first electrical signal and the second electrical signal through the analog-to-digital conversion module.
Step 206, distributing the first electrical signal and the second electrical signal to corresponding decoders to obtain decoded data;
further applied to this embodiment, the scanning device may include a plurality of decoders, and the scanning device may distribute the first electrical signal and the second electrical signal to the corresponding decoders, and control the decoders to perform decoding, so as to obtain decoded data; it should be noted that the electrical signal converted from the optical signal may further include a third electrical signal, a fourth electrical signal, and the like, and the third electrical signal and the fourth electrical signal may also be distributed to corresponding decoders to obtain decoded data; that is, in the continuous scanning mode, the electric signal can be decoded by a plurality of decoders, and the decoding efficiency is improved.
Step 207, sending the decoded data to the computer system.
In this embodiment, after the electrical signal is decoded, the decoded data may be sent to a computer system, and the computer system matches the decoded data with data of a server side to obtain commodity data; the scanning device may be connected to a computer system that may be used to perform data matching and the like.
The continuous code scanning method in this embodiment applies a scanning device, where the scanning device includes a timer and a decoder, and the method includes: receiving a continuous code scanning request; controlling the light source to start and send out a light signal; when a first optical signal reflected by the first commodity bar code is received, controlling the light source to be turned off and starting a timer; after the preset time length of the timer, controlling the light source to start and sending out a light signal; receiving a second optical signal reflected by a second commodity bar code, and converting the first optical signal and the second optical signal into a first electric signal and a second electric signal through an analog-to-digital conversion module; distributing the first electric signal and the second electric signal to corresponding decoders to obtain decoded data; sending the decoded data to a computer system; the effect of continuous scanning can be realized, operation convenience and production efficiency are improved, the light source can be turned off in the scanning time interval, the light source is not required to be kept normally bright, and energy is saved.
In another preferred embodiment, the scanning device further comprises a memory for storing the decoded data.
Specifically, the decoded data may be stored in the memory first, and after a certain amount of data is reached, all the decoded data may be transmitted to the computer system again.
In one embodiment, the method further comprises: and acquiring the setting information aiming at the preset duration of the timer.
In this embodiment, the scanning device may further obtain setting information for the preset duration of the timer, that is, after obtaining the preset duration, the scanning device may readjust the preset duration of the timer.
In another preferred embodiment of this embodiment, the scanning device further includes a machine learning chip, and a machine learning model is preset in the machine learning chip; the method further comprises the following steps:
step S11, acquiring preset commodity characteristic information and corresponding preset duration;
and step S12, inputting the commodity characteristic information and preset duration into the machine learning model to obtain the trained machine learning model.
Specifically, the machine learning model can be trained by the preset commodity feature information and the preset time duration corresponding to the timer, and it should be noted that the commodity feature information may include the commodity type and commodity shape of each commodity, the commodity volume, the barcode position, the relative position of the barcode to other commodities, and the distance between commodities; the source of the commodity feature information may be an image obtained from a camera on the scanning device, and the preset time duration is the time duration taken between each successive scanning of two commodities.
That is, in this embodiment, a mapping table is preset, where the mapping table may include a corresponding relationship between the commodity feature information of the commodity and a preset time duration, and the machine learning model is trained according to the corresponding relationship to obtain a trained machine learning model.
It should be noted that the Machine learning model may include a supervised Machine learning model, specifically, the supervised learning model mainly includes a model for classification and Regression, for example, the supervised learning model may include a Linear Classifier model (Linear Classifier), a Support Vector Machine (Support Vector Machine), a Naive Bayes model Classifier (negative Bayes Classifier), a K-nearest neighbor model (K-nearest neighbor), a Decision Tree model (Decision Tree), a Linear Regression model (Linear Regression), a Regression Tree model (Regression Tree), and the like, which is not limited in this embodiment.
In another embodiment, the scanning device further comprises a camera, the camera is located above a scanning window of the scanning device, and the camera is used for acquiring an image of a commodity; the method further comprises the following steps:
step S21, acquiring the commodity image through the camera;
step S22, acquiring commodity characteristic information according to the commodity image;
and step S23, inputting the commodity characteristic information into the trained machine learning model to obtain a preset duration.
In this embodiment, the scanning device may further include a camera, where the camera is located above the scanning window and is used to obtain the commodity image; the commodity feature information can be obtained from the commodity image in an image recognition mode, namely the commodity type and the commodity shape of each commodity, the commodity volume, the barcode position, the relative positions of the barcode and other commodities, the distance between the two commodities and other information can be recognized from the commodity image, the commodity feature information of the commodity is input to the trained machine learning model, the output preset duration is obtained, the accuracy of the obtained preset duration is further improved, and the user experience is improved.
It should be understood that, although the steps in the flowchart of fig. 2 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 a portion of the steps in fig. 2 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 alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, a continuous code scanning apparatus is provided, which employs a scanning device including a timer and a decoder, and includes: a request receiving module 301, a first light source starting module 302, a timer starting module 303, a second light source starting module 304, a converting module 305, a decoding module 306 and a sending module 307, wherein:
a request receiving module 301, configured to receive a continuous code scanning request;
a first light source starting module 302, configured to control a light source to start and emit a light signal;
a timer starting module 303, configured to control the light source to turn off and start the timer when receiving the first optical signal reflected by the first commodity barcode;
the second light source starting module 304 is configured to control the light source to start and emit a light signal after a preset duration of the timer;
the conversion module 305 is configured to receive a second optical signal reflected by a second commodity barcode, and convert the first optical signal and the second optical signal into a first electrical signal and a second electrical signal through an analog-to-digital conversion module;
the decoding module 306 is configured to distribute the first electrical signal and the second electrical signal to corresponding decoders to obtain decoded data;
a sending module 307, configured to send the decoded data to the computer system.
Preferably, the scanning device further comprises a memory for storing the decoded data.
Preferably, the apparatus further comprises:
and the setting information module is used for acquiring the setting information aiming at the preset duration of the timer.
For the specific definition of the continuous code scanning device, reference may be made to the above definition of the continuous code scanning method, which is not described herein again. The modules in the continuous code scanning device can be wholly or partially realized by software, hardware and a combination 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.
The continuous code scanning device provided by the above can be used for executing the continuous code scanning method provided by any of the above embodiments, and has corresponding functions and beneficial effects.
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:
receiving a continuous code scanning request;
controlling the light source to start and send out a light signal;
when a first optical signal reflected by the first commodity bar code is received, controlling the light source to be turned off and starting a timer;
after the preset time length of the timer, controlling the light source to start and sending out a light signal;
receiving a second optical signal reflected by a second commodity bar code, and converting the first optical signal and the second optical signal into a first electric signal and a second electric signal through an analog-to-digital conversion module;
distributing the first electric signal and the second electric signal to corresponding decoders to obtain decoded data;
and sending the decoded data to a computer system.
In one embodiment, the scanning device further comprises a memory for storing the decoded data.
In one embodiment, the computer program when executed by the processor further performs the steps of: and acquiring the setting information aiming at the preset duration of the timer.
In one embodiment, the scanning device further comprises a machine learning chip, wherein a machine learning model is preset in the machine learning chip; the computer program when executed by the processor further realizes the steps of:
acquiring preset commodity characteristic information and corresponding preset time;
inputting the commodity characteristic information and preset duration into the machine learning model to obtain a trained machine learning model;
in one embodiment, the scanning device further comprises a camera, the camera is located above a scanning window of the scanning device, and the camera is used for acquiring an image of a commodity; the computer program when executed by the processor further realizes the steps of:
acquiring the commodity image through the camera;
acquiring commodity characteristic information according to the commodity image;
and inputting the commodity characteristic information into the trained machine learning model to obtain preset duration.
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 present embodiments are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the present embodiments. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present embodiments have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the present embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed descriptions of the continuous code scanning method, the continuous code scanning device, the scanning device and the computer readable storage medium provided by the present invention have been provided, and the present application describes the principle and the implementation of the present invention by using specific examples, and the descriptions of the above examples are only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for scanning codes continuously, wherein a scanning device is used, the scanning device comprises a timer and a decoder, and the method comprises:
receiving a continuous code scanning request;
controlling the light source to start and send out a light signal;
when a first optical signal reflected by the first commodity bar code is received, controlling the light source to be turned off and starting a timer;
after the preset time length of the timer, controlling the light source to start and sending out a light signal;
receiving a second optical signal reflected by a second commodity bar code, and converting the first optical signal and the second optical signal into a first electric signal and a second electric signal through an analog-to-digital conversion module;
distributing the first electric signal and the second electric signal to corresponding decoders to obtain decoded data;
and sending the decoded data to a computer system.
2. The method of claim 1, wherein the scanning device further comprises a memory for storing the decoded data.
3. The method of claim 1, further comprising:
and acquiring the setting information aiming at the preset duration of the timer.
4. The method of claim 1, wherein the scanning device further comprises a machine learning chip, and a machine learning model is preset in the machine learning chip; the method further comprises the following steps:
acquiring preset commodity characteristic information and corresponding preset time;
and inputting the commodity characteristic information and preset duration into the machine learning model to obtain the trained machine learning model.
5. The method of claim 1, wherein the scanning device further comprises a camera positioned above a scanning window of the scanning device, the camera being configured to acquire an image of the item; the method further comprises the following steps:
acquiring the commodity image through the camera;
acquiring commodity characteristic information according to the commodity image;
and inputting the commodity characteristic information into the trained machine learning model to obtain preset duration.
6. A continuous code scanning apparatus, wherein a scanning device is used, the scanning device includes a timer and a decoder, and the method includes:
the request receiving module is used for receiving the continuous code scanning request;
the first light source starting module is used for controlling the starting of the light source and sending out a light signal;
the timer starting module is used for controlling the light source to be closed and starting the timer when receiving the first optical signal reflected by the first commodity bar code;
the second light source starting module is used for controlling the light source to start and sending out a light signal after the preset duration of the timer;
the conversion module is used for receiving a second optical signal reflected by a second commodity bar code and converting the first optical signal and the second optical signal into a first electric signal and a second electric signal through the analog-to-digital conversion module;
the decoding module is used for distributing the first electric signal and the second electric signal to corresponding decoders to obtain decoded data;
and the sending module is used for sending the decoded data to the computer system.
7. The apparatus of claim 6, wherein the scanning device further comprises a memory for storing the decoded data.
8. The apparatus of claim 6, further comprising:
and the setting information module is used for acquiring the setting information aiming at the preset duration of the timer.
9. The scanning equipment is characterized by comprising a camera, a scanning window, a light source, a timer, a scanning receiver, an analog-to-digital converter, a decoder, a data transmission interface, a memory and a processor;
the scanning window is positioned at the front end of the scanning device; the camera is positioned above the scanning window; the light source is connected with the timer and the scanning and receiving device; the scanning and receiving module is connected with the analog-to-digital conversion module; the decoder is connected with the analog-to-digital converter decoder and the data transmission interface;
the scanning and receiving device is used for forming a scanning line from the optical signal emitted by the light source and receiving the reflected optical signal; the analog-to-digital converter is used for converting optical signals into electric signals; the decoder is used for decoding the electric signal to obtain decoded data; the data transmission interface is used for transmitting the decoded data to a computer system.
The memory stores a computer program, wherein the processor implements the steps of the continuous code scanning method according to any one of claims 1 to 5 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 continuous code scanning method according to any one of claims 1 to 5.
CN201910632520.7A 2019-07-13 2019-07-13 Continuous code scanning method and device, scanning equipment and storage medium Pending CN112183147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910632520.7A CN112183147A (en) 2019-07-13 2019-07-13 Continuous code scanning method and device, scanning equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910632520.7A CN112183147A (en) 2019-07-13 2019-07-13 Continuous code scanning method and device, scanning equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112183147A true CN112183147A (en) 2021-01-05

Family

ID=73919822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910632520.7A Pending CN112183147A (en) 2019-07-13 2019-07-13 Continuous code scanning method and device, scanning equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112183147A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6389988A (en) * 1986-10-03 1988-04-20 Tokyo Electric Co Ltd Bar code reader
CN1073280A (en) * 1991-12-14 1993-06-16 欧林巴斯光学工业股份有限公司 The starter gear of scanner
US5756984A (en) * 1995-10-31 1998-05-26 Kabushiki Kaisha Tec Handy scanner
CN101425123A (en) * 2007-10-30 2009-05-06 阿丹电子企业股份有限公司 Method and device for starting bar code reading system
CN104281829A (en) * 2013-07-12 2015-01-14 鸿富锦精密工业(深圳)有限公司 Bar code scanning device and scanning method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6389988A (en) * 1986-10-03 1988-04-20 Tokyo Electric Co Ltd Bar code reader
CN1073280A (en) * 1991-12-14 1993-06-16 欧林巴斯光学工业股份有限公司 The starter gear of scanner
US5756984A (en) * 1995-10-31 1998-05-26 Kabushiki Kaisha Tec Handy scanner
CN101425123A (en) * 2007-10-30 2009-05-06 阿丹电子企业股份有限公司 Method and device for starting bar code reading system
CN104281829A (en) * 2013-07-12 2015-01-14 鸿富锦精密工业(深圳)有限公司 Bar code scanning device and scanning method

Similar Documents

Publication Publication Date Title
US11386788B2 (en) Method and apparatus for controlling interaction between vehicle and vehicle-mounted device
US20110218870A1 (en) Communication method for a roaming point-of-sale system
US10093333B2 (en) Shopping cart with RFID and biometric components and associated systems and methods
CN111413884A (en) Control method and control device for household electrical appliance and computer storage medium
USRE47608E1 (en) Predictive triggering in an electronic device
CN112183147A (en) Continuous code scanning method and device, scanning equipment and storage medium
CN110570855A (en) system, method and device for controlling intelligent household equipment through conversation mechanism
US20120168508A1 (en) Indicia reading terminal having configurable operating characteristics
CN111081005B (en) Directional remote control method, device, equipment and storage medium
US20160125815A1 (en) System and method for controlling display brightness
CN110111785B (en) Communication interaction method, device, equipment and computer readable storage medium
KR102225049B1 (en) System for controlling reading by automatic conversion of operating mode with energy saving type
CN205486148U (en) Two scanning function's scanning rifle
US20090084849A1 (en) Method and apparatus for reading indicia
CN108446922B (en) Product information pushing method and device, computer equipment and storage medium
CN111291066A (en) Intelligent stapler and time data processing method
CN112949332B (en) Sighting device auxiliary reading method and system of bar code reading equipment
CN112213964A (en) Control system and method based on intelligent sound box
CN115361465B (en) Intelligent remote controller system based on raspberry group and WeChat applet
US10579844B2 (en) Systems and methods for data transfer in distributed environments
WO2017161806A1 (en) Terminal and scanning method thereof
US20050126189A1 (en) System for identifying transported goods
CN116052667B (en) Control method and device of intelligent switch and intelligent switch
JP5720809B2 (en) Terminal device and program
CN114242049A (en) Voice control method, server, washing machine and 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