Skip to content

Commit 7c7599a

Browse files
committed
fix regression: ncnn docs
1 parent f221019 commit 7c7599a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

supervision/detection/core.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,13 +906,17 @@ def from_ncnn(cls, ncnn_results) -> Detections:
906906
[ncnn](https://github.com/Tencent/ncnn) inference result.
907907
Supports object detection models.
908908
909-
Args:
909+
Arguments:
910910
ncnn_results (dict): The output Results instance from ncnn.
911911
912-
import cv2
912+
Returns:
913+
Detections: A new Detections object.
914+
915+
Example:
916+
```python
917+
import cv2
913918
from ncnn.model_zoo import get_model
914919
import supervision as sv
915-
916920
image = cv2.imread(<SOURCE_IMAGE_PATH>)
917921
model = get_model(
918922
"yolov8s",

0 commit comments

Comments
 (0)