1 #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__) 99 static ErrorCode Initialize(
const wchar_t* ocr_resource_path,
bool is_shared_cpu_cores_mode);
122 static void SetLogFile(
const char* log_file_path);
135 static void SetLogFile(
const wchar_t* log_file_path);
410 OCR& operator = (
const OCR& other);
426 bool operator != (
const OCR& other)
const;
435 bool IsEmpty()
const;
449 void OCRPDFPage(
pdf::PDFPage pdf_page,
bool is_editable);
478 void OCRPDFDocument(
pdf::PDFDoc pdf_doc,
bool is_editable);
495 #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__) 533 #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__)
bool is_detect_pictures
Decide whether to detect pictures. true means the pictures will be detected during analysis process....
Definition: fs_ocr.h:236
Definition: fs_common.h:1273
CFX_Object Object
Object type.
Definition: fs_basictypes.h:221
bool is_editable
Decide whether the OCR result is editable. true means the OCR result is editable. false means the OCR...
Definition: fs_ocr.h:349
Header file for PDF document related definitions and classes.
static void SetLogFile(const char *log_file_path)
Set log file for OCR engine.
OCRSettingData(pdf::PDFDoc pdf_doc, const common::Range &page_range, bool is_editable, const OCRConfig &ocr_config)
Constructor, with parameters.
Definition: fs_ocr.h:287
WIDE STRING CLASS.
Definition: fx_string.h:1461
Definition: fs_pdfdoc.h:648
OCRConfig()
Constructor.
Definition: fs_ocr.h:165
void Set(pdf::PDFDoc pdf_doc, const common::Range &page_range, bool is_editable, const OCRConfig &ocr_config)
Set value.
Definition: fs_ocr.h:304
static ErrorCode Initialize(const wchar_t *ocr_resource_path)
Initialize OCR engine.
OCRSettingData()
Constructor.
Definition: fs_ocr.h:277
WString suspect_words
Suspicious words after OCR recognition.
Definition: fs_ocr.h:372
bool operator==(const char *str1, const CFX_ByteString &str2)
Check if two byte strings are equal.
Definition: fs_basictypes.h:128
OCRSettingData & operator=(const OCRSettingData &data)
Assign operator.
Definition: fs_ocr.h:318
ErrorCode
Enumeration for error code.
Definition: fs_basictypes.h:237
OCRConfig & operator=(const OCRConfig &other)
Assign operator.
Definition: fs_ocr.h:209
foxit::RectF words_rect
The box rectangle, in PDF coordinate system for suspicious words.
Definition: fs_ocr.h:369
pdf::PDFDoc pdf_doc
A valid PDF document that need to be OCR.
Definition: fs_ocr.h:340
Definition: fs_pdfpage.h:412
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
int page_index
The index of page.
Definition: fs_ocr.h:366
Header file for common definitions and classes.
bool operator!=(const OCRSettingData &data)
Not equal operator.
Definition: fs_ocr.h:333
OCRConfig(bool is_detect_pictures, bool is_remove_noise, bool is_correct_skew, bool is_enable_text_extraction_mode)
Constructor, with parameters.
Definition: fs_ocr.h:178
Definition: fs_basictypes.h:443
bool operator!=(const OCRConfig &other)
Not equal operator.
Definition: fs_ocr.h:224
Header file for PDF page related definitions and classes.
static void SetLanguages(const wchar_t *languages)
Set the name of languages which would be included in the language database for doing OCR.
bool is_correct_skew
Decide whether to enable skew correction. true means to enable skew correction. false means not to en...
Definition: fs_ocr.h:255
Foxit namespace.
Definition: fs_taggedpdf.h:27
void Set(bool is_detect_pictures, bool is_remove_noise, bool is_correct_skew, bool is_enable_text_extraction_mode)
Set value.
Definition: fs_ocr.h:195
bool is_remove_noise
Decide whether to remove noise of the image of PDF. It can be useful if the image of the PDF contains...
Definition: fs_ocr.h:246
bool is_enable_text_extraction_mode
Decide whether to enable text extraction mode.
Definition: fs_ocr.h:268
common::Range page_range
The range of pages that need to be OCR.
Definition: fs_ocr.h:343
OCRConfig ocr_config
The OCRConfig object.
Definition: fs_ocr.h:352
static void Release()
Release OCR engine.
Definition: fx_coordinates.h:771