latest/detection/core/ #1461
Replies: 4 comments 4 replies
-
Hi, I was wondering if the def predict(self, image: np.ndarray) -> sv.Detections:
results = self.model(image, verbose=False, device=self.device, stream=True)[0]
return sv.Detections.from_ultralytics(results) |
Beta Was this translation helpful? Give feedback.
-
This is a great library. I've used it for a research project, but I'm curious to know if there is any paper on it that i can cite? |
Beta Was this translation helpful? Give feedback.
-
Is there a way to get the mask XY coordinates from the output Detection object? As it outlines, you can only retrieve the XY coordinates of the bounding box but when using a segmentation model I wasn't quite sure if you could. If it can't it would be a really interesting feature to add as the YOLO models you can retrieve those coordinates. |
Beta Was this translation helpful? Give feedback.
-
Hello roboflow, for image_path, image, annotations in detection_dataset_train:
for xyxy, mask, confidence, class_id, tracker_id, data in annotations:
data["category"] = ["dog"]
data.__setitem__("position", [POSITION.CENTER])
print(data)
Its really odd that when I want to access it, the added values disapear. for image_path, image, annotations in detection_dataset_train:
print(annotations.data)
What is reason for this and how can I add new pairs to the Detections after initialization? Thanks in advance! I fixed the issue by saving the updated 'data' back to the annotations
|
Beta Was this translation helpful? Give feedback.
-
latest/detection/core/
A set of easy-to-use utilities that will come in handy in any computer vision project.
https://supervision.roboflow.com/latest/detection/core/
Beta Was this translation helpful? Give feedback.
All reactions