Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create PDM without importing points from files #112

Open
ShtiliyanUzunov opened this issue Oct 23, 2017 · 1 comment
Open

Create PDM without importing points from files #112

ShtiliyanUzunov opened this issue Oct 23, 2017 · 1 comment

Comments

@ShtiliyanUzunov
Copy link

ShtiliyanUzunov commented Oct 23, 2017

Hi guys,

I'm watching the tutorial http://www.menpo.org/menpofit/pdm.html on pdm, and the only way to provide points to the pdm seems to be from .pts files with the mio.import_landmark_files(path_to_lfpw / '*.pts', verbose=True).

Is there any other API that allows for passing the points as vectors for each image ?

@patricksnape
Copy link
Contributor

You can just load your (presumably numpy arrays) into our shape class:

from menpo.shape import PointCloud

shapes = [PointCloud(a, copy=False) for a in your_shapes]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants