my
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def process_image():
|
|
118 |
cv2.imwrite(cropped_image_path, cropped_image)
|
119 |
print(f"Enhanced cropped image saved at {cropped_image_path}")
|
120 |
print(f"Checking contents of /app/data: {bounding_box_save_path}")
|
121 |
-
print(f"Directory listing: {os.listdir('/
|
122 |
print(f"Bounding box coordinates saved at {bounding_box_save_path}")
|
123 |
reader = easyocr.Reader(
|
124 |
['en'],
|
@@ -127,10 +127,10 @@ def process_image():
|
|
127 |
user_network_directory='./EasyOCR-Trainer/EasyOCR/user_network')
|
128 |
import re
|
129 |
input_file_path = './bounding_boxes.txt'
|
130 |
-
cropped_images_folder = './
|
131 |
output_csv_path = './Folder2/' + ii + 'bounding_boxes_with_recognition.csv'
|
132 |
-
print(f"Checking contents of /
|
133 |
-
print(f"Directory listing: {os.listdir('/
|
134 |
|
135 |
with open(input_file_path, 'r') as infile:
|
136 |
lines = infile.readlines()
|
|
|
118 |
cv2.imwrite(cropped_image_path, cropped_image)
|
119 |
print(f"Enhanced cropped image saved at {cropped_image_path}")
|
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'],
|
|
|
127 |
user_network_directory='./EasyOCR-Trainer/EasyOCR/user_network')
|
128 |
import re
|
129 |
input_file_path = './bounding_boxes.txt'
|
130 |
+
cropped_images_folder = './app/cropped_images/'
|
131 |
output_csv_path = './Folder2/' + ii + 'bounding_boxes_with_recognition.csv'
|
132 |
+
print(f"Checking contents of /app/data: {bounding_box_save_path}")
|
133 |
+
print(f"Directory listing: {os.listdir('/app/data')}")
|
134 |
|
135 |
with open(input_file_path, 'r') as infile:
|
136 |
lines = infile.readlines()
|