Skip to content

Commit

Permalink
Remove unnecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
oarriaga committed Sep 7, 2022
1 parent fff8912 commit e08c35e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/hand_pose_estimation/demo3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from paz.backend.camera import Camera, VideoPlayer
from paz.applications import MinimalHandPoseEstimation
from paz.applications import SSD512MinimalHandPose
from paz.backend.image import resize_image, show_image
from paz.datasets import MINIMAL_HAND_CONFIG
Expand All @@ -14,8 +13,7 @@
help='Camera device ID')
args = parser.parse_args()

# pipeline = MinimalHandPoseEstimation(right_hand=False)
pipeline = SSD512MinimalHandPose()
pipeline = SSD512MinimalHandPose(right_hand=False, offsets=[0.5, 0.5])
camera = Camera(args.camera_id)
player = VideoPlayer((640, 480), pipeline, camera)

Expand Down Expand Up @@ -73,7 +71,7 @@ def wrapped_animate(i):
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('Z')
ax.scatter3D(xs, ys, zs, c = joint_colors)
ax.scatter3D(xs, ys, zs, c=joint_colors)
plot_3D_keypoints_link(ax, keypoints3D, link_args, link_orders,
link_colors)
return wrapped_animate
Expand Down

0 comments on commit e08c35e

Please sign in to comment.