Opencv versions and face recognition in android

asked 2016-08-12 08:30:41 -0600

I am getting confused with opencv versions for android and for other platforms, and the facerecognition methods availability.

  • As of August 2016, latest opencv available is 2.4.13. But for android, the version is 2.4.11.

  • But in 2.4.11, the facerecognition is available in experimental stuff category. Because in the header of page, it is in category of

OpenCV 2.4.11.0 documentation » OpenCV API Reference » contrib. Contributed/Experimental Stuff » FaceRecognizer - Face Recognition with OpenCV »

  • When I imported the 2.4.11 java module in android project, I was not able to create Facerecognizer object.

Example

FaceRecognizer fr = createFisherFaceRecognizer()

The above code gave error. It could not resolve createFisherFaceRecognizer();

  • I even tried to use the opencv 3.1.0 for android, but in that, I was not able to find the facerecognizer class itself.

So in conclusion, as of Aug 2016, we have to use wrappers like JAVACV for face recognition projects in android. Is it correct conclusion?

edit retag flag offensive close merge delete

Comments

1

unfortunately that's still true for 2.4.

berak gravatar imageberak ( 2016-08-12 08:46:05 -0600 )edit

Oh thanks berak :-). Is the android version planned anytime soon for 2.4 in roadmap of opencv? . I tried to find a roadmap for opencv, but couldn't find it. And can you please suggest what alternative do we have if we want to use opencv in android except JavaCV ?

(The guy who asked question is one of my friend. We were planning to use opencv in android application)

san_opencv gravatar imagesan_opencv ( 2016-08-12 09:09:55 -0600 )edit
1

2.4 is last years model anyway. you could try to write your own createXXXFaceRecognizer() from jni (no fun)

you could try to move over to opencv3, rebuild the sdk with opencv_contrib repo, and try to enable the face reco for java there (no fun either...)

then, maybe rethink the whole concept. what are you using the facereco for, exactly ?

(if you're trying to build some log-in mechanism, it might be the wrong tool, anyway.)

then, maybe put the facereco on some central server, and let the android app be just a shallow client for that ? (bytefish has such a thing on github)

berak gravatar imageberak ( 2016-08-12 09:20:36 -0600 )edit

Thank you berak. We will definitely consider your suggestions.

Himanshu Singh gravatar imageHimanshu Singh ( 2016-08-12 09:32:06 -0600 )edit