提交 8a8523d4 编写于 作者: A atinfinity

fixed samples/dnn/openpose.py

上级 d68466bb
......@@ -82,7 +82,7 @@ while cv.waitKey(1) < 0:
y = (frameHeight * point[1]) / out.shape[2]
# 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:
partFrom = pair[0]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册