Spaces:
Sleeping
Sleeping
Update core_pipeline.py
Browse files- core_pipeline.py +1 -1
core_pipeline.py
CHANGED
|
@@ -6,7 +6,7 @@ from ultralytics import YOLO
|
|
| 6 |
import matplotlib.pyplot as plt
|
| 7 |
|
| 8 |
# Load YOLOv8 model (you can use your own tree-detection model)
|
| 9 |
-
model = YOLO("
|
| 10 |
|
| 11 |
def extract_frames(video_path, interval=30):
|
| 12 |
cap = cv2.VideoCapture(video_path)
|
|
|
|
| 6 |
import matplotlib.pyplot as plt
|
| 7 |
|
| 8 |
# Load YOLOv8 model (you can use your own tree-detection model)
|
| 9 |
+
model = YOLO("./data/yolo11n.pt") # Replace with tree-trained model
|
| 10 |
|
| 11 |
def extract_frames(video_path, interval=30):
|
| 12 |
cap = cv2.VideoCapture(video_path)
|