CloudAnts commited on
Commit
00f5739
·
1 Parent(s): 9679db6
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -128,6 +128,10 @@ def process_image():
128
  print(f"Checking contents of /app/data: {bounding_box_save_path}")
129
  print(f"Directory listing: {os.listdir('./app/Folder1')}")
130
  print(f"Bounding box coordinates saved at {bounding_box_save_path}")
 
 
 
 
131
  with open(input_file_path, 'r') as infile:
132
  lines = infile.readlines()
133
  with open(output_csv_path, 'w', newline='', encoding='utf-8') as csvfile:
 
128
  print(f"Checking contents of /app/data: {bounding_box_save_path}")
129
  print(f"Directory listing: {os.listdir('./app/Folder1')}")
130
  print(f"Bounding box coordinates saved at {bounding_box_save_path}")
131
+ import re
132
+ input_file_path = './bounding_boxes.txt'
133
+ cropped_images_folder = './app/cropped_images/'
134
+ output_csv_path = './app/Folder2/' + ii + 'bounding_boxes_with_recognition.csv'
135
  with open(input_file_path, 'r') as infile:
136
  lines = infile.readlines()
137
  with open(output_csv_path, 'w', newline='', encoding='utf-8') as csvfile: