Image Inclination Angle Detection Using Character Centroid Clustering
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for detecting the inclination angle of an image, such as using regression lines or edge extraction, are inaccurate when dealing with documents that are slanted, particularly when characters have different heights or are arranged in vertical typesetting, leading to poor print quality.
Innovation Solution
An image inclination angle detection apparatus and program that sets search points on characters, generates search frames, detects line space regions, and calculates approximate straight lines to determine the inclination angle of the image, using clustering and principal component analysis to improve accuracy.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If regression line method is used to detect inclination angle, then the detection process is simple, but the detection precision deteriorates when characters have different heights or vertical typesetting
Solution Approach 1:
The patent segments the document image into multiple character regions and processes each region independently to detect inclination angles. Instead of treating the entire document as a single entity, the method divides it into character blocks, detects local inclinations, and then synthesizes the overall inclination angle, thereby improving precision for documents with varied character heights and layouts.
Solution Approach 2:
The patent transitions from a one-dimensional regression line approach to a two-dimensional analysis by examining character distributions across multiple regions. It uses spatial coordinates of character centroids and applies geometric transformations to detect inclination angles more accurately, adding dimensional depth to the detection process.
2Adaptability or versatility
If edge extraction and thinning processing is performed to detect inclination angle, then the detection can handle various character layouts, but the processing complexity and time increase
Solution Approach 1:
The patent performs preliminary actions by first detecting character positions and centroids before inclination angle detection. It pre-processes the image to identify and mark character regions, which simplifies subsequent inclination detection by providing ready-to-use coordinate data, thereby reducing overall processing complexity while maintaining versatility.
Solution Approach 2:
The patent replaces complex mechanical edge extraction and thinning operations with a more efficient computational approach using character centroid detection and geometric transformation. Instead of manually extracting edges through multiple processing steps, it uses coordinate-based methods and mathematical transformations to achieve the same goal with reduced complexity.
3Productivity
If traditional methods are used for inclination detection, then the processing speed is fast, but the print quality deteriorates due to inaccurate inclination angles
Solution Approach 1:
The patent implements self-service by using the document's own character structures to determine the inclination angle. It extracts features directly from the document content itself (character positions, centroids, and distributions) rather than relying on external reference lines or markers, enabling accurate and rapid inclination detection that directly improves print quality.
Solution Approach 2:
The patent changes key parameters from traditional methods by using character centroid coordinates and spatial distributions instead of edge pixel coordinates. It transforms the inclination detection problem into a parameter-based geometric calculation using character positions, which maintains processing speed while significantly improving accuracy and resulting print quality.
Data Source
AI summary
A control device sets first points on characters, generates a first frame composed of a first point and first circles, attaches first marks to points at which the first circles intersect characters, detects a range having a largest central angle and no first marks, sets second points on the first circles in the detected region, generates a second frame composed of a second point and second circles, attaches second marks to points at which the second circles intersect characters, sets a direction passing through the center portions of ranges having no second marks and the second point, sets second points arranged in the direction as the same class, calculates an approximate line connecting second points for each class, obtains straight lines indicating a row direction of characters immediately above and below an approximate line, and determines an inclination angle of an image from inclinations of the straight lines.


