Update object_detection.py
Browse files- object_detection.py +1 -1
object_detection.py
CHANGED
|
@@ -43,7 +43,7 @@ def detectObjects(imageFile, confidence_score):
|
|
| 43 |
if not matches:
|
| 44 |
raise FileNotFoundError(f"No output image found for {stem} in {pred_dir}")
|
| 45 |
# Load and display the image
|
| 46 |
-
img = mpimg.imread(
|
| 47 |
return img
|
| 48 |
#plt.figure(figsize=(8, 8))
|
| 49 |
#plt.imshow(img)
|
|
|
|
| 43 |
if not matches:
|
| 44 |
raise FileNotFoundError(f"No output image found for {stem} in {pred_dir}")
|
| 45 |
# Load and display the image
|
| 46 |
+
img = mpimg.imread(str(matches[0]))
|
| 47 |
return img
|
| 48 |
#plt.figure(figsize=(8, 8))
|
| 49 |
#plt.imshow(img)
|