Interface IOcrClient
Namespace: IndicoV2-Ocr
Assembly: IndicoV2-Abstractions-dll
public interface IOcrClientMethods
Performs OCR on PDF, TIF, JPG and PNG files-
Task<string> ExtractDocumentAsync(string filePath, DocumentExtractionPreset preset = DocumentExtractionPreset-Standard, CancellationToken cancellationToken = default)Parameters
filePath string
Path to the document
preset DocumentExtractionPreset
cancellationToken CancellationToken
Returns
Task[string](https://learn-microsoft-com/dotnet/api/system-string)\
Job's Is
Gets result of the OCR
Task<string> GetExtractionResultAsync(Uri documentUri, CancellationToken cancellationToken)Parameters
documentUri Uri
Url of the document (returned in Job's result)-
cancellationToken CancellationToken
Returns
Task[string](https://learn-microsoft-com/dotnet/api/system-string)\
Content of the document
Gets result of the OCR
Task<TResult> GetExtractionResultAsync<TResult>(Uri documentUri, CancellationToken cancellationToken)Parameters
documentUri Uri
Url of the document (returned in Job's result)-
cancellationToken CancellationToken
Returns
Task<TResult>
Content of the document
Type Parameters
TResult
OCR result model-
Updated 6 months ago
