Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perfect, but error in the runtime #1

Open
RUBYJABER opened this issue Nov 11, 2019 · 5 comments
Open

Perfect, but error in the runtime #1

RUBYJABER opened this issue Nov 11, 2019 · 5 comments

Comments

@RUBYJABER
Copy link

Hello,
hope you are doing well...

I'm really happy that i could run the project without any errors!
I run it on my Samsung s4 and it was perfect! but when actually tried to run it on another devices it seams that i have same error on the runtime, and the error is ( A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc in tid 16190 (AsyncTask #1), pid 16001 (faciallandmarks))

i wish that if you have any idea about it, you may help me!

Thank you.

Regards,

@Vis5
Copy link
Owner

Vis5 commented Nov 12, 2019

Hello, it's been a while since I last opened this project so I had forgotten some of it but I was able to make it work.
Please make an empty directory named 'images' inside 'dlib_rec_example' folder. And make sure 'shape_predictor_5_face_landmarks.dat' and 'dlib_face_recognition_resnet_model_v1.dat' files exist. It seems like the application could not write the relevant files. If you wish to make changes, relevant code is on line 238 in MainApplication.java.
Hope it helps!

@RUBYJABER
Copy link
Author

Thank you for fast responding =)
It seems that is working...
but another question if you don't mind,,,, may I know how can I change the code line that stores the images on the cloud instead of the device itself!
Thank you very much !

Regards,

@Vis5
Copy link
Owner

Vis5 commented Nov 12, 2019

If I understood you correctly you want to store the images on cloud? Unfortunately, this project does not do that, it only stores them on the device. Storing images and recognizing them are handled in tzutalin.dlib package which is not my code but forked from https://github.com/tzutalin/dlib-android. Maybe you'll have more luck there.

@RUBYJABER
Copy link
Author

Thank you so much for helping ! =)
Sorry for bothering you, but I have another question....
where i can find the code lines that saves and read from device directory folder?

Regards,

@Vis5
Copy link
Owner

Vis5 commented Nov 15, 2019

Code of saving data and images files is in doInBackground method of themon/test/mlkit_faciallandmarks/MainActivity.java.
I'm not sure where the code of reading them lies in. I suspect they are in the jni libraries. Though, you can change the directories in tzutalin/dlib/Constants.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants