Class ImageProcessing
Namespace: Aspose.OCR
Assembly: Aspose.OCR.dll (25.1.0)
Aspose OCR 라이브러리를 위한 헬퍼 클래스입니다. 이미지를 전처리하고 저장할 수 있습니다.
public static class ImageProcessing
상속
상속된 멤버
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
메서드
Render(OcrInput)
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)
매개변수
images
OcrInput
다양한 이미지를 포함하는 OcrInput 객체 Aspose.OCR.OcrInput.
반환값
스트림 필드에서 처리된 결과 이미지를 포함하는 OcrInput 객체 Aspose.OCR.OcrInput.
Save(OcrInput, string)
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)
매개변수
images
OcrInput
다양한 이미지를 포함하는 OcrInput 객체 Aspose.OCR.OcrInput.
folderPath
string
처리된 이미지를 저장하기 위한 이미지 이름이 없는 경로입니다.
반환값
처리된 결과 이미지를 포함하는 OcrInput 객체 Aspose.OCR.OcrInput.