ammariii08 commited on
Commit
29b0939
·
verified ·
1 Parent(s): 63367de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -150,7 +150,7 @@ def yolo_detect(image: Union[str, Path, int, Image.Image, list, tuple, np.ndarra
150
 
151
  def detect_reference_square(img: np.ndarray):
152
  t = time.time()
153
- res = reference_detector_global.predict(img, conf=0.45)
154
  if not res or len(res) == 0 or len(res[0].boxes) == 0:
155
  raise ReferenceBoxNotDetectedError("Reference box not detected in the image.")
156
  print("Reference detection completed in {:.2f} seconds".format(time.time() - t))
 
150
 
151
  def detect_reference_square(img: np.ndarray):
152
  t = time.time()
153
+ res = reference_detector_global.predict(img, conf=0.35)
154
  if not res or len(res) == 0 or len(res[0].boxes) == 0:
155
  raise ReferenceBoxNotDetectedError("Reference box not detected in the image.")
156
  print("Reference detection completed in {:.2f} seconds".format(time.time() - t))