Nighty3912 commited on
Commit
9a2f47d
·
verified ·
1 Parent(s): 18f47a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.5)
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))