Braille document table recognition method and system

By reconstructing the table structure of Braille documents through key point detection and dual grouping methods, combined with cell enhancement technology, the problem of accuracy and speed of table and character recognition in Braille documents is solved, and more efficient table recognition of Braille documents is achieved.

CN118522027BActive Publication Date: 2024-10-29HANGZHOU XIAOXI INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410988524.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-29
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

Traditional technology is difficult to accurately identify tables and characters in Braille documents, resulting in detection frame adhesion and misrecognition of content, which reduces the accuracy and speed of table recognition in Braille documents.

Method used

The key point detection method is used to determine the cell vertices and center points of the Braille document table, the cell position and logical structure are reconstructed through the dual grouping method, and character recognition is performed on the enhanced image to eliminate interference from non-meaningful characters and avoid detection frames Adhesions.

Benefits of technology

It improves the detection speed and recognition accuracy of Braille document tables, optimizes the character recognition effect, avoids the problem of detection frame adhesion, and improves the accuracy of character recognition in Braille documents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118522027B_ABST
    Figure CN118522027B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of intelligent recognition of braille documents, and discloses a method and system for recognizing a braille document table, the method comprising: obtaining a braille document image to be recognized, determining the cell vertices and center points of a braille document table in the braille document image to be recognized by a key point detection method; reconstructing the cell position and cell logical structure based on the cell vertices and center points of the braille document table by a dual grouping method; enhancing the braille document image to be recognized according to the cell position, and performing character recognition based on the enhanced braille document image to be recognized; and obtaining a braille document table recognition result according to the results of the cell logical structure and character recognition. The present invention can improve the detection speed of the braille document table and improve the recognition accuracy of the table and characters in the braille document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent recognition of Braille documents, and in particular to a method and system for recognizing a table in a Braille document. Background Art

[0002] Braille documents, especially student textbooks, contain a large number of table elements, which are used to display data, compare information or organize complex content. These tables are essential for visually impaired students to understand course concepts. However, in order to convert Braille documents into Chinese documents that are easy for sighted people to read, or process them into speech, it is necessary to recognize the tables in Braille documents. Technically, this includes two parts: table content recognition and table structure recognition.

[0003] Traditional technology directly applies the table recognition method of general documents to Braille documents. However, Braille document conversion still has the following difficulties:

[0004] Table detection frame adhesion: In Braille documents, Braille characters and Braille table lines are composed of depressions and projections. That is, Braille characters not only have semantic functions, but may also be used as graphic elements such as table lines. This duality makes it difficult for traditional table recognition technology to distinguish the semantic and structural functions of characters. As a result, when traditional table detection algorithms are applied to the field of Braille document recognition, it is difficult to accurately identify the boundaries between characters and tables, resulting in the problem of detection frame adhesion.

[0005] Misidentification of content: Since the arrangement and shape of Braille characters may be similar to or too close to table lines, when traditional character recognition technology is applied to the field of Braille document recognition, table lines may be misidentified as text content, or text content may be misidentified as table lines, resulting in reduced recognition accuracy of characters and tables.

[0006] Therefore, there is an urgent need for a Braille document table recognition method and system that can improve the detection speed of Braille document tables and improve the recognition accuracy of tables and characters in Braille documents. Summary of the invention

[0007] In order to solve the above technical problems, the present invention provides a Braille document table recognition method and system, which can improve the detection speed of Braille document tables and improve the recognition accuracy of tables and characters in Braille documents.

[0008] The present invention provides a method for recognizing a table in a Braille document, comprising the following steps:

[0009] S1. Obtain a braille document image to be identified, and determine the cell vertices and center points of the braille document table in the braille document image to be identified by a key point detection method;

[0010] S2. Reconstruct the cell position and cell logical structure based on the cell vertices and center points of the Braille document table through the dual grouping method;

[0011] S3, enhancing the image of the Braille document to be recognized according to the cell position, and performing character recognition based on the enhanced image of the Braille document to be recognized;

[0012] S4. Obtain Braille document table recognition results based on the cell logical structure and character recognition results.

[0013] Further, S1, obtaining a braille document image to be identified, and determining the cell vertices and cell center points of the braille document table in the braille document image to be identified by a key point detection method includes:

[0014] S11, establishing an XY coordinate system with the lower left corner of the image of the Braille document to be recognized as the coordinate origin;

[0015] S12, inputting the image of the Braille document to be recognized into the pre-trained first convolutional neural network to obtain visual features of the image of the Braille document to be recognized;

[0016] S13. Input the visual features of the braille document image to be identified into the pre-trained second convolutional neural network to obtain a cell vertex set and a cell center point set of the braille document table in the braille document image to be identified; wherein the elements in the cell vertex set are the coordinate values ​​of each vertex in the XY coordinate system of the braille document image to be identified, and the elements in the cell center point set are the coordinate values ​​of each center point in the XY coordinate system of the braille document image to be identified.

[0017] Further, S2, through the dual grouping method, based on the cell vertices and center points of the Braille document table, reconstructs the cell position and cell logical structure including:

[0018] S21, determining the vertex circumscribed frame of each cell vertex and the center point circumscribed frame of each cell center point in the Braille document table;

[0019] S22, determining the intersection relationship between the circumscribed frames of each vertex and the circumscribed frames of each center point;

[0020] S23, using the dual grouping method, the correspondence between each center point and each vertex is determined according to the intersection relationship between the external bounding box of each vertex and the external bounding box of each center point, a cell coordinate set is obtained, and the coordinates of each cell are determined; wherein the elements in the cell coordinate set are the coordinate values ​​of each cell in the XY coordinate system of the braille document image to be recognized, and each element includes the coordinate values ​​of four vertices corresponding to the cell;

[0021] S24. Reconstruct the cell position according to the coordinates of each cell, and determine the cell logical structure according to the cell position; wherein the cell logical structure includes the cell logical row and the cell logical column.

[0022] Further, S21, determining the vertex bounding box of each cell vertex and the center point bounding box of each cell center point of the Braille document table includes:

[0023] S211, based on the center point set, taking the center point of the cell as the center point of the center point circumscribed frame, taking the length of the cell as the length value of the center point circumscribed frame, taking the width of the cell as the width value of the center point circumscribed frame, and obtaining the center point circumscribed frame of each center point;

[0024] S212 . Based on the vertex set, take the vertex of the cell as the center point of the vertex circumscribed frame, draw a circle according to a preset radius, and obtain the vertex circumscribed frame of each vertex.

[0025] Further, S3, enhancing the image of the braille document to be recognized according to the cell position, and performing character recognition based on the enhanced image of the braille document to be recognized includes:

[0026] S31. Adding a mask to the image of the Braille document to be recognized according to the cell position to obtain an enhanced image of the Braille document to be recognized;

[0027] S32. Input the enhanced Braille document image to be recognized into a pre-trained Braille character recognition model to obtain a character set; wherein the elements in the character set are the coordinate values ​​of each character in the XY coordinate system of the Braille document image to be recognized, and the content of each character.

[0028] Further, S4, based on the cell logical structure and the character recognition result, the Braille document table recognition result is obtained, including:

[0029] S41, determining the characters contained in each cell according to the cell coordinate set and the character set, and removing the characters overlapping with the border of the cell;

[0030] S42. Obtain a Braille document table recognition result according to the cell logical structure and the characters contained in each cell.

[0031] The present invention also provides a Braille document table recognition system, which is used to execute any of the Braille document table recognition methods described above, and the system includes the following modules:

[0032] A key point determination module is used to obtain a braille document image to be identified, and determine the cell vertices and center points of the braille document table in the braille document image to be identified by a key point detection method;

[0033] A cell reconstruction module, connected to the key point determination module, is used to reconstruct the cell position and the cell logical structure based on the cell vertices and center points of the Braille document table through a dual grouping method;

[0034] A character recognition module, connected to the cell reconstruction module, is used to enhance the image of the Braille document to be recognized according to the cell position, and perform character recognition based on the enhanced image of the Braille document to be recognized;

[0035] The table recognition module is connected with the cell reconstruction module and the character recognition module, and is used to obtain the Braille document table recognition result according to the cell logical structure and the character recognition result.

[0036] The embodiments of the present invention have the following technical effects:

[0037] The present invention provides a Braille document table recognition method based on a key point detection method, a dual grouping method and a cell enhancement. The key point detection method is used to detect table cells in a Braille document, and the significant features of the Braille table are captured. The dual grouping method is used to improve the speed of the merging step of the detection points, and the detection speed and recognition effect of the Braille document table are improved. The cell enhancement is used to add the features of the cell detection to the character recognition process, and the interference of non-semantic Braille characters is eliminated, and the problem of adhesion of the table detection frame is avoided. At the same time, it is used to optimize the post-processing of character recognition and improve the recognition accuracy of the characters in the Braille document. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] 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.

[0039] Figure 1 is a flow chart of a Braille document table recognition method provided by an embodiment of the present invention;

[0040] Figure 2 is a schematic diagram of a Braille document image provided by an embodiment of the present invention;

[0041] Figure 3 It is a structural schematic diagram of a Braille document table recognition system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described clearly and completely below. Obviously, the described embodiments are only 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 belong to the scope of protection of the present invention.

[0043] The present invention proposes a Braille document table recognition method. Figure 1 is a flowchart of a Braille document table recognition method provided by an embodiment of the present invention, see Figure 1 , specifically including:

[0044] S1. Obtain a Braille document image to be identified, and determine the cell vertices and center points of the Braille document table in the Braille document image to be identified by a key point detection method.

[0045] Specifically, Figure 2 is a schematic diagram of a Braille document image provided by an embodiment of the present invention, see Figure 2 :

[0046] S11. Establish an XY coordinate system with the lower left corner of the image of the Braille document to be recognized as the coordinate origin.

[0047] S12. Input the image of the Braille document to be recognized into the pre-trained first convolutional neural network to obtain visual features of the image of the Braille document to be recognized.

[0048] Specifically, the visual feature of the to-be-recognized Braille document image is a feature vector composed of the height, width, and number of channels of the to-be-recognized Braille document image.

[0049] S13. Inputting the visual features of the to-be-recognized braille document image into a pre-trained second convolutional neural network to obtain a set of cell vertices and a set of cell center points of the braille document table in the to-be-recognized braille document image.

[0050] Among them, the cell vertex set {c1,c2,…,c k The elements in} are the coordinate values ​​of each vertex in the XY coordinate system of the Braille document image to be recognized, where k represents the total number of cell vertices; the cell center point set {v1,v2,…,v n The elements in} are the coordinate values ​​of each center point in the XY coordinate system of the Braille document image to be recognized, where n represents the total number of cell center points.

[0051] S2. Through the dual grouping method, the cell position and cell logical structure are reconstructed based on the cell vertices and center points of the Braille document table.

[0052] S21, determining the vertex circumscribed frames of the vertices of each cell of the Braille document table and the center point circumscribed frame of the center point of each cell.

[0053] S211. Based on the center point set, the center point of the cell is used as the center point of the center point circumscribed frame, the length of the cell is used as the length of the center point circumscribed frame, and the width of the cell is used as the width of the center point circumscribed frame to obtain the center point circumscribed frame of each center point.

[0054] S212 . Based on the vertex set, take the vertex of the cell as the center point of the vertex circumscribed frame, draw a circle according to a preset radius, and obtain the vertex circumscribed frame of each vertex.

[0055] S22: Determine the intersection relationship between the circumscribed frames of each vertex and the circumscribed frames of each center point.

[0056] Specifically, the intersection relationship between the circumscribed frames of each vertex and the circumscribed frames of each center point refers to whether the range contained in the circumscribed frame of a certain center point overlaps with the range contained in the circumscribed frame of a certain vertex. If they overlap, they intersect; otherwise, they do not intersect.

[0057] Furthermore, an overlap threshold may be set. Only when the overlapping area of ​​a center point circumscribed frame and a vertex circumscribed frame exceeds the overlap threshold, they are considered to intersect.

[0058] Furthermore, for each center point, four vertices intersecting with its bounding box, or four vertices with the largest intersecting area with its bounding box, are found, and a corresponding relationship is established until all center points and vertices are matched.

[0059] S23. By using the dual grouping method, the corresponding relationship between each center point and each vertex is determined according to the intersection relationship between the external bounding box of each vertex and the external bounding box of each center point, a cell coordinate set is obtained, and the coordinates of each cell are determined.

[0060] Among them, the cell coordinate set {b1,b2,…,b j The elements in} are the coordinate values ​​of each cell in the XY coordinate system of the Braille document image to be recognized, where j is the total number of cells, and each element includes the coordinate values ​​of the four vertices corresponding to the cell.

[0061] S24. Reconstruct the cell position according to the coordinates of each cell, and determine the cell logical structure according to the cell position.

[0062] The cell logical structure includes the cell logical row and the cell logical column. According to the cell position, each cell is assigned a logical row number and a logical column number. The logical row number and the logical column number start from 1 and are assigned in order from left to right and from top to bottom. Finally, each cell is associated with its logical row number and logical column number to form a cell logical structure.

[0063] S3. Enhance the image of the Braille document to be recognized according to the cell position, and perform character recognition based on the enhanced image of the Braille document to be recognized.

[0064] S31. Add a mask to the image of the Braille document to be recognized according to the cell position to obtain an enhanced image of the Braille document to be recognized.

[0065] Specifically, for each cell position, a mask is generated. This mask is usually a rectangular area of ​​the same size as the cell. For example, it can be a binary mask (i.e., only pixel values ​​of 0 and 1) to identify the cell area on the braille document image to be recognized. Each mask is superimposed on the braille document image to be recognized through image processing operations, such as performing bitwise operations on the mask and the braille document image to be recognized to highlight the cell position. The cell position in the enhanced braille document image to be recognized after mask processing is more obvious, which is helpful for subsequent character recognition.

[0066] S32, inputting the enhanced Braille document image to be recognized into a pre-trained Braille character recognition model to obtain a character matching set.

[0067] Specifically, the Braille character recognition model can be a convolutional neural network model. m The elements in} are the coordinate values ​​of each character in the XY coordinate system of the Braille document image to be recognized, as well as the content of each character; where m is the total number of characters, and the content of the character is what word the character represents.

[0068] Furthermore, after obtaining the character set, each character needs to be post-processed. The post-processing includes character correction, character reorganization, etc. Character correction is used to correct incorrectly recognized characters, and character reorganization is used to merge consecutive characters to improve the accuracy of character recognition and the readability of characters.

[0069] S4. Obtain Braille document table recognition results based on the cell logical structure and character recognition results.

[0070] S41, determining the characters contained in each cell according to the cell coordinate set and the character set, and removing the characters overlapping with the border of the cell.

[0071] Specifically, lines are connected according to the four vertices corresponding to the cell to obtain a rectangular frame representing the cell, and the lines constituting the rectangular frame of the cell are the frame lines of the cell.

[0072] S42. Obtain a Braille document table recognition result according to the cell logical structure and the characters contained in each cell.

[0073] Specifically, the Braille document table recognition result is obtained by permuting and combining the cell logical structure, the position of each cell and the characters contained in each cell. Exemplarily, the Braille document table recognition result may be a Chinese document table in XML format.

[0074] The present invention provides a Braille document table recognition method based on a key point detection method, a dual grouping method and a cell enhancement. The key point detection method is used to detect table cells in a Braille document, and the significant features of the Braille table are captured. The dual grouping method is used to improve the speed of the merging step of the detection points, and the detection speed and recognition effect of the Braille document table are improved. The cell enhancement is used to add the features of the cell detection to the character recognition process, and the interference of non-semantic Braille characters is eliminated, and the problem of adhesion of the table detection frame is avoided. At the same time, it is used to optimize the post-processing of character recognition and improve the recognition accuracy of the characters in the Braille document.

[0075] Figure 3 is a structural diagram of a Braille document table recognition system provided by an embodiment of the present invention, the system is used to execute a Braille document table recognition method described in the above embodiment, such as Figure 3 As shown, the system includes the following modules:

[0076] A key point determination module is used to obtain a braille document image to be identified, and determine the cell vertices and center points of the braille document table in the braille document image to be identified by a key point detection method;

[0077] A cell reconstruction module, connected to the key point determination module, is used to reconstruct the cell position and the cell logical structure based on the cell vertices and center points of the Braille document table through a dual grouping method;

[0078] A character recognition module, connected to the cell reconstruction module, is used to enhance the image of the Braille document to be recognized according to the cell position, and perform character recognition based on the enhanced image of the Braille document to be recognized;

[0079] The table recognition module is connected with the cell reconstruction module and the character recognition module, and is used to obtain the Braille document table recognition result according to the cell logical structure and the character recognition result.

[0080] It should be noted that the terms used in the present invention are only for describing specific embodiments, rather than limiting the scope of the present application. As shown in the present specification, unless the context clearly indicates an exception, the words "one", "a", "a kind of" and / or "the" do not specifically refer to the singular, but may also include the plural. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or device. In the absence of more restrictions, the elements defined by the sentence "include one..." do not exclude the presence of other identical elements in the process, method or device including the elements.

[0081] It should also be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.

Claims

1. A method for recognizing a table in a Braille document, characterized in that: The steps include: S1. Obtain a braille document image to be identified, and determine the cell vertices and center points of the braille document table in the braille document image to be identified by a key point detection method; S11, establishing an XY coordinate system with the lower left corner of the image of the braille document to be recognized as the coordinate origin; S12, inputting the image of the braille document to be recognized into a pre-trained first convolutional neural network to obtain visual features of the image of the braille document to be recognized; S13, inputting the visual features of the braille document image to be identified into a pre-trained second convolutional neural network, and obtaining a set of cell vertices and a set of cell center points of the braille document table in the braille document image to be identified; wherein the elements in the set of cell vertices are the coordinate values ​​of each vertex in the XY coordinate system of the braille document image to be identified, and the elements in the set of cell center points are the coordinate values ​​of each center point in the XY coordinate system of the braille document image to be identified; S2. Reconstructing the cell position and the cell logical structure based on the cell vertices and center points of the Braille document table through a dual grouping method; S21, determining the vertex circumscribed frames of the vertices of each cell and the center point circumscribed frame of the center point of each cell of the Braille document table; S22, determining the intersection relationship between the circumscribed frames of each vertex and the circumscribed frames of each center point; S23, using a dual grouping method, determining the correspondence between each center point and each vertex according to the intersection relationship between the external bounding box of each vertex and the external bounding box of each center point, obtaining a cell coordinate set, and determining the coordinates of each cell; wherein the elements in the cell coordinate set are the coordinate values ​​of each cell in the XY coordinate system of the braille document image to be recognized, and each element includes the coordinate values ​​of four vertices corresponding to the cell; S24, reconstructing the cell position according to the coordinates of each cell, and determining the cell logical structure according to the cell position; wherein the cell logical structure includes the cell logical row and the cell logical column; S3, enhancing the image of the to-be-recognized Braille document according to the cell position, and performing character recognition based on the enhanced image of the to-be-recognized Braille document; S4. Obtaining a Braille document table recognition result according to the cell logical structure and the character recognition result.

2. A Braille document table recognition method according to claim 1, characterized in that: The step S21 of determining the vertex circumscribed frames of the vertices of each cell of the Braille document table and the center point circumscribed frames of the center points of each cell includes: S211, based on the center point set, taking the center point of the cell as the center point of the center point circumscribed frame, taking the length value of the cell as the length value of the center point circumscribed frame, taking the width value of the cell as the width value of the center point circumscribed frame, and obtaining the center point circumscribed frame of each center point; S212 . Based on the vertex set, take the vertex of the cell as the center point of the vertex circumscribed frame, draw a circle according to a preset radius, and obtain the vertex circumscribed frame of each vertex.

3. A Braille document table recognition method according to claim 1, characterized in that: The step S3, enhancing the image of the to-be-recognized Braille document according to the cell position, and performing character recognition based on the enhanced image of the to-be-recognized Braille document, comprises: S31, adding a mask to the image of the braille document to be recognized according to the cell position, to obtain an enhanced image of the braille document to be recognized; S32. Input the enhanced Braille document image to be recognized into a pre-trained Braille character recognition model to obtain a character set; wherein the elements in the character set are the coordinate values ​​of each character in the XY coordinate system of the Braille document image to be recognized, and the content of each character.

4. A Braille document table recognition method according to claim 3, characterized in that: The step S4, obtaining a Braille document table recognition result according to the cell logical structure and the character recognition result, comprises: S41, determining the characters contained in each cell according to the cell coordinate set and the character symbol set, and removing the characters overlapping with the frame line of the cell; S42. Obtain a Braille document table recognition result according to the cell logical structure and the characters contained in each cell.

5. A Braille document table recognition system, used to execute a Braille document table recognition method according to any one of claims 1 to 4, characterized in that: The system includes the following modules: A key point determination module is used to obtain a braille document image to be identified, and determine the cell vertices and center points of the braille document table in the braille document image to be identified by a key point detection method; A cell reconstruction module, connected to the key point determination module, for reconstructing the cell position and the cell logical structure based on the cell vertices and center points of the Braille document table through a dual grouping method; A character recognition module, connected to the cell reconstruction module, for enhancing the image of the to-be-recognized Braille document according to the cell position, and performing character recognition based on the enhanced image of the to-be-recognized Braille document; The table recognition module is connected to the cell reconstruction module and the character recognition module, and is used to obtain a Braille document table recognition result according to the cell logical structure and the character recognition result.

Citation Information

Patent Citations

  • Braille image automatic identification method and system based on deep learning

    CN110298236A

  • Two-stage braille detection and identification method based on target detection

    CN114565926A