Table extraction system and method based on power grid information

By using encoders and decoders to extract table features in the table extraction system, and combining morphological operations and edge detection to repair masks, the problem of blanks and line breaks in table processing is solved, and more efficient and accurate table unit detection and Identify.

CN118537876AActive Publication Date: 2024-08-23CENT CHINA BRANCH OF STATE GRID CORP OF CHINA +1

Patent Information

Application Number
CN202410527286.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-08-23
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

When the existing technology processes tables, the information is not precise enough, and there are internal blanks and line breaks, resulting in inconsistent distribution of rows and columns and the overall table, making it difficult to accurately detect and extract table cells.

Method used

A table extraction system based on power grid information is designed. The encoder is used to extract table features, the preliminary mask is obtained through the row extraction decoder and the column extraction decoder, and a repair method combining morphological operations and edge detection is used to repair the mask. Repair is performed to obtain row and column masks with fully effective coverage, intersection processing is performed to obtain cells, and finally cell text is recognized.

Benefits of technology

It effectively solves the problem of blanks and line breaks in table processing, improves the accuracy and efficiency of table processing, enables more precise extraction of table units, and enhances the accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537876A
    Figure CN118537876A
Patent Text Reader

Abstract

The invention discloses a form extraction system and method based on power grid information. Comprising the following steps: dividing a training set from a preprocessed picture containing a table; a table information extraction model is trained through the training set, a trained table information extraction model is obtained, and the table information extraction model comprises an encoder, a decoder, a mask repairing module, a cell obtaining module and a cell character recognition module; the decoder comprises a row extraction decoder and a column extraction decoder, and the mask repair module adopts a repair method combining morphological operation and edge detection to repair feature output of the decoder; the cell acquisition module is used for performing intersection processing on the repair features passing through the mask repair module to obtain cells; and inputting the table picture of the to-be-extracted information into the trained table information extraction model to obtain an extraction result of the table information. The problem of table inconsistency can be effectively solved, and meanwhile the table processing accuracy and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a table extraction system and method based on power grid information. Background Art

[0002] With the construction and development of new power systems, my country has successfully optimized the configuration of power energy. However, the increased complexity and flexibility of the new system have brought unprecedented arduous tasks to automated operation and maintenance. For example, the power system has become more and more complex, with a large number of paper documents, ledgers and other materials. The traditional document management method cannot effectively handle this huge and complex information system, resulting in inefficient information retrieval. In order to cope with this problem, it is very necessary to digitize the paper documents in the system. Digital solutions can effectively solve the retrieval problem, achieve more efficient and convenient information management and utilization, and provide strong support for the intelligent operation and maintenance of power systems. Through digitization, valuable information in the system can be better mined, operation and maintenance efficiency can be improved, potential risks can be reduced, and the safe and stable operation of the power system can be promoted. A considerable part of the documents in the power system are in the form of tables to accurately and efficiently convey information. However, compared with ordinary documents, the table part has a special and non-unique internal structure and content, which brings great challenges to its detection and identification.

[0003] Table processing has gone through three stages: heuristic methods, machine learning methods, and deep learning methods. Heuristic methods use clues such as chart layout structure and spatial features to detect tables. However, heuristic solutions are only applicable to table documents with specific layouts. Rules need to be adjusted for different tables, making it difficult to become a widely used solution. Machine learning methods have better versatility than heuristic methods, such as unsupervised clustering word segmentation learning methods, methods based on decision trees and SVM classifiers, joint distribution methods based on hidden Markov models, and methods based on KNN structural aggregation. Deep learning performs well in capturing the complex structural information of tables and extracting more and more useful positional features from images. Deep learning table detection can be divided into "target detection method" and "semantic segmentation method". The target detection method regards tables as natural objects, distinguishes tables from other text or graphic elements, and accurately determines their boundaries. Some studies are directly based on the general target detection framework, while the semantic segmentation method regards documents as natural images and assigns a category to each pixel, such as pictures, tables, and ordinary text. It has good performance in detecting and extracting tables in complex documents; however, the table processing methods in the above three stages are mostly targeted at the entire table rather than specific table cells. Usually, the overall information of the table is not detailed enough, and there are problems such as blanks and line breaks inside, which makes the distribution of rows and columns inconsistent with the overall table. Summary of the invention

[0004] The purpose of the present invention is to solve the problem that the processing method for the whole table in the prior art is not fine enough, there are blanks and line breaks inside, so that the distribution of rows and columns is inconsistent with the whole table, and thus a table extraction system and method based on power grid information are proposed. When constructing a table information extraction network, the system uses an encoder to extract table features, and obtains preliminary masks of rows and columns of the table through row extraction decoders and column extraction decoders. Since the boundaries of the preliminary masks of rows and columns are not accurate enough, a repair method combining morphological operations and edge detection is used to repair the preliminary masks of rows and columns to obtain masks of rows and columns that completely and effectively cover the text of the table, and then intersection processing is performed to obtain cells of each independent mask, and then the text in the cell is recognized. The present invention takes into account efficiency and speed when processing features, and effectively solves the problem that there are blanks and line breaks inside the table when processing the table, which makes the distribution of rows and columns inconsistent with the whole table, thereby improving the accuracy and efficiency of table processing.

[0005] To achieve this purpose, the present invention designs a table extraction system based on power grid information, which includes a data processing module, a model building module and an information extraction module;

[0006] The data processing module is used to preprocess the pictures containing tables in the historical power grid information, and divide the training set from the preprocessed pictures containing tables;

[0007] The model building module is used to train the table information extraction model with the training set to obtain a trained table information extraction model;

[0008] The information extraction module is used to input a table image of information to be extracted into a trained table information extraction model to obtain an extraction result of the table information.

[0009] Beneficial effects of the present invention:

[0010] The present invention constructs a table information extraction network including an encoder, a row extraction decoder, a column extraction decoder, a mask repair module, a cell acquisition module and a cell text recognition module, and takes into account both efficiency and speed when processing features. At the same time, after performing row feature extraction and column feature extraction to obtain preliminary masks of irregularly shaped rows and columns, a mask repair module is used to repair the preliminary masks of the rows and columns to obtain masks of the rows and columns that completely and effectively cover the text to be recognized, and intersection processing is performed on the masks of the rows and columns to obtain cells for recognizing the text therein. The present invention can effectively solve the problems of internal blanks, line breaks, and the inconsistency between the distribution of rows and columns and the overall table during table processing, thereby improving the accuracy and efficiency of table processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1It is a structural block diagram of a table extraction system based on power grid information of the present invention;

[0012] Figure 2 A flowchart of a table extraction method based on power grid information of the present invention;

[0013] Figure 3 It is a structural block diagram of a table information extraction model of the present invention;

[0014] Figure 4 A structural block diagram of a basic unit of an encoder of the present invention;

[0015] Figure 5 A structural block diagram of a basic unit of a decoder of the present invention;

[0016] Figure 6 A preliminary mask of the extracted columns in one embodiment of the present invention;

[0017] Figure 7 A structural block diagram of an electronic device of the present invention;

[0018] Figure 8 The column extraction result, the row extraction result, and the cell result obtained by the intersection of the two obtained in one embodiment of the present invention. DETAILED DESCRIPTION

[0019] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:

[0020] Example 1

[0021] A table extraction system based on power grid information, such as Figure 1 As shown, it includes a data processing module, a model building module and an information extraction module;

[0022] The data processing module is used to preprocess the pictures containing tables in the historical power grid information, and divide the training set from the preprocessed pictures containing tables;

[0023] The model building module is used to train the table information extraction model with the training set to obtain a trained table information extraction model;

[0024] The information extraction module is used to input a table image of information to be extracted into a trained table information extraction model to obtain an extraction result of the table information.

[0025] In the above technical solution, the system also includes a data acquisition module, which is used to collect pictures containing tables in historical power grid information.

[0026] In the above technical solution, the specific method for preprocessing the images containing tables in the historical power grid information is as follows: (1) Scaling: To address the problem of uneven image resolution, each image in the data set is enlarged to a resolution of 1024×1024 pixels. (2) Sharpening: Sharpening is used to make the boundaries of tables and columns more prominent, thereby enhancing the performance of detection and extraction. (3) Some images have noise, which affects the performance of detection. The embodiment of the present invention uses bilateral filtering for noise reduction processing, which reduces the noise while retaining the boundary information of the table itself as much as possible.

[0027] In the above technical solution, the data processing module also includes dividing a test set from the preprocessed pictures containing tables, and the division ratio of the training set to the test set is 4:1, generating 800 training pictures and 200 test pictures. In order to verify the trained model, it is also necessary to use the test set to test the trained table information extraction model.

[0028] In the above technical solution, the table information extraction model is as follows: Figure 3 As shown in FIG. 1 , it includes an encoder, a decoder, a mask repair module, a cell acquisition module and a cell text recognition module, wherein the decoder includes a row extraction decoder and a column extraction decoder. The principle of the table information extraction model is: the encoder is used to extract table features, and the row extraction decoder and the column extraction decoder are used to obtain the preliminary masks of the rows and columns of the table. However, the preliminary masks of the rows and columns have the problem of inaccurate boundaries. The columns extracted by the network are not regular and have irregular shapes, such as Figure 6 As shown, Figure 6 It is the preliminary mask of the column extracted by the network of the embodiment of the present invention. To solve this problem, the mask needs to be repaired; the mask repair module uses a repair method combining morphological operations and edge detection to repair the table feature output of the decoder. In this article, the table feature output refers to the preliminary masks of rows and columns obtained by the row extraction decoder and the column extraction decoder to ensure that there is no overlapping between adjacent row masks and column masks in the output, and eliminate false positive areas with too small areas; after passing through the mask repair module, masks of rows and columns that completely and effectively cover the text in the table are obtained, and intersection processing is performed in the cell acquisition module to obtain cells with each independent mask; the cell text recognition module recognizes the text in the cell.

[0029] In the above technical solution, the encoder is composed of a cascade of several encoder basic units, and the encoder basic unit is composed of a residual unit and a reverse residual unit connected in series; the decoder is composed of a cascade of several decoder basic units, and the decoder basic unit is composed of a residual unit and a reverse residual unit connected in series.

[0030] In the above technical solution, the residual block of the residual unit includes three convolutional layers connected in series and a ReLU activation function, and the input of the residual block of the residual unit of the current layer is added to the output of the residual block of the residual unit of the current layer through a jump connection; the residual block of the reverse residual unit includes three convolutional layers connected in series, and the input of the residual block of the reverse residual unit of the current layer is added to the output of the residual block of the reverse residual unit of the current layer through a jump connection.

[0031] In the above technical solution, the convolution kernels of the three convolution layers in the residual block of the residual unit are 1×1, 3×3, and 1×1, respectively. The frontmost 1×1 convolution reduces the number of channels to reduce the amount of calculation. The middle 3×3 convolution makes the output have a larger receptive field and better extracts features. The final 1×1 convolution increases the number of channels, and the ReLU activation function is located behind the convolution layer with a convolution kernel of 3×3.

[0032] In the above technical solution, the convolution kernels of the three convolution layers in the residual block of the inverse residual unit are 1×1, 3×3, and 3×3 respectively. They are first expanded by 1×1 convolution, then 3×3 depth-separable convolution is used, and finally 3×3 convolution is used to reduce the number of channels so that input and output can be added.

[0033] Preferably, a pooling layer is included between the residual unit and the reverse residual unit of the encoder basic unit, and a pooling layer is also included after the reverse residual unit of the encoder basic unit, such as Figure 4 As shown, it is used to reduce spatial resolution and retain salient features.

[0034] Preferably, the residual unit and the inverse residual unit of the basic unit of the decoder contain a deconvolution layer in the middle, and the residual unit of the basic unit of the decoder also contains a deconvolution layer in front, such as Figure 5 As shown, it is used to restore the spatial resolution.

[0035] By extracting features through residual units and inverse residual units, nonlinear mapping is introduced, which helps the network learn more complex feature representations while controlling the complexity of the model without introducing too many parameters. In order to reduce network parameters and reduce computational complexity, the embodiment of the present invention also adopts the Efficient structure, which is a new model scaling method that uses a simple and efficient composite coefficient to enlarge CNNs in a more structured way. Unlike traditional methods that arbitrarily scale network dimensions such as width, depth, and resolution, this method uses a series of fixed scale scaling coefficients to uniformly scale network dimensions.

[0036] In the above technical solution, the encoder is composed of five encoder basic units connected in cascade, and the decoder is composed of five decoder basic units connected in cascade.

[0037] In the above technical solution, the specific method of the mask repair module using a repair method combining morphological operation and edge detection to repair the table feature output of the decoder is:

[0038] (1) performing a 3×3 morphological corrosion operation on the table feature output of the decoder to eliminate small false positive areas and obtain a first mask;

[0039] (2) performing a 3×3 morphological dilation operation on the first mask to obtain a repair mask to fill the correct area eliminated by corrosion;

[0040] (3) Repeat the above steps (1)-(2) for the repaired mask obtained by each morphological dilation operation, repeat three times, and obtain a second mask;

[0041] (4) Since the mask boundary is still not regular enough, edge and line-based contour detection is performed on the second mask to obtain repair features, that is, the final masks of rows and columns, thereby realizing mask repair.

[0042] Preferably, in order to speed up the processing speed, steps (1)-(3) adopt the efficient morphological processing algorithm mentioned in the document "Efficient dilation, erosion, opening, and closing algorithms", which greatly speeds up the processing speed while ensuring the effect.

[0043] In the above technical solution, after passing through the mask repair module, masks of rows and columns that completely and effectively cover the text in the table are obtained, and then the masks of the rows and columns are subjected to intersection processing in the cell acquisition module to obtain cells with independent masks.

[0044] In the above technical solution, the cell text recognition module recognizes the text in the cell. In a specific implementation, the cell text recognition module can use the Tesseract optical character recognition engine for character recognition. However, if the default Chinese language library is directly used, the recognition rate is limited. Therefore, in order to improve the recognition rate, it is often necessary to retrain the model to make a language library. Specifically, the steps for making a language library in this article are as follows:

[0045] (1) First, collect image samples of commonly used Chinese characters in the table to prepare for training the Tesseract model. High-frequency characters need to have more than 20 samples, and low-frequency characters need to have more than 10 samples. If there are different fonts, the samples should also be increased accordingly. Then, the font sample images are integrated into a TIFF image set for training through the jTessBoxEditor tool;

[0046] (2) Generate a character detection box file. Each text character in the image is located and represented by an external rectangular box. This can be generated by Tesseract's batch.nochop makebox command. The result is a box file, which is in the same directory as the TIFF image set by default.

[0047] (3) Correct the errors in the Box file. Due to the limited original recognition rate of Tesseract, the character boundaries in the Box file are not accurate and need to be manually marked for correction. By selecting the previous TIFF image set through jTessBoxEditor, the positioning results in step (2) can be presented. You can then use Merge, Split, Insert, and Delete to merge, separate, add, and delete character boxes to modify the default Box file;

[0048] (4) Calculate the character set and generate a Unicharset file. This file contains information about all characters in the training data and is part of the Tesseract new character library language, which can be used for Tesseract OCR training;

[0049] (5) Generate a font feature file. Considering that the fonts used in paper documents in actual applications may be different, a file recording font attributes is generated. Create a font.txt file and fill it with content in the format of <fontname> <italic> <bold> <fixed> <serif> <fraktur>, where "fontname" is the name of the font. In the value of each attribute, 1 represents the attribute, and 0 represents the attribute not;

[0050] (6) Generate and aggregate tr training files to obtain the .traineddata dictionary. This step is used to generate a dictionary file. First, use the "tesseract image_name.tiff nobatch box.train" command to generate a tr file, and then use the "mftraining" command to add the font feature file to the .tr file; then use the cntraining command to aggregate the font files, and finally use the "combine_tessdata" command to merge all files to obtain the final dictionary file.

[0051] In the above technical scheme, the trained table information extraction model includes a trained encoder, a trained decoder, a trained mask repair module, a trained cell acquisition module and a trained cell text recognition module; wherein the trained decoder is used to extract table features, and the trained mask repair module uses a repair method combining morphological operations and edge detection to repair the table feature output; the trained cell acquisition module performs intersection processing on the repair features after the trained mask repair module to obtain cells; the trained cell text recognition module recognizes the text in the cell.

[0052] Example 2

[0053] A table extraction method based on power grid information, such as Figure 2 As shown, it includes the following steps:

[0054] Preprocessing the pictures containing tables in the historical power grid information, and dividing the training set from the preprocessed pictures containing tables;

[0055] The table information extraction model is trained using the training set to obtain a trained table information extraction model.

[0056] The table image of the information to be extracted is input into the trained table information extraction model to obtain the extraction result of the table information.

[0057] Example 3

[0058] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0059] Example 4

[0060] A computer program product comprises a computer program, wherein the computer program implements the steps of the above method when executed by a processor.

[0061] Example 5

[0062] An electronic device includes at least one processor, a memory and a communication bus, such as Figure 7 As shown; wherein a computer program is stored in the memory, the computer program includes computer-readable instructions, and the processor calls the computer-readable instructions stored in the memory through a communication bus to execute the steps of the above method.

[0063] Example 6

[0064] The method of the present invention was used to train on the Extended dataset and tested on the Marmot dataset and ICDAR2013 dataset. The Extended dataset is an extended dataset used to train neural networks. The Marmot dataset is recognized as the first large dataset in the field of table detection. The ICDAR2013 dataset is a public evaluation set for handwritten Chinese text recognition competition. The training was performed on a cloud server with 16GB RAM and Nvidia Tesla P100 GPU using the PyTorch platform. The training used the Adam optimizer, with β1=0.9, β2=0.999, ∈=10 -8 , the batch size is 2. In addition, the cross entropy loss function and the Dice loss function are used for driver training, and the total loss function is the mean of the two branch loss functions.

[0065] like Figure 8 As shown, the column extraction result, row extraction result, and cell result obtained by the intersection of the two obtained by the method of the present invention are shown in FIG. It can be seen that the method of this article accurately extracts the external frame of each table cell, which is convenient for subsequent text recognition.

[0066] Example 7

[0067] The method of the present invention is also compared with some existing methods in terms of performance, including:

[0068] Method 1: The method mentioned in the paper "Learning to Extract Semantic Structure from Documents Using Multimodal Fully Convolutional Neural Network";

[0069] Method 2: The method mentioned in the paper "Multi-Scale Multi-Task FCN for Semantic Page Segmentation and Table Detection";

[0070] Method 3: The method mentioned in the paper "Hybridtabnet: Towards better table detection in scanned document images";

[0071] Method 4: The method mentioned in the paper "Deepdesrt: Deep learning for detection and structure recognition of tables in document images";

[0072] Method 5: The method mentioned in the paper "Decnt: Deep deformable cnn for table detection";

[0073] Method 6: The method mentioned in the paper "Tablenet: Deep learning model for end-to-end table detection and tabular data extraction from scanned document images";

[0074] Method 7: The method mentioned in the paper “Table detection from document image using vertical arrangement of text blocks”.

[0075] The comparison indicators are precision (Acc), recall (Recall) and F1 score. The calculation method is:

[0076]

[0077]

[0078]

[0079] Among them, TP is the positive example that is correctly classified; FP is the negative example that is wrongly classified as a positive example; FN is the negative example that is correctly classified.

[0080] Table 1 Performance comparison of Mormat dataset

[0081] Accuracy Recall F1 score Method 1 0.910 0.922 0.916 Method 2 0.914 0.927 0.920 Method 3 0.933 0.930 0.931 Method 4 / / / Method 5 0.849 0.946 0.895 Method 6 0.898 0.910 0.884 Method 7 / / / Method of the present invention 0.959 0.938 0.948

[0082] Table 2 Performance comparison of ICDAR2013 dataset

[0083] Accuracy Recall F1 score Method 1 0.956 0.957 0.956 Method 2 0.947 0.961 0.954 Method 3 0.960 0.965 0.962 Method 4 0.974 0.961 0.967 Method 5 0.945 0.996 0.972 Method 6 0.954 0.950 0.943 Method 7 0.952 0.963 0.957 Method of the present invention 0.975 0.969 0.972

[0084] Table 1 and Table 2 show the performance of the above methods on the Mormat and ICDAR datasets, respectively. The results show that the method of the present invention achieves more accurate detection results than the existing methods, and achieves the highest accuracy on the Mormat dataset, which is 0.26 higher than method 3; the recall rate is second only to method 5, and the comprehensive index F1 is the highest, which is 0.017 higher than method 3. On the ICDAR2013 dataset, the precision rate is the highest, the recall rate is second only to method 5, and the comprehensive index F1 is tied for first place with method 5. However, the precision and recall rate of method 5 are not balanced enough, and its recall rate is close to 1, but the precision rate is only 0.945. Therefore, in summary, the method proposed in this paper is more comprehensive and balanced.

[0085] After performing row feature extraction and column feature extraction to obtain preliminary masks of irregularly shaped rows and columns, the present invention uses a repair method combining morphological operations and edge detection to repair the preliminary masks of rows and columns, obtains masks of rows and columns that completely and effectively cover the text in the table, then performs intersection processing to obtain cells of each independent mask, and then recognizes the text in the cell. The present invention effectively solves the problem of internal blanks and line breaks during table processing, which makes the distribution of rows and columns inconsistent with the overall table, and at the same time improves the accuracy and efficiency of table processing.

[0086] 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 its protection scope. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that after reading the present invention, those skilled in the art can still make various changes, modifications or equivalent substitutions to the specific implementation methods of the invention, but these changes, modifications or equivalent substitutions are all within the protection scope of the pending claims of the invention.

[0087] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.

Claims

1. A table extraction system based on power grid information, characterized in that: It includes data processing module, model building module and information extraction module; The data processing module is used to preprocess the pictures containing tables in the historical power grid information, and divide the training set from the preprocessed pictures containing tables; The model building module is used to train the table information extraction model with the training set to obtain a trained table information extraction model; The information extraction module is used to input a table image of information to be extracted into a trained table information extraction model to obtain an extraction result of the table information.

2. The table extraction system according to claim 1, characterized in that: The table information extraction model includes an encoder, a decoder, a mask repair module, a cell acquisition module and a cell text recognition module; The decoder includes a row extraction decoder and a column extraction decoder, the decoder is used to extract table features, the mask repair module uses a repair method that combines morphological operations and edge detection to repair the table feature output of the decoder; the cell acquisition module performs intersection processing on the repair features after passing through the mask repair module to obtain cells; the cell text recognition module recognizes the text in the cell.

3. The table extraction system according to claim 1, characterized in that: The trained table information extraction model includes a trained encoder, a trained decoder, a trained mask repair module, a trained cell acquisition module and a trained cell text recognition module; Among them, the trained decoder is used to extract table features, the trained mask repair module adopts a repair method combining morphological operations and edge detection to repair the table feature output; the trained cell acquisition module performs intersection processing on the repair features after the trained mask repair module to obtain cells; the trained cell text recognition module recognizes the text in the cell.

4. The table extraction system according to claim 2, characterized in that: The encoder is composed of a plurality of encoder basic units connected in cascade, and the encoder basic unit is composed of a residual unit and an inverse residual unit connected in series; The decoder is composed of a plurality of decoder basic units connected in cascade, and the decoder basic unit is composed of a residual unit and an inverse residual unit connected in series; The residual block of the residual unit includes three convolutional layers in series and a ReLU activation function. The input of the residual block of the residual unit of the current layer is added to the output of the residual block of the residual unit of the current layer through a skip connection. The residual block of the reverse residual unit includes three convolutional layers connected in series, and the input of the residual block of the reverse residual unit of the current layer is added to the output of the residual block of the reverse residual unit of the current layer through a skip connection.

5. The table extraction system according to claim 4, characterized in that: A pooling layer is included between the residual unit and the reverse residual unit of the encoder basic unit, and a pooling layer is also included after the reverse residual unit of the encoder basic unit; A deconvolution layer is included between the residual unit and the inverse residual unit of the basic unit of the decoder, and a deconvolution layer is also included in front of the residual unit of the basic unit of the decoder.

6. The table extraction system according to claim 5, characterized in that: The convolution kernels of the three convolution layers in the residual block of the residual unit are 1×1, 3×3, and 1×1 respectively, and the ReLU activation function is located after the convolution layer with a convolution kernel of 3×3; The convolution kernels of the three convolutional layers in the residual block of the reverse residual unit are 1×1, 3×3, and 3×3 respectively.

7. The table extraction system according to claim 1, characterized in that: The data processing module also includes dividing a test set from the preprocessed pictures containing tables, and the division ratio of the training set to the test set is 4:

1.

8. The table extraction system according to claim 1, characterized in that: The specific method of the mask repair module using a repair method combining morphological operation and edge detection to repair the table feature output of the decoder is: Performing a morphological erosion operation on the table feature output of the decoder to obtain a first mask; performing a morphological dilation operation on the first mask to obtain a repair mask; Repeat the above operation for each repair mask obtained by morphological dilation operation, repeat it 3 times, and get the second mask; The second mask is subjected to edge and line-based contour detection to obtain repair features.

9. A method for extracting grid information from a table based on the system of claim 1, characterized in that: It includes the following steps: Preprocessing the pictures containing tables in the historical power grid information, and dividing the training set from the preprocessed pictures containing tables; Using the training set to train the table information extraction model to obtain a trained table information extraction model; The table image of the information to be extracted is input into the trained table information extraction model to obtain the extraction result of the table information.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to claim 9 are implemented.

Citation Information

Patent Citations

  • Table identification method and device, terminal and storage medium

    CN113505762A

  • Small sample image data expansion method based on adversarial enhancement

    CN114004295A

  • Table structure identification method based on image instance segmentation

    CN115331245A

  • Deep learning based table detection and associated data extraction from scanned image documents

    US20220319217A1

  • Video decoding method and device, video encoding method and device, and storage medium

    WO2023039856A1

Cited By

  • CAD table information reading method and device, computer equipment and medium

    CN118762376A