zweigraf / face-landmarking-ios

👦 Basic face landmarking on iPhone with Dlib via Swift & ObjC++
481 stars 125 forks source link

Issue with project's compiling #2

Closed WhiteRaby closed 8 years ago

WhiteRaby commented 8 years ago

Hi, Luis Reisewitz. First of all thank you for the excellent work, your app works very well. My issue is that When i tried to reproduce your project I had slow fps on my iPhone (when I compiled Your project it worked with good fps)

Below what I did: 1) Created new project 2) Copied all source files (both DlibWrapper, ViewController, SessionHandler, Bridging-Header, Storyboard file) 3) Created lib directory and copied from your directory dlib source code, libdlib.a, shape_predictor_68_face_landmarks 4) In Build Settings I tuned next items:

5) In Build Phases I added Accelerate.framework and libdlib.a to Link Binary.. 6) To Copy bundle resources was added shape_predictor_68_face_landmark

What's I forget? P.S. here's my rap, just in case: github.com/WhiteRaby/Dlib

zweigraf commented 8 years ago

I have not had time to look at your project yet, but:

Please check your schemes and make sure that you are compiling the app in Release mode, not Debug mode.

WhiteRaby commented 8 years ago

I changed this mode to the release and it solved my issue! Many thanks, Luis.

zweigraf commented 8 years ago

Great to hear that that worked :) Happy to have helped.