Views
No views yet
ultralytics library installed, which is used for YOLO models:pip install ultralytics1# classs
2angry
3disgusted
4fearful
5happy
6neutral
7sad
8surprised1from ultralytics import YOLO
2
3# Load the model
4model = YOLO("./feryolo-11x-64.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