Sahi work on non axis oriented bounding box? Like yolo obb? #987
Replies: 5 comments 2 replies
-
Why is there no answer or example? Thank you. |
Beta Was this translation helpful? Give feedback.
-
The answere is no, and trying to do so will fail with
This is because OBB are returned at
|
Beta Was this translation helpful? Give feedback.
-
这样做应该是不行的 |
Beta Was this translation helpful? Give feedback.
-
This is supported in https://supervision.roboflow.com/latest/ |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. Following the method you mentioned, I have completed the slice detection and also the detection of the rotating frame. Thank you so much!
shaobo_zhang
***@***.***
…------------------ 原始邮件 ------------------
发件人: "obss/sahi" ***@***.***>;
发送时间: 2024年10月25日(星期五) 下午5:04
***@***.***>;
***@***.******@***.***>;
主题: Re: [obss/sahi] Sahi work on non axis oriented bounding box? Like yolo obb? (Discussion #987)
e.g.
def callback(image_slice: np.ndarray) -> sv.Detections: result = model(image_slice)[0] return sv.Detections.from_ultralytics(result) slicer = sv.InferenceSlicer( callback = callback, slice_wh=(768, 768), # iou_threshold=0.3, # overlap_filter_strategy='NON_MAX_SUPPRESSION' ) detections = slicer(image) detections = detections[detections.confidence > 0.5] # detections = detections[detections.area > 1000] oriented_box_annotator = sv.OrientedBoxAnnotator() label_annotator = sv.LabelAnnotator() annotated_image = oriented_box_annotator.annotate(scene=image, detections=detections) annotated_image = label_annotator.annotate(scene=annotated_image, detections=detections) fig, ax = plt.subplots(figsize=(25, 20)) ax.imshow(annotated_image); # ticks off plt.axis('off');
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Does sahi work on non axis oriented bounding box models?
Beta Was this translation helpful? Give feedback.
All reactions