forked from scott/YOLOv8_test_example
Compare commits
5
Commits
main
..
c590b6bb4b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c590b6bb4b | ||
|
|
8a3dc4b067 | ||
|
|
caeab24e57 | ||
|
|
67277c2862 | ||
|
|
7df0ad92ae |
No files matched your search
Executable → Regular
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
|
After Width: | Height: | Size: 414 KiB |
File renamed without changes.
Binary file not shown.
|
After Width: | Height: | Size: 1001 KiB |
@@ -1,10 +1,16 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
|
||||
from ultralytics import YOLO
|
||||
|
||||
image_path = sys.argv[1]
|
||||
|
||||
# Load the small pretrained YOLOv8 object-detection model.
|
||||
model = YOLO("yolov8n.pt")
|
||||
|
||||
# Run object detection on a test image.
|
||||
results = model("bus4.jpg")
|
||||
results = model(image_path)
|
||||
|
||||
has_bus = False
|
||||
max_confidence = 0.0
|
||||
|
||||
Reference in new issue
Block a user