mirror of
https://github.com/gosticks/openpose.git
synced 2026-08-12 20:30:20 +00:00
OpenPose v1.5.0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user