Dynamic Threshold Character Segmentation for OCR Accuracy

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Poor word segmentation in optical character recognition (OCR) processes can significantly lower recognition accuracy, as incorrect segmentation cannot be overcome by excellent character recognition, especially when different font families with varying character spacing are involved.

Innovation Solution

A character segmentation system that analyzes character distances and generates dynamic thresholds to determine whether to merge or split characters into words, using computer vision techniques to tailor the recognition process to the specific font family, thereby improving word segmentation accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If fixed threshold methods are used for character segmentation, then the processing speed is fast, but the segmentation accuracy deteriorates when different font families with varying character spacing are involved

Engineering Contradiction:
Improveword segmentation accuracyVSAvoidsegmentation process complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent implements dynamic threshold adjustment by analyzing the actual spacing between consecutive characters in the document. Instead of using a fixed threshold, the system calculates spacing metrics from the document image and adapts the segmentation threshold accordingly. This allows the segmentation process to automatically adjust to different font families and spacing styles, resolving the contradiction between maintaining simple processing and achieving high accuracy across varied document formats.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes the segmentation threshold parameter dynamically based on document-specific characteristics. By computing actual character spacing from the image and using this information to adjust the threshold, the system transforms a static parameter into a dynamic one that adapts to different font families and spacing conventions, thereby improving segmentation accuracy without requiring manual intervention.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If dynamic threshold calculation is performed to improve segmentation accuracy, then the recognition accuracy improves, but the processing time increases

Engineering Contradiction:
Improvecharacter recognition accuracyVSAvoidprocessing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs preliminary analysis of character spacing and font characteristics before the main segmentation process. By pre-calculating spacing metrics and determining appropriate thresholds in advance, the system avoids repeated calculations during segmentation, thereby reducing overall processing time while maintaining high accuracy.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system applies dynamic threshold adjustment selectively based on document characteristics. Rather than performing exhaustive analysis on all documents, the system identifies when dynamic adjustment is necessary (e.g., when multiple font families are detected) and applies the computationally intensive process only in those cases, balancing accuracy improvement with processing efficiency.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS10970848B2Font family and size aware character segmentation
Publication Date: 2021.04.06 SAP SE
  • US10970848B2 patent drawing
  • US10970848B2 patent drawing
  • US10970848B2 patent drawing

AI summary

A method clusters each character on a document into one of a plurality of clusters based on widths of at least a portion of the characters on the document and measures distances between characters on the document. A threshold for each of the plurality of clusters is calculated based on at least a portion of the distances between characters in each cluster. The method then segments characters into units using the thresholds for the plurality of clusters. A distance between two characters in the document is compared to a threshold for a cluster to classify the two characters as being part of a unit when the distance is less than the threshold and not being part of the unit when the distance is greater than the threshold. Then, the method performs a recognition process on the document using the units.