mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Fix last 3 errors
This commit is contained in:
parent
cfb6b3123f
commit
fff140ad43
3 changed files with 5 additions and 2 deletions
|
@ -26,6 +26,7 @@ function tesseract_ocr_detection(&$media)
|
|||
try {
|
||||
$languages = $ocr->availableLanguages();
|
||||
if ($languages) {
|
||||
/** @phpstan-ignore-next-line ignore call of \thiagoalessio\TesseractOCR\Option::lang() */
|
||||
$ocr->lang(implode('+', $languages));
|
||||
}
|
||||
$ocr->tempDir(System::getTempPath());
|
||||
|
@ -33,5 +34,5 @@ function tesseract_ocr_detection(&$media)
|
|||
$media['description'] = $ocr->run();
|
||||
} catch (\Throwable $th) {
|
||||
Logger::info('Error calling TesseractOCR', ['message' => $th->getMessage()]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue