Single-point text recognition method and device

By judging the user's usage status and performing sub-picture splicing and boundary definition, the problem of low text recognition accuracy in single-point scenes is solved, achieving higher recognition accuracy and user experience, while maintaining the effect of sliding scenes.

CN114973255BActive Publication Date: 2024-09-10BEIJING UNISOUND INFORMATION TECH CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202210523887.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-14
Publication Date
2024-09-10
Estimated Expiration
2042-05-14

AI Technical Summary

Technical Problem

In single-point scenarios, it is difficult for existing technologies to effectively stitch images and perform OCR recognition, resulting in incorrect or invalid recognition results, and the effectiveness of sliding scenarios cannot be guaranteed.

Method used

By judging the user's usage status, the similarity difference between sub-picture frames is calculated. When it is less than the threshold, it is determined to be a single-point mode. The sub-pictures are spliced ​​into a summary picture, and the left and right boundaries are selected, defined and character recognized to optimize the single point. Text recognition process.

Benefits of technology

It improves the accuracy of text recognition in single-point scenes, avoids word truncation or invalid splicing, and ensures the effectiveness of sliding scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114973255B
    Figure CN114973255B
Patent Text Reader

Abstract

A single-point text recognition method and device, the method judges the user's usage status, and in the usage status judgment process, obtains the picture sequence scanned by the user for sub-picture characterization; calculates the sub-picture frame similarity difference based on the sub-picture characterization result, and when the frame similarity difference is less than a given similarity difference threshold, the user's usage status is judged to be a single-point mode; in the single-point mode, the sub-pictures in the picture sequence are spliced ​​into a summary picture; the left and right boundaries of the summary picture after the sub-pictures are spliced ​​are selected and defined, and character recognition and output are performed on the summary picture with the left and right boundaries selected and defined. When the frame similarity difference is not less than a given similarity difference threshold, the user's usage status is judged to be a sliding mode, and the picture sequence is spliced ​​into a summary picture and character recognition and output are directly performed. The present invention improves the recognition accuracy and user experience of the word-marking pen in the single-point scenario, while ensuring the usage effect in the sliding scenario.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of text recognition, and in particular relates to a single-point text recognition method and device. Background Art

[0002] At present, cameras, image stitching and OCR technologies are widely used in word-marking pen products. Existing products are oriented to sliding scanning scenarios. In sliding scanning scenarios, the camera-based word-marking technology includes an image stitching module and an OCR recognition module. The camera shoots the area where the user has swiped to obtain a sequence of images. The image stitching module stitches the image sequence into a single image, and the OCR recognition module recognizes the stitched image to obtain the recognition result of the text in the area where the user has swiped.

[0003] However, at this stage, the effects of image stitching and OCR recognition in single-point scenarios need to be improved. It is easy to get wrong recognition results or no recognition results in single-point scenarios. There are two main reasons: compared with sliding scenes, in single-point scenes, the characters in the front and back positions captured by the camera are incomplete; the parameter configuration for sliding scenes is not suitable for single-point scenes, which may cause characters to be truncated or no effective stitching results. How to improve the accuracy of text recognition in single-point scenes while ensuring the effect of sliding scenes is a technical problem that needs to be solved urgently. Summary of the invention

[0004] To this end, the present invention provides a single-point text recognition method and device to solve the problems that words are easily truncated or there is no effective splicing picture in a single-point scene, the accuracy of text recognition is low, and the effect of sliding scene usage cannot be guaranteed.

[0005] In order to achieve the above object, the present invention provides the following technical solution: a single point text recognition method, comprising the following steps:

[0006] 1) judging the user's usage status, wherein the usage status judgment process obtains a sequence of pictures scanned by the user and performs sub-picture representation on sub-pictures in the picture sequence;

[0007] 2) calculating the similarity difference between sub-picture frames according to the sub-picture representation results, and when the similarity difference between the frames is less than a given similarity difference threshold, determining that the user's usage status is a single-point mode;

[0008] 3) When the user is in single-point mode, the sub-pictures in the picture sequence are spliced ​​into a summary picture;

[0009] 4) Select and define the left and right boundaries of the summary image after the sub-images are spliced, and perform character recognition and output on the summary image after the left and right boundaries are selected and defined.

[0010] As a preferred solution of the single-point text recognition method, in step 1), when performing sub-image representation on the sub-images in the image sequence, the sub-images in the image sequence are compressed, and the hash value of the compressed sub-image is selected for image representation.

[0011] As a preferred solution of the single-point text recognition method, in step 3), the sub-pictures in the picture sequence are spliced ​​into a summary picture, and when the area where the text in the summary picture is located is determined, the starting positions of the upper and lower structured texts and the text with insufficient projection are corrected.

[0012] As a preferred solution of the single-point text recognition method, step 4) includes:

[0013] 41) Binarizing the stitched summary image and projecting it in the Y-axis direction to obtain a projection image;

[0014] 42) Scan and determine the pixel values ​​in the projection image to obtain character boundary information;

[0015] 43) According to the character boundary information, determine the width information of the candidate characters, the relative position of the center position of the leftmost candidate character to the left edge of the summary image, and the relative position of the center position of the rightmost candidate character to the right edge of the summary image;

[0016] 44) Obtain the average width of characters except the leftmost candidate character and the rightmost candidate character;

[0017] 45) judging whether the leftmost character is complete based on the leftmost candidate character and the average width of the characters, and judging whether the rightmost character is complete based on the rightmost candidate character and the average width of the characters;

[0018] 46) If the leftmost character is an incomplete character, determine the left border of the summary image according to the relative position of the center position of the leftmost candidate character to the left edge of the summary image;

[0019] If the rightmost character is an incomplete character, the right border of the summary image is determined according to the relative position of the center position of the rightmost candidate character to the right edge of the summary image.

[0020] As a preferred solution of the single-point text recognition method, in step 2), when the inter-frame similarity difference is not less than a given similarity difference threshold, the user usage state is determined to be sliding mode, the image sequence is spliced ​​into the summary image and character recognition and output are performed directly.

[0021] The present invention also provides a single-point text recognition device, comprising:

[0022] The usage status judgment module is used to judge the user's usage status; the usage status judgment module includes:

[0023] A sub-image characterization sub-module, used in the usage status judgment process to obtain a sequence of images scanned by a user, and to perform sub-image characterization on sub-images in the sequence of images;

[0024] A similarity judgment submodule is used to calculate the similarity difference between sub-picture frames according to the sub-picture representation result, and when the similarity difference between the frames is less than a given similarity difference threshold, it is determined that the user's usage state is a single-point mode;

[0025] A sub-image stitching module, used for stitching the sub-images in the image sequence into a summary image when the user is in single-point mode;

[0026] A boundary selection module, used for selecting and defining the left and right boundaries of the summary image after the sub-images are spliced;

[0027] The recognition and output module is used to perform character recognition and output on the summary image after the left and right boundaries are defined.

[0028] As a preferred solution of the single-point text recognition device, the usage status judgment module also includes:

[0029] The compression processing submodule is used to compress the sub-pictures in the picture sequence when performing sub-picture representation on the sub-pictures in the picture sequence, and select the hash value of the compressed sub-picture for picture representation.

[0030] As a preferred solution of the single-point text recognition device, the sub-image splicing module includes:

[0031] The position correction submodule is used to splice the sub-images in the image sequence into a summary image, and when determining the area where the text in the summary image is located, correct the starting position of the upper and lower structured text and the text with insufficient projection.

[0032] As a preferred solution of the single-point text recognition device, the boundary selection module includes:

[0033] The projection processing submodule is used to binarize the stitched summary image and perform Y-axis projection to obtain a projection image;

[0034] A character boundary extraction submodule, used for scanning and determining pixel values ​​in the projection image to obtain character boundary information;

[0035] A character boundary analysis submodule, for determining the width information of the candidate characters, the relative position of the center position of the leftmost candidate character from the left edge of the summary image, and the relative position of the center position of the rightmost candidate character from the right edge of the summary image according to the character boundary information;

[0036] The average width acquisition submodule is used to acquire the average width of characters other than the leftmost candidate character and the rightmost candidate character;

[0037] A character completeness judgment submodule is used to judge whether the leftmost character is complete based on the leftmost candidate character and the average width of the character, and is also used to judge whether the rightmost character is complete based on the rightmost candidate character and the average width of the character;

[0038] A character boundary definition submodule, for determining the left boundary of the summary image according to the relative position of the center position of the leftmost candidate character to the left edge of the summary image if the leftmost character is an incomplete character;

[0039] If the rightmost character is an incomplete character, the right border of the summary image is determined according to the relative position of the center position of the rightmost candidate character to the right edge of the summary image.

[0040] As a preferred solution for the single-point text recognition device, in the similarity judgment submodule, when the similarity difference between the frames is not less than a given similarity difference threshold, the user's usage status is determined to be sliding mode; the image sequence is spliced ​​into the summary image and character recognition and output are performed directly.

[0041] The present invention has the following advantages: judging the user's usage status, obtaining the image sequence scanned by the user in the usage status judgment process, and performing sub-image characterization on the sub-images in the image sequence; calculating the sub-image frame similarity difference based on the sub-image characterization result, and judging that the user's usage status is a single-point mode when the frame similarity difference is less than a given similarity difference threshold; when the user's usage status is a single-point mode, splicing the sub-images in the image sequence into a summary image; selecting and defining the left and right boundaries of the summary image after the sub-images are spliced, and performing character recognition and output on the summary image after the left and right boundaries are selected and defined. When the frame similarity difference is not less than a given similarity difference threshold, judging that the user's usage status is a sliding mode, splicing the image sequence into a summary image, and directly performing character recognition and output. The present invention can avoid the occurrence of word truncation or no valid splicing image results in single-point scenarios, improve the recognition accuracy and user experience of the word-marking pen in single-point scenarios, and at the same time ensure the use effect in sliding scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0043] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.

[0044] Figure 1 A schematic diagram of a single-point text recognition method flow chart provided in Example 1 of the present invention;

[0045] Figure 2 A schematic diagram of a boundary definition process for a single-point text recognition process provided in Example 1 of the present invention;

[0046] Figure 3 Schematic diagram of a single-point text recognition device provided in Example 2 of the present invention. DETAILED DESCRIPTION

[0047] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] Example 1

[0049] See also Figure 1 Embodiment 1 of the present invention provides a single-point text recognition method, comprising the following steps:

[0050] S1. Determine the user's usage status. The usage status determination process obtains a sequence of pictures scanned by the user and performs sub-picture representation on sub-pictures in the picture sequence.

[0051] S2, calculating the similarity difference between sub-picture frames according to the sub-picture representation result, and when the similarity difference between the frames is less than a given similarity difference threshold, determining that the user's usage state is a single-point mode;

[0052] S3. When the user is in single-point mode, the sub-pictures in the picture sequence are spliced ​​into a summary picture;

[0053] S4, selecting and defining the left and right boundaries of the summary image after the sub-images are spliced, and performing character recognition and output on the summary image after the left and right boundaries are selected and defined.

[0054] In this embodiment, in step S1, when performing sub-image characterization on the sub-images in the image sequence, the sub-images in the image sequence are compressed, and the hash value of the compressed sub-image is selected for image characterization. In step S2, when the inter-frame similarity difference is not less than the given similarity difference threshold, it is determined that the user usage state is the sliding mode, and the image sequence will be spliced into the summary image and directly subjected to character recognition and output.

[0055] Specifically, in the process of calculating the similarity of sub-images in the image sequence, select the Nth, 2Nth, 3Nth, k*Nth sub-images, and satisfy k*N < r*fs, where r is a parameter set to 0.5 and fs is the camera frame rate. When calculating the similarity of sub-images, to improve the calculation speed, first compress each frame of sub-image to the size of M*M, and select the hash value of the compressed sub-image as the image characterization.

[0056] At the same time, calculate the inter-frame similarity difference δ according to the image characterization result. If δ is less than the similarity difference threshold, it is determined that the user operation is the single-point mode, otherwise it is determined that the user operation is the sliding mode.

[0057] In the single-point mode, in step S3, when splicing the sub-images in the image sequence into a summary image and determining the area where the text is located in the summary image, correct the start position of the text with an upper and lower structure and the text with insufficient projection.

[0058] Specifically, compared with the jigsaw puzzle in the sliding mode, when determining the area where the text is located in the spliced summary image, consider the influence of the font structure on the image cutting, so it is necessary to correct the start position of the character to improve a greater redundancy. Correct the start position for Chinese characters with an upper and lower structure, such as "是" (shi), and simple Chinese characters with insufficient projection, such as "一" (yi).

[0059] See Figure 2 In the single-point mode, step S4 includes:

[0060] S41. Binarize the spliced summary image and perform Y-axis direction projection to obtain a projection image;

[0061] S42. Scan and judge the pixel values in the projection image to obtain character boundary information;

[0062] S43. According to the character boundary information, judge the width information of the candidate characters, the relative position of the center position of the leftmost candidate character from the left edge of the summary image, and the relative position of the center position of the rightmost candidate character from the right edge of the summary image;

[0063] S44. Obtain the average width of the characters except the leftmost candidate character and the rightmost candidate character;

[0064] S45, judging whether the leftmost character is complete according to the leftmost candidate character and the average character width, and judging whether the rightmost character is complete according to the rightmost candidate character and the average character width;

[0065] S46, if the leftmost character is an incomplete character, determine the left border of the summary image according to the relative position of the center position of the leftmost candidate character to the left edge of the summary image;

[0066] If the rightmost character is an incomplete character, the right border of the summary image is determined according to the relative position of the center position of the rightmost candidate character to the right edge of the summary image.

[0067] Specifically, the purpose of step S4 is to solve the recognition error problem caused by incomplete characters near the left and right boundary areas in the single-point mode.

[0068] Specifically, in step S41, the summary image is binarized by setting the grayscale value of the pixel on the image to 0 or 255, so that the entire summary image presents an obvious black and white effect. The binary summary image is projected in the Y-axis direction, that is, horizontally, to obtain a projection image. The binary projection itself belongs to the prior art, and there are relatively mature codes that can be implemented.

[0069] Specifically, according to the character boundary information, the width information W of the candidate character and the relative position B of the center position of the leftmost candidate character from the left edge of the summary image are determined. left , the relative position E of the center position of the rightmost candidate character to the right edge of the summary image right Then remove the leftmost and rightmost candidate characters and calculate the average width W of the remaining characters. average , if the width of the leftmost candidate character is W 最左 and the average character width W average If the absolute difference exceeds the given limit threshold, the leftmost character can be determined to be an incomplete character. 最右 and the average character width W average If the absolute difference exceeds a given limit threshold, the rightmost character can be determined to be an incomplete character.

[0070] When the leftmost character is determined to be an incomplete character, the relative position B of the left edge of the summary image minus 2 times the center position of the leftmost candidate character from the left edge of the summary image is calculated. left Serves as the left border of the summary image.

[0071] When the rightmost character is determined to be an incomplete character, the relative position E of the right edge of the summary image minus 2 times the center position of the rightmost candidate character from the right edge of the summary image is calculated. right Serves as the right border of the summary image.

[0072] Specifically, subtract 2 times the relative position B of the center position of the leftmost candidate character from the left edge of the summary image. left Relative to the incomplete character on the far left, minus 2 times the relative position E of the center position of the far right candidate character from the right edge of the summary image right The rightmost incomplete character is removed, thereby defining the left and right boundaries of the spliced ​​summary image.

[0073] In summary, the present invention determines the user's usage status, obtains the image sequence scanned by the user through the usage status judgment process, and performs sub-image characterization on the sub-images in the image sequence; calculates the sub-image frame similarity difference based on the sub-image characterization result, and when the frame similarity difference is less than a given similarity difference threshold, determines that the user's usage status is a single-point mode; when the user's usage status is a single-point mode, splices the sub-images in the image sequence into a summary image; selects and defines the left and right boundaries of the summary image after the sub-images are spliced, and performs character recognition and output on the summary image with the left and right boundaries selected. When the frame similarity difference is not less than a given similarity difference threshold, determines that the user's usage status is a sliding mode, splices the image sequence into a summary image, and directly performs character recognition and output. The present invention can avoid the occurrence of word truncation or no valid splicing image results in single-point scenarios, improves the recognition accuracy and user experience of the word-marking pen in single-point scenarios, and at the same time ensures the usage effect in sliding scenarios.

[0074] Example 2

[0075] See also Figure 3 Embodiment 2 of the present invention further provides a single-point text recognition device, comprising:

[0076] The usage status judgment module 1 is used to judge the user's usage status; the usage status judgment module includes:

[0077] The sub-image characterization sub-module 11 is used for obtaining a sequence of images scanned by a user in the usage status judgment process, and performing sub-image characterization on sub-images in the sequence of images;

[0078] A similarity judgment submodule 12 is used to calculate the similarity difference between sub-picture frames according to the sub-picture representation result, and when the similarity difference between the frames is less than a given similarity difference threshold, it is determined that the user's usage state is a single-point mode;

[0079] Sub-image stitching module 2, used for stitching sub-images in the image sequence into a summary image when the user is in single-point mode;

[0080] Boundary selection module 3, used for selecting and defining the left and right boundaries of the summary image after the sub-images are spliced;

[0081] The recognition and output module 4 is used to perform character recognition and output on the summary image after the left and right boundaries are defined.

[0082] In this embodiment, the usage status judgment module 1 further includes:

[0083] The compression processing submodule 13 is used to compress the sub-pictures in the picture sequence when performing sub-picture representation on the sub-pictures in the picture sequence, and select the hash value of the compressed sub-picture for picture representation.

[0084] In this embodiment, the sub-image stitching module 2 includes:

[0085] The position correction submodule 21 is used to splice the sub-images in the image sequence into a summary image, and when determining the area where the text in the summary image is located, correct the starting position of the upper and lower structured texts and the text with insufficient projection.

[0086] In this embodiment, the boundary selection module 3 includes:

[0087] The projection processing submodule 31 is used to binarize the stitched summary image and perform Y-axis projection to obtain a projection image;

[0088] A character boundary extraction submodule 32 is used to scan and determine the pixel values ​​in the projection image to obtain character boundary information;

[0089] The character boundary analysis submodule 33 is used to determine the width information of the candidate characters, the relative position of the center position of the leftmost candidate character to the left edge of the summary image, and the relative position of the center position of the rightmost candidate character to the right edge of the summary image according to the character boundary information;

[0090] The average width acquisition submodule 34 is used to acquire the average width of characters other than the leftmost candidate character and the rightmost candidate character;

[0091] A character integrity judgment submodule 35 is used to judge whether the leftmost character is complete based on the leftmost candidate character and the average character width, and is also used to judge whether the rightmost character is complete based on the rightmost candidate character and the average character width;

[0092] The character boundary defining submodule 36 is used to determine the left boundary of the summary image according to the relative position of the center position of the leftmost candidate character to the left edge of the summary image if the leftmost character is an incomplete character;

[0093] If the rightmost character is an incomplete character, the right border of the summary image is determined according to the relative position of the center position of the rightmost candidate character to the right edge of the summary image.

[0094] In this embodiment, in the similarity judgment submodule 12, when the inter-frame similarity difference is not less than a given similarity difference threshold, the user usage state is determined to be the sliding mode; the picture sequence is spliced ​​into the summary picture and character recognition and output are performed directly.

[0095] It should be noted that the information interaction, execution process, etc. between the modules / sub-modules of the above-mentioned device are based on the same concept as the method embodiment in Example 1 of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown in the previous part of the present application, and will not be repeated here.

[0096] Example 3

[0097] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, in which a program code of a single-point text recognition method is stored. The program code includes instructions for executing the single-point text recognition method of embodiment 1 or any possible implementation thereof.

[0098] The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0099] Example 4

[0100] Embodiment 4 of the present invention provides an electronic device, including: a memory and a processor;

[0101] The processor and the memory communicate with each other via a bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the single-point text recognition method of embodiment 1 or any possible implementation thereof.

[0102] Specifically, the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor implemented by reading software codes stored in a memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.

[0103] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.

[0104] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0105] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.

Claims

1. A single-point text recognition method, characterized in that: The following steps are involved: 1) judging the user's usage status, wherein the usage status judgment process obtains a sequence of pictures scanned by the user and performs sub-picture representation on sub-pictures in the picture sequence; 2) calculating the similarity difference between sub-picture frames according to the sub-picture representation results, and when the similarity difference between the frames is less than a given similarity difference threshold, determining that the user's usage status is a single-point mode; 3) When the user is in single-point mode, the sub-pictures in the picture sequence are spliced ​​into a summary picture; 4) Select and define the left and right boundaries of the summary image after the sub-images are spliced, and perform character recognition and output on the summary image after the left and right boundaries are selected and defined.

2. A single-point text recognition method according to claim 1, characterized in that: In step 1), when performing sub-image characterization on the sub-images in the image sequence, the sub-images in the image sequence are compressed, and the hash values ​​of the compressed sub-images are selected for image characterization.

3. A single-point text recognition method according to claim 2, characterized in that: In step 3), the sub-images in the image sequence are spliced ​​into a summary image, and when the area where the text in the summary image is located is determined, the starting positions of the upper and lower structured texts and the text with insufficient projection are corrected.

4. A single-point text recognition method according to claim 3, characterized in that: Step 4) includes: 41) Binarizing the stitched summary image and projecting it in the Y-axis direction to obtain a projection image; 42) Scan and determine the pixel values ​​in the projection image to obtain character boundary information; 43) According to the character boundary information, determine the width information of the candidate characters, the relative position of the center position of the leftmost candidate character to the left edge of the summary image, and the relative position of the center position of the rightmost candidate character to the right edge of the summary image; 44) Obtain the average width of characters except the leftmost candidate character and the rightmost candidate character; 45) judging whether the leftmost character is complete based on the leftmost candidate character and the average width of the characters, and judging whether the rightmost character is complete based on the rightmost candidate character and the average width of the characters; 46) If the leftmost character is an incomplete character, determine the left border of the summary image according to the relative position of the center position of the leftmost candidate character to the left edge of the summary image; If the rightmost character is an incomplete character, the right border of the summary image is determined according to the relative position of the center position of the rightmost candidate character to the right edge of the summary image.

5. A single-point text recognition method according to claim 1, characterized in that: In step 2), when the inter-frame similarity difference is not less than a given similarity difference threshold, it is determined that the user's usage state is in sliding mode, the image sequence is spliced ​​into the summary image, and character recognition and output are performed directly.

6. A single-point text recognition device, characterized in that: include: A usage status judgment module is used to judge the user's usage status; The usage status judgment module includes: A sub-image characterization sub-module, used in the usage status judgment process to obtain a sequence of images scanned by a user, and to perform sub-image characterization on sub-images in the sequence of images; A similarity judgment submodule is used to calculate the similarity difference between sub-picture frames according to the sub-picture representation result, and when the similarity difference between the frames is less than a given similarity difference threshold, it is determined that the user's usage state is a single-point mode; A sub-image stitching module, used for stitching the sub-images in the image sequence into a summary image when the user is in single-point mode; A boundary selection module, used for selecting and defining the left and right boundaries of the summary image after the sub-images are spliced; The recognition and output module is used to perform character recognition and output on the summary image after the left and right boundaries are defined.

7. A single-point text recognition device according to claim 6, characterized in that: The usage status judgment module also includes: The compression processing submodule is used to compress the sub-pictures in the picture sequence when performing sub-picture representation on the sub-pictures in the picture sequence, and select the hash value of the compressed sub-picture for picture representation.

8. A single-point text recognition device according to claim 7, characterized in that: The sub-image splicing module includes: The position correction submodule is used to splice the sub-images in the image sequence into a summary image, and when determining the area where the text in the summary image is located, correct the starting position of the upper and lower structured text and the text with insufficient projection.

9. A single-point text recognition device according to claim 8, characterized in that: The boundary selection module includes: The projection processing submodule is used to binarize the stitched summary image and perform Y-axis projection to obtain a projection image; A character boundary extraction submodule, used for scanning and determining pixel values ​​in the projection image to obtain character boundary information; A character boundary analysis submodule, for determining the width information of the candidate characters, the relative position of the center position of the leftmost candidate character from the left edge of the summary image, and the relative position of the center position of the rightmost candidate character from the right edge of the summary image according to the character boundary information; The average width acquisition submodule is used to acquire the average width of characters other than the leftmost candidate character and the rightmost candidate character; A character integrity judgment submodule is used to judge whether the leftmost character is complete based on the leftmost candidate character and the average width of the character, and is also used to judge whether the rightmost character is complete based on the rightmost candidate character and the average width of the character; A character boundary definition submodule, for determining the left boundary of the summary image according to the relative position of the center position of the leftmost candidate character to the left edge of the summary image if the leftmost character is an incomplete character; If the rightmost character is an incomplete character, the right border of the summary image is determined according to the relative position of the center position of the rightmost candidate character to the right edge of the summary image.

10. The single-point text recognition device according to claim 9, characterized in that: In the similarity judgment submodule, when the inter-frame similarity difference is not less than a given similarity difference threshold, the user usage state is determined to be the sliding mode; the image sequence is spliced ​​into the summary image and character recognition and output are performed directly.

Citation Information

Patent Citations

  • Motion scan-based image processing method and device

    CN101896920A

  • Method and device for splicing image sequence

    CN102156867A

  • Scanning and identifying device and method

    CN102324027A

  • Automatic license plate character recognition method

    CN103116751A

  • Text conversion method and system for assisting blind in reading

    CN109377834A