kylemcdonald / ofxFaceTracker

CLM face tracking addon for openFrameworks based on Jason Saragih's FaceTracker.
http://facetracker.net/
Other
1.39k stars 371 forks source link

Not realtime : vertices are reacting slowly #126

Open aisgirish opened 8 years ago

aisgirish commented 8 years ago

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 commented 8 years ago

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