manikandan18ramalingam commited on
Commit
9775f7f
·
verified ·
1 Parent(s): 1e846ef

Update object_detection.py

Browse files
Files changed (1) hide show
  1. object_detection.py +1 -1
object_detection.py CHANGED
@@ -33,7 +33,7 @@ def detectObjects(imageFile, confidence_score):
33
  for result in results:
34
  for box in result.boxes:
35
  print(f"Class: {model.names[int(box.cls)]}, Confidence: {box.conf}, Coordinates: {box.xyxy}")
36
- output_path = f"{current_path}/output"
37
  #shutil.move(results[0].save_path, output_path)
38
  # Path to the saved image in the custom directory
39
  image_path = f"{custom_save_dir}/{imageFile}"
 
33
  for result in results:
34
  for box in result.boxes:
35
  print(f"Class: {model.names[int(box.cls)]}, Confidence: {box.conf}, Coordinates: {box.xyxy}")
36
+ output_path = f"/output"
37
  #shutil.move(results[0].save_path, output_path)
38
  # Path to the saved image in the custom directory
39
  image_path = f"{custom_save_dir}/{imageFile}"