Commit dd44ea20 authored by Patrik Huber's avatar Patrik Huber

Updated demo.py with a texture extraction example

parent b408cd36
......@@ -22,6 +22,11 @@ def main():
# Now you can use your favourite plotting/rendering library to display the fitted mesh, using the rendering
# parameters in the 'pose' variable.
# Or for example extract the texture map, like this:
# import cv2
# image = cv2.imread('../bin/data/image_0010.png')
# isomap = eos.render.extract_texture(mesh, pose, image)
def read_pts(filename):
"""A helper function to read ibug .pts landmarks from a file."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment