| 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
)
Public Shared Function Create (
Optional datapath As String = Nothing,
Optional language As String = Nothing,
Optional charWhitelist As String = Nothing,
Optional oem As Integer = 3,
Optional psmode As Integer = 3
) As OCRTesseract
public:
static OCRTesseract^ Create(
String^ datapath = nullptr,
String^ language = nullptr,
String^ charWhitelist = nullptr,
int oem = 3,
int psmode = 3
)
static member Create :
?datapath : string *
?language : string *
?charWhitelist : string *
?oem : int *
?psmode : int
(* Defaults:
let _datapath = defaultArg datapath null
let _language = defaultArg language null
let _charWhitelist = defaultArg charWhitelist null
let _oem = defaultArg oem 3
let _psmode = defaultArg psmode 3
*)
-> OCRTesseract
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