Text Image Correction via Global and Local Adjustment
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In the process of converting paper files to electronic text images, text images often become inclined, leading to inaccuracies in analysis such as text recognition, necessitating correction to ensure accurate storage and transmission of information.
Innovation Solution
An image processing method that involves global correction followed by local adjustment, where character row lower boundaries are determined, and local adjustment offsets are calculated based on these boundaries and retention coefficients to correct the text image, ensuring accurate alignment and recognition.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Manufacturing precision
If only global correction processing is performed on the input image, then the overall inclination of the text image is corrected, but local irregularities and deformations in character rows remain uncorrected
Solution Approach 1:
The patent divides the correction process into two distinct stages: global correction processing to handle overall image inclination, and local adjustment processing to correct individual character row deformations. This segmentation allows each stage to focus on specific correction tasks, improving overall precision without requiring an overly complex single-stage system.
Solution Approach 2:
The patent applies local adjustment processing that targets specific character rows with irregularities rather than uniformly processing the entire image. By identifying character rows that deviate from the reference line and applying retention coefficients selectively, the system achieves high correction precision for problematic areas while maintaining efficiency.
2Measurement precision
If local adjustment processing is added to global correction, then correction accuracy for character rows is improved, but processing time and computational load increase
Solution Approach 1:
The patent performs global correction processing first to establish a baseline corrected image and reference line. This preliminary action prepares the image for subsequent local adjustments by removing major inclinations, allowing the local adjustment stage to focus only on residual deformations, thereby reducing overall processing time.
Solution Approach 2:
The patent applies local adjustment processing selectively to character rows that exhibit irregularities rather than uniformly processing all character rows. By using retention coefficients to identify and target only problematic areas, the system achieves high alignment accuracy while minimizing unnecessary computational overhead.
3Manufacturing precision
If character row lower boundaries are determined and local adjustment offsets are calculated for each row, then individual character row deformations are corrected, but the processing complexity increases
Solution Approach 1:
The patent introduces character row lower boundaries and reference lines as intermediary elements that facilitate the correction process. These intermediaries serve as mediators between the global correction stage and local adjustment stage, enabling systematic calculation of adjustment offsets while maintaining algorithmic efficiency through structured computation.
Solution Approach 2:
The patent transitions from analyzing character rows in the original image coordinate system to using a reference line-based coordinate system established during global correction. This dimensional transformation simplifies the calculation of local adjustment offsets by providing a standardized reference framework, reducing algorithmic complexity.
Data Source
AI summary
An image processing method, an image processing device, an electronic device, and a non-transitory computer readable storage medium are provided. The image processing method includes: obtaining an input image which includes M character rows; performing global correction processing on the input image to obtain an intermediate corrected image; determining the M character row lower boundaries corresponding to the M character rows according to the intermediate corrected image; and determining the local adjustment reference line and M retention coefficient groups based on the intermediate corrected image and the M character row lower boundaries; determining M local adjustment offset groups corresponding to the M character rows according to the M character row lower boundaries, the local adjustment reference line and the M retention coefficient groups; performing local adjustment on the M character rows in the intermediate corrected image according to the M local adjustment offset groups to obtain the target corrected image.


