Document Image Segmentation Using AI Masks and Bounding Rectangles

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing systems struggle to efficiently segment multiple documents within a single image for quick processing, which is crucial for timely document verification during onboarding processes, as delays can lead to user disinterest.

Innovation Solution

An AI-based method involving deep learning models, thresholding, and image processing to identify and isolate individual documents within an image by creating masks, converting to grayscale, applying Otsu thresholding, and using minimum bounding rectangles for cropping.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If multiple documents are processed as a single image, then processing time is reduced, but document segmentation accuracy deteriorates

Engineering Contradiction:
Improveprocessing speedVSAvoiddocument segmentation accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent applies image segmentation techniques to divide a single image containing multiple documents into separate document regions. The system identifies boundaries between documents and creates individual masks for each document, enabling subsequent processing of each document separately while maintaining the efficiency of batch processing.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary segmentation layer that acts as a mediator between the input image and final document processing. This intermediary step generates mask images that isolate individual documents, allowing the system to benefit from both efficient batch processing and accurate individual document handling.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Device complexity

If traditional image processing methods are used, then system complexity is reduced, but segmentation performance deteriorates

Engineering Contradiction:
Improvesystem complexityVSAvoidsegmentation performance
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The patent replaces traditional mechanical image processing methods with deep learning-based semantic segmentation models. These AI models automatically learn document boundaries and characteristics from training data, achieving superior segmentation performance without requiring manual tuning of processing parameters or complex rule-based systems.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The patent utilizes parameter changes in the form of learning rates, batch sizes, and model architectures to optimize segmentation performance. By adjusting these parameters during training and inference, the system achieves high accuracy in document segmentation while maintaining reasonable computational efficiency.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12602791B2Visual segmentation of documents contained in files
Publication Date: 2026.04.14 BASE64AI INC
  • US12602791B2 patent drawing
  • US12602791B2 patent drawing
  • US12602791B2 patent drawing

AI summary

Systems and methods of the inventive subject matter are directed to artificial intelligence systems that are configured to receive an uploaded file from a user, where that upload contains images of one or more documents. Documents can be, e.g., receipts, identification cards, and so on. Once received, the system converts the image to a tensor to facilitate identifying mask images. The AI system then converts any identified mask images to grayscale before converting the image to black and white. White spaces are identified, and contours are identified that surround the white spaces. Next, white spaces with areas below a threshold size are discarded and white spaces with areas above that threshold have their contours stored. The AI system finds a minimum bounding rectangle for each contour and then crops the image around each white space accordingly. In this way, documents can be found within an image file and segmented to later processing.