protected fun toBitmap(source: LuminanceSource?): BinaryBitmap? { return BinaryBitmap(HybridBinarizer(source)) }
Given an image source , convert to a binary bitmap . Override this to use a custom binarizer .