Skip to content

Commit 456af21

Browse files
ZhiyuanChenalalek
authored andcommitted
fixes opencv#18613
1 parent c824176 commit 456af21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/dnn/siamrpnpp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ def init(self, img, bbox):
234234
"""
235235
Args:
236236
img(np.ndarray): bgr based input image frame
237-
bbox: (x,y,w,h): bounding box
237+
bbox: (x, y, w, h): bounding box
238238
"""
239-
x,y,h,w = bbox
240-
self.center_pos = np.array([x + (h - 1) / 2, y + (w - 1) / 2])
239+
x, y, w, h = bbox
240+
self.center_pos = np.array([x + (w - 1) / 2, y + (h - 1) / 2])
241241
self.h = h
242242
self.w = w
243243
w_z = self.w + self.track_context_amount * np.add(h, w)

0 commit comments

Comments
 (0)