DefaultOCRService
Wisej.AI.Services.DefaultOCRService
Last updated
Wisej.AI.Services.DefaultOCRService
Last updated
Namespace: Wisej.AI.Services
Assembly: Wisej.AI (3.5.0.0)
Represents a default implementation of the interface using Tesseract for Optical Character Recognition (OCR).
Initializes a new instance of the class.
: Gets or sets the language used for OCR processing.
The language should be specified as a object. If the language is not set, the default language used is English ("eng").
This method should be called when the service is no longer needed to free up resources.
Scans an image and performs OCR to extract text from it.
image
Throws:
Asynchronously scans an image from a URL and returns the recognized text.
imageUrl
The URL of the image to be scanned for text recognition. This parameter is not optional.
Throws:
Represents an OCR (Optical Character Recognition) service that can scan images and extract text using a specified language.
Releases all resources used by the .
The image to be scanned. It should be a valid object. Defaults to null.
Returns: . A representing the asynchronous operation, with the recognized text as the result.
This method performs OCR on the provided image using the specified language set in the property. If the language is not set, English is used by default. Example usage:
Thrown if the image parameter is null.
Returns: . A task representing the asynchronous operation, with the recognized text as the result.
This method retrieves an image from the provided URL and utilizes the Tesseract OCR engine to recognize text. The language used for OCR is specified by the property. Example usage:
Thrown when imageUrl is null or empty.