projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c824176
)
fixes #18613
author
Zhiyuan Chen
<this@zyc.ai>
Sun, 18 Oct 2020 14:33:45 +0000
(22:33 +0800)
committer
Alexander Alekhin
<alexander.a.alekhin@gmail.com>
Mon, 19 Oct 2020 21:42:04 +0000
(21:42 +0000)
samples/dnn/siamrpnpp.py
patch
|
blob
|
history
diff --git
a/samples/dnn/siamrpnpp.py
b/samples/dnn/siamrpnpp.py
index
bb126b7
..
c7c49b1
100644
(file)
--- a/
samples/dnn/siamrpnpp.py
+++ b/
samples/dnn/siamrpnpp.py
@@
-234,10
+234,10
@@
class SiamRPNTracker:
"""
Args:
img(np.ndarray): bgr based input image frame
- bbox: (x,
y,w,h):
bounding box
+ bbox: (x,
y, w, h):
bounding box
"""
- x,
y,h,w
= bbox
- self.center_pos = np.array([x + (
h - 1) / 2, y + (w
- 1) / 2])
+ x,
y, w, h
= bbox
+ self.center_pos = np.array([x + (
w - 1) / 2, y + (h
- 1) / 2])
self.h = h
self.w = w
w_z = self.w + self.track_context_amount * np.add(h, w)