Re: [javacv] Face Detection and Recognition on Android

882 views
Skip to first unread message

Samuel Audet

unread,
Feb 23, 2013, 9:49:50 PM2/23/13
to jav...@googlegroups.com
On 02/22/2013 04:17 AM, Hammad Naeem wrote:
> I want to create an android application that can detect and recognize
> faces on static image using dataset..
>
> I have done face detection using javacv but i don't know how to do it on
> android..
>
> I don't how to start working with javacv on android..

We can do face recognition as explained here:
http://pcbje.com/2012/12/doing-face-recognition-with-javacv/

Just add that code to the code you're already using for face detection!

Samuel

Hammad Naeem

unread,
Feb 24, 2013, 9:06:46 AM2/24/13
to jav...@googlegroups.com
Thanks for the face recognition code...
It works fine..

But how to start this face detection and recognition on android....??

I don't know how to setup javacv and opencv on android..??
Need Help on setting javacv on android..

Regards
Hammad

Samuel Audet

unread,
Mar 3, 2013, 3:21:14 AM3/3/13
to jav...@googlegroups.com
Follow the instructions in the README.txt file, that's how to make it work..

Samuel

woeichyuan tong

unread,
Mar 8, 2013, 9:50:24 PM3/8/13
to jav...@googlegroups.com
import error.png

Samuel Audet

unread,
Mar 9, 2013, 2:13:29 AM3/9/13
to jav...@googlegroups.com
Hello,

Thanks for asking your question on the mailing list, but please refrain
from attaching large files to your messages next time, thank you.

cvCreateMat() is method, we don't need any import statements for that.
Just remove it and let Eclipse fix the imports for you.

Seems like everything else is fine though, I don't think you missed
anything.

Samuel

On 03/09/2013 11:48 AM, woeichyuan tong wrote:
> Dear Samuel,
>
> I had followed the README file for installation of JavaCV in android.
> However, when I try to importing "import static com.googlecode.javacv.cpp.opencv_core.cvCreateMat;"
> I found something as picture attached.
> How could I solve this?
>
> My software specification:
>
> * Eclipse Indigo
> * OpenCV 2.4.4( installed at C:\opencv)
> * JavaCV 0.4 (javacv-bin & javacv-cpp jars, i had extracted *.so file to libs\armeabi ffmpeg-1.1.3-android-arm, opencv-2.4.4-android-arm and javacv-android-arm)
> * javacpp.jar and javacv.jar from javacv-bin was import to libs as well.
> * Environment variables
> o User(CLASSPATH-C:\opencv\build\x86\vc10\bin;C:\opencv\build\x86\vc11\bin;C:\opencv\build\x86\vc9\bin;C:\opencv\build\x86\mingw\bin;)
> o System(CLASSPATH- C:\opencv\build\x86\vc10\bin;C:\opencv\build\x86\vc11\bin;C:\opencv\build\x86\vc9\bin;C:\opencv\build\x86\mingw\bin;)
>
> These what had I did on the setting part of javaCv, do I miss out something?

Reply all
Reply to author
Forward
0 new messages