OpenPose v1.7.0

Signed-off-by: Gines Hidalgo <gineshidalgo99@gmail.com>
This commit is contained in:
Gines Hidalgo
2020-11-15 21:34:38 -05:00
parent 3533300575
commit 258182c28c
13 changed files with 21 additions and 14 deletions
@@ -64,7 +64,7 @@ try:
# Display Image
print("Body keypoints: \n" + str(datum.poseKeypoints))
cv2.imshow("OpenPose 1.6.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.7.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.6.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.7.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.6.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.7.0 - Tutorial Python API", datum.cvOutputData)
key = cv2.waitKey(15)
if key == 27: break
@@ -98,7 +98,7 @@ try:
print("Body keypoints: \n" + str(datum.poseKeypoints))
if not args[0].no_display:
cv2.imshow("OpenPose 1.6.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.7.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(op.VectorDatum([datum]))
print("Face keypoints: \n" + str(datum.faceKeypoints))
cv2.imshow("OpenPose 1.6.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.7.0 - Tutorial Python API", datum.cvOutputData)
cv2.waitKey(0)
except Exception as e:
print(e)
@@ -89,7 +89,7 @@ try:
opWrapper.emplaceAndPop(op.VectorDatum([datum]))
print("Left hand keypoints: \n" + str(datum.handKeypoints[0]))
print("Right hand keypoints: \n" + str(datum.handKeypoints[1]))
cv2.imshow("OpenPose 1.6.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.7.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.6.0 - Tutorial Python API", combined)
cv2.imshow("OpenPose 1.7.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.6.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.7.0 - Tutorial Python API", datum.cvOutputData)
cv2.waitKey(0)
except Exception as e:
print(e)
@@ -9,7 +9,7 @@ import argparse
def display(datums):
datum = datums[0]
cv2.imshow("OpenPose 1.6.0 - Tutorial Python API", datum.cvOutputData)
cv2.imshow("OpenPose 1.7.0 - Tutorial Python API", datum.cvOutputData)
key = cv2.waitKey(1)
return (key == 27)