OcrTesseract class.
More...
#include <ocr_tesseract.h>
OcrTesseract class.
OcrTesseract plugin main class.
◆ OpenOcrDoc()
Creates a new OCR process for PdfDoc. NOTE: You must call OcrTesseractDoc::Close once for every successful open.
- Parameters
-
- Returns
- The newly created TesseractDoc or null.
- See also
- TesseractDoc::Close
OcrWithTesseract
◆ SetDataPath()
virtual bool OcrTesseract::SetDataPath |
( |
const wchar_t * |
path | ) |
|
|
pure virtual |
Specify the location of tessdata path. Please download from https://github.com/tesseract-ocr/tessdata
param path Absolute file path where the tessdata data are located.
- Returns
- true if data path was set succsessfully, false otherwise.
◆ SetEngine()
Specify the location of tessdata path. Please download from https://github.com/tesseract-ocr/tessdata
param path Absolute file path where the tessdata data are located.
- Returns
- true if data path was set succsessfully, false otherwise.
◆ SetLanguage()
virtual bool OcrTesseract::SetLanguage |
( |
const wchar_t * |
lang | ) |
|
|
pure virtual |
Specify language used for OCR.
- Parameters
-
lang | Default OCR language. |
- Returns
- true if language was set succsessfully, false otherwise.