Android face-detection sample: where's the native code?
Hi.
I have been looking at this face-detection sample, but I cannot seem do get access to the C++ native source code. I'm new to JNI, I must confess...
As far I understand, this native part of the project is only available as a shared library in libs/<arch>/libdetection_based_tracker.so
Since I want to do some changes to that code, I would need to access and change the source. Is it available somewhere? Am I missing something?
Bye and thanks, Luís
are you saying, you can#t find the source code ?
it's in OpenCV/samples/face-detection/jni/DetectionBasedTracker_jni.cpp
Hello berak.
If I understand things right, in the file you mention you cannot find the actual c++ source code, that's just the code to bridge from java to c++: it simply calls the actual c++ code and deals with exceptions and other bits and pieces.
If, eg, you look at Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDetect, you'll see that some methods are being called, like process and getObjects. What I'm looking is for the definition of these methods.
Thanks anyway.