A digital processing method based on archive files

Through the combination of CTPN and CRNN network models, the problem of text positioning and character recognition in paper archives is solved, efficient digital processing of paper archives is realized, and the utilization rate and management efficiency of archive information are improved.

CN113947778BActive Publication Date: 2024-10-15JUNHONG TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111184582.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-12
Publication Date
2024-10-15
Estimated Expiration
2041-10-12

AI Technical Summary

Technical Problem

In the digital processing of paper archives, there are difficulties in text positioning and character recognition, especially the complexity of handwritten characters, which leads to low recognition efficiency and cannot effectively improve the utilization and management efficiency of paper archives.

Method used

The CTPN network model is used for text positioning, the CRNN neural network model is used to extract characters, and a data warehouse is established through ETL processing, which improves the utilization rate and management efficiency of paper archive information. Specific steps include: preprocessing images, performing corrosion and expansion operations, intercepting partial images, filling them into tables, scheduling ETL jobs and dividing data, merging calculation results, and saving them to the database.

Benefits of technology

It improves the utilization rate and management efficiency of paper archive information and improves the identification efficiency. Especially in the ETL process, parallel execution of tasks improves the utilization rate of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113947778B_ABST
    Figure CN113947778B_ABST
Patent Text Reader

Abstract

The present invention discloses a processing method based on the digitization of archive files. The method intercepts a local image of the image to be extracted according to a table outline, performs text positioning according to a CTPN network model, extracts characters in the local image using a CRNN neural network model, fills the characters into a table, obtains an electronic table, performs ETL processing on the electronic table, establishes a data warehouse, and improves the utilization rate and management efficiency of paper archive information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field:

[0001] The present invention relates to the electronicization of archive files, and in particular to a digital processing method based on archive files. Background technology:

[0002] At present, the main tasks of paper archive digitization can be divided into two parts: text positioning and character recognition. Correctly positioning the text position is the premise of the recognition task, but the position of the data in the paper archive material is not fixed, and the distribution is uneven, so it is impossible to extract it according to the fixed position. In addition, the text target is small, there are gaps between characters, and the edges are not obvious, so it is easy to miss or miss. At the same time, character recognition tasks can be divided into handwritten character recognition and printed character recognition, and handwritten character recognition can be divided into online recognition and offline recognition. Handwritten characters are affected by factors such as each person's pen method, writing habits, and cultural background. The written characters vary greatly and are difficult to recognize. Offline recognition refers to converting paper text information into image information for rapid recognition through scanning instruments such as scanners, and is mostly used for neat and clear printed character recognition. Paper archive digitization belongs to offline recognition, but the complexity of handwritten characters increases the difficulty of recognition. How to improve the recognition efficiency of paper archives and realize the digital management of archives has become an urgent problem to be solved. Summary of the invention:

[0003] Aiming at the problem that the utilization rate of existing paper archives is low and the complexity of handwritten characters increases the difficulty of recognition, the present invention proposes to intercept a partial image of the image to be extracted according to the outline of the table, use the CTPN network model to locate the text, use the CRNN neural network model to extract the characters in the partial image, fill the characters into the table, obtain an electronic table, perform ETL processing on the electronic table, establish a data warehouse, and improve the utilization rate and management efficiency of paper archive information.

[0004] The technical solution adopted by the present invention to solve the above technical problems is: the method comprises:

[0005] S1, using a first device to collect paper archive images, and preprocessing the archive images to obtain images to be extracted,

[0006] S2, performing N*1 and 1*N corrosion and dilation operations on the image to be extracted respectively, and obtaining a table in the image to be extracted after fusion,

[0007] S3, intercepting a partial image of the image to be extracted according to the outline of the table, using the CTPN network model to locate the text, using the CRNN neural network model to extract characters in the partial image, filling the characters into the table, and obtaining an electronic table,

[0008] S4, associating the electronic form with the paper file image and saving it,

[0009] S5, sending the electronic form to the ETL job execution request job scheduling node,

[0010] S6: The job scheduling node obtains metadata information of the electronic form ETL job.

[0011] S7, determining whether the electronic form ETL job needs data partitioning, if not, directly assigning the electronic form ETL job to the node with the strongest computing power to run, otherwise the job scheduling node collects information of all available computing nodes and calculates the partitioning scheme of the electronic form ETL job according to the load information;

[0012] S8. Send an execution message to the selected N computing nodes according to the division scheme; wait for the N computing nodes to execute the assigned tasks and return an execution completion message;

[0013] S9, merging the calculation results of the partitioning scheme;

[0014] S10, the calculation result and the paper archive image are associated and saved in a target database.

[0015] Optionally, the method of using a first device to capture a paper archival image and preprocessing the archival image to obtain an image to be extracted includes: the first device is a scanner or a camera, and the preprocessing includes noise reduction filtering, angle correction, and binarization.

[0016] Optionally, the noise reduction filter is a bilateral filter model: the original paper file image is F, and the filtered image is

[0017] in

[0018] F(i, j) is the grayscale value of the field pixel (i, j), Z is the filter size, the filter field size is (Z+1)*(Z+1), W(a, b, i, j) is the filter weight coefficient; U(a, b, i, j) is the spatial kernel function, and R(a, b, i, j) is the grayscale kernel function; where ε u , ε R are the spatial proximity factor and grayscale similarity factor respectively, and F(a, b) is the grayscale value of the center pixel (a, b).

[0019] Optionally, the angle correction includes: obtaining four vertices of the table in the scanned image, setting a rotation center, a rotation angle and a rotation direction, connecting the vertices and the rotation center, and moving the vertices according to the rotation angle and the rotation direction to obtain a corrected table image.

[0020] Optionally, in the text positioning according to the CTPN network model, the CTPN network includes a VGG-16 feature extraction network, a BLSTM network, and a fully connected layer in sequence.

[0021] Optionally, in the extraction of characters from the local image using a CRNN neural network model, during the execution of the CRNN neural network, CNN is first used to automatically extract image features, and then the extracted features are sent to RNN to extract sequence features.

[0022] Optionally, in the partitioning scheme for calculating the electronic form ETL job according to load information, the load information model is: Where Load(N) represents the load rate of node N, cpu, ram, and task represent the load index values ​​of CPU utilization, memory utilization, and ready queue length respectively, and w cpu , w ram , w task Indicates the weights of the load indicators of CPU utilization, memory utilization, and ready queue length, respectively.

[0023] Optionally, the calculation result and the paper archive image are associated and saved in a target database, and the paper archive image is saved in the target database for subsequent verification.

[0024] Optionally, the computing node is a computer or an FPGA.

[0025] The beneficial effects of the present invention are as follows:

[0026] A partial image of the image to be extracted is captured according to the outline of the table, text positioning is performed using the CTPN network model, and characters in the partial image are extracted using the CRNN neural network model. The characters are filled into the table to obtain an electronic form, and the electronic form is subjected to ETL processing to establish a data warehouse, thereby improving the utilization rate and management efficiency of paper archive information. At the same time, in the ETL process, under the conditions of computing power and task divisibility, ETL tasks are executed in parallel, which also improves the execution efficiency of ETL tasks.

[0027] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above description and other purposes, features and advantages of the present invention more obvious and easy to understand, the preferred embodiments are specifically cited and described in detail as follows. Description of the drawings:

[0028] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0029] Figure 1 Flow chart of the digital processing method based on archival documents Specific implementation method:

[0030] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0031] In the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be connected, detachably connected, or integrated; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0032] Example 1

[0033] Methods include:

[0034] S1, using a first device to collect paper archive images, and preprocessing the archive images to obtain images to be extracted,

[0035] S2, performing N*1 and 1*N corrosion and dilation operations on the image to be extracted respectively, and obtaining a table in the image to be extracted after fusion,

[0036] S3, intercepting a partial image of the image to be extracted according to the outline of the table, using the CTPN network model to locate the text, using the CRNN neural network model to extract characters in the partial image, filling the characters into the table, and obtaining an electronic table,

[0037] S4, associating the electronic form with the paper file image and saving it,

[0038] S5, sending the electronic form to the ETL job execution request job scheduling node,

[0039] S6: The job scheduling node obtains metadata information of the electronic form ETL job.

[0040] S7, determining whether the electronic form ETL job needs data partitioning, if not, directly assigning the electronic form ETL job to the node with the strongest computing power to run, otherwise the job scheduling node collects information of all available computing nodes and calculates the partitioning scheme of the electronic form ETL job according to the load information;

[0041] S8. Send an execution message to the selected N computing nodes according to the division scheme; wait for the N computing nodes to execute the assigned tasks and return an execution completion message;

[0042] S9, merging the calculation results of the partitioning scheme;

[0043] S10, the calculation result and the paper archive image are associated and saved in a target database.

[0044] Optionally, the method of using a first device to capture a paper archival image and preprocessing the archival image to obtain an image to be extracted includes: the first device is a scanner or a camera, and the preprocessing includes noise reduction filtering, angle correction, and binarization.

[0045] Optionally, the noise reduction filter is a bilateral filter model: the original paper file image is F, and the filtered image is

[0046] in

[0047] F(i, j) is the grayscale value of the field pixel (i, j), Z is the filter size, the filter field size is (Z+1)*(Z+1), W(a, b, i, j) is the filter weight coefficient; U(a, b, i, j) is the spatial kernel function, and R(a, b, i, j) is the grayscale kernel function; where ε u , ε R are the spatial proximity factor and grayscale similarity factor respectively, and F(a, b) is the grayscale value of the center pixel (a, b).

[0048] Optionally, the angle correction includes: obtaining four vertices of the table in the scanned image, setting a rotation center, a rotation angle and a rotation direction, connecting the vertices and the rotation center, and moving the vertices according to the rotation angle and the rotation direction to obtain a corrected table image.

[0049] Optionally, in the text positioning according to the CTPN network model, the CTPN network includes a VGG-16 feature extraction network, a BLSTM network, and a fully connected layer in sequence.

[0050] Optionally, in the extraction of characters from the local image using a CRNN neural network model, during the execution of the CRNN neural network, CNN is first used to automatically extract image features, and then the extracted features are sent to RNN to extract sequence features.

[0051] Optionally, in the partitioning scheme for calculating the electronic form ETL job according to load information, the load information model is: Where Load(N) represents the load rate of node N, cpu, ram, and task represent the load index values ​​of CPU utilization, memory utilization, and ready queue length respectively, and w cpu , w ram , w task Indicates the weights of the load indicators of CPU utilization, memory utilization, and ready queue length, respectively.

[0052] Optionally, the calculation result and the paper archive image are associated and saved in a target database, and the paper archive image is saved in the target database for subsequent verification.

[0053] Optionally, the computing node is a computer or an FPGA.

[0054] Example 2

[0055] The method can also be:

[0056] S1. Collect paper archive images;

[0057] S2, obtain electronic forms;

[0058] S3, electronic form ETL operation;

[0059] S4. Save the electronic spreadsheet ETL results to the target data warehouse.

[0060] The advantages of the present invention are:

[0061] A partial image of the image to be extracted is captured according to the outline of the table, text positioning is performed using the CTPN network model, and characters in the partial image are extracted using the CRNN neural network model. The characters are filled into the table to obtain an electronic form, and the electronic form is subjected to ETL processing to establish a data warehouse, thereby improving the utilization rate and management efficiency of paper archive information. At the same time, in the ETL process, under the conditions of computing power and task divisibility, ETL tasks are executed in parallel, which also improves the execution efficiency of ETL tasks.

[0062] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for digital processing of archive files, It is characterized in that The following steps are involved: S1, using a first device to collect paper archive images, and preprocessing the archive images to obtain images to be extracted, S2, performing N*1 and 1*N corrosion and dilation operations on the image to be extracted respectively, and obtaining a table in the image to be extracted after fusion, S3, intercepting a partial image of the image to be extracted according to the outline of the table, using the CTPN network model to locate the text, using the CRNN neural network model to extract characters in the partial image, filling the characters into the table, and obtaining an electronic table, wherein the characters in the partial image are extracted using the CRNN neural network model, and during the execution of the CRNN neural network, CNN is first used to automatically extract image features, and then the extracted features are sent to RNN to extract sequence features; S4, associating the electronic form with the paper file image and saving it, S5, sending the electronic form to the ETL job execution request job scheduling node, S6: The job scheduling node obtains metadata information of the electronic form ETL job. S7, determining whether the electronic form ETL job needs data partitioning, if not, directly assigning the electronic form ETL job to the node with the strongest computing power to run, otherwise the job scheduling node collects information of all available computing nodes and calculates the partitioning scheme of the electronic form ETL job according to the load information; S8. Send an execution message to the selected N computing nodes according to the partitioning scheme; Waiting for the N computing nodes to execute the assigned tasks and return a message of completion of the execution; S9, merging the calculation results of the partitioning scheme; S10, associating the calculation result and the paper archive image and saving them in a target database; Including, associating and saving the calculation result and the paper archive image into a target database, and saving the paper archive image into the target database for subsequent verification; In the partitioning scheme for calculating the electronic form ETL job according to load information, the load information model is: Where Load(N) represents the load rate of node N, cpu, ram, and task represent the load index values ​​of CPU utilization, memory utilization, and ready queue length respectively, and w cpu ,w ram ,w task The weights of the load index values ​​representing the CPU utilization, the memory utilization and the ready queue length in turn; the computing node is an FPGA; The denoising filter is a bilateral filtering model: the original paper file image is F, and the filtered image is Where F(i,j) is the grayscale value of the field pixel (i,j), Z is the filter size, the filter field size is (Z+1)*(Z+1), W(a,b,i,j) is the filter weight coefficient; U(a,b,i,j) is the spatial kernel function, and R(a,b,i,j) is the grayscale kernel function; where ε u , ε R are the spatial proximity factor and grayscale similarity factor respectively, and F(a,b) is the grayscale value of the center pixel (a,b).

2. According to the method for digital processing of archive files as claimed in claim 1, Features: The method of using a first device to collect paper archive images and preprocessing the archive images to obtain images to be extracted includes: the first device is a scanner or a camera, and the preprocessing includes noise reduction filtering, angle correction, and binarization.

3. The method for digital processing of archive files according to claim 2, Features: The angle correction includes: obtaining four vertices of the table in the scanned image, setting a rotation center, a rotation angle and a rotation direction, connecting the vertices and the rotation center, and moving the vertices according to the rotation angle and the rotation direction to obtain a corrected table image.

4. The method for digital processing of archive files according to claim 1, Features: In the text positioning according to the CTPN network model, the CTPN network includes a VGG-16 feature extraction network, a BLSTM network, and a fully connected layer in sequence.