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

How to convert track.second.alignedFace() to matrix<rgb_pixel> ? #36

Open
stephanschulz opened this issue Dec 3, 2020 · 2 comments
Open

Comments

@stephanschulz
Copy link

stephanschulz commented Dec 3, 2020

I am trying to combine the example_dlib_dnn_face_recognition and example_face_tracking. But both use different ways to get faces.
In order to get a tracked face in to the vector that contains all faces std::vector<matrix<rgb_pixel>> faces I need to create a faceChip.

track.second.alignedFace() returns ofPixels but ofxDlib::toDlib(my_of_pixels) does not work.

also tried this

                        ofPixels pix = track.second.alignedFace();
                        matrix<rgb_pixel> face_chip;
                        face_chip = ofxDlib::to_rowm(pix);
                        all_faces.push_back(move(face_chip));

I should mention I am using the develop branch.

I thought this should work:
https://github.com/bakercp/ofxDlib/blob/develop/libs/ofxDlib/include/ofx/Dlib/Utils.h#L314

@stephanschulz
Copy link
Author

@bakercp
Copy link
Owner

bakercp commented Dec 3, 2020 via email

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