Upload app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import cv2
|
|
8 |
model = YOLO("best-3.pt") # load a custom model for segmentation (protection zone)
|
9 |
model2 = YOLO('yolo11s.pt') # load a second model for object detection
|
10 |
|
11 |
-
|
12 |
def process_image(image):
|
13 |
# Gradio passes the image as RGB, so we'll work in RGB color space
|
14 |
image_rgb = np.array(image)
|
|
|
8 |
model = YOLO("best-3.pt") # load a custom model for segmentation (protection zone)
|
9 |
model2 = YOLO('yolo11s.pt') # load a second model for object detection
|
10 |
|
11 |
+
|
12 |
def process_image(image):
|
13 |
# Gradio passes the image as RGB, so we'll work in RGB color space
|
14 |
image_rgb = np.array(image)
|