Click or drag to resize

OcrEngineMakeBinarizeCommand Method

Returns a new ImageCommand that will binarize an image in the HandleDeskew method

Namespace:  Atalasoft.Ocr
Assembly:  Atalasoft.dotImage.Ocr (in Atalasoft.dotImage.Ocr.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
protected virtual ImageCommand MakeBinarizeCommand()

Return Value

Type: ImageCommand
ImageCommand that will binarize an image in the HandleDeskew method.
Remarks

By default this method returns a new instance of the DynamicThresholdCommand with default settings. If you override this method, you need to return a command that when applied to an image will return an image of PixelFormat1bppIndexed. If the result of the command's Apply method is not a 1-bit image, it will be discarded and a SimpleThresholdCommand will be used instead.

If MakeBinarizeCommand returns null, HandleDeskew will revert to DotImage 6.09 behavior, which is to attempt to apply an AutoDeskewCommand to a color image if it the appropriate licensing is in place. Otherwise, SimpleThreshold and 1-Bit deskew will be used.

See Also