Update object_detection.py
Browse files- 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"
|
| 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}"
|