Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def normalize_bbox(bbox, width, height):
|
|
49 |
]
|
50 |
|
51 |
|
52 |
-
def extract_box(
|
53 |
x, y, x2, y2 = coordinates
|
54 |
cropped_image = image.crop((x, y, x2, y2))
|
55 |
return cropped_image
|
|
|
49 |
]
|
50 |
|
51 |
|
52 |
+
def extract_box(image, coordinates):
|
53 |
x, y, x2, y2 = coordinates
|
54 |
cropped_image = image.crop((x, y, x2, y2))
|
55 |
return cropped_image
|