VeryPDF Deskew SDK is a powerful API that can automatically detect and correct the skew present in scanned or faxed images. Skew is the unavoidable slope that is present in images acquired by scanners using an ADF or received by fax. Correcting this skew is an essential preprocessing step that can improve compression rates, visualization aspects, line-removal, and the accuracy of ICR/OCR.
VeryPDF PaperTools COM/SDK:
https://www.verypdf.com/app/papertools/index.html
Unlike other libraries that allow users to deskew only monochrome images, VeryPDF's Deskew SDK can deskew both grayscale and color images! This feature ensures that the output images are of the highest quality and free from any distortion.
Using interpolation in the skew correction process, the aliasing due to rotation is minimized, resulting in perfect images that appear as if the paper had been rotated physically!
The VeryPDF Deskew SDK can perform deskew in either one or two steps, and you can set the following parameters to fine-tune the process:
* Max Angle: The system will attempt to detect and correct skew only from -MaxAngle to +MaxAngle.
* Resolution: The smallest skew angle to detect. Usually, it is set to 0.1 degrees, but if you need fast processing, you can increase this value.
* Speed and Accuracy: This parameter enables you to balance the speed/accuracy ratio, depending on your requirements.
* Background Color: The color of the new background after the rotation.
* Interpolation: This option performs interpolation to obtain a better result and avoid aliasing.
The Deskew SDK is fast and accurate, and you can use it to perform deskew on a wide variety of images. You can download a demo application to test this library on your TIF images and give us your feedback and comments after the test!
Here is the source code in Microsoft Visual C++ of a sample application using the Deskew library:
strInFile = strFolder + "\\sample\\test_negative.png";
strOutFile = strFolder + "\\sample\\output\\_output_" + intToString(nFileIndex) + ".tif";
strCmd = "-$ XXXXXXXXXXXXXXXXXX -deskew -skewrange 45 \"" + strInFile + "\" \"" + strOutFile + "\"";
printf("%s\n", strCmd.c_str());
strReturn = strReturn + VeryPDFCom.PaperTools(strCmd.c_str());
nFileIndex = nFileIndex + 1;
strInFile = strFolder + "\\sample\\test_negative.png";
strOutFile = strFolder + "\\sample\\output\\_output_" + intToString(nFileIndex) + ".tif";
strCmd = "-$ XXXXXXXXXXXXXXXXXX -deskew2 \"" + strInFile + "\" \"" + strOutFile + "\"";
printf("%s\n", strCmd.c_str());
strReturn = strReturn + VeryPDFCom.PaperTools(strCmd.c_str());
nFileIndex = nFileIndex + 1;
strInFile = strFolder + "\\sample\\test_despeckle.tif";
strOutFile = strFolder + "\\sample\\output\\_output_" + intToString(nFileIndex) + ".tif";
strCmd = "-$ XXXXXXXXXXXXXXXXXX -despeckle \"" + strInFile + "\" \"" + strOutFile + "\"";
printf("%s\n", strCmd.c_str());
strReturn = strReturn + VeryPDFCom.PaperTools(strCmd.c_str());
nFileIndex = nFileIndex + 1;
strInFile = strFolder + "\\sample\\test_despeckle.tif";
strOutFile = strFolder + "\\sample\\output\\_output_" + intToString(nFileIndex) + ".tif";
strCmd = "-$ XXXXXXXXXXXXXXXXXX -despeckle2 -specklesize 20 \"" + strInFile + "\" \"" + strOutFile + "\"";
printf("%s\n", strCmd.c_str());
strReturn = strReturn + VeryPDFCom.PaperTools(strCmd.c_str());
nFileIndex = nFileIndex + 1;
In conclusion, VeryPDF Deskew SDK is a highly effective and versatile API that can automatically detect and correct skew in scanned or faxed images. With its advanced features, fast and accurate processing, and support for grayscale and color images, this library is an essential tool for anyone who works with scanned images.
➤ Want to buy this product from VeryPDF?
Should you be interested in acquiring a license for our product or require assistance in developing a custom software solution based on it, please do not hesitate to reach out to us. Our team is always ready to assist you and provide you with the necessary support.
We look forward to the opportunity of working with you and providing developer assistance if required.