Click or drag to resize

OCRTesseractCreate Method

Creates an instance of the OCRTesseract class. Initializes Tesseract.

Namespace:  OpenCvSharp.Text
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static OCRTesseract Create(
	string datapath = null,
	string language = null,
	string charWhitelist = null,
	int oem = 3,
	int psmode = 3
)

Parameters

datapath (Optional)
Type: SystemString
datapath the name of the parent directory of tessdata ended with "/", or null to use the system's default directory.
language (Optional)
Type: SystemString
an ISO 639-3 code or NULL will default to "eng".
charWhitelist (Optional)
Type: SystemString
specifies the list of characters used for recognition. null defaults to "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".
oem (Optional)
Type: SystemInt32
tesseract-ocr offers different OCR Engine Modes (OEM), by deffault tesseract::OEM_DEFAULT is used.See the tesseract-ocr API documentation for other possible values.
psmode (Optional)
Type: SystemInt32
tesseract-ocr offers different Page Segmentation Modes (PSM) tesseract::PSM_AUTO (fully automatic layout analysis) is used. See the tesseract-ocr API documentation for other possible values.

Return Value

Type: OCRTesseract

[Missing <returns> documentation for "M:OpenCvSharp.Text.OCRTesseract.Create(System.String,System.String,System.String,System.Int32,System.Int32)"]

See Also