保存

ImageProcessing.Save 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 Save(OcrInput images, string folderPath)
ParameterType描述
imagesOcrInput包含不同图像的 OcrInput 对象 OcrInput
folderPathString用于保存处理后图像的路径,不包含图像文件名。

返回值

包含处理后图像结果的 OcrInput 对象 OcrInput

另请参见