Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def detect_and_ocr(image):
|
|
67 |
|
68 |
if check_tesseract(): # If Tesseract is installed, run OCR
|
69 |
try:
|
70 |
-
ocr_text = pytesseract.image_to_string(cropped_line, lang="khm").strip()
|
71 |
if ocr_text:
|
72 |
extracted_text_lines.append(ocr_text)
|
73 |
except Exception as e:
|
|
|
67 |
|
68 |
if check_tesseract(): # If Tesseract is installed, run OCR
|
69 |
try:
|
70 |
+
ocr_text = pytesseract.image_to_string(cropped_line, lang="khm+eng").strip()
|
71 |
if ocr_text:
|
72 |
extracted_text_lines.append(ocr_text)
|
73 |
except Exception as e:
|