TesseractDoc class.
More...
#include <ocr_tesseract.h>
TesseractDoc class.
A TesseractDoc allow you to convert image based PDF to searchable document.
◆ Close()
virtual bool TesseractDoc::Close |
( |
| ) |
|
|
pure virtual |
◆ OcrImageToPage()
virtual bool TesseractDoc::OcrImageToPage |
( |
PsImage * |
image, |
|
|
PdfMatrix * |
matrix, |
|
|
PdfPage * |
page, |
|
|
PdfCancelProc |
cancel_proc, |
|
|
void * |
cancel_data |
|
) |
| |
|
pure virtual |
Recognize text on the page and add recognized text on the page.
- Parameters
-
params | OcrTesseractParams that allows modify the OCR algorithm. |
page | The page to be processed |
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
- Returns
- true if the searchable document was created successfully or false in case of an error. Process OCR on an image and insert recognized text onto the page.
- Parameters
-
image | The image to be processed. |
matrix | Transformation matrix to be applied on the text added to page. |
page | The destination page where the text will be added. |
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
- Returns
- true if the image was processed successfully and text was added to the page or false in case of an error.