leeyunjai commited on
Commit
b53fc9e
·
verified ·
1 Parent(s): 76beccb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -5
README.md CHANGED
@@ -26,7 +26,7 @@ You can load the model and perform detection on an image as follows:
26
  from ultralytics import YOLO
27
 
28
  # Load the model
29
- model = YOLO("./falldetect-11.pt")
30
 
31
  # Perform detection on an image
32
  results = model("image.png")
@@ -41,10 +41,9 @@ The results object contains bounding boxes, labels (e.g., numbers or operators),
41
  Access them like this:
42
 
43
  ```python
44
- for result in results:
45
- print(result.boxes) # Bounding boxes
46
- print(result.names) # Detected classes
47
- print(result.scores) # Confidence scores
48
  ```
49
 
50
  ![](result.png)
 
26
  from ultralytics import YOLO
27
 
28
  # Load the model
29
+ model = YOLO("./feryolo-11x-64.pt")
30
 
31
  # Perform detection on an image
32
  results = model("image.png")
 
41
  Access them like this:
42
 
43
  ```python
44
+ # View results
45
+ for r in results:
46
+ print(r.probs) # print the Probs object containing the detected class probabilities
 
47
  ```
48
 
49
  ![](result.png)