Skip to content

Commit 1b5c592

Browse files
authored
Merge pull request #1773 from pirnerjonas/patch-2
Fix typos in Detections merge doc string
2 parents 656f639 + b2a1eb5 commit 1b5c592

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

supervision/detection/core.py

+5-5
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-
)
1030+
data={'feature_vector': np.array([0.1, 0.2])}
1031+
)
10321032
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-
)
1036+
data={'feature_vector': np.array([0.3])}
1037+
)
10381038
1039-
merged_detections = Detections.merge([detections_1, detections_2])
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)