Can't get Facerecognizer Java bindings building OpenCV3.30 for Android

asked 2017-11-16 16:21:23 -0500

jordiCP gravatar image

updated 2017-11-16 16:22:41 -0500

I am trying to build OpenCV 3.30 for Android with facerecognizer support. So I followed the instructions, downloaded the contrib modules, and made everything (cmake + make)

I see that a face.a module is created, as wel as the libopencv_java3.so. But I can't find any face.java (in the src folder) nor the face.cpp (in the JNI folder).

I found another post (http://answers.opencv.org/question/31... ) describing a similar or the same problem with Java bindings for this class, but I'm not sure if it is related to older OpenCV versions and now should work.

Should I expect the Java bindings to be created with OpenCV 3.30?

edit retag flag offensive close merge delete

Comments

1

please try to compile with the latest source. face module is available for java recently

sturkmen gravatar imagesturkmen ( 2017-11-16 17:13:45 -0500 )edit

Thanks! Just to try (I was desperate), I just had edited it manually doing the same (adding Java in cmakelists) and 'bingo'! the bindings appeared :) I will first test it with my current version (since I made a small customisation in the JNI source), and see if it works. BTW, do you know if there are many improvements/fixes in the facerecognizer class (since 3.30 to current commit) that would make it advisable to upgrade to?

jordiCP gravatar imagejordiCP ( 2017-11-16 17:28:40 -0500 )edit

if you want to use only facerecognizer i think no need to upgrade but maybe you want to use recent addition face_alignment

sturkmen gravatar imagesturkmen ( 2017-11-16 18:44:44 -0500 )edit

@jordiCP, mind telling us, what you actually want to DO with it ?

(i'm only asking, because this is a face IDENTIFICATION (who is it?) system, while most android folks actually want an AUTHENTIFICATION (is that me?) system, it's probably the wrong tool, entirely)

berak gravatar imageberak ( 2017-11-16 19:35:21 -0500 )edit

Hi berak. Yes, I can explain :) Some months ago, I 'wrapped' the openCV320 for Android 'official' SDK so that it could be used with Basic4Android, also known as B4A (a really powerful and quickly growing Android-based RAD ). It included the 'standard' modules exposed in that version. Now I have been requested to do the same, but also including this module, by someone who is already working with it (fisher-faces) in other platforms and would like to test it using B4A.

jordiCP gravatar imagejordiCP ( 2017-11-17 04:16:47 -0500 )edit