1

I am developing face detection photo capture application in android. Some one said that use of opencv native camera is the best to capture face. I heard javacv also to capture face. Can anyone tell what is the best method opencv (or) javacv (or) other than these two. Thanks.

SKK
  • 1,705
  • 3
  • 28
  • 50
  • Q: Which is better: "chocolate" or "vanilla"? Take a look at this discussion: http://stackoverflow.com/questions/769 – paulsm4 Aug 12 '12 at 05:40
  • PS: All things being equal, and assuming you're comfortable with Java programming on the Android, the link I cited suggests that you're probably "better off" using JavaCV. IMHO... – paulsm4 Aug 12 '12 at 05:55

3 Answers3

5

OpenCV has an official version for android in which you program in Java. It is usually named OpenCV4Android.

JavaCV is a non-official Java version of OpenCV.

Writing native code using Android NDK will usually be much faster than using the SDK. Face detection must be faster in opencv than javacv.

My advice is for you to use OpenCV4Android, it will be easier for you, and also has more documentation: https://opencv.org/platforms/android/

Darrick Herwehe
  • 3,553
  • 1
  • 21
  • 30
Manoj
  • 3,947
  • 9
  • 46
  • 84
  • Thanks. I am proceeding with opencv. It is working for face detection photo capture . – SKK Aug 23 '12 at 03:52
1

OpenCV now has bindings for desktop Java, make a look at this

From the link:

This has two major advantages:

  • The Java wrapper is automatically kept up-to-date.
  • The bindings closely match the original C++ interface. More information is available in the new tutorial...
Adil
  • 4,503
  • 10
  • 46
  • 63
0

OpenCV is a very good Computer visio library. It has C, C++ and Python API. JavaCV is Wrapper of OpenCV using java.

based on your purpose you can use native C API using Android NDK. If you are focus on Java then you can use JavaCV.

Nikson Kanti Paul
  • 3,394
  • 1
  • 35
  • 51