FaceDetector
FaceDetector copied to clipboard
A Face Detection Demo using Core Image in iOS
After Edward Pater fork "Delay detect call until after the image got resized. "
你好,我从简书上点过来,看到你的文章有写到可以检测到微笑、闭眼等 能否发个资料研究一下?
在viewDidLoad中调用detect 方法。会使得personPic 并不是最后得到的宽高,真正的宽高应该是在视图加载完毕并调整约束显示出来之后的。应该把detect方法放在ViewDidAppear 里面。否则在iPhone 5c 4s 等设备中红框的位置会出现错误,亲测!
Believe this fixes this issue https://github.com/appcoda/FaceDetector/issues/2
Test it on face-2 image, somehow the boxes were shifted in both x and y directions, see the image below. 
Hi, Thanks for the demo, I used Xcode8 on my Mac to test the program, it worked well for view controller.swift in detecting faces and displayed the results in the...