my
Browse files
app.py
CHANGED
@@ -120,6 +120,11 @@ def process_image():
|
|
120 |
print(f"Checking contents of /app/data: {bounding_box_save_path}")
|
121 |
print(f"Directory listing: {os.listdir('./app/Folder1')}")
|
122 |
print(f"Bounding box coordinates saved at {bounding_box_save_path}")
|
|
|
|
|
|
|
|
|
|
|
123 |
reader = easyocr.Reader(
|
124 |
['en'],
|
125 |
recog_network='en_sample',
|
|
|
120 |
print(f"Checking contents of /app/data: {bounding_box_save_path}")
|
121 |
print(f"Directory listing: {os.listdir('./app/Folder1')}")
|
122 |
print(f"Bounding box coordinates saved at {bounding_box_save_path}")
|
123 |
+
try:
|
124 |
+
reader = easyocr.Reader(['en'],recog_network='en_sample',model_storage_directory='./EasyOCR-Trainer/EasyOCR/easyocr/model', user_network_directory='./EasyOCR-Trainer/EasyOCR/user_network')
|
125 |
+
except Exception as e:
|
126 |
+
print(f"Error initializing EasyOCR Reader: {e}")
|
127 |
+
raise
|
128 |
reader = easyocr.Reader(
|
129 |
['en'],
|
130 |
recog_network='en_sample',
|