how to draw rectangle around face in Image while c

2019-10-02 08:13发布

问题:

This question already has an answer here:

  • Face Detection in Android? 3 answers

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