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'],
|
|
@@ -129,8 +129,8 @@ def process_image():
|
|
| 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
|
| 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'],
|
|
|
|
| 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()
|