OCR code scanning system
By introducing a QR code recognition module and an information acquisition module in the OCR code scanning system, and using the QR code configuration code to pass OCR target matching characters, the problem of the inability to accurately modify the OCR scanner target matching characters in the prior art is solved, and fast, convenient and low-cost target matching character modification is achieved.
Patent Information
- Application Number
- CN202411845842.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-15
AI Technical Summary
The prior art cannot accurately modify the target matching characters of the OCR scanner through a single OCR recognition system, and the introduction of external configuration equipment is expensive and the configuration process is complicated.
An OCR code scanning system is designed, including an OCR character recognition module, a QR code recognition module and an information acquisition module. The OCR target matching characters are passed to the OCR character recognition module through the QR code configuration code to realize the modification of the target matching characters.
The system can accurately modify the target matching characters of the OCR code scanning system, and does not require the introduction of external configuration equipment, which is convenient and fast to use and low cost.
Smart Images

Figure CN119830935A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of code scanners, and in particular to an OCR code scanning system. Background Art
[0002] With the rapid development of machine vision technology, OCR recognition has been widely used in all walks of life. There are situations in which the target matching characters need to be modified in the OCR character recognition and matching system. Since the accuracy of OCR recognition and decoding is about 80%, there is a serious risk of misjudgment, and the target matching characters cannot be accurately configured and modified through the OCR recognition system. The current mainstream method is to connect the OCR scanner to an external computer or other device through a network, serial port or other interface to modify the target matching characters of the OCR scanner. This method is difficult to implement quickly and conveniently for some factory sites without computers, and this method must introduce external equipment, which makes the configuration process complicated and increases cost overhead. Summary of the invention
[0003] In view of the problem in the prior art that the target matching characters of an OCR scanner cannot be accurately modified through a single OCR recognition system, and that the introduction of external configuration equipment has high cost overhead and a complex and inefficient configuration process, the present invention provides an OCR scanning system.
[0004] An OCR code scanning system of the present invention comprises an OCR character recognition module, a two-dimensional code recognition module and an information acquisition module for acquiring a two-dimensional code configuration code. The two-dimensional code configuration code is generated by an OCR target matching character. The input end of the two-dimensional code recognition module is electrically connected to the information acquisition module to acquire the two-dimensional code configuration code. The output end of the two-dimensional code recognition module is electrically connected to the OCR character recognition module to transmit the OCR target matching character corresponding to the two-dimensional code configuration code to the OCR character recognition module.
[0005] Preferably, the OCR character recognition module includes a character library, an input end of the character library is electrically connected to an output end of the two-dimensional code recognition module to receive OCR target matching characters, and the character library is modified and updated according to the OCR target matching characters.
[0006] Furthermore, the OCR character recognition module also includes a character recognition submodule, and the output end of the character library is electrically connected to the input end of the character recognition submodule.
[0007] Furthermore, the OCR scanning system also includes a control module, the output end of the control module is electrically connected to the input end of the QR code recognition module, the output end of the control module is electrically connected to the input end of the OCR character recognition module, and the output end of the control module is electrically connected to the input end of the information acquisition module.
[0008] Furthermore, the OCR code scanning system also includes an image acquisition module, an input end of the image acquisition module is electrically connected to the control module, and an output end of the image acquisition module is electrically connected to an input end of the OCR character recognition module.
[0009] Furthermore, the OCR code scanning system also includes a first selection module, the output end of the first selection module is electrically connected to the input end of the control module, and when the first selection module corresponds to the character modification mode, the control module controls the information acquisition module and the QR code recognition module to be in a working state, and controls the image acquisition module and the OCR character recognition module to be in a non-working state; when the first selection module corresponds to the character recognition mode, the control module controls the information acquisition module and the QR code recognition module to be in a non-working state, and controls the OCR character recognition module and the image acquisition module to be in a working state.
[0010] Furthermore, the information acquisition module is also used to acquire the recognition image, and the output end of the information acquisition module is electrically connected to the input end of the OCR character recognition module.
[0011] Furthermore, the OCR scanning system also includes a second selection module, the output end of the second selection module is electrically connected to the input end of the control module, and when the second selection module corresponds to the character modification mode, the control module controls the information acquisition module and the QR code recognition module to be in a working state, and controls the OCR character recognition module to be in a non-working state; when the second selection module corresponds to the character recognition mode, the control module controls the QR code recognition module to be in a non-working state, and controls the OCR character recognition module and the information acquisition module to be in a working state.
[0012] Furthermore, the OCR scanning system also includes an image type judgment module, the output end of the information acquisition module is electrically connected to the input end of the image type judgment module, and the output end of the image type judgment module is electrically connected to the input end of the control module. When the image type is a QR code, the control module controls the QR code recognition module to be in a working state and controls the OCR character recognition module to be in a non-working state; when the image type is not a QR code, the control module controls the QR code recognition module to be in a non-working state and controls the OCR character recognition module to be in a working state.
[0013] Preferably, the OCR code scanning system further includes a display module, and the output end of the two-dimensional code recognition module and the output end of the OCR character recognition module are both electrically connected to the display module.
[0014] Compared with the prior art, an OCR code scanning system of the present invention is provided with a two-dimensional code recognition module and an information acquisition module for obtaining a two-dimensional code configuration code. The two-dimensional code configuration code is generated by an OCR target matching character. The input end of the two-dimensional code recognition module is electrically connected to the information acquisition module, and the output end of the two-dimensional code recognition module is electrically connected to the OCR character recognition module. It is convenient to convert the two-dimensional code configuration code into an OCR target matching character through the two-dimensional code recognition module. The structure is simple, and the target matching characters of the OCR code scanning system can be accurately modified. The target matching characters can be modified without introducing an external configuration device. The system is convenient and fast to use, and the cost is low. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 The figure is a schematic diagram of the structure of an OCR code scanning system according to an embodiment of the present invention.
[0017] Figure 2 The figure is a schematic diagram of the structure of an OCR code scanning system according to another embodiment of the present invention.
[0018] Figure 3 It is a structural schematic diagram of an OCR code scanning system according to the third embodiment of the present invention.
[0019] Figure 4 Schematic diagram of the structure of an OCR code scanning system according to the fourth embodiment of the present invention.
[0020] Figure 5 This is a schematic diagram of the structure of an OCR code scanning system according to the fifth embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to provide a further understanding of the purpose, structure, features, and functions of the present invention, the following detailed description is given in conjunction with the embodiments.
[0022] In the description of the present invention, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, they cannot be understood as limitations on the present invention.
[0023] See also Figure 1 An OCR code scanning system of the present invention includes an OCR character recognition module 10, a two-dimensional code recognition module 20 and an information acquisition module 30 for acquiring a two-dimensional code configuration code. The two-dimensional code configuration code is generated by an OCR target matching character. The input end of the two-dimensional code recognition module 20 is electrically connected to the information acquisition module 30 to acquire the two-dimensional code configuration code. The output end of the two-dimensional code recognition module 20 is electrically connected to the OCR character recognition module 10 to transmit the OCR target matching character corresponding to the two-dimensional code configuration code to the OCR character recognition module 10.
[0024] The OCR code scanning system of this embodiment is provided with a two-dimensional code recognition module 20 and an information acquisition module 30 for acquiring a two-dimensional code configuration code. The two-dimensional code configuration code is generated by an OCR target matching character. The input end of the two-dimensional code recognition module 20 is electrically connected to the information acquisition module 30, and the output end of the two-dimensional code recognition module 20 is electrically connected to the OCR character recognition module 10. This facilitates the conversion of the two-dimensional code configuration code into an OCR target matching character through the two-dimensional code recognition module 20. The structure is simple, and the target matching characters of the OCR code scanning system can be accurately modified. Moreover, the modification of the target matching characters can be achieved without introducing an external configuration device, and the cost is low.
[0025] See also Figure 2 , Figure 2 FIG. 1 is a schematic diagram of the structure of an OCR code scanning system according to another embodiment of the present invention. Figure 1 Compared with the embodiment in the previous embodiment, in this embodiment, the OCR character recognition module 10 includes a character library 11, and the input end of the character library 11 is electrically connected to the output end of the two-dimensional code recognition module 20 to receive the OCR target matching character, and modify and update according to the OCR target matching character.
[0026] The OCR character recognition module 10 also includes a character recognition submodule 12 . The output end of the character library 11 is electrically connected to the input end of the character recognition submodule 12 , so that the character recognition submodule 12 can use the character library 11 to perform character recognition on the image acquired by the OCR character recognition module 10 .
[0027] The OCR code scanning system of this embodiment transmits the target matching characters to the character library 11 through the two-dimensional code recognition module 20, so that the character library 11 can be modified and updated, thereby ensuring the accuracy of character recognition.
[0028] See also Figure 3 , Figure 3 FIG. 1 is a schematic diagram of the structure of an OCR code scanning system according to the third embodiment of the present invention. Figure 2Compared with the embodiment, in this embodiment, the OCR scanning system also includes a control module 40, the output end of the control module 40 is electrically connected to the input end of the two-dimensional code recognition module 20, the output end of the control module 40 is electrically connected to the input end of the OCR character recognition module 10, and the output end of the control module 40 is electrically connected to the input end of the information acquisition module 30, so as to be able to control the working status of each module.
[0029] When the information acquisition module 30 is only used to acquire the QR code configuration code, the OCR scanning system also includes an image acquisition module 50, the input end of the image acquisition module 50 is electrically connected to the control module 40 so as to control the working state of the image acquisition module 50 through the control module 40, and the output end of the image acquisition module 50 is electrically connected to the input end of the OCR character recognition module 10 so as to perform character recognition through the OCR character recognition module 10.
[0030] In order to switch the working mode, the OCR code scanning system further includes a first selection module 60 , and the output end of the first selection module 60 is electrically connected to the input end of the control module 40 .
[0031] When the first selection module 60 corresponds to the character modification mode, the control module 40 controls the information acquisition module 30 and the QR code recognition module 20 to be in a working state, and controls the image acquisition module 50 and the OCR character recognition module 10 to be in a non-working state. At this time, the information acquisition module 30 obtains the QR code configuration code and transmits the QR code configuration code to the QR code recognition module 20. The QR code recognition module 20 decodes the QR code configuration code to obtain the OCR target matching characters and then transmits the OCR target matching characters to the character library 11. The character library 11 uses the received OCR target matching characters to complete the modification and update within it.
[0032] When the first selection module 60 corresponds to the character recognition mode, the control module 40 controls the information acquisition module 30 and the QR code recognition module 20 to be in an inoperative state, and controls the OCR character recognition module 10 and the image acquisition module 50 to be in an operating state. At this time, the image acquisition module 50 acquires the image to be recognized and transmits the image to be recognized to the OCR character recognition module 10, and the character recognition submodule 12 uses the character library 11 to perform character recognition on the image to be recognized.
[0033] The working state and non-working state here are relative to the main functions of each module. For example, the image acquisition module 50 is in a working state when it acquires an image, and is in a non-working state when it does not acquire an image. The OCR character recognition module 10 is in a working state when it performs character recognition, and is in a non-working state when it does not perform character recognition.
[0034] See also Figure 4 , Figure 4 FIG. 4 is a schematic diagram of the structure of an OCR code scanning system according to the fourth embodiment of the present invention. Figure 3 Compared with the embodiment in the embodiment, in this embodiment, the information acquisition module 30 is also used to obtain the recognition image, that is, the information acquisition module 30 obtains the QR code configuration code image and the image to be recognized by, for example, taking a photo. At this time, only the information acquisition module 30 is needed to obtain all the information to be recognized, and the structure is simpler. The output end of the information acquisition module 30 is electrically connected to the input end of the OCR character recognition module to transmit the image to be recognized to the OCR character recognition module.
[0035] In order to switch the working mode, the OCR code scanning system further includes a second selection module 60 ′, and the output end of the second selection module 60 ′ is electrically connected to the input end of the control module 40 .
[0036] When the second selection module 60' corresponds to the character modification mode, the control module 40 controls the information acquisition module 30 and the two-dimensional code recognition module 20 to be in a working state, and controls the OCR character recognition module 10 to be in a non-working state. At this time, the information acquisition module 30 obtains the two-dimensional code configuration code image and transmits the two-dimensional code configuration code to the two-dimensional code recognition module 20. The two-dimensional code recognition module 20 decodes the two-dimensional code configuration code to obtain the OCR target matching characters and then transmits the OCR target matching characters to the character library 11. The character library 11 uses the received OCR target matching characters to complete the modification and update inside it.
[0037] When the second selection module 60' corresponds to the character recognition mode, the control module 40 controls the QR code recognition module 20 to be in a non-working state, and controls the OCR character recognition module 10 and the information acquisition module 30 to be in a working state. At this time, the information acquisition module 30 obtains the image to be recognized and transmits the image to be recognized to the OCR character recognition module 10, and the character recognition submodule 12 uses the character library 11 to perform character recognition on the image to be recognized.
[0038] As above, the working state and non-working state here are also relative to the main functions of each module.
[0039] See also Figure 5 , Figure 5 FIG. 5 is a schematic diagram of the structure of an OCR code scanning system according to the fifth embodiment of the present invention. Figure 4 Compared with the embodiment in the above description, in this embodiment, the OCR code scanning system does not realize the working mode switching by selecting a module, but realizes the working mode switching by judging the image type. When the image type is a QR code, it corresponds to the character modification mode, and when the image type is not a QR code, it corresponds to the character recognition mode.
[0040] The OCR code scanning system includes an image type determination module 70. The output end of the information acquisition module 30 is electrically connected to the input end of the image type determination module 70 to transmit the recognized image to the image type determination module 70. The output end of the image type determination module 70 is electrically connected to the input end of the control module 40 to transmit the image type to the control module 40.
[0041] When the image type is a QR code, the control module 40 controls the QR code recognition module 20 to be in a working state and controls the OCR character recognition module 10 to be in a non-working state. At this time, the information acquisition module 30 obtains the QR code configuration code image and transmits the QR code configuration code to the QR code recognition module 20. The QR code recognition module 20 decodes the QR code configuration code to obtain the OCR target matching characters and then transmits the OCR target matching characters to the character library 11. The character library 11 uses the received OCR target matching characters to complete the modification and update within it.
[0042] When the image type is not a QR code, the control module 40 controls the QR code recognition module 20 to be in an inoperative state and controls the OCR character recognition module 10 to be in an operating state. At this time, the information acquisition module 30 acquires the image to be recognized and transmits the image to be recognized to the OCR character recognition module 10, and the character recognition submodule 12 uses the character library 11 to perform character recognition on the image to be recognized.
[0043] Preferably, the OCR code scanning system also includes a display module (not shown in the figure), and the output end of the QR code recognition module 20 and the output end of the OCR character recognition module 10 are electrically connected to the display module to display the corresponding content to facilitate the detection of whether there are errors in the content.
[0044] An OCR code scanning system of the present invention is provided with a two-dimensional code recognition module and an information acquisition module for acquiring a two-dimensional code configuration code. The two-dimensional code configuration code is generated by an OCR target matching character. The input end of the two-dimensional code recognition module is electrically connected to the information acquisition module, and the output end of the two-dimensional code recognition module is electrically connected to the OCR character recognition module. It is convenient to convert the two-dimensional code configuration code into an OCR target matching character through the two-dimensional code recognition module. The system has a simple structure, can accurately modify the target matching character of the OCR code scanning system, and can realize the modification of the target matching character without introducing an external configuration device. The system is convenient and fast to use, and has low cost.
[0045] The present invention has been described by the above-mentioned relevant embodiments, but the above-mentioned embodiments are only examples for implementing the present invention. In addition, the technical features involved in the different embodiments of the present invention described above can be combined with each other as long as they do not conflict with each other. It must be pointed out that the disclosed embodiments do not limit the scope of the present invention. On the contrary, changes and modifications made without departing from the spirit and scope of the present invention are all within the scope of patent protection of the present invention.
Claims
1. An OCR code scanning system, characterized in that: It includes an OCR character recognition module, a QR code recognition module and an information acquisition module for obtaining a QR code configuration code. The QR code configuration code is generated by an OCR target matching character. The input end of the QR code recognition module is electrically connected to the information acquisition module to obtain the QR code configuration code. The output end of the QR code recognition module is electrically connected to the OCR character recognition module to transmit the OCR target matching character corresponding to the QR code configuration code to the OCR character recognition module.
2. An OCR code scanning system as claimed in claim 1, characterized in that: The OCR character recognition module includes a character library, an input end of the character library is electrically connected to an output end of the two-dimensional code recognition module to receive OCR target matching characters, and the character library is modified and updated according to the OCR target matching characters.
3. An OCR code scanning system as claimed in claim 2, characterized in that: The OCR character recognition module also includes a character recognition submodule, and the output end of the character library is electrically connected to the input end of the character recognition submodule.
4. An OCR code scanning system as claimed in claim 3, characterized in that: It also includes a control module, the output end of the control module is electrically connected to the input end of the two-dimensional code recognition module, the output end of the control module is electrically connected to the input end of the OCR character recognition module, and the output end of the control module is electrically connected to the input end of the information acquisition module.
5. An OCR code scanning system as claimed in claim 4, characterized in that: It also includes an image acquisition module, the input end of the image acquisition module is electrically connected to the control module, and the output end of the image acquisition module is electrically connected to the input end of the OCR character recognition module.
6. An OCR code scanning system as claimed in claim 5, characterized in that: It also includes a first selection module, the output end of the first selection module is electrically connected to the input end of the control module, when the first selection module corresponds to the character modification mode, the control module controls the information acquisition module and the two-dimensional code recognition module to be in a working state, and controls the image acquisition module and the OCR character recognition module to be in a non-working state; when the first selection module corresponds to the character recognition mode, the control module controls the information acquisition module and the two-dimensional code recognition module to be in a non-working state, and controls the OCR character recognition module and the image acquisition module to be in a working state.
7. An OCR code scanning system as claimed in claim 4, characterized in that: The information acquisition module is also used to acquire a recognition image, and the output end of the information acquisition module is electrically connected to the input end of the OCR character recognition module.
8. An OCR code scanning system as claimed in claim 7, characterized in that: It also includes a second selection module, the output end of the second selection module is electrically connected to the input end of the control module, when the second selection module corresponds to the character modification mode, the control module controls the information acquisition module and the two-dimensional code recognition module to be in a working state, and controls the OCR character recognition module to be in a non-working state; when the second selection module corresponds to the character recognition mode, the control module controls the two-dimensional code recognition module to be in a non-working state, and controls the OCR character recognition module and the information acquisition module to be in a working state.
9. An OCR code scanning system as claimed in claim 7, characterized in that: It also includes an image type judgment module, the output end of the information acquisition module is electrically connected to the input end of the image type judgment module, and the output end of the image type judgment module is electrically connected to the input end of the control module. When the image type is a two-dimensional code, the control module controls the two-dimensional code recognition module to be in a working state and controls the OCR character recognition module to be in a non-working state; when the image type is not a two-dimensional code, the control module controls the two-dimensional code recognition module to be in a non-working state and controls the OCR character recognition module to be in a working state.
10. An OCR code scanning system according to any one of claims 1 to 9, characterized in that: It also includes a display module, and the output end of the two-dimensional code recognition module and the output end of the OCR character recognition module are both electrically connected to the display module.