Cleaning Up 1-Bit Images

(Document/Medical) Scanned documents often contain a number of undesirable elements, including dots, blobs, lines, borders and hole punches. LEADTOOLS provides a number of properties, methods and events that will improve the appearance of scanned documents by removing dots, blobs, lines, borders, hole punches, inverted text, bumps and nicks. The properties and methods are listed below:

BorderRemove method

DocCleanBitmap property

DocCleanSuccess property

hDocCleanRgn property

DotRemove method

HolePunchRemove method

InvertedText method

LineRemove method

Smooth method

The methods listed above each takes a number of parameters that control the performance of the corresponding removal process. Included in the parameters is a set of flags that allows you to obtain a LEAD region or a Windows region that contains all the elements removed from a document. For each element found by one of the removal methods, a corresponding event is triggered. These events provide a means of customizing the removal process, as well as creating your composite of the removed regions. These events are given below:

BorderRemove event

DotRemove event

HolePunchRemove event

InvertedText event

LevelLUTLengthproperty

LineRemove event

Smooth event