Image Box Filtering to Remove Form Boxes Before OCR

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improveease of data entryVSAvoidOCR accuracy
Core Design Contradiction:
Ease of operationVSMeasurement precision

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.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If box removal parameters are adjusted to handle varying box sizes and shapes, then adaptability is improved, but device complexity increases

Engineering Contradiction:
Improvehandling of varying box sizes and shapesVSAvoidcomplexity of box removal process
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

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.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12412413B2Image box filtering for optical character recognition
Publication Date: 2025.09.09 OPEN TEXT CORP
  • US12412413B2 patent drawing
  • US12412413B2 patent drawing
  • US12412413B2 patent drawing

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.