'Declaration Public Overloads MustOverride Function DetectBlankPage( _ ByVal maximumNoiseObjectSize As Integer, _ ByVal ignoreHolePunches As Boolean _ ) As Boolean
'Usage Dim instance As ImGearOCRImage Dim maximumNoiseObjectSize As Integer Dim ignoreHolePunches As Boolean Dim value As Boolean value = instance.DetectBlankPage(maximumNoiseObjectSize, ignoreHolePunches)
public abstract bool DetectBlankPage( int maximumNoiseObjectSize, bool ignoreHolePunches )
public: abstract bool DetectBlankPage( int maximumNoiseObjectSize, bool ignoreHolePunches )
public: abstract bool DetectBlankPage( int maximumNoiseObjectSize, bool ignoreHolePunches )
Parameters
- maximumNoiseObjectSize
- Specifies the maximum size of an object on the page for it to be disregarded as noise. Object here means a connected group of black pixels after binarization. The object size is a diagonal of the minimum circumscribed rectangle that contains the object. Default value is 12.
- ignoreHolePunches
- Setting this to true will attempt to detect and remove hole punches from the page before determining if the page is blank. May increase processing time for dot-shaded documents. Default value is false.
Return Value
True if the image is blank, otherwise False.