Skip to content

Commit fa979cf

Browse files
authored
docs: fix doc string in Detections merge function
1 parent 656f639 commit fa979cf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

supervision/detection/core.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,16 +1027,16 @@ def merge(cls, detections_list: List[Detections]) -> Detections:
10271027
detections_1 = sv.Detections(
10281028
xyxy=np.array([[15, 15, 100, 100], [200, 200, 300, 300]]),
10291029
class_id=np.array([1, 2]),
1030-
data={'feature_vector': np.array([0.1, 0.2)])}
1031-
)
1032-
1030+
data={'feature_vector': np.array([0.1, 0.2])}
1031+
)
1032+
10331033
detections_2 = sv.Detections(
10341034
xyxy=np.array([[30, 30, 120, 120]]),
10351035
class_id=np.array([1]),
1036-
data={'feature_vector': [np.array([0.3])]}
1037-
)
1038-
1039-
merged_detections = Detections.merge([detections_1, detections_2])
1036+
data={'feature_vector': np.array([0.3])}
1037+
)
1038+
1039+
merged_detections = sv.Detections.merge([detections_1, detections_2])
10401040
10411041
merged_detections.xyxy
10421042
array([[ 15, 15, 100, 100],

0 commit comments

Comments
 (0)