OCR fixes

This commit is contained in:
2023-01-13 20:13:20 -05:00
parent a074d8cf10
commit b9f008603a
5 changed files with 16 additions and 6 deletions

View File

@@ -209,8 +209,10 @@ void initialize_scan_context(scan_args_t *args) {
ScanCtx.ebook_ctx.content_size = args->content_size;
ScanCtx.ebook_ctx.enable_tn = args->tn_count > 0;
ScanCtx.ebook_ctx.tn_size = args->tn_size;
ScanCtx.ebook_ctx.tesseract_lang = args->tesseract_lang;
ScanCtx.ebook_ctx.tesseract_path = args->tesseract_path;
if (args->ocr_ebooks) {
ScanCtx.ebook_ctx.tesseract_lang = args->tesseract_lang;
ScanCtx.ebook_ctx.tesseract_path = args->tesseract_path;
}
ScanCtx.ebook_ctx.log = _log;
ScanCtx.ebook_ctx.logf = _logf;
ScanCtx.ebook_ctx.store = _store;

File diff suppressed because one or more lines are too long