zweigraf / face-landmarking-ios

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

Doesn't recognize faces on iphone6s back and iphone7 back and front portrait camera #28

Open ozanyaldir opened 7 years ago

ozanyaldir commented 7 years ago

I think the high resolution causes this issue. on iphone 7, portrait camera does not recognize faces. If anyone solved this please help me too.

kennylugo commented 7 years ago

I got it to work on iPhone 7 & iPad Pros

All I had to do was change the sessions input preset with one line of code:

session.sessionPreset = AVCaptureSessionPreset640x480

da1ssk commented 7 years ago

AVCaptureSession.Preset.hd1280x720 also worked on iPhone X.