Image Box Filtering to Remove Form Boxes Before OCR
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Pre-printed boxes on forms cause errors during optical character recognition (OCR) of handwritten and preprinted characters, leading to inaccurate data extraction.
Innovation Solution
An image pre-filtering process is employed to remove boxes before OCR extraction, utilizing box removal parameters such as region, margin, sliding window, and width variation to define the boundaries of boxes, followed by optical character recognition and content extraction.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If pre-printed boxes are included on forms to guide user data entry, then ease of operation is improved, but measurement precision deteriorates due to OCR errors
Solution Approach 1:
The patent applies preliminary action by performing box detection and removal operations on the scanned form image before the OCR process. The system identifies box boundaries using image processing techniques (such as detecting horizontal and vertical lines or using projection profiles) and removes or masks these box elements from the image. This preprocessing step eliminates the harmful effect of boxes on OCR accuracy while preserving the original form structure for user guidance, thereby resolving the contradiction between ease of operation and measurement precision.
2Adaptability or versatility
If box removal parameters are adjusted to handle varying box sizes and shapes, then adaptability is improved, but device complexity increases
Solution Approach 1:
The patent applies parameter changes by adjusting key detection parameters such as threshold values for line detection, width and height tolerances for box identification, and margin calculations. The system dynamically modifies these parameters based on the specific form characteristics being processed, allowing it to adapt to varying box sizes and shapes without requiring a completely different detection algorithm for each case. This approach maintains adaptability while controlling complexity through parameter adjustment rather than structural complexity.
Data Source
AI summary
A method for box filtering includes obtaining, by a computing device, a form image, and identifying, by the computing device, a region of the form image that includes boxes. Vertical lines in the region of the form image are detected. The boxes in the region are detected according to the plurality of vertical lines, and image content is extracted from the boxes.


