Lauszus / FaceRecognitionApp

Face Recognition Android App
GNU General Public License v2.0
504 stars 238 forks source link

Unable to run the project #16

Closed PulkitAppz closed 6 years ago

PulkitAppz commented 6 years ago
Error:(21, 10) fatal error: 'Eigen/Dense' file not found

I already set the path as u suggested but not able to build the code .What should i need to change to make it run?

Lauszus commented 6 years ago

Please post the full content of Android.mk. Also see #15.

Alternatively you can try to hardcode the paths to OpenCV and Eigen3.

sparxapps commented 6 years ago

@PulkitAppz In my case, I have replaced #include <Eigen/Dense> to #include </home/demo/Workspace_Android_Studio/Samples/eigen-eigen-67e894c6cd8f/Eigen/Dense>

Lauszus commented 6 years ago

Please follow the instructions in the README. Either you have to set the environmental variables or hardcode the paths in Android.mk.

arifdel commented 6 years ago

It working perfectly. I tried all the scenario and i found lots of issue in the recognition like after few face get trained and if there is no one in the picture the still it shows face found and similarly when there is a person in the frame still it shows not a face.

Lauszus commented 6 years ago

Closing this issue, as the project build fine when following the build instructions.

Lauszus commented 6 years ago

I have now setup a Travis build to automatically upload a zip directory of the project including all the dependencies. This should make much easier for people to compile the project.

You can try it out at the following link: https://github.com/Lauszus/FaceRecognitionApp/releases/download/1.2.1/FaceRecognitionApp-1.2.1.zip.

Aashima-Gupta commented 5 years ago

Hey! can you tell how this Part of code is working:

protected Bundle doInBackground(Mat... mat) {
    float[] minDist = new float[] { -1 };
    int[] minDistIndex = new int[1];
    float[] faceDist = new float[1];
    try {
       MeasureDist(mat[0].getNativeObjAddr(), minDist, minDistIndex, faceDist, useEigenfaces);
    } catch (Exception e) {
       error = e;
       return null;
    }
    Bundle bundle = new Bundle();
    bundle.putFloat(MIN_DIST_FLOAT, minDist[0]);
    bundle.putInt(MIN_DIST_INDEX_INT, minDistIndex[0]);
    bundle.putFloat(DIST_FACE_FLOAT, faceDist[0]);
    return bundle;
}
Lauszus commented 5 years ago

@Aashima-Gupta please stop spamming all the issues. That won't help you getting my attention...