Commit b84bb1a7 authored by Patrik Huber's avatar Patrik Huber Committed by GitHub

Updated Python example in README.md

parent dd44ea20
...@@ -93,8 +93,7 @@ import eos ...@@ -93,8 +93,7 @@ import eos
import numpy as np import numpy as np
model = eos.morphablemodel.load_model("eos/share/sfm_shape_3448.bin") model = eos.morphablemodel.load_model("eos/share/sfm_shape_3448.bin")
s = model.get_shape_model().draw_sample([1.0, -0.5, 0.7]) sample = model.get_shape_model().draw_sample([1.0, -0.5, 0.7])
sample = np.array(s) # the conversion from 'Mat' to a numpy array is necessary at the moment
help(eos) # check the documentation help(eos) # check the documentation
``` ```
......
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