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

Not realtime : vertices are reacting slowly #126

Open
aisgirish opened this issue May 13, 2016 · 1 comment
Open

Not realtime : vertices are reacting slowly #126

aisgirish opened this issue May 13, 2016 · 1 comment

Comments

@aisgirish
Copy link

aisgirish commented May 13, 2016

img_2260

Hello,
I am developing iOS app using this library. It can detect face and I apply one mask above it.
The problem is that When I roll my head or make smile, vertices are not moving realtime. It is slow.

// CODE FOR SET CAMERA FRAMERATE
 cam.setDesiredFrameRate(10);

// CODE FOR SET ATTEMPS
leftTrackerThread.setAttempts(4);

// CODE FOR DETECT FACE MESH
ofMesh humanFaceMesh = leftTrackerThread.getImageMesh();
ofMesh maskMesh = maskTrackerThread.getImageMesh();

/..
 code for change maskMesh vertices to humanFaceMesh vertices so, it fit on screen 
![img_2260](https://cloud.githubusercontent.com/assets/17251877/15242686/30b9caa8-1915-11e6-8a9e-b362f6f47db6.PNG)
../

ofPushMatrix();
            ofSetColor(255,255,255,255);
            jokerImage.getTexture().bind();
            maskMesh.draw();
            jokerImage.getTexture().unbind();
ofPopMatrix();
@aisgirish
Copy link
Author

@kylemcdonald : Can you please help me out for this problem? Please.

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