(Document/Medical) Scanned documents often contain a number of undesirable elements, including dots, blobs, lines, borders, and hole punches. LEADTOOLS provides a number of classes that improve the appearance of scanned documents by removing dots, blobs, lines, borders, hole punches, inverted page, inverted text, bumps, and nicks. These classes are listed in the following table:
Leadtools.ImageProcessing.Core Class | Description |
SmoothCommand | Smooths the bumps and fills in the nicks of a 1-bit black and white image. |
BorderRemoveCommand | Removes the black borders in a 1-bit black and white image. |
Removes horizontal and vertical lines in a 1-bit black and white image. | |
Finds and removes dots and specks of various sizes. | |
Finds and removes hole punches. | |
InvertedTextCommand | Finds and modifies areas of inverted text in a 1-bit black and white image. |
InvertedPageCommand | Checks and auto-corrects an inverted image (1-bit or color). |
HighQualityRotateCommand | Performs high quality rotation on a 1-bit black and white image. |
Each of these classes utilizes flags that allow you to obtain a LEAD region (Leadtools.ImageProcessing.Core only) or a Windows region (all three) that contains all the elements removed from a document. In addition, event handlers allow you to provide customized region processing, as well as create your own composite of the removed regions.
Images can be straightened by using the following commands:
Leadtools.ImageProcessing.Core Class | Description |
DeskewCommand | Deskewing. |
For information about pre-processing color images, see Pre-processing Images for OCR.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document