Table of Contents

Class OCRTesseract

Namespace
OpenCvSharp.Text
Assembly
OpenCvSharp.dll

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.

public sealed class OCRTesseract : BaseOCR, IDisposable
Inheritance
OCRTesseract
Implements
Inherited Members

Methods

Create(string?, string?, string?, OcrEngineMode, PageSegMode)

Creates an instance of the OCRTesseract class. Initializes Tesseract.

Run(Mat, Mat, out string, out Rect[], out string?[], out float[], 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.

Run(Mat, out string, out Rect[], out string?[], out float[], 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.

SetWhiteList(string)