Building for armeabi-v7a
Hi Gaurav! cool projects u did right there, helped me on my work. but, i can't get it to work with different ABI version.
my Application.mk is here NDK_TOOLCHAIN_VERSION := clang APP_ABI := armeabi-v7a arm64-v8a x86 x86_64 #APP_ABI := arm64-v8a APP_CPPFLAGS := -std=c++11 -frtti -fexceptions APP_PLATFORM := android-14 APP_STL := gnustl_static APP_CFLAGS+=-DDLIB_NO_GUI_SUPPORT=on #APP_CFLAGS+=-DDLIB_PNG_SUPPORT=off #APP_CFLAGS+=-DDLIB_JPEG_SUPPORT=on #APP_CFLAGS+=-DDLIB_JPEG_STATIC=on
produces the error no member named 'round' in namespace 'std'
and i figured, the workaround is to change APP_STL to c++_static or c++_shared
but it produces another error in
dlib-face-recognition-android-master/third_party/opencv/jni/../libs/armeabi-v7a/libopencv_imgcodecs.a(loadsave.cpp.o):loadsave.cpp:function std::vector<unsigned char, std::allocator
do u have any idea? or this is an issue with DLIB's code?
I think this is an opencv issue with c++11.
The problem is dlib 19 uses c++11 features but the opencv library can't compile with c++11.
So don't use c++11. 'std::round' is a c++11 feature so you have to figure out a workaround
So don't change APP_STL but try to make small changes or write your own functions for say 'std::round' in dlib files.
let me know if there is any problem
Hi Gaurav,
Thanks for the answer, i found another problem. When i add more than one person in the database, the recognition became more prone to error.
Let's say there's person A and B in the database, when i detect person A, the dialog says two people found, A and B at the same time.
Have u ever experienced this? thanks
Hi Angga,
You are right. It is recognizing multiple people.
It used to work correctly before. I will look into this when I get time.
See if changing the threshold in this line do any good https://github.com/gv22ga/dlib-face-recognition-android/blob/4bd0319ccce2277fca3df4387c7ca340a7b2e498/jni/jni_recognition/recognizer.h#L181
Using android-ndk-r16b will solve all the Issues.