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

Features not detected #156

Open
edap opened this issue Jun 1, 2018 · 1 comment
Open

Features not detected #156

edap opened this issue Jun 1, 2018 · 1 comment

Comments

@edap
Copy link
Contributor

edap commented Jun 1, 2018

It looks like:

auto leftEye = tracker.getImageFeature(ofxFaceTracker::LEFT_EYE_TOP).getCentroid2D();
auto rightEye = tracker.getImageFeature(ofxFaceTracker::RIGHT_EYE_TOP).getCentroid2D();

they both return the same position.

Also, tracker.draw() should draw all the features detected. At the moment is just drawing the nose base and the mouth.

@bakercp , as I've seen that you updated the example recently, does example-empty draw all the features, or just the nose and the mouth?

@edap
Copy link
Contributor Author

edap commented Jun 2, 2018

The problem happens only on linux, this pull requests solve the issue
#152

Basically, the osx and the linux compilers behave differently with the returning value of a function. The linux one, was complaining regarding the function getFeatureIndices, that it is not always returning a vector<int>, or, at least, no value is specified in the case none of the features matches that ones in the switch statement. While trying to fixing this, I have introduced a new error, forgetting to add break at the end of each case.

Please note, without this pull request the addon does not even compile on Linux.

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

1 participant