二值化
Binarize()
将图像转换为黑白图像。二值图像是像素仅具有两种可能强度值的图像。它们通常显示为黑白。数值上,这两个值通常为黑色的 0 和白色的 255。二值图像是通过对图像进行自动阈值处理生成的。
public static PreprocessingFilter Binarize()
返回值
BinarizeFilter 对象。
另请参见
- class PreprocessingFilter
- namespace Aspose.OCR.Models.PreprocessingFilters
- assembly Aspose.OCR
Binarize(Rectangle)
将图像的一部分转换为黑白图像。二值图像是像素仅具有两种可能强度值的图像。它们通常显示为黑白。数值上,这两个值通常为黑色的 0 和白色的 255。二值图像是通过对图像进行自动阈值处理生成的。
public static PreprocessingFilter Binarize(Rectangle area)
| Parameter | Type | 描述 |
|---|---|---|
| 区域 | Rectangle | 要校正的图像部分的坐标。 |
返回值
BinarizeFilter 对象。
另请参见
- class PreprocessingFilter
- namespace Aspose.OCR.Models.PreprocessingFilters
- assembly Aspose.OCR