A system and method for converting archive images into high-definition processing

By designing an archive image to high-definition processing system, abnormalities or errors in batch processing are monitored and repaired in real time, the problem of single errors in batch processing is solved, and the accuracy and stability of the processing process is improved.

CN119155401BActive Publication Date: 2025-03-21BEIJING HANGXING YONGZHI TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411639872.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-03-21
Estimated Expiration
2044-11-18

AI Technical Summary

Technical Problem

During batch HD processing, if an image processing error occurs, it may affect the entire batch, so monitoring of exceptions or errors during batch processing becomes a key issue.

Method used

An archive image to high-definition processing system is designed, including acquisition module, classification processing module, high-definition processing module, exception monitoring and processing module, control module and repair module. The system monitors the high-definition processing process in real time, reports exceptions or errors in real time, and repairs the system through a repair module to ensure the accuracy and completeness of batch processing.

Benefits of technology

Real-time monitoring and repair of exceptions or errors in batch processing is realized, which improves the accuracy and stability of the processing process, and avoids the risk of failure of the entire batch due to a single error.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155401B_ABST
    Figure CN119155401B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of converting archive images to high definition, and specifically discloses a system and method for converting archive images to high definition, wherein the system comprises: an acquisition module, which is used to acquire image information of paper archives in a paper archive library as input data for processing, wherein the image information comprises archive images and image file sizes; a classification processing module, which is used to classify and process the archive images of paper archives according to the image file sizes, and obtain n groups of image files to be processed, wherein n≥1; a high definition processing module, which is used for high definition processing; an abnormality monitoring and processing module, which is used to monitor the processing process in real time during the high definition processing, and if an abnormality or error is found, the abnormality or error information is sent to a control module; and a control module, which is used to receive information from the abnormality monitoring and processing module, control the high definition processing module to start or stop the high definition processing, and control the repair module to repair the system. The present invention improves the stability of batch high definition processing of archive images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of archive management anti-tampering, and in particular to an archive image to high-definition processing system and method. Background Art

[0002] With the continuous advancement of technology, the use and preservation of electronic archival materials has become more and more common, but in some workplaces, such as government agencies, law firms, medical institutions, and libraries, the practice of working with paper archives is still retained.

[0003] During the management and preservation of paper archives, it is necessary to process the archive images through high-definition processing tools to ensure the clarity of the archive images. In order to increase the speed of high-definition processing, batch high-definition processing is generally used. However, during the batch high-definition processing, if an image processing error occurs, it may affect the entire batch. Therefore, monitoring of anomalies or errors during batch processing becomes a key issue. Summary of the invention

[0004] The purpose of the present invention is to provide a system and method for converting archive images into high-definition processing, which solves the following technical problems:

[0005] In the process of batch HD processing, if an error occurs in the processing of one image, it may affect the entire batch, so the monitoring of anomalies or errors in the batch processing process becomes a key issue.

[0006] The purpose of the present invention can be achieved through the following technical solutions:

[0007] A high-definition image processing system, the system comprising:

[0008] The acquisition module is used to acquire the image information of paper archives in the paper archive library as input data for processing, and the image information includes the archive image and the image file size;

[0009] A classification processing module is used to classify the archive images of paper archives according to the image file size to obtain n groups of image files to be processed, where n≥1;

[0010] A high-definition processing module, used for sequentially performing high-definition processing on n groups of images to be processed;

[0011] The abnormality monitoring and processing module is used to monitor the processing process in real time during the high-definition processing, report abnormalities or errors in real time, and send the abnormality or error information to the control module if abnormalities or errors are found;

[0012] A control module, used to receive information from the abnormal monitoring and processing module, control the high-definition processing module to start or stop high-definition processing, and control the repair module to repair the system;

[0013] The repair module is used to repair the system if an abnormality or error occurs.

[0014] Furthermore, the acquisition module includes:

[0015] A camera unit, used to take photos of paper archives or scan them to generate archive images;

[0016] A correction unit, used to automatically correct the bending or tilting of paper during the photographing or scanning process by using a preset correction algorithm;

[0017] The file size statistics unit is used to collect data statistics on the file size of each image.

[0018] Furthermore, the bending or tilting of the paper during the photographing or scanning process is automatically corrected by a preset correction algorithm, and the specific implementation steps include:

[0019] Use edge detection algorithm to detect the four corner points of the paper;

[0020] Use Hough transform to identify straight lines and find the edge of the paper from them, and extract four corner points in the source image from the detected edges;

[0021] The four corner points in the source image are mapped to the four target points in the target image through the perspective transformation matrix, where the calculation formula of the perspective transformation matrix is:

[0022]

[0023] in, is the perspective transformation matrix, , , Control the scaling, rotation and translation of the image in the x direction. , , Control the scaling, rotation and translation of the image in the y direction. , , Control the perspective effect in perspective transformation and the normalization of homogeneous coordinates;

[0024] The final formula for the perspective transformation matrix is:

[0025]

[0026] in, is a corner point in the source image, is a corner point in the target image;

[0027] The relationship equation between the corner points in the source image and the corner points in the target image is:

[0028]

[0029]

[0030] Solution :

[0031] .

[0032] Furthermore, the archive images of the paper archives are classified and processed according to the image file size to obtain n groups of image files to be processed, specifically including:

[0033] After classifying and marking the archive images according to a preset file size classification threshold and the file size of the acquired images, the archive images are divided into n groups according to the marks;

[0034] Obtain image processing time estimates of different file sizes based on historical processing data, estimate each group of archive images using the image processing time estimates of different file sizes to obtain n total processing time estimates, and calculate the time estimates used by the high-definition processing module in each group for each initial number of images;

[0035] Among them, the file size classification threshold is divided according to the image processing time estimation value of different file sizes obtained according to the historical processing data, and a judgment curve between the file size and the corresponding image high-definition processing time estimation value is drawn, and one or more file size classification thresholds are determined according to the judgment curve.

[0036] Furthermore, the high definition processing module includes:

[0037] A component unit, which divides a group of archive images to be processed from the n groups of archive images into a pre-set number, wherein the pre-set number is set according to the total size of each archive image file, so as to ensure that the total size of the archive image files in each group is within a preset range;

[0038] The batch processing unit batch processes each of a group of archive images to be processed at a time.

[0039] In one embodiment, the abnormality monitoring and processing module includes:

[0040] A time monitoring unit, used to monitor the actual value of the time taken by the high-definition processing module to process a preset number of images;

[0041] A difference calculation unit, used to calculate the difference between an actual value of the time taken to process a preset number of images and an estimated value of the time taken by the high-definition processing module in the corresponding image group to process an initially set number of images;

[0042] The judgment unit is used to judge whether the difference is within a preset reasonable threshold. If the difference is within the preset reasonable threshold, it is judged that there is no error or abnormality in the high-definition processing. If the difference is outside the preset reasonable threshold, it is judged that there is an error or abnormality in the high-definition processing.

[0043] Preferably, the repair module comprises:

[0044] The automatic repair unit is used to identify problems, fix the identified problems by applying repair tools, and automatically detect whether the repair is effective to ensure that the system returns to normal operation;

[0045] The manual repair unit is used to record detailed fault information and automatic repair attempts, including error logs and repair steps, if automatic repair fails, and to verify whether the manual repair solves the problem after manual repair, and to test system stability.

[0046] A method for converting archive images to high-definition processing, using the above archive image conversion high-definition processing system, the method comprises:

[0047] Collecting image information of paper archives in a paper archive library as input data for processing, the image information includes the image and the file size of the image;

[0048] Classify the archive images of paper archives according to the image file size to obtain n groups of image files to be processed, where n≥1;

[0049] Performing high-definition processing on n groups of images to be processed in sequence;

[0050] During the HD processing, the processing process is monitored in real time, and abnormalities or errors are reported in real time. If abnormalities or errors are found, the HD processing is stopped and the system is repaired through the repair module;

[0051] After the repair is complete, restart the HD process to continue converting the archive image to HD.

[0052] Beneficial effects of the present invention:

[0053] (1) The archival image to high-definition processing system of the present invention utilizes a correction unit in an acquisition module to automatically correct the bending or tilting of paper during the photographing or scanning process through a preset correction algorithm. Specifically, an edge detection algorithm is used to detect the four corner points of the paper, and a Hough transform is used to identify a straight line and find the edge of the paper therefrom. The four corner points in the source image are extracted from the detected edge, and the four corner points in the source image are mapped to the four target points in the target image through a perspective transformation matrix, thereby improving the image quality and accuracy.

[0054] (2) The archival image to high-definition processing system of the present invention classifies and marks the archival images according to the preset file size classification threshold and the file size of the acquired image through the classification processing module, and then divides the archival images of the paper archives into n groups of image files to be processed, where n ≥ 1. The estimated values ​​of image processing time of different file sizes are obtained based on historical processing data, and the estimated values ​​of image processing time of different file sizes are used to estimate each group of archival images to obtain n estimated values ​​of total processing time, and the estimated value of the time used by the high-definition processing module in each group to process a preset number of images is calculated respectively, so as to facilitate subsequent monitoring of abnormalities or errors.

[0055] (3) The archive image to high-definition processing system of the present invention monitors the actual time taken by the high-definition processing module to process a preset number of images through the abnormality monitoring and processing module, calculates the difference between the actual time taken by the high-definition processing module to process a preset number of images and the estimated time taken by the high-definition processing module to process an initial number of images in the corresponding image group, and determines whether the difference is within a preset reasonable threshold. If the difference is within the preset reasonable threshold, it is determined that there is no error or abnormality in the high-definition processing. If the difference is outside the preset reasonable threshold, it is determined that there is an error or abnormality in the high-definition processing, thereby completing the monitoring of abnormalities or errors in the batch processing process and improving the accuracy of error or abnormality judgment. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The present invention will be further described below in conjunction with the accompanying drawings.

[0057] Figure 1 It is a schematic block diagram of an archive image to high-definition processing system proposed by the present invention;

[0058] Figure 2 It is a flow chart of the steps of a method for converting archive images to high-definition processing proposed by the present invention. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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 are within the scope of protection of the present invention.

[0060] See also Figure 1 As shown, in one embodiment, a system for converting archive images to high-definition is provided, the system comprising:

[0061] The acquisition module is used to acquire the image information of paper archives in the paper archive library as input data for processing, and the image information includes the archive image and the image file size;

[0062] A classification processing module is used to classify the archive images of paper archives according to the image file size to obtain n groups of image files to be processed, where n≥1;

[0063] A high-definition processing module, used for sequentially performing high-definition processing on n groups of images to be processed;

[0064] The abnormality monitoring and processing module is used to monitor the processing process in real time during the high-definition processing, report abnormalities or errors in real time, and send the abnormality or error information to the control module if abnormalities or errors are found;

[0065] A control module, used to receive information from the abnormal monitoring and processing module, control the high-definition processing module to start or stop high-definition processing, and control the repair module to repair the system;

[0066] The repair module is used to repair the system if an abnormality or error occurs.

[0067] Through the above technical scheme, this embodiment provides an archive image to high-definition processing system, firstly, important paper archives in the workplace are transported to the paper archive library, and then the paper archives are converted into image information through the acquisition module, the image information includes the archive image and the image file size, and the classification processing module is used to classify the archive image of the paper archive according to the image file size to obtain n groups of image files to be processed, where n≥1, so that subsequent batch processing and abnormal or error monitoring can be facilitated, and the n groups of images to be processed are processed in turn through the high-definition processing module. During the high-definition processing, the processing process is monitored in real time by the abnormal monitoring and processing module, and the abnormality or error is reported in real time. If an abnormality or error is found, the abnormality or error information is sent to the control module, the high-definition processing module is controlled to start or stop the high-definition processing, and the repair module is controlled to repair the system. After the repair is completed, the control module controls the start of the high-definition processing module to continue the batch processing of the archive images.

[0068] The acquisition module includes:

[0069] The camera unit is used to take photos or scan paper archives to generate archive images; the generated archive images are used as input data for subsequent high-definition image processing.

[0070] The correction unit is used to automatically correct the bending or tilting of paper during the photo-taking or scanning process through a preset correction algorithm; by correcting the bending or tilting of paper during the photo-taking or scanning process, the clarity and usability of the archival image are improved, and subsequent high-definition processing is also facilitated.

[0071] The file size statistics unit is used to collect data statistics on the file size of each image. By collecting statistics on the file size of each archive image, it is convenient for subsequent classification processing and estimation of processing time.

[0072] Furthermore, the bending or tilting of the paper during the photographing or scanning process is automatically corrected by a preset correction algorithm, and the specific implementation steps include:

[0073] Use edge detection algorithm to detect the four corner points of the paper;

[0074] Using Hough transform to identify straight lines, and find the edge of the paper from them, extracting four corner points in the source image from the detected edge; wherein the source image is the archive image generated by the camera unit;

[0075] The four corner points in the source image are mapped to the four target points in the target image through the perspective transformation matrix, where the calculation formula of the perspective transformation matrix is:

[0076]

[0077] in, is the perspective transformation matrix, , , Control the scaling, rotation and translation of the image in the x direction. , , Control the scaling, rotation and translation of the image in the y direction. , , Control the perspective effect in perspective transformation and the normalization of homogeneous coordinates;

[0078] The final formula for the perspective transformation matrix is:

[0079]

[0080] in, is a corner point in the source image, is a corner point in the target image;

[0081] The relationship equation between the corner points in the source image and the corner points in the target image is:

[0082]

[0083]

[0084] Solution :

[0085] .

[0086] Furthermore, the archive images of the paper archives are classified and processed according to the image file size to obtain n groups of image files to be processed, specifically including:

[0087] After classifying and marking the archive images according to the preset file size classification threshold and the file size of the acquired image, the archive images are divided into n groups according to the marks; when the file size classification threshold is preset, at least one file size classification threshold is set;

[0088] Obtain image processing time estimates of different file sizes based on historical processing data, estimate each group of archive images using the image processing time estimates of different file sizes to obtain n total processing time estimates, and calculate the time estimates used by the high-definition processing module in each group for each initial number of images;

[0089] Among them, the file size classification threshold is divided according to the image processing time estimation value of different file sizes obtained according to the historical processing data, and a judgment curve between the file size and the corresponding image high-definition processing time estimation value is drawn, and one or more file size classification thresholds are determined according to the judgment curve.

[0090] Furthermore, the high definition processing module includes:

[0091] A component unit, which divides a group of archive images to be processed from the n groups of archive images into a pre-set number, wherein the pre-set number is set according to the total size of each archive image file, so as to ensure that the total size of the archive image files in each group is within a preset range;

[0092] The batch processing unit batch processes each of a group of archive images to be processed at a time.

[0093] In specific applications, the initial number is a range of total file size values. The archival images in each group are split according to the initial number to ensure that the total size of the archival image files in each copy is within the preset total file size range, thereby improving the accuracy of subsequent abnormality or error monitoring.

[0094] In one embodiment, the abnormality monitoring and processing module includes:

[0095] A time monitoring unit, used to monitor the actual value of the time taken by the high-definition processing module to process a preset number of images;

[0096] A difference calculation unit, used to calculate the difference between an actual value of the time taken to process a preset number of images and an estimated value of the time taken by the high-definition processing module in the corresponding image group to process an initially set number of images;

[0097] The judgment unit is used to judge whether the difference is within a preset reasonable threshold. If the difference is within the preset reasonable threshold, it is judged that there is no error or abnormality in the high-definition processing. If the difference is outside the preset reasonable threshold, it is judged that there is an error or abnormality in the high-definition processing.

[0098] In specific applications, the actual value of the time used for processing a preset number of images is compared with the difference between the estimated value of the time used for processing an initial number of images by the high-definition processing module in the corresponding image group, the two values ​​are subtracted to obtain a difference, and the difference is compared with a preset reasonable threshold (the size of the preset reasonable threshold is confirmed by the actual situation) to determine whether there is an error or abnormality in the high-definition processing process; the size of the preset reasonable threshold is determined based on historical data. If the processing time in the historical data exceeds a certain range, it is a case of processing abnormality or error, and the range is set as the preset reasonable threshold.

[0099] Preferably, the repair module comprises:

[0100] The automatic repair unit is used to identify problems, repair identified problems by applying repair tools, automatically detect whether the repair is effective, and ensure that the system returns to normal operation; specifically, identify problems: use monitoring tools to identify common faults (such as software crashes, algorithm errors); apply repair tools: deploy automated tools or scripts to repair identified problems (for example, restart services, restore default settings, and correct algorithm parameters); verify repair: automatically detect whether the repair is effective, and ensure that the system returns to normal operation; the above-mentioned identification of problems, application of repair tools, and verification of repair are all technical means well known to those skilled in the art, and therefore will not be elaborated on.

[0101] The manual repair unit is used to record detailed fault information and automatic repair attempts, including error logs and repair steps, if automatic repair fails, and to verify whether the manual repair solves the problem after manual repair, and to test system stability.

[0102] See also Figure 2 This embodiment also provides a method for converting archive images to high-definition processing, using the above archive image conversion high-definition processing system, the method includes:

[0103] Collecting image information of paper archives in a paper archive library as input data for processing, the image information includes the image and the file size of the image;

[0104] Classify the archive images of paper archives according to the image file size to obtain n groups of image files to be processed, where n≥1;

[0105] Performing high-definition processing on n groups of images to be processed in sequence;

[0106] During the HD processing, the processing process is monitored in real time, and abnormalities or errors are reported in real time. If abnormalities or errors are found, the HD processing is stopped and the system is repaired through the repair module;

[0107] After the repair is complete, restart the HD process to continue converting the archive image to HD.

[0108] The method is executed by the above system. Specifically, the correction unit in the acquisition module can be used to automatically correct the bending or tilting of the paper during the photo taking or scanning process through a preset correction algorithm. Specifically, the edge detection algorithm is used to detect the four corner points of the paper, the Hough transformation is used to identify the straight line, and the edge of the paper is found therefrom, the four corner points in the source image are extracted from the detected edge, the four corner points in the source image are mapped to the four target points in the target image through the perspective transformation matrix, and the four corner points in the source image are mapped to the four target points in the target image through the perspective transformation matrix;

[0109] After the archive images are classified and marked by the classification processing module according to the preset file size classification threshold and the file size of the acquired image, the archive images of the paper archives are divided into n groups of image files to be processed, where n ≥ 1, and the estimated values ​​of image processing time of different file sizes are obtained according to the historical processing data, and the estimated values ​​of image processing time of different file sizes are used to estimate each group of archive images to obtain n estimated values ​​of total processing time, and the estimated value of the time used by the high-definition processing module to process each set number of images in each group is calculated respectively;

[0110] The abnormality monitoring and processing module monitors the actual time taken by the high-definition processing module to process a preset number of images, calculates the difference between the actual time taken to process the preset number of images and the estimated time taken by the high-definition processing module to process an initial number of images in the corresponding image group, and determines whether the difference is within a preset reasonable threshold. If the difference is within the preset reasonable threshold, it is determined that there is no error or abnormality in the high-definition processing. If the difference is outside the preset reasonable threshold, it is determined that there is an error or abnormality in the high-definition processing.

[0111] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A system for converting archive images to high definition, characterized in that: The system comprises: A collection module, used to collect image information of paper archives in the paper archive library as input data for processing, wherein the image information includes archive images and image file sizes; A classification processing module is used to classify the archive images of paper archives according to the image file size to obtain n groups of image files to be processed, where n≥1; A high-definition processing module, used for sequentially performing high-definition processing on n groups of images to be processed; The abnormality monitoring and processing module is used to monitor the processing process in real time during the high-definition processing, report abnormalities or errors in real time, and send the abnormality or error information to the control module if abnormalities or errors are found; A control module, used to receive information from the abnormal monitoring and processing module, control the high-definition processing module to start or stop high-definition processing, and control the repair module to repair the system; Repair module, used to repair the system if it has an abnormality or error; The paper archive images are classified and processed according to the image file size to obtain n groups of image files to be processed, specifically including: After classifying and marking the archive images according to a preset file size classification threshold and the file size of the acquired images, the archive images are divided into n groups according to the marks; Obtain image processing time estimates of different file sizes based on historical processing data, estimate each group of archive images using the image processing time estimates of different file sizes to obtain n total processing time estimates, and calculate the time estimates used by the high-definition processing module in each group for each initial number of images; The file size classification threshold is obtained according to the historical processing data to obtain the image processing time estimation value of different file sizes, and a judgment curve between the file size and the corresponding image high-definition processing time estimation value is drawn, and one or more file size classification thresholds are determined according to the judgment curve; A component unit, which divides a group of archive images to be processed from the n groups of archive images into a pre-set number, wherein the pre-set number is set according to the total size of each archive image file, so as to ensure that the total size of the archive image files in each group is within a preset range; A batch processing unit batch-processes each of a group of archive images to be processed at a time; A time monitoring unit, used to monitor the actual value of the time taken by the high-definition processing module to process a preset number of images; A difference calculation unit, used to calculate the difference between an actual value of the time taken to process a preset number of images and an estimated value of the time taken by the high-definition processing module in the corresponding image group to process an initially set number of images; The judgment unit is used to judge whether the difference is within a preset reasonable threshold. If the difference is within the preset reasonable threshold, it is judged that there is no error or abnormality in the high-definition processing. If the difference is outside the preset reasonable threshold, it is judged that there is an error or abnormality in the high-definition processing.

2. The system for converting archive images to high definition according to claim 1, characterized in that: The acquisition module comprises: A camera unit, used to take photos of paper archives or scan them to generate archive images; A correction unit, used to automatically correct the bending or tilting of paper during the photographing or scanning process by using a preset correction algorithm; The file size statistics unit is used to collect data statistics on the file size of each image.

3. The system for converting archive images to high definition according to claim 2, characterized in that: The method of automatically correcting the bending or tilting of the paper during the scanning process by using a preset correction algorithm includes the following specific implementation steps: Use edge detection algorithm to detect the four corner points of the paper; Use Hough transform to identify straight lines and find the edge of the paper from them, and extract four corner points in the source image from the detected edges; The four corner points in the source image are mapped to the four target points in the target image through the perspective transformation matrix, wherein the calculation formula of the perspective transformation matrix is: in, is the perspective transformation matrix, , , Control the scaling, rotation and translation of the image in the x direction. , , Control the scaling, rotation and translation of the image in the y direction. , , Control the perspective effect in perspective transformation and the normalization of homogeneous coordinates; The final formula for the perspective transformation matrix is: in, is a corner point in the source image, is a corner point in the target image; The relationship equation between the corner points in the source image and the corner points in the target image is: Solution : 。 4. The system for converting archive images to high definition according to claim 1, characterized in that: The repair module comprises: The automatic repair unit is used to identify problems, fix the identified problems by applying repair tools, and automatically detect whether the repair is effective to ensure that the system returns to normal operation; The manual repair unit is used to record detailed fault information and automatic repair attempts, including error logs and repair steps, if automatic repair fails, and to verify whether the manual repair solves the problem after manual repair, and to test system stability.

5. A method for converting archive images to high definition, using an archive image to high definition processing system as claimed in any one of claims 1 to 4, characterized in that: The method comprises: Collecting image information of paper archives in a paper archive library as input data for processing, wherein the image information includes the image and the file size of the image; Classify the archive images of paper archives according to the image file size to obtain n groups of image files to be processed, where n≥1; Performing high-definition processing on n groups of images to be processed in sequence; During the HD processing, the processing process is monitored in real time, and abnormalities or errors are reported in real time. If abnormalities or errors are found, the HD processing is stopped and the system is repaired through the repair module; After the repair is complete, restart the HD process to continue converting the archive image to HD.

Citation Information

Patent Citations

  • Multi-version digital archive management and application method for image or video file

    CN103093298A

  • Archive data management labeling method and system based on big data application

    CN116541576A