VeryPDF Despeckle SDK, Reduce Noise or Despeckle from your image files. Image processing despeckle algorithm. How do I despeckle a scanned image?

VeryPDF Despeckle SDK can be downloaded from following web page,

http://www.verypdf.com/app/papertools/try-and-buy.html
http://www.verypdf.com/dl2.php/papertoolssdk.zip

VeryPDF Despeckle SDK (API) allows the removal of speckle in scanned or faxed images. The speckle is the presence of black points of noise in images acquired by a scanner or received by fax.

Cleaning images is a very important preprocessing step to improve the compression rate, the visualization aspect and the accuracy using ICR/OCR.

Despeckle (speckle detection and deletion) can be very easily performed, specifying the maximum width and height of isolated black elements to be considered as speckle.

The following is a C# source code example to apply despeckle to your image files,

string appPath = Path.GetDirectoryName(Application.ExecutablePath);
System.Type VeryPDFType = System.Type.GetTypeFromProgID("VeryPDF.PaperToolsCom");
VeryPDF.PaperToolsCom VeryPDFCom = (VeryPDF.PaperToolsCom)System.Activator.CreateInstance(VeryPDFType);

string appFolder = Path.GetDirectoryName(Application.ExecutablePath);
string strFolder = Directory.GetParent(appFolder).FullName;

string strReturn = "";
int nFileIndex = 0;
VeryPDFCom.EnableDebugLog(true);

string strInFile = strFolder + "\\sample\\test_table_ocr.tif";
string strOutFile = strFolder + "\\sample\\output\\_output_" + nFileIndex.ToString() + ".png";
string strCmd = "-$ XXXXXXXXXXXXXXXXXX -despeckle \"" + strInFile + "\" \"" + strOutFile + "\"";
strReturn = strReturn + VeryPDFCom.PaperTools(strCmd);

string strInFile = strFolder + "\\sample\\test_table_ocr.tif";
string strOutFile = strFolder + "\\sample\\output\\_output_" + nFileIndex.ToString() + ".png";
string strCmd = "-$ XXXXXXXXXXXXXXXXXX -despeckle2 \"" + strInFile + "\" \"" + strOutFile + "\"";
strReturn = strReturn + VeryPDFCom.PaperTools(strCmd);

If you encounter any problem with VeryPDF Despeckle SDK, please feel free to let us know.

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

This entry was posted in VeryPDF SDK & COM and tagged . Bookmark the permalink.

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!