For those wondering what the state of the art is, I did this in 10 min between meetings.
The most challenging thing was getting the right indexing on the lists since it could be an empty list, a list with a single value, or any number of values.
from ultralytics import YOLO
model = YOLO("yolov10x.pt")
results = model("birds/*", classes=[14])
for result in results:
if 14 in list(result.boxes.cls):
print("Bird!")
else:
print("Not Bird")
I will now take my 5 billion dollar please.Ironically enough the meeting I'm going in to is to explain why I need to use $100,000 worth of hardware for three months before I can answer the business side if what they want to do is possible or not.