CN111045529B - Data input method, system and related equipment - Google Patents

Data input method, system and related equipment Download PDF

Info

Publication number
CN111045529B
CN111045529B CN201911284158.5A CN201911284158A CN111045529B CN 111045529 B CN111045529 B CN 111045529B CN 201911284158 A CN201911284158 A CN 201911284158A CN 111045529 B CN111045529 B CN 111045529B
Authority
CN
China
Prior art keywords
input
entity
time interval
characters
threshold value
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
CN201911284158.5A
Other languages
Chinese (zh)
Other versions
CN111045529A (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.)
Golden Butterfly Intelligence Technology Shenzhen Co ltd
Original Assignee
Golden Butterfly Intelligence Technology Shenzhen 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 Golden Butterfly Intelligence Technology Shenzhen Co ltd filed Critical Golden Butterfly Intelligence Technology Shenzhen Co ltd
Priority to CN201911284158.5A priority Critical patent/CN111045529B/en
Publication of CN111045529A publication Critical patent/CN111045529A/en
Application granted granted Critical
Publication of CN111045529B publication Critical patent/CN111045529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a data input method, a data input system and related equipment, which are used for improving the accuracy of data input. The method of the embodiment of the invention comprises the following steps: when an input event is monitored, acquiring a key code corresponding to the input event; converting the key codes into corresponding entity characters, and judging whether the time interval of converting the two key codes into the entity characters exceeds a first threshold value, wherein the first threshold value is a keyboard input limit time interval; if the time interval between the two key codes converted into the entity characters does not exceed the first threshold value, the entity characters are sequentially overlapped to an input value set; and after receiving the confirmation instruction, transmitting the entity characters in the input value set to a preset service system, and clearing the entity characters in the input value set.

Description

Data input method, system and related equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data input method, system, and related devices.
Background
With the popularization of the application of the identification code and the code scanner, the data input and acquisition speed of the computer is greatly improved.
In the existing scheme, when the code scanner continuously scans the identification codes to continuously input data, the existing input system cannot distinguish characters recognized by the continuous code scanning, so that the characters corresponding to a plurality of identification codes are spliced together, the characters corresponding to a single identification code cannot be recognized, the accuracy of data input is reduced, the spliced characters are required to be manually deleted, and time and labor are wasted.
Disclosure of Invention
The embodiment of the invention provides a data input method, a data input system and related equipment, which are used for improving the accuracy of data input.
A first aspect of an embodiment of the present invention provides a data input method, which may include:
when an input event is monitored, acquiring a key code corresponding to the input event;
converting the key codes into corresponding entity characters, and judging whether the time interval of converting the two key codes into the entity characters exceeds a first threshold value, wherein the first threshold value is a keyboard input limit time interval;
and if the time interval between the two key codes converted into the entity characters does not exceed the first threshold value, sequentially overlapping the entity characters to an input value set until a confirmation instruction is received, transmitting the entity characters in the input value set to a preset service system, and clearing the entity characters in the input value set.
Optionally, as a possible implementation manner, the data input system provided in the embodiment of the present invention may further include:
and if the time interval for converting the two key codes into the entity characters exceeds the first threshold, transmitting the entity characters obtained by current conversion to a preset service system.
Optionally, as a possible implementation manner, when the data input method provided in the embodiment of the present invention is applied to a web page, the input event is a keydown event.
Optionally, as a possible implementation manner, the data input method provided in the embodiment of the present invention may further include:
if the time interval between the two key codes converted into the entity characters does not exceed the first threshold value, judging that the input event is code scanning input;
and if the time interval for converting the two key codes into the entity characters exceeds the first threshold value, judging that the input event is keyboard input.
A second aspect of an embodiment of the present invention provides a data input system, which may include:
the acquisition module acquires a key code corresponding to an input event when the input event is monitored;
the judging module is used for converting the key codes into corresponding entity characters and judging whether the time interval for converting the two key codes into the entity characters exceeds a first threshold value or not, wherein the first threshold value is a keyboard input limit time interval;
and the superposition module is used for sequentially superposing the entity characters to an input value set if the time interval for converting the two key codes into the entity characters does not exceed the first threshold value, transmitting the entity characters in the input value set to a preset service system after receiving a confirmation instruction, and clearing the entity characters in the input value set.
Optionally, as a possible implementation manner, the data input system provided in the embodiment of the present invention may further include:
and the forwarding module is used for transmitting the entity character obtained by current conversion to a preset service system if the time interval for converting the two key codes into the entity character exceeds the first threshold value.
Optionally, as a possible implementation manner, when the data input system provided in the embodiment of the present invention is applied to a web page, the input event is a keydown event.
Optionally, as a possible implementation manner, the data input system provided in the embodiment of the present invention may further include:
the first judging module judges that the input event is code scanning input if the time interval of converting the two key codes into the entity characters does not exceed the first threshold value;
and the second judging module is used for judging that the input event is keyboard input if the time interval for converting the two key codes into the entity characters exceeds the first threshold value.
A third aspect of the embodiment of the present invention provides a computer apparatus, where the computer apparatus includes a processor, where the processor is configured to implement the steps as in any one of the possible implementations of the first aspect and the first aspect when executing a computer program stored in a memory.
A fourth aspect of the embodiments of the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs steps as in any one of the possible implementations of the first aspect and the first aspect.
From the above technical solutions, the embodiment of the present invention has the following advantages:
in the embodiment of the invention, when an input event is monitored, a key code corresponding to the input event is acquired, the key code is converted into corresponding entity characters, whether the time interval for converting the two key codes into the entity characters exceeds the keyboard input limit time interval is judged in the conversion process, if not, the entity characters obtained through conversion are sequentially overlapped to an input value set until a confirmation instruction is received, all the entity characters in the input value set are transmitted to a preset service system, and all the entity characters in the input value set are emptied. Compared with the prior art, manual focusing is not needed, and user experience is improved. Meanwhile, after one-time input is completed, the input value set is emptied, so that character superposition caused by repeated code scanning is avoided, and the accuracy of data input is improved.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a data input method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an embodiment of a data input method according to the present invention;
FIG. 3 is a schematic diagram of an embodiment of a data input system according to an embodiment of the present invention;
FIG. 4 is a diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a data input method, a data input system and related equipment, which are used for improving the accuracy of data input.
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The terms first, second, third, fourth and the like in the description and in the claims and in the above drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
With the popularization of the application of the identification code and the code scanner, the data input and acquisition speed of the computer is greatly improved. However, the applicant notes that when the existing identification code is applied to web page input, a web page input box needs to be clicked to obtain a focus, and characters corresponding to the previous identification code cannot be deleted when the code is continuously scanned, so that the characters corresponding to a plurality of identification codes are spliced together, the characters corresponding to a single identification code cannot be identified, and the accuracy of data input is low.
For ease of understanding, a specific flow in the embodiment of the present invention is described below, referring to fig. 1, and an embodiment of a data input method in the embodiment of the present invention may include:
101. when an input event is monitored, acquiring a key code corresponding to the input event;
in the existing scheme, after the input box is clicked manually to obtain the focus, the computer system is triggered to process the input event so as to obtain the data input from the outside.
In order to realize automation of input and improve user experience, in the embodiment of the invention, the input event to be identified can be preset, whether the input event exists or not is monitored in real time, and clicking operation of a user is not needed. When an input event is monitored, a key code corresponding to the input event is acquired (the key code is a code corresponding to a keyboard key in a programming concept). Illustratively, when applied to web pages, the input event is a keydown event (programming concept, a keyboard key press event, one key code for each key).
102. Converting the key codes into corresponding entity characters, and judging whether the time interval between converting the two key codes into the entity characters exceeds a first threshold value;
in practical use, external data input is commonly performed in two forms, one is manual keyboard input and the other is scan identification code input of a code scanner. The applicant has noted that for the manner of manual keyboard input, since the speed of manual keys and single input have only one character limitation, the manual keyboard input may have an input limit time interval, for example 33 ms, and the specific input limit time interval is related to the physical performance of the hardware device and the proficiency of the operator, which is not limited herein. However, for the mode of scanning identification code input by the code scanner, as a plurality of characters can be input by scanning the code once, the processing program can acquire a plurality of characters once, thus greatly improving the input efficiency, and the corresponding input limit time interval is far smaller than the input limit time interval of the manual keyboard. In view of this, by setting a timer, it is determined whether the time interval between two key codes converted into physical characters exceeds a first threshold, and if the time interval between two key codes converted into physical characters does not exceed the first threshold, it is determined that the input event is a scan code input; if the time interval between the two key codes converted into the entity characters exceeds a first threshold value, the input event is judged to be keyboard input.
It can be understood that the scan code input in the embodiment of the present invention may be an identification code that can be identified by scanning a bar code, a two-dimensional code, etc., and the specific type of the identification code is not limited.
103. If the time interval between the two key codes converted into the entity characters does not exceed the first threshold value, the entity characters are sequentially overlapped to the input value set, after the confirmation instruction is received, the entity characters in the input value set are transmitted to a preset service system, and the entity characters in the input value set are emptied.
When the input event is code scanning input, the data input system can acquire a plurality of key codes corresponding to the input event at one time, and a plurality of entity characters obtained through conversion need to be spliced. Therefore, if the time interval between the two key codes converted into the entity characters does not exceed the first threshold value, the entity characters obtained by converting the two key codes are sequentially overlapped to the input value set, the time interval between the next key code and the current key code is continuously judged, and if the time interval between the next key code and the last key code does not exceed the first threshold value, the entity characters obtained by converting the next key code are sequentially overlapped to the input value set. It should be noted that the physical characters corresponding to the same key code cannot be repeatedly superimposed. The existing code scanner automatically sends a confirmation instruction (for example, an Enter key code) to the data input system before the next code scanning after the code scanning is completed, and after receiving the confirmation instruction, all entity characters in the input value set are transmitted to a preset service system, and the entity characters can be actively sent to the preset service system or stored in a preset cache to wait for the service system to extract, and the method is not limited in the specific point. Meanwhile, in order to avoid that characters corresponding to two code scanning inputs cannot be identified due to splicing, the data input system in the embodiment of the invention needs to empty the input value set after transmitting all entity characters in the input value set corresponding to the last code scanning event to a preset service system, so that the next entity characters are overlapped.
In the embodiment of the invention, when an input event is monitored, a key code corresponding to the input event is acquired, the key code is converted into corresponding entity characters, whether the time interval for converting the two key codes into the entity characters exceeds the keyboard input limit time interval is judged in the conversion process, if not, the entity characters obtained through conversion are sequentially overlapped to an input value set until a confirmation instruction is received, all the entity characters in the input value set are transmitted to a preset service system, and all the entity characters in the input value set are emptied. Compared with the prior art, manual focusing is not needed, and user experience is improved. Meanwhile, after one-time input is completed, the input value set is emptied, so that character superposition caused by repeated code scanning is avoided, and the accuracy of data input is improved.
On the basis of the embodiment shown in fig. 1, the embodiment of the invention can be further compatible with keyboard input logic. Optionally, as a possible implementation manner, in the embodiment of the present invention, if a time interval between conversion of two key codes into an entity character exceeds a first threshold, the entity character obtained by current conversion is transmitted to a preset service system. When the time interval between the two key codes converted into the entity characters exceeds a first threshold, namely, the current character is recognized as keyboard input, the data input system can directly forward the corresponding character, namely, the entity character obtained by current conversion is transmitted to a preset service system. It can be understood that when both code scanning input and keyboard input exist, the converted entity characters can be respectively transmitted to the same service system or different service systems. Illustratively, in a cashier scenario, receipt of a scanned barcode is sent to an item identification system (first service system), and a cashier enters an amount item using a keypad and sends to a given price system (second service system).
For easy understanding, the data input method in the embodiment of the present invention will be described below with reference to fig. 2, and may specifically include the following steps:
1) Monitoring a keydown event on a web page, and acquiring a key code contained in an event object after monitoring; if the code is input by the code scanner, the code scanner converts the bar code picture into numbers, then the numbers are sent to the computer system one by one, and an Enter key code is sent after the numbers are sent.
2) Converting a key code into an entity character, recording the entity character into a value (an input value set used for splicing the code scanning input character once), splicing the entity character backwards if the value is not empty, ending the code scanning until the received key is Enter, and emptying the value after acquiring a complete bar code value;
3) In the process 2, a timer is set, if the time interval of two character conversion does not reach 33 milliseconds (the limit interval of a manual key) and a new character is received, the last timer is destroyed, and the timer is reset. After the time interval reaches a 33 millisecond threshold, directly forwarding the time interval to a preset service system;
4) Each time a barcode is scanned, a keydown event is triggered and the process 2, 3 will be repeated.
In the embodiment, manual focusing is not needed, the code scanning for multiple times can not overlap values, and the code scanner input and the keyboard input are supported to be distinguished, so that the service scene is expanded.
An embodiment of the present invention further provides a data input system, referring to fig. 3, which may include:
the acquisition module 301 acquires a key code corresponding to an input event when the input event is monitored;
the judging module 302 converts the key codes into corresponding entity characters, and judges whether the time interval of converting the two key codes into the entity characters exceeds a first threshold value, wherein the first threshold value is a keyboard input limit time interval;
and the superposition module 303 is configured to, if the time interval between the two key codes converted into the entity characters does not exceed the first threshold, sequentially superimpose the entity characters onto the input value set, and after receiving the confirmation instruction, transmit the entity characters in the input value set to a preset service system, and empty the entity characters in the input value set.
Optionally, as a possible implementation manner, the data input system provided in the embodiment of the present invention may further include:
and the forwarding module 304 is configured to transmit the entity character obtained by current conversion to a preset service system if the time interval between two key codes converted into the entity character exceeds a first threshold.
Optionally, as a possible implementation manner, when the data input system provided in the embodiment of the present invention is applied to a web page, the input event is a keydown event.
Optionally, as a possible implementation manner, the data input system provided in the embodiment of the present invention may further include:
the first determining module 305 determines that the input event is a scan code input if the time interval between the two key codes converted to the physical characters does not exceed the first threshold;
the second determining module 306 determines that the input event is keyboard input if the time interval between the two key codes converted to the physical characters exceeds the first threshold.
In the embodiment of the invention, when an input event is monitored, a key code corresponding to the input event is acquired, the key code is converted into corresponding entity characters, whether the time interval for converting the two key codes into the entity characters exceeds the keyboard input limit time interval is judged in the conversion process, if not, the entity characters obtained through conversion are sequentially overlapped to an input value set until a confirmation instruction is received, all the entity characters in the input value set are transmitted to a preset service system, and all the entity characters in the input value set are emptied. Compared with the prior art, manual focusing is not needed, and user experience is improved. Meanwhile, after one-time input is completed, the input value set is emptied, so that character superposition caused by repeated code scanning is avoided, and the accuracy of data input is improved.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The data input system in the embodiment of the present invention is described above from the point of view of the modularized functional entity, and the computer device in the embodiment of the present invention is described below from the point of view of hardware processing:
the computer device 1 may include a memory 11, a processor 12 and a bus 13. The steps in the above-described data input method embodiment shown in fig. 1, for example, steps 101 to 103 shown in fig. 1, are implemented when the processor 11 executes a computer program. In the alternative, the processor may implement the functions of the modules or units in the above-described embodiments of the apparatus when executing the computer program.
In some embodiments of the present invention, the processor is specifically configured to implement the following steps:
when an input event is monitored, acquiring a key code corresponding to the input event;
converting the key codes into corresponding entity characters, and judging whether the time interval of converting the two key codes into the entity characters exceeds a first threshold value, wherein the first threshold value is the keyboard input limit time interval;
if the time interval between the two key codes converted into the entity characters does not exceed the first threshold value, the entity characters are sequentially overlapped to the input value set, after the confirmation instruction is received, the entity characters in the input value set are transmitted to a preset service system, and the entity characters in the input value set are emptied.
In the alternative, as a possible implementation, the processor may be further configured to implement the following steps:
if the time interval between the two key codes converted into the entity characters exceeds a first threshold value, the entity characters obtained by current conversion are transmitted to a preset service system.
In the alternative, as a possible implementation, the processor may be further configured to implement the following steps:
if the time interval between the two key codes converted into the entity characters does not exceed a first threshold value, judging that the input event is code scanning input;
if the time interval between the two key codes converted into the entity characters exceeds a first threshold value, the input event is judged to be keyboard input.
The memory 11 includes at least one type of readable storage medium including flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the computer device 1, such as a hard disk of the computer device 1. The memory 11 may also be an external storage device of the computer apparatus 1 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the computer apparatus 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the computer apparatus 1. The memory 11 may be used not only for storing application software installed in the computer apparatus 1 and various types of data, for example, codes of the computer program 01, but also for temporarily storing data that has been output or is to be output.
The processor 12 may in some embodiments be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chip for executing program code or processing data stored in the memory 11, e.g. executing a computer program 01 or the like.
The bus 13 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
Further, the computer apparatus may also comprise a network interface 14, the network interface 14 optionally may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the computer apparatus 1 and other electronic devices.
Optionally, the computer device 1 may further comprise a user interface, which may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the computer device 1 and for displaying a visual user interface.
Fig. 4 shows only a computer device 1 with components 11-14 and a computer program 01, it being understood by a person skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the computer device 1, and may comprise fewer or more components than shown, or may combine certain components, or a different arrangement of components.
The present invention also provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, can implement the steps of:
when an input event is monitored, acquiring a key code corresponding to the input event;
converting the key codes into corresponding entity characters, and judging whether the time interval of converting the two key codes into the entity characters exceeds a first threshold value, wherein the first threshold value is the keyboard input limit time interval;
if the time interval between the two key codes converted into the entity characters does not exceed the first threshold value, sequentially superposing the entity characters to an input value set;
and after receiving the confirmation instruction, transmitting the entity characters in the input value set to a preset service system, and clearing the entity characters in the input value set.
In the alternative, as a possible implementation, the processor may be further configured to implement the following steps:
if the time interval between the two key codes converted into the entity characters exceeds a first threshold value, the entity characters obtained by current conversion are transmitted to a preset service system.
In the alternative, as a possible implementation, the processor may be further configured to implement the following steps:
if the time interval between the two key codes converted into the entity characters does not exceed a first threshold value, judging that the input event is code scanning input;
if the time interval between the two key codes converted into the entity characters exceeds a first threshold value, the input event is judged to be keyboard input.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A data input method, comprising:
when an input event is monitored, acquiring a key code corresponding to the input event;
converting the key codes into corresponding entity characters, and judging whether the time interval of converting the two key codes into the entity characters exceeds a first threshold value, wherein the first threshold value is a keyboard input limit time interval;
if the time interval between the two key codes converted into the entity characters does not exceed the first threshold value, determining that the input event is code scanning input, and sequentially overlapping the entity characters to an input value set;
and after receiving the confirmation instruction, transmitting the entity characters in the input value set to a preset service system, and clearing the entity characters in the input value set.
2. The method as recited in claim 1, further comprising:
and if the time interval for converting the two key codes into the entity characters exceeds the first threshold, transmitting the entity characters obtained by current conversion to a preset service system.
3. A method according to claim 1 or 2, wherein the input event is a keydown event when applied to a web page.
4. A method according to claim 3, further comprising:
and if the time interval for converting the two key codes into the entity characters exceeds the first threshold value, judging that the input event is keyboard input.
5. A data input system, comprising:
the acquisition module acquires a key code corresponding to an input event when the input event is monitored;
the judging module is used for converting the key codes into corresponding entity characters and judging whether the time interval for converting the two key codes into the entity characters exceeds a first threshold value or not, wherein the first threshold value is a keyboard input limit time interval;
the first judging module judges that the input event is code scanning input if the time interval of converting the two key codes into the entity characters does not exceed the first threshold value;
and the superposition module is used for sequentially superposing the entity characters to an input value set until a confirmation instruction is received, transmitting the entity characters in the input value set to a preset service system and clearing the entity characters in the input value set if the time interval for converting the two key codes into the entity characters does not exceed the first threshold value.
6. The system of claim 5, further comprising:
and the forwarding module is used for transmitting the entity character obtained by current conversion to a preset service system if the time interval for converting the two key codes into the entity character exceeds the first threshold value.
7. The system according to claim 5 or 6, wherein the input event is a keydown event when applied to a web page.
8. The system of claim 7, further comprising:
and the second judging module is used for judging that the input event is keyboard input if the time interval for converting the two key codes into the entity characters exceeds the first threshold value.
9. A computer device comprising a processor for implementing the steps of the method according to any one of claims 1 to 4 when executing a computer program stored in a memory.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 4.
CN201911284158.5A 2019-12-13 2019-12-13 Data input method, system and related equipment Active CN111045529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911284158.5A CN111045529B (en) 2019-12-13 2019-12-13 Data input method, system and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911284158.5A CN111045529B (en) 2019-12-13 2019-12-13 Data input method, system and related equipment

Publications (2)

Publication Number Publication Date
CN111045529A CN111045529A (en) 2020-04-21
CN111045529B true CN111045529B (en) 2024-01-26

Family

ID=70236252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911284158.5A Active CN111045529B (en) 2019-12-13 2019-12-13 Data input method, system and related equipment

Country Status (1)

Country Link
CN (1) CN111045529B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111626073A (en) * 2020-05-29 2020-09-04 浙江百世技术有限公司 Optimization method for code scanning gun identification
CN112184211B (en) * 2020-09-17 2022-11-11 山东亚华电子股份有限公司 Method and device for settling payment and receipt

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034407A (en) * 2007-03-30 2007-09-12 传神联合(北京)信息技术有限公司 Quick input method based on scene lexicon in process of translation
CN101382844A (en) * 2008-10-24 2009-03-11 上海埃帕信息科技有限公司 Method for inputting spacing participle
CN103176731A (en) * 2011-12-26 2013-06-26 联想(北京)有限公司 Method and device for determining ending of handwriting input
CN109725815A (en) * 2019-01-09 2019-05-07 北京数衍科技有限公司 The differentiating method of scanner and keyboard data input

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034407A (en) * 2007-03-30 2007-09-12 传神联合(北京)信息技术有限公司 Quick input method based on scene lexicon in process of translation
CN101382844A (en) * 2008-10-24 2009-03-11 上海埃帕信息科技有限公司 Method for inputting spacing participle
CN103176731A (en) * 2011-12-26 2013-06-26 联想(北京)有限公司 Method and device for determining ending of handwriting input
CN109725815A (en) * 2019-01-09 2019-05-07 北京数衍科技有限公司 The differentiating method of scanner and keyboard data input

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁童.Windows手写输入程序的设计.中国优秀硕士学位论文全文数据库信息科技辑.2014,(第04期),第I138-225页. *

Also Published As

Publication number Publication date
CN111045529A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN105740746B (en) Visual feedback for code readers
CN106413124B (en) Equipment binding method and device
CN111045529B (en) Data input method, system and related equipment
JP2012238981A (en) Image processing system, image processing server and image formation device
JP2003233788A (en) Graphic code system
CN105242748A (en) Information processing apparatus, information processing system, and information processing method
CN104822007A (en) Data storage system, image processing device, portable terminal, and control method
CN110599156A (en) Money collection method, money collection device, terminal equipment and medium
CN104091256A (en) System and method for information recognition and communication at fixed express delivery pick-up point
EP3428832A1 (en) System and method for augmented reality configuration of indicia readers
CN113128244A (en) Scanning method and device and electronic equipment
US11023944B2 (en) Mobile device for retrieving product information associated with scanned barcode data when the mobile device is connected to a network
US11399104B2 (en) Data transmission apparatus and data transmission method for transmitting document data
CN112417914B (en) Data scanning method and device and electronic equipment
CN109062403B (en) PDA equipment
CN107864467B (en) Information transmission method and device for improving transmission speed between mobile terminal and equipment
JP7247492B2 (en) Information processing device, information processing system, and information processing program
CN105988825A (en) Information obtaining method, terminal and PC
JP4849320B2 (en) Image transmission device, image transmission / reception device, and image transmission / reception system
CN109032688A (en) page jump and control method and device
CN113704652B (en) Data processing method, device, transfer station and data processing system
CN101505312B (en) Method for reading photographic book on demand combining server and mobile device
US20100231729A1 (en) Method of capturing image and accessing captured image via network, computer program of accessing captured image and image capturing apparatus thereof
JP2018136830A (en) Mobile terminal device, program for extracting serial code, and server apparatus
KR101934716B1 (en) Method of providing electronic manual of programmable logic controller

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