LEADTOOLS Support
Document
Document SDK FAQ
Do you provide any image processing functions to help clean up an image?
#1
Posted
:
Tuesday, April 4, 2017 4:37:07 PM(UTC)
Groups: Registered
Posts: 119
Was thanked: 4 time(s) in 4 post(s)
LEADTOOLS provides more than 200 image processing functions in several categories, including document cleanup, medical image enhancement, color conversion and correction, noise reduction, and edge detection for .NET (C# & VB), C/C++, WinRT, iOS, macOS, Java, and Web.
This powerful collection of functions can rid scanned documents of artifacts and imperfections such as hole punches, skewed angles, borders, and dust specks. Clean black and white images improve recognition accuracy, optimize processing speed, and improve lossless compression ratios, all of which are essential to any document-imaging workflow.
You can find a small .NET Click Once online demo that demonstrates some of these commands here:
https://www.leadtools.com/demos/click-once/mainTo find out which commands you need to use to improve the quality of your image, you can check out the Image Processing Function page that contains before and after images for each function. You can view that here:
https://www.leadtools.co...ctions/introduction.htmlHere are code snippets from some of the Image Processing functions:
DeskewCommand:
https://www.leadtools.co...dh/po/deskewcommand.htmlCode:// Prepare the command
DeskewCommand command = new DeskewCommand();
//Deskew the image.
command.Flags = DeskewCommandFlags.DeskewImage | DeskewCommandFlags.DoNotFillExposedArea;
command.Run(image);
LineRemoveCommand:
https://www.leadtools.co...o/lineremovecommand.htmlCode: // Prepare the command
LineRemoveCommand command = new LineRemoveCommand();
command.GapLength = 2;
command.MaximumLineWidth = 5;
command.MinimumLineLength = 200;
command.MaximumWallPercent = 10;
command.Wall = 7;
command.Run(image);
BorderRemoveCommand:
https://www.leadtools.co...borderremovecommand.htmlCode:
// Prepare the command
BorderRemoveCommand command = new BorderRemoveCommand();
command.Percent = 20;
command.Variance = 3;
command.WhiteNoiseLength = 9;
command.Run(image);
Edited by moderator Wednesday, December 27, 2023 3:52:24 PM(UTC)
| Reason: updated
Nick Villalobos
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK FAQ
Do you provide any image processing functions to help clean up an image?
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.