VeryPDF Black Border Removal SDK: Automatic Border Detection and Removal for Improved Image Quality

VeryPDF Black Border Removal SDK: Automatic Border Detection and Removal for Improved Image Quality.

In today's digital age, images play an increasingly important role in many industries, including healthcare, finance, and government. However, images acquired through scanning or microfilm/microfiche often contain unwanted black borders, which can negatively impact file size, compression rates, and visual quality. The solution? VeryPDF's Black Border Removal SDK.

https://www.verypdf.com/app/papertools/index.html

image

This software development kit allows for automatic black border detection and removal in both monochrome and gray-scale images, improving image quality and reducing file size. Unlike other libraries that only detect and remove black borders in monochrome images, VeryPDF's SDK also works with gray-scale images.

Black border removal can be accomplished in two ways: by cropping the image or by adding a white border. The former reduces the image size to the effective paper size, while the latter maintains the original image size and adds a white border around the image.

The VeryPDF Black Border Removal SDK's accuracy and speed are achieved through two main steps: border detection and border elimination. To achieve optimal results, users can set the "Black Percentage" parameter, which indicates the minimum percentage of black pixels a line must contain to be considered part of the border.

To use the SDK, simply input a DIB (Device Independent Bitmap) file. From there, the software automatically detects and removes the black border, improving image quality and reducing file size.

The following is a sample application in Microsoft Visual C++ using VeryPDF's Black Border Removal SDK:

    strInFile = strFolder + "\\sample\\test_despeckle.tif";
     strOutFile = strFolder + "\\sample\\output\\_output_" + intToString(nFileIndex) + ".tif";
     strCmd = "-$ XXXXXXXXXXXXXXXXXX -removeborder -fuzz 50 \"" + strInFile + "\" \"" + strOutFile + "\"";
     printf("%s\n", strCmd.c_str());
     strReturn = strReturn + VeryPDFCom.PaperTools(strCmd.c_str());
     nFileIndex = nFileIndex + 1;
    
     strInFile = strFolder + "\\sample\\test_black_border1.jpg";
     strOutFile = strFolder + "\\sample\\output\\_output_" + intToString(nFileIndex) + ".tif";
     strCmd = "-$ XXXXXXXXXXXXXXXXXX -removeborder -fuzz 80 \"" + strInFile + "\" \"" + strOutFile + "\"";
     printf("%s\n", strCmd.c_str());
     strReturn = strReturn + VeryPDFCom.PaperTools(strCmd.c_str());
     nFileIndex = nFileIndex + 1;

In summary, VeryPDF's Black Border Removal SDK offers an easy-to-use and effective solution for improving image quality and reducing file size by automatically detecting and removing black borders. With the ability to work with both monochrome and grayscale images, this VeryPDF's Black Border Removal SDK is a must-have for any industry that relies on high-quality digital images.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!