Views
No views yet
ultralytics library installed, which is used for YOLO models:pip install ultralytics1# class
2calling
3clapping
4cycling
5dancing
6drinking
7eating
8fighting
9hugging
10laughing
11listening_to_music
12running
13sitting
14sleeping
15texting
16using_laptop1from ultralytics import YOLO
2
3# Load the model
4model = YOLO("./action-11x.pt")
5
6# Perform detection on an image
7results = model("image.png")
8
9# Display or process the results
10results.show() # This will display the image with detected objects1# View results
2for r in results:
3 print(r.probs) # print the Probs object containing the detected class probabilities