mirror of
https://github.com/opencv/opencv.git
synced 2025-06-17 15:20:51 +08:00
Merge pull request #11078 from atinfinity:pullreq/180315-fixed-openpose-sample
This commit is contained in:
commit
b6d3657f82
@ -82,7 +82,7 @@ while cv.waitKey(1) < 0:
|
|||||||
y = (frameHeight * point[1]) / out.shape[2]
|
y = (frameHeight * point[1]) / out.shape[2]
|
||||||
|
|
||||||
# Add a point if it's confidence is higher than threshold.
|
# Add a point if it's confidence is higher than threshold.
|
||||||
points.append((x, y) if conf > args.thr else None)
|
points.append((int(x), int(y)) if conf > args.thr else None)
|
||||||
|
|
||||||
for pair in POSE_PAIRS:
|
for pair in POSE_PAIRS:
|
||||||
partFrom = pair[0]
|
partFrom = pair[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user