CN112417920A - Scan input method, device, equipment and medium based on high-speed scanner - Google Patents

Scan input method, device, equipment and medium based on high-speed scanner Download PDF

Info

Publication number
CN112417920A
CN112417920A CN202011450591.4A CN202011450591A CN112417920A CN 112417920 A CN112417920 A CN 112417920A CN 202011450591 A CN202011450591 A CN 202011450591A CN 112417920 A CN112417920 A CN 112417920A
Authority
CN
China
Prior art keywords
image data
bar code
speed
content information
target image
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
CN202011450591.4A
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 CN202011450591.4A priority Critical patent/CN112417920A/en
Publication of CN112417920A publication Critical patent/CN112417920A/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
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

The embodiment of the invention discloses a scan input method, a device, equipment and a medium based on a high-speed scanner, relating to the technical field of high-speed scanners, wherein the scan input method based on the high-speed scanner comprises the following steps: acquiring bar code image data shot by a high-speed shooting instrument; performing image processing according to the bar code image data to obtain target image data; decoding the target image data to obtain bar code content information; and converting the bar code content information into analog keyboard input information, and inputting the analog keyboard input information to the designated position where the cursor is located. The embodiment of the invention solves the problem of low input efficiency caused by the need of manually copying and pasting the identification content of the high-speed shooting instrument software in the prior art.

Description

Scan input method, device, equipment and medium based on high-speed scanner
Technical Field
The embodiment of the invention relates to the technical field of high-speed cameras, in particular to a scanning input method, a scanning input device, scanning input equipment and a scanning input medium based on the high-speed cameras.
Background
With the rapid development of science and technology, the portable high-speed photographing instrument is more and more popular, and brings great convenience to life, work and study of people.
In the actual processing, a high-speed scanner can be used for shooting the barcode image, and the barcode in the barcode image can be read through corresponding high-speed scanner software, so that the read content is stored in a file as the file output by the high-speed scanner. Specifically, most high-speed camera software can read the bar code at present, so as to output the read bar code content to a file for saving, for example, directly writing the bar code content to a text (Txt) file, a document (Word) file or an electronic form (Excel) file for saving. If the bar code contents need to be input into the text box where the mouse cursor is located, the file output by the high-speed shooting instrument needs to be searched and opened, the bar code contents are copied manually, and the copied bar code contents are pasted to the text box. Therefore, the content identified by the existing high-speed shooting instrument software can be directly written into a file, and the content identified by the high-speed shooting instrument software can be input into a text box where a mouse cursor is located only by manually finding and opening the file written by the high-speed shooting instrument software and manually copying and pasting the file.
Disclosure of Invention
In view of this, the present invention provides a scan input method, apparatus, device and medium based on a high-speed scanner, so as to solve the problems of complex operation and low input efficiency caused by the need of manually copying and pasting the identification content of the high-speed scanner software in the prior art.
In a first aspect, an embodiment of the present invention provides a scan input method based on a high-speed scanner, including:
acquiring bar code image data shot by a high-speed shooting instrument;
performing image processing according to the bar code image data to obtain target image data;
decoding the target image data to obtain bar code content information;
and converting the bar code content information into analog keyboard input information, and inputting the analog keyboard input information to the designated position where the cursor is located.
Optionally, the scan input method based on the high-speed scanner further includes: and after the communication connection with the high shooting instrument is established, controlling the high shooting instrument to shoot according to a preset video capture equipment protocol.
Optionally, the performing image processing according to the barcode image data to obtain target image data includes:
performing graying operation based on the bar code image data to obtain grayscale image data;
carrying out noise reduction processing according to the gray-scale image data to obtain noise reduction image data;
and carrying out image binarization processing based on the noise reduction picture data to obtain target image data.
Optionally, the decoding the target image data to obtain barcode content information includes:
calling a decoding library for the target image data;
and decoding according to the bar code rule in the decoding library to obtain the bar code content information corresponding to the target image data.
Optionally, the converting the barcode content information into analog keyboard input information, and inputting the analog keyboard input information to the designated position where the cursor is located includes:
converting the bar code content information into analog keyboard input information;
and calling an input method of an operating system according to the simulated keyboard input information, wherein the input method is used for inputting the bar code content information to a designated position where a cursor is located.
In a second aspect, an embodiment of the present invention further provides a scan input device based on a high-speed scanner, including:
the image acquisition module is used for acquiring bar code image data shot by the high-speed shooting instrument;
the image processing module is used for carrying out image processing according to the bar code image data to obtain target image data;
the image decoding module is used for decoding the target image data to obtain bar code content information;
and the bar code input module is used for converting the bar code content information into analog keyboard input information and inputting the analog keyboard input information to the designated position where the cursor is positioned.
Optionally, the scan input device based on the high-speed scanner further includes: a high shooting instrument control module;
and the high-speed shooting instrument control module is used for controlling the high-speed shooting instrument to shoot according to a preset video capture equipment protocol after establishing communication connection with the high-speed shooting instrument.
Optionally, the image processing module includes:
the graying sub-module is used for carrying out graying operation based on the bar code image data to obtain grayscale image data;
a noise reduction sub-module for performing noise reduction processing according to the gray-scale image data to obtain noise-reduced image data
And the binarization submodule is used for carrying out image binarization processing on the basis of the noise reduction picture data to obtain target image data.
In a third aspect, an embodiment of the present invention further provides a scan input device based on a high-speed scanner, including: a processor and a memory; the memory has stored therein at least one instruction that, when executed by the processor, causes the high-beat meter-based scan-in device to perform the high-beat meter-based scan-in method of the first aspect.
In a fourth aspect, the present invention further provides a computer-readable storage medium, where instructions of the computer-readable storage medium, when executed by a processor of a computer device, enable the computer device to perform the high-imager-based scan-in method according to the first aspect.
According to the embodiment of the invention, the barcode image data shot by the high-speed shooting instrument is obtained, the image processing is carried out according to the barcode data, the decoding is carried out according to the target image data obtained after the image processing, the barcode content information is obtained, and then the barcode content information can be converted into the input information of the simulation keyboard to be input to the designated position of the cursor, so that the trouble that a file output by the high-speed shooting instrument needs to be manually searched and copied and pasted when the content recognized by the high-speed shooting instrument software is input to a text box in the prior art is avoided, namely, the operation of inputting the barcode content to the designated position when the high-speed shooting instrument shoots the barcode is simplified, the problem caused by manually copying and pasting the content recognized by the high-speed shooting instrument software in the prior art is solved, the input efficiency is improved, and the use experience of the high-speed shooting.
Drawings
FIG. 1 is a flowchart illustrating steps of a high-speed scanner-based scan input method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of a high-speed scanner-based scan-in method according to an alternative embodiment of the invention;
fig. 3 is a block diagram of a scan input device based on a high-speed scanner according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Referring to fig. 1, a flowchart illustrating steps of a scan input method based on a high-speed scanner according to an embodiment of the present invention is shown. The scan input method based on the high-speed scanner provided by the embodiment can be applied to the case of performing scan input based on the high-speed scanner, and specifically comprises the following steps:
and step 110, acquiring bar code image data shot by a high-speed shooting instrument.
In the embodiment of the invention, the bar code image data can represent a bar code image, and the bar code image refers to an image containing bar code content.
In the actual processing, an object containing the barcode can be shot by a high-speed shooting instrument, so that an image containing the barcode content is generated, namely barcode image data is generated. Further, the embodiment of the present invention may further include: and controlling the high-speed shooting instrument to shoot the object containing the bar code so as to shoot through the high-speed shooting instrument to generate corresponding bar code image data. For example, after the label mode containing the bar code is placed below the camera shooting flux of the high-speed camera, the high-speed camera can be controlled by software to shoot, so that bar code image data shot by the high-speed camera can be acquired.
And step 120, performing image processing according to the bar code image data to obtain target image data.
Specifically, after the barcode image data is acquired, the embodiment of the present invention may perform optimization processing on the barcode image data to remove noise and interference information in the image, so as to obtain the target image data. The target image data may represent the optimized barcode image. For example, after the barcode image data is acquired, that is, after the barcode image is acquired, binarization and denoising point operations may be performed on the barcode image, and the interference information may be processed to obtain target image data after optimization processing, so as to achieve the purpose of performing optimization processing on the barcode image data.
And step 130, decoding the target image data to obtain bar code content information.
The barcode content information can be used to characterize the barcode content extracted from the target image data. Specifically, after the target image data is obtained, the embodiment of the present invention may perform decoding by using the open source decoding database based on the target image data to obtain the barcode content information corresponding to the target image data. For example, after the high-speed scanner software optimizes the acquired barcode image data, the open source decoding library zxing.
Further, the decoding of the target image data to obtain the barcode content information may specifically include: calling a decoding library for the target image data; and decoding according to the bar code rule in the decoding library to obtain the bar code content information corresponding to the target image data.
Step 140, converting the bar code content information into analog keyboard input information, and inputting the analog keyboard input information to the designated position where the cursor is located.
Specifically, after the barcode content information is acquired, the barcode content information may be converted into the simulated keyboard input information, so as to invoke an input method of the operating system to simulate the keyboard input, and input the barcode content information to the designated position where the cursor is located.
Therefore, after the barcode image data shot by the high shooting instrument is obtained, the barcode content information is obtained by performing image processing according to the barcode data and decoding according to the target image data obtained after the image processing, and then the barcode content information can be converted into the analog keyboard input information to be input to the specified position where the cursor is located, so that the trouble that a file output by the high shooting instrument needs to be manually searched and copied and pasted when the content recognized by the high shooting instrument software is input to a text box in the prior art is avoided, that is, the operation of shooting the barcode content to the specified position based on the high shooting instrument is simplified, the problem caused by manually copying and pasting the content recognized by the high shooting instrument software in the prior art is solved, the input efficiency is improved, and the use experience of the high shooting instrument is improved.
In the actual process, the scan input method based on the high-speed scanner provided by the embodiment of the invention can be applied to equipment connected with the high-speed scanner, for example, can be applied to high-speed scanner software, and the high-speed scanner software can be installed in the equipment connected with the high-speed scanner, so that barcode image data shot by the high-speed scanner can be obtained through communication with the high-speed scanner, barcode content carried in the barcode image data can be input to the position of a cursor according to the obtained barcode image data, the scan input function of the high-speed scanner is realized, and the input efficiency is improved. For example, after obtaining the barcode content information, the high-speed scanner software may invoke an input method SendInput () in the operating system dynamic link library user32.dll to simulate a keyboard to input the barcode content information to a position where a mouse cursor is located, that is, convert the barcode content information into simulated keyboard input information to simulate a Human Interface Device (HID) to input the simulated keyboard input information to a position specified by the cursor.
Further, on the basis of the above embodiment, the converting the barcode content information into the analog keyboard input information and inputting the analog keyboard input information to the designated position where the cursor is located in the embodiment of the present invention may specifically include: converting the bar code content information into analog keyboard input information; and calling an input method of an operating system for the simulated keyboard input information. Therefore, the bar code content information can be input to the designated position of the cursor by the input method, for example, the bar code content information is displayed on the text box of the cursor, the bar code scanning input is completed, and the input efficiency is improved. The input method is used for inputting the bar code content information to the designated position where the cursor is located.
Referring to fig. 2, a flowchart illustrating steps of a high-speed scanner-based scan-in method according to an alternative embodiment of the present invention is shown. The scan input method based on the high-speed scanner in the embodiment of the invention is applicable to the scan input situation based on the high-speed scanner, and specifically comprises the following steps:
and step 210, after the communication connection with the high-speed shooting instrument is established, controlling the high-speed shooting instrument to shoot according to a preset video capture equipment protocol.
The preset Video capture device protocol may refer to a preset Video capture device protocol, such as a USB Video Class (UVC) protocol, which is not limited in this embodiment.
And step 220, acquiring the bar code image data shot by the high-speed shooting instrument.
Specifically, the embodiment of the invention can establish communication connection with the high-speed camera in advance, and can control the high-speed camera to shoot according to a preset video capture device protocol based on the communication connection, so that barcode image data shot by the high-speed camera can be acquired. .
As an example of the present invention, the high-speed scanner hardware may be connected to a computer through a Universal Serial Bus (USB), and a barcode to be photographed may be placed under a camera of the high-speed scanner, for example, a tag containing the barcode may be placed under the camera of the high-speed scanner, so that the high-speed scanner software installed on the computer side may obtain a barcode image photographed by the high-speed scanner device by communicating with the high-speed scanner using a standard UVC protocol, that is, barcode image data. Specifically, after the label containing the barcode is placed under the camera of the high-speed scanner, the high-speed scanner software installed on the computer side communicates with the high-speed scanner using the standard UVC protocol, so that the high-speed scanner can be controlled to shoot, barcode image data generated by shooting by the high-speed scanner can be acquired, that is, a picture containing the barcode is acquired, and then step 230 is executed.
And step 230, performing image processing according to the barcode image data to obtain target image data.
Further, the embodiment of the present invention performs image processing according to the barcode image data to obtain target image data, and specifically includes the following sub-steps:
substep 2301, performing graying operation based on the barcode image data to obtain grayscale image data.
A substep 2302 of performing noise reduction processing according to the gray-scale image data to obtain noise-reduced picture data;
and a substep 2303 of performing image binarization processing based on the noise reduction picture data to obtain target image data.
Specifically, in the embodiment of the present invention, after the high-speed camera acquires the barcode image data, the acquired barcode image may be grayed based on the barcode image data to obtain grayscale image data. For example, the brightness of three color components, Red (R), Green (G), and Blue (B), in the acquired color image containing the barcode may be simply averaged, and the obtained value may be output as a gray scale value to obtain a gray scale image, i.e., gray scale image data.
The image may then be denoised based on the grayscale map data, such as by using a median filtering algorithm to denoise the image based on the grayscale map data to eliminate noise in the image, resulting in denoised picture data. The noise-reduced picture data may represent noise reduction after noise reduction, i.e. represent a picture after image noise points are eliminated. Of course, in the embodiment of the present invention, noise reduction may be performed by using other noise reduction methods besides using a median filtering algorithm, and the implementation of the present invention is not particularly limited thereto.
Further, after the noise reduction image data is obtained, a binarization threshold value may be obtained by using a maximum inter-class difference method (Ostu) for the image based on the noise reduction image data, and the image is binarized by using the threshold value, for example, the gray value of a point on the image is set to 0 or 255, that is, the whole image exhibits an obvious black-and-white effect, wherein the condition for changing the gray value is that the gray value of a pixel of which the gray value is greater than or equal to the threshold value is set to 255, otherwise, the gray value of the pixel is 0, so as to achieve the purpose of optimizing the image, and obtain the target image data after the image is optimized.
Step 240, a decoding library is called for the target image data.
And step 250, decoding according to the bar code rule in the decoding library to obtain the bar code content information corresponding to the target image data.
Specifically, after the target image data is obtained, the embodiment of the present invention may invoke a decoding library to decode the target image data according to a barcode rule in the decoding library, so as to obtain barcode content information in the target image data. For example, after the image is optimized, the high-speed scanner software may call an open source decoding library zxing.net for the target image data after the optimization, decode the target image data according to a barcode rule by using the open source decoding library zxing.net, obtain the content in the barcode, that is, obtain the barcode content information, and then execute step 260.
Step 260, converting the bar code content information into analog keyboard input information.
Step 270, invoking an input method of an operating system for the input information of the simulated keyboard, so as to input the bar code content information to the designated position where the cursor is located through the input method.
Specifically, after the barcode content information is acquired, the acquired barcode content information can be converted into the input information of the simulated keyboard, so that the input method of the operating system is called to simulate the keyboard to be input to the position where the cursor is located, and the purpose of inputting the barcode content information to the specified position is achieved. The input method of the operating system is used for inputting the bar code content information to the designated position where the cursor is located.
As an example of the present invention, the obtained barcode content may be used to call a SendInput method of the Windows system user32.dll function library to simulate a keyboard input to a position where a mouse cursor is located. Specifically, after the acquired bar code content information is converted into the input information of the simulation keyboard, a SendInput method of a Windows system user32.dll function library is called based on the input information of the simulation keyboard, so that the bar code content is input into a text box where a mouse cursor is located through the SendInput method, the purpose of inputting the bar code content scanned and shot by a high-speed scanner into the text box is achieved, the trouble of searching for a high-speed scanner output file and copying and pasting by a user is avoided, the operation of the user is simplified, and the input efficiency is improved.
To sum up, after establishing communication connection with the high-speed shooting instrument, the embodiment of the invention controls the high-speed shooting instrument to shoot according to the protocol of the video capture device, obtains the bar code image data shot by the high-speed shooting instrument, can process the image according to the bar code data to obtain the target image data, then decodes according to the target image data, converts the decoded bar code content information into the analog keyboard input information, and inputs the analog keyboard input information to the designated position where the cursor is positioned by calling the input method of the operating system, thereby solving the problem caused by the fact that the high-speed shooting instrument software directly writes the identified content into the file output by the high-speed shooting instrument in the prior art, avoiding the trouble that the file output by the high-speed shooting instrument needs to be manually searched and manually copied and pasted in the prior art, namely simplifying the complex operation that the traditional high-speed shooting instrument software needs to manually open the file and manually copy and paste, the software use experience is improved, and the scanning input efficiency based on the height instrument is improved.
Referring to fig. 3, a block diagram of a structure of a scan input device based on a high-speed scanner according to an embodiment of the present invention is shown, where the scan input device based on a high-speed scanner specifically includes the following modules:
the image acquisition module 310 is used for acquiring barcode image data shot by a high-speed shooting instrument;
the image processing module 320 is configured to perform image processing according to the barcode image data to obtain target image data;
the image decoding module 330 is configured to decode the target image data to obtain barcode content information;
the barcode input module 340 is configured to convert the barcode content information into analog keyboard input information, and input the analog keyboard input information to a specified position where a cursor is located.
On the basis of the above embodiment, optionally, the scan input device provided in the embodiment of the present invention may be applied to a high-speed scanner, and may further include: high appearance control module that claps. And the high-speed shooting instrument control module is used for controlling the high-speed shooting instrument to shoot according to a preset video capture equipment protocol after establishing communication connection with the high-speed shooting instrument.
Optionally, the image processing module 320 may include the following sub-modules:
the graying sub-module is used for carrying out graying operation based on the bar code image data to obtain grayscale image data;
a noise reduction sub-module for performing noise reduction processing according to the gray-scale image data to obtain noise-reduced image data
And the binarization submodule is used for carrying out image binarization processing on the basis of the noise reduction picture data to obtain target image data.
Further, the image decoding module 330 in the embodiment of the present invention may be specifically configured to invoke a decoding library for the target image data, and decode according to a barcode rule in the decoding library to obtain barcode content information corresponding to the target image data.
Optionally, the image decoding module 330 may include the following sub-modules:
the calling submodule is used for calling a decoding library aiming at the target image data;
and the decoding submodule is used for decoding according to the bar code rule in the decoding library to obtain the bar code content information corresponding to the target image data.
Further, the barcode input module 340 in the embodiment of the present invention may be specifically configured to convert the barcode content information into analog keyboard input information, and invoke an input method of an operating system for the analog keyboard input information, so as to input the barcode content information to a specified position where a cursor is located through the input method.
Optionally, the barcode input module 340 may include the following sub-modules:
the conversion sub-module is used for converting the bar code content information into analog keyboard input information;
and the calling submodule is used for calling an input method of the operating system aiming at the input information of the simulation keyboard.
The input method is used for inputting the bar code content information to the designated position where the cursor is located.
It should be noted that the scan input device based on the high-speed scanner can execute the scan input method based on the high-speed scanner provided by any embodiment of the present invention, and has the corresponding functions and advantages of the execution method.
In concrete implementation, the scanning input device based on the high-speed scanner can be used as high-speed scanner software and applied to computer equipment connected with the high-speed scanner, so that the computer equipment can perform scanning input based on the high-speed scanner, the scanning input function of the high-speed scanner is realized, and the input efficiency is improved.
Of course, the scan input device based on the high-speed scanner can also be integrated in the computer device, so that the computer device is used as the scan input device based on the high-speed scanner, thereby realizing the scan input function of the high-speed scanner. The Computer device may be formed by two or more physical entities, or may be formed by one physical entity, for example, the Computer device may be a Personal Computer (PC), a smart phone, a tablet Computer, a server, and the like, which is not limited in this embodiment.
Further, an embodiment of the present invention further provides a scan input device based on a high-speed scanner, including: a processor and a memory. At least one instruction is stored in the memory and executed by the processor to cause the high-beat meter-based scan-in device to perform the high-beat meter-based scan-in method as described in the method embodiments above.
In actual processing, the memory may be used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the scan-in method based on the high-speed scanner according to any embodiment of the present invention (for example, the image acquisition module 310, the image processing module 320, the image decoding module 330, the barcode input module 340, and the like in the scan-in device based on the high-speed scanner described above). The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating device, an application program required for at least one function; the storage data area may store data. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
The processor executes various functional applications and data processing of the high-speed scanner by running software programs, instructions and modules stored in the memory, namely, the scanning input method based on the high-speed scanner is realized. Specifically, in the embodiment, when the processor executes one or more programs stored in the memory, the following operations are specifically implemented: acquiring bar code image data shot by a high-speed shooting instrument; performing image processing according to the bar code image data to obtain target image data; decoding the target image data to obtain bar code content information; and converting the bar code content information into analog keyboard input information, and inputting the analog keyboard input information to the designated position where the cursor is located.
Embodiments of the present invention further provide a computer-readable storage medium, where instructions, when executed by a processor of a computer device, enable the computer device to perform the high-imager-based scan-in method according to the above method embodiment. Illustratively, the high-speed scanner-based scan-in method includes: acquiring bar code image data shot by a high-speed shooting instrument; performing image processing according to the bar code image data to obtain target image data; decoding the target image data to obtain bar code content information; and converting the bar code content information into analog keyboard input information, and inputting the analog keyboard input information to the designated position where the cursor is located.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. For the system, apparatus, and media embodiments, because they are substantially similar to the method embodiments, the description is relatively simple, and for related parts, reference may be made to some descriptions of the method embodiments.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. It should be noted that, the units and modules included in the above embodiments are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A scan input method based on a high-speed scanner is characterized by comprising the following steps:
acquiring bar code image data shot by a high-speed shooting instrument;
performing image processing according to the bar code image data to obtain target image data;
decoding the target image data to obtain bar code content information;
and converting the bar code content information into analog keyboard input information, and inputting the analog keyboard input information to the designated position where the cursor is located.
2. The high-speed scanner-based scan-in method according to claim 1, further comprising:
and after the communication connection with the high shooting instrument is established, controlling the high shooting instrument to shoot according to a preset video capture equipment protocol.
3. The scan input method based on the high-speed scanner according to claim 1, wherein the image processing according to the barcode image data to obtain target image data comprises:
performing graying operation based on the bar code image data to obtain grayscale image data;
carrying out noise reduction processing according to the gray-scale image data to obtain noise reduction image data;
and carrying out image binarization processing based on the noise reduction picture data to obtain target image data.
4. The scan-in method based on high-speed scanner according to claim 1, wherein the decoding the target image data to obtain barcode content information comprises:
calling a decoding library for the target image data;
and decoding according to the bar code rule in the decoding library to obtain the bar code content information corresponding to the target image data.
5. The scanning input method based on the high-speed scanner according to any one of claims 1 to 4, wherein the converting the bar code content information into analog keyboard input information and inputting the analog keyboard input information to the designated position where the cursor is located comprises:
converting the bar code content information into analog keyboard input information;
and calling an input method of an operating system according to the simulated keyboard input information, wherein the input method is used for inputting the bar code content information to a designated position where a cursor is located.
6. A scan input device based on a high-speed scanner, comprising:
the image acquisition module is used for acquiring bar code image data shot by the high-speed shooting instrument;
the image processing module is used for carrying out image processing according to the bar code image data to obtain target image data;
the image decoding module is used for decoding the target image data to obtain bar code content information;
and the bar code input module is used for converting the bar code content information into analog keyboard input information and inputting the analog keyboard input information to the designated position where the cursor is positioned.
7. The high-camera based scan input device of claim 6, further comprising: a high shooting instrument control module;
and the high shooting instrument control module is used for controlling the high shooting instrument to shoot according to a preset video capture equipment protocol after establishing communication connection with the high shooting instrument.
8. The high-camera-based scan input device of claim 7, wherein the image processing module comprises:
the graying sub-module is used for carrying out graying operation based on the bar code image data to obtain grayscale image data;
a noise reduction sub-module for performing noise reduction processing according to the gray-scale image data to obtain noise-reduced image data
And the binarization submodule is used for carrying out image binarization processing on the basis of the noise reduction picture data to obtain target image data.
9. A high-camera-based scan input device, comprising: a processor and a memory;
the memory has stored therein at least one instruction that, when executed by the processor, causes the high-beat scanner based scan-in device to perform the high-beat scanner based scan-in method of any of claims 1 to 5.
10. A computer-readable storage medium, wherein instructions in the readable storage medium, when executed by a processor of a computer device, enable the computer device to perform the high-imager based scan-in method of any of claims 1 to 5.
CN202011450591.4A 2020-12-09 2020-12-09 Scan input method, device, equipment and medium based on high-speed scanner Pending CN112417920A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011450591.4A CN112417920A (en) 2020-12-09 2020-12-09 Scan input method, device, equipment and medium based on high-speed scanner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011450591.4A CN112417920A (en) 2020-12-09 2020-12-09 Scan input method, device, equipment and medium based on high-speed scanner

Publications (1)

Publication Number Publication Date
CN112417920A true CN112417920A (en) 2021-02-26

Family

ID=74776528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011450591.4A Pending CN112417920A (en) 2020-12-09 2020-12-09 Scan input method, device, equipment and medium based on high-speed scanner

Country Status (1)

Country Link
CN (1) CN112417920A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745473A (en) * 2022-03-10 2022-07-12 浪潮金融信息技术有限公司 Image capturing processing method, system and medium based on embedded high-speed camera

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789647A (en) * 2011-05-16 2012-11-21 虹光精密工业股份有限公司 Method and computer program for adding scanned image data to arbitrary work area
CN106066979A (en) * 2016-05-26 2016-11-02 广东康利达物联科技股份有限公司 One operates in specialty bar code scanning method and system on cell phone platform
CN106897646A (en) * 2017-01-17 2017-06-27 珠海格力电器股份有限公司 Bar code information input method and device
CN107146489A (en) * 2017-07-16 2017-09-08 王子涵 Pupil exercise book automatic score system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789647A (en) * 2011-05-16 2012-11-21 虹光精密工业股份有限公司 Method and computer program for adding scanned image data to arbitrary work area
CN106066979A (en) * 2016-05-26 2016-11-02 广东康利达物联科技股份有限公司 One operates in specialty bar code scanning method and system on cell phone platform
CN106897646A (en) * 2017-01-17 2017-06-27 珠海格力电器股份有限公司 Bar code information input method and device
CN107146489A (en) * 2017-07-16 2017-09-08 王子涵 Pupil exercise book automatic score system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745473A (en) * 2022-03-10 2022-07-12 浪潮金融信息技术有限公司 Image capturing processing method, system and medium based on embedded high-speed camera
CN114745473B (en) * 2022-03-10 2024-06-14 浪潮金融信息技术有限公司 Image capturing processing method, system and medium based on embedded high-speed image shooting instrument

Similar Documents

Publication Publication Date Title
US8917275B2 (en) Automated contrast verifications
US10332262B2 (en) Removal of background information from digital images
CN109685746A (en) Brightness of image method of adjustment, device, storage medium and terminal
CN111460355B (en) Page analysis method and device
JP5440241B2 (en) Image enhancement device, image enhancement method, and image enhancement program
CN113781356B (en) Training method of image denoising model, image denoising method, device and equipment
CN110570510A (en) Method and device for generating material map
JP2003030672A (en) Document recognition device, method, program and storage medium
JP2023119593A (en) Method and apparatus for recognizing document image, storage medium, and electronic device
CN110263301B (en) Method and device for determining color of text
CN112417920A (en) Scan input method, device, equipment and medium based on high-speed scanner
WO2024094086A1 (en) Image processing method and apparatus, device, medium and product
CN111815748B (en) Animation processing method and device, storage medium and electronic equipment
RU2648636C2 (en) Storage of the content in converted documents
JP4441300B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium storing the program
CN108270973B (en) Photographing processing method, mobile terminal and computer readable storage medium
CN116485944A (en) Image processing method and device, computer readable storage medium and electronic equipment
CN114185784A (en) Barrage rendering test method and device
CN115761389A (en) Image sample amplification method and device, electronic device and storage medium
US20160342833A1 (en) Text Extraction From Graphical User Interface Content
CN113391779A (en) Parameter adjusting method, device and equipment for paper-like screen
Manikandan et al. Text reader for visually impaired people: any reader
Dizaj et al. A new image dataset for document corner localization
JP2019165434A (en) Method and apparatus for generating hdr image with reduced clipped area
RU2547703C2 (en) Method, apparatus and computer programme product for compensating eye colour defects

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