Spaces:
Sleeping
Sleeping
Update my_model/detector/object_detection.py
Browse files
my_model/detector/object_detection.py
CHANGED
|
@@ -127,7 +127,7 @@ class ObjectDetector:
|
|
| 127 |
raise
|
| 128 |
|
| 129 |
|
| 130 |
-
|
| 131 |
"""
|
| 132 |
Detect objects in the given image using the loaded model.
|
| 133 |
|
|
|
|
| 127 |
raise
|
| 128 |
|
| 129 |
|
| 130 |
+
def detect_objects(self, image: Image.Image, threshold: float = 0.4) -> Tuple[str, List[Tuple[str, List[float], float]]]:
|
| 131 |
"""
|
| 132 |
Detect objects in the given image using the loaded model.
|
| 133 |
|