chore: typo fix

Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com>
This commit is contained in:
nkh0472 2025-04-26 17:08:55 +08:00 committed by GitHub
parent e6387b3d47
commit befc8d1e48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,7 +151,7 @@ class TesseractOcrModel(BaseOcrModel):
script = map_tesseract_script(script) script = map_tesseract_script(script)
lang = f"{self.script_prefix}{script}" lang = f"{self.script_prefix}{script}"
# Check if the detected languge is present in the system # Check if the detected language is present in the system
if lang not in self._tesserocr_languages: if lang not in self._tesserocr_languages:
msg = f"Tesseract detected the script '{script}' and language '{lang}'." msg = f"Tesseract detected the script '{script}' and language '{lang}'."
msg += " However this language is not installed in your system and will be ignored." msg += " However this language is not installed in your system and will be ignored."