From 2228d68997949cc54b8d0fac8d5a49217b384700 Mon Sep 17 00:00:00 2001 From: KaipaUday <117348546+KaipaUday@users.noreply.github.com> Date: Fri, 5 Jul 2024 11:33:09 +0200 Subject: [PATCH] fix issue #552 regex updated to accept numbers in traineddata files. --- pytesseract/pytesseract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytesseract/pytesseract.py b/pytesseract/pytesseract.py index 37837f4..5009e72 100644 --- a/pytesseract/pytesseract.py +++ b/pytesseract/pytesseract.py @@ -48,7 +48,7 @@ LOGGER = logging.getLogger('pytesseract') DEFAULT_ENCODING = 'utf-8' -LANG_PATTERN = re.compile('^[a-z_]+$') +LANG_PATTERN = re.compile('^[a-z0-9_]+$') RGB_MODE = 'RGB' SUPPORTED_FORMATS = { 'JPEG',