Compare commits

...
5 Commits
Author SHA1 Message Date
jazz c590b6bb4b move all pictures to img/ 2026-09-17 10:47:14 -05:00
jazz 8a3dc4b067 filename capitalization 2026-09-17 10:46:36 -05:00
jazz caeab24e57 fix readme permission 2026-09-17 10:46:24 -05:00
jazz 67277c2862 more pictures 2026-09-17 10:45:15 -05:00
jazz 7df0ad92ae parse image path from argument 2026-09-17 10:44:51 -05:00
10 changed files with 7 additions and 1 deletions

No files matched your search

Executable → Regular
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 414 KiB

View File
File renamed without changes.
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 KiB

Regular → Executable
+7 -1
View File
@@ -1,10 +1,16 @@
#!/usr/bin/env python3
import sys
from ultralytics import YOLO from ultralytics import YOLO
image_path = sys.argv[1]
# Load the small pretrained YOLOv8 object-detection model. # Load the small pretrained YOLOv8 object-detection model.
model = YOLO("yolov8n.pt") model = YOLO("yolov8n.pt")
# Run object detection on a test image. # Run object detection on a test image.
results = model("bus4.jpg") results = model(image_path)
has_bus = False has_bus = False
max_confidence = 0.0 max_confidence = 0.0