Click or drag to resize

OCRTesseract Class

Recognize text using the tesseract-ocr API. Takes image on input and returns recognized text in the output_text parameter. Optionallyprovides also the Rects for individual text elements found(e.g.words), and the list of those text elements with their confidence values.
Inheritance Hierarchy

Namespace:  OpenCvSharp.Text
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public sealed class OCRTesseract : BaseOCR

The OCRTesseract type exposes the following members.

Properties
  NameDescription
Public propertyCvPtr
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.)
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.)
Public propertyIsEnabledDispose
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.)
Top
Methods
  NameDescription
Public methodStatic memberCreate
Creates an instance of the OCRTesseract class. Initializes Tesseract.
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRun(Mat, String, Rect, String, Single, ComponentLevels)
Recognize text using the tesseract-ocr API. Takes image on input and returns recognized text in the output_text parameter. Optionally provides also the Rects for individual text elements found(e.g.words), and the list of those text elements with their confidence values.
(Overrides BaseOCRRun(Mat, String, Rect, String, Single, ComponentLevels).)
Public methodRun(Mat, Mat, String, Rect, String, Single, ComponentLevels)
Recognize text using the tesseract-ocr API. Takes image on input and returns recognized text in the output_text parameter. Optionally provides also the Rects for individual text elements found(e.g.words), and the list of those text elements with their confidence values.
(Overrides BaseOCRRun(Mat, Mat, String, Rect, String, Single, ComponentLevels).)
Public methodSetWhiteList
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also