Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -324,7 +324,7 @@ def resize_img(img: np.ndarray, resize_dim):
|
|
324 |
def predict(image, offset_inches):
|
325 |
try:
|
326 |
drawer_img = yolo_detect(image, ["box"])
|
327 |
-
shrunked_img = make_square(shrink_bbox(drawer_img, 0.
|
328 |
except:
|
329 |
raise gr.Error("Unable to DETECT DRAWER, please take another picture with different magnification level!")
|
330 |
|
|
|
324 |
def predict(image, offset_inches):
|
325 |
try:
|
326 |
drawer_img = yolo_detect(image, ["box"])
|
327 |
+
shrunked_img = make_square(shrink_bbox(drawer_img, 0.90))
|
328 |
except:
|
329 |
raise gr.Error("Unable to DETECT DRAWER, please take another picture with different magnification level!")
|
330 |
|