Document Boundary Detection Using CNN and Image Processing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional techniques for document boundary detection in digital images struggle to accurately differentiate the document edge from background clutter, especially in cases where the document is off-center or at an angle, requiring additional manual steps and consuming significant computational resources.
Innovation Solution
A deep learning model using a convolutional neural network (CNN) in combination with image processing algorithms to identify and rate quadrilaterals approximating the document boundaries, followed by the selection of the best-rated quadrilateral to define the document edges, allowing for automatic removal of background elements.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If conventional boundary detection techniques are used, then the system is simple to implement, but the detection accuracy is poor and cannot differentiate document edges from background clutter
Solution Approach 1:
The patent segments the boundary detection task into multiple components: gradient computation, non-maximum suppression, hysteresis thresholding, and quadrilateral formation. Each component processes specific aspects of edge detection separately, improving overall accuracy while maintaining manageable system complexity through modular organization of detection steps
Solution Approach 2:
The patent introduces intermediate structures including gradient images, thresholded edge maps, and candidate quadrilateral sets as mediators between the input image and final boundary detection. These intermediate representations facilitate accurate differentiation between document edges and background clutter by progressively refining detection candidates
2Measurement precision
If manual removal of background elements is performed, then the boundary detection accuracy improves, but the user interaction time and processing steps increase
Solution Approach 1:
The system performs self-service by automatically computing gradients, applying thresholding algorithms, forming candidate quadrilaterals, and selecting the optimal document boundary without requiring user intervention. The algorithm independently differentiates document edges from background clutter through computational processing, eliminating manual removal steps
Solution Approach 2:
The patent performs preliminary actions by pre-computing gradient images and thresholded edge maps before final boundary selection. Candidate quadrilaterals are formed and evaluated in advance, allowing the system to automatically identify and select the correct document boundary without requiring user review or manual correction
3Extent of automation
If existing automatic boundary detection techniques are used, then user interaction is reduced, but the computational expense is high and processing speed is slow
Solution Approach 1:
The patent applies partial action by computing gradients and thresholding only in regions where document boundaries are likely to occur, rather than processing the entire image uniformly. Candidate quadrilaterals are formed from significant edges only, reducing computational expense while maintaining high automation level for boundary detection
Solution Approach 2:
The detection process is segmented into distinct computational stages: gradient computation, thresholding, edge tracking, and quadrilateral formation. Each stage processes only relevant data from the previous stage, reducing overall computational resource consumption while maintaining full automation throughout the pipeline
4Adaptability or versatility
If conventional techniques are used, then the system is computationally efficient, but it cannot handle off-center or angled documents effectively
Solution Approach 1:
The patent handles asymmetric document orientations by forming quadrilateral candidates from detected edges without assuming symmetric or centered document placement. The algorithm evaluates quadrilaterals based on their geometric properties and edge consistency, allowing effective detection of off-center and angled documents through asymmetric boundary formation
Data Source
AI summary
Techniques are disclosed for document boundary detection (BD) from an input image using a combination of deep learning model and image processing algorithms. Quadrilaterals approximating the document boundaries in the input image are determined and rated separately using both these approaches: deep leaning using convolutional neural network (CNN) and heuristics using image processing algorithms. Thereafter, the best rated quadrilateral is selected from the quadrilaterals obtained from both the approaches.


