Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

opencv - Face Detection in Android?

I am currently working on an experimental camera app. I'm looking into implementing face detection at the moment and am currently weighing up my options.

I have considered the OpenCV port available for Android and using their face detection functions, but from demos I have seen of previous implementations, the camera seems to lag a lot.

Considering the camera on the HTC Desire has face detection support, I know it must be possible to get at least a semi-decent face detection system in place. I was just wondering if anyone had an opinion on how I could get the best results... Using an available library? Implementing a particular algorithm myself?

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  1. Try FaceDetector in the Android SDK. It returns face positions and angles in BMPs. But it's not very fast.

    Here's a realtime face detection sample using FaceDetector and OpenGL (draws rectangles) which works in Android 2.2.

  2. OpenCV in Android

    You'd better try this on Linux (I've tried it on Windows, but failed).

  3. JavaCV (strongly recommended)

    There is a sample code of realtime face detection using the camera. See "javacv-src-*.zip" on the download page.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...