FaceAR / OpenFaceIOS

OpenFace is get from https://github.com/TadasBaltrusaitis/OpenFace, a state-of-the art open source tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation. And I create an ios project. Delete Dlib,TBB,Boost. Only use OpenCV .
GNU General Public License v3.0
502 stars 135 forks source link

it's too slow in ios #11

Closed CaichaoGitHub closed 6 years ago

CaichaoGitHub commented 6 years ago

While calculating response map , the algorithm cost too much cpu power ,is there any optimized method ??

thundertrick commented 6 years ago

@CaichaoGitHub U can try this:

self.videoCamera.defaultAVCaptureSessionPreset = AVCaptureSessionPreset352x288;
CaichaoGitHub commented 6 years ago

@thundertrick i have read all codes of openface, the key point of why it's so slow is the response map calculation ; decrease the resolution is one of optimize methods, however, include that solution, we should consider using gpu power yet ?? cause gpu is very skilled in matrix compulation,i have searched opencv solutions of gpu , but it's pity that opencv was not written for gpu