OpenPose v1.5.0

This commit is contained in:
Gines Hidalgo
2019-05-16 09:13:15 -04:00
parent acc4fb2763
commit ac2dde6002
12 changed files with 19 additions and 12 deletions
@@ -64,7 +64,7 @@ try:
# Display Image
print("Body keypoints: \n" + str(datum.poseKeypoints))
cv2.imshow("OpenPose 1.4.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.5.0 - Tutorial Python API", datum.cvOutputData)
cv2.waitKey(0)
except Exception as e:
# print(e)
@@ -69,7 +69,7 @@ try:
print("Face keypoints: \n" + str(datum.faceKeypoints))
print("Left hand keypoints: \n" + str(datum.handKeypoints[0]))
print("Right hand keypoints: \n" + str(datum.handKeypoints[1]))
cv2.imshow("OpenPose 1.4.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.5.0 - Tutorial Python API", datum.cvOutputData)
cv2.waitKey(0)
except Exception as e:
# print(e)
@@ -72,7 +72,7 @@ try:
print("Body keypoints: \n" + str(datum.poseKeypoints))
if not args[0].no_display:
cv2.imshow("OpenPose 1.4.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.5.0 - Tutorial Python API", datum.cvOutputData)
key = cv2.waitKey(15)
if key == 27: break
@@ -99,7 +99,7 @@ try:
print("Body keypoints: \n" + str(datum.poseKeypoints))
if not args[0].no_display:
cv2.imshow("OpenPose 1.4.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.5.0 - Tutorial Python API", datum.cvOutputData)
key = cv2.waitKey(15)
if key == 27: break
@@ -76,7 +76,7 @@ try:
# Process and display image
opWrapper.emplaceAndPop([datum])
print("Face keypoints: \n" + str(datum.faceKeypoints))
cv2.imshow("OpenPose 1.4.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.5.0 - Tutorial Python API", datum.cvOutputData)
cv2.waitKey(0)
except Exception as e:
# print(e)
@@ -89,7 +89,7 @@ try:
opWrapper.emplaceAndPop([datum])
print("Left hand keypoints: \n" + str(datum.handKeypoints[0]))
print("Right hand keypoints: \n" + str(datum.handKeypoints[1]))
cv2.imshow("OpenPose 1.4.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.5.0 - Tutorial Python API", datum.cvOutputData)
cv2.waitKey(0)
except Exception as e:
# print(e)
@@ -80,7 +80,7 @@ try:
heatmap = heatmaps[counter, :, :].copy()
heatmap = cv2.applyColorMap(heatmap, cv2.COLORMAP_JET)
combined = cv2.addWeighted(outputImageF, 0.5, heatmap, 0.5, 0)
cv2.imshow("OpenPose 1.4.0 - Tutorial Python API", combined)
cv2.imshow("OpenPose 1.5.0 - Tutorial Python API", combined)
key = cv2.waitKey(-1)
if key == 27:
break
@@ -81,7 +81,7 @@ try:
# Display Image
print("Body keypoints: \n" + str(datum.poseKeypoints))
cv2.imshow("OpenPose 1.4.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.5.0 - Tutorial Python API", datum.cvOutputData)
cv2.waitKey(0)
except Exception as e:
# print(e)