Closed AmitMY closed 2 years ago
Possible section to add to README:
Visualize an existing pose file:
from pose_format import Pose
from pose_format.pose_visualizer import PoseVisualizer
p = Pose.read(open("example.pose", "rb").read())
v = PoseVisualizer(p)
v.save_video("example.mp4", v.draw())
Draw pose on top of video:
v.save_video("example.mp4", v.draw_on_video())
Convert pose to gif to easily inspect the result in Colab:
# in a Colab notebook
from IPython.display import Image
v.save_gif("test.gif", v.draw())
display(Image(open('test.gif','rb').read()))
you could either add this in this PR, or I could add it later
Added! Thanks
now looks good to me and a very useful feature, ship it 👍
It's more complicated to show videos in Google Colab than GIFs, so I added support