Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -158,7 +158,7 @@ def yolo_detect(image: Union[str, Path, int, Image.Image, list, tuple, np.ndarra
|
|
158 |
|
159 |
def detect_reference_square(img: np.ndarray):
|
160 |
t = time.time()
|
161 |
-
res = reference_detector_global.predict(img, conf=0.
|
162 |
if not res or len(res) == 0 or len(res[0].boxes) == 0:
|
163 |
raise ReferenceBoxNotDetectedError("Reference Coin not detected in the image.")
|
164 |
print("Reference coin detection completed in {:.2f} seconds".format(time.time() - t))
|
|
|
158 |
|
159 |
def detect_reference_square(img: np.ndarray):
|
160 |
t = time.time()
|
161 |
+
res = reference_detector_global.predict(img, conf=0.35)
|
162 |
if not res or len(res) == 0 or len(res[0].boxes) == 0:
|
163 |
raise ReferenceBoxNotDetectedError("Reference Coin not detected in the image.")
|
164 |
print("Reference coin detection completed in {:.2f} seconds".format(time.time() - t))
|