how to draw rectangle around face in Image while capturing photo [duplicate]

徘徊边缘 提交于 2019-12-13 11:29:45

问题


in my current application I want to draw rectangle around face while capturing using Android device camera, and also want to save only face area inside rectangle on SD card.

I gone through lot of links like

link1

link2

link3

but unable to find proper solution.

Can anyone has worked on this.

Any help would be appreciated.


回答1:


For Face Detection and eye detection there are many tutorial available on google.For that you can you OpenCV library or android default Face detection importing for that.Here is the link that can help you

http://romanhosek.cz/android-eye-detection-and-tracking-with-opencv/

And if you are using eclipse then you also need to integrate ndk with eclipse to use above linked code



来源:https://stackoverflow.com/questions/30096631/how-to-draw-rectangle-around-face-in-image-while-capturing-photo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!