Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you copied the .h and .cpp from the face-detection sample to your own project, be sure to update the function signatures to reflect your own Java package rather than the OpenCV one. Look for something like this:

Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeCreateObject

and change it to:

Java_com_your_app_DetectionBasedTracker_nativeCreateObject

where com_your_app is your android project's Java package name

If you copied the .h and .cpp from the face-detection sample to your own project, be sure to update the function signatures to reflect your own Java package rather than the OpenCV one. Look for something like this:

Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeCreateObject

and change it to:

Java_com_your_app_DetectionBasedTracker_nativeCreateObject

where com_your_app is your android project's Java package name

This needs to be done for all the functions in the .h and .cpp files. (Alternatively, look into the use of javah)