OcrEngineMakeBinarizeCommand Method |
Namespace: Atalasoft.Ocr
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.