渲染
ImageProcessing.Render method
使用图像处理来提高 OCR 的准确性。创建一个过滤器列表,这些过滤器将按照您指定的顺序应用于输入图像。示例创建过滤器: PreprocessingFilter filters = new PreprocessingFilter { PreprocessingFilter.Invert(), PreprocessingFilter.Threshold(150), PreprocessingFilter.Binarize(), PreprocessingFilter.Rotate(180), PreprocessingFilter.Resize(3000,3000, Aspose.OCR.Filters.InterpolationFilterType.Box), PreprocessingFilter.Scale(6f), PreprocessingFilter.Dilate() }; 您不需要全部。仅设置您需要的即可。
public static OcrInput Render(OcrInput images)
| Parameter | Type | 描述 |
|---|---|---|
| images | OcrInput | 包含不同图像的 OcrInput 对象 OcrInput。 |
返回值
在 stream 字段中包含处理后图像结果的 OcrInput 对象。OcrInput。
另请参见
- class OcrInput
- class ImageProcessing
- namespace Aspose.OCR
- assembly Aspose.OCR