zeusees / zeusee-face-anti-spoofing Goto Github PK
View Code? Open in Web Editor NEW开源配合型人脸活体检测 Open Source Face Anti-spoofing
Home Page: http://www.zeusee.com
License: Apache License 2.0
开源配合型人脸活体检测 Open Source Face Anti-spoofing
Home Page: http://www.zeusee.com
License: Apache License 2.0
下载demojni文件报错啊 大神
你们提供的AliveDetector.h这个工具完全无法检测姿态,我无论丢什么姿态的照片进去都是返回0,包括摇头上下抬头
感谢分享,在AliveDetector.h
的ActiveDetector_Shake
类中getState()
方法有一些不理解。
bool getState() {
if (idx < CYCLE_ACTIVE)
return false;
int sum = 0;
bool flag = 0;
for (int i = 0; i < CYCLE_ACTIVE; i++) {
if (frames[i] > 11 || frames[i] < -11) {
flag = 1;
}
if (frames[i] > 8)
sum++;
else if (frames[i] < -8)
sum--;
}
if (abs(sum - 0) < 6 && flag == 1)
return true;
else
return false;
}
为什么frames[i]<-8时,sum需要--;
为什么最后if判断时需要判断“abs(sum-0)<6”;
楼主一定是写c的 java写的稀烂
请问大神有python版的landmark吗 @ @ @lsy17096535 @szad670401
活体检测,可以识别到人脸,但是做动作时一直都是检测失败。
集成使用了so,安卓版本
/Users/wonders/Documents/workspace/Zeusee-Face/Prj-Android-full-src/app/src/main/cpp/include/opencv2/core/cvstd.inl.hpp
Error:(81) undefined reference to cv::String::allocate(unsigned long)' /Users/wonders/Documents/workspace/Zeusee-Face/Prj-Android-full-src/app/src/main/cpp/native-lib.cpp Error:(18) undefined reference to
cv::cvtColor(cv::_InputArray const&, cv::OutputArray const&, int,
Error:(19) undefined reference to cv::transpose(cv::_InputArray const&, cv::_OutputArray const&)' Error:(20) undefined reference to
cv::flip(cv::InputArray const&, cv::OutputArray const&, int)'
/Users/wonders/Documents/workspace/Zeusee-Face/Prj-Android-full-src/app/src/main/cpp/include/opencv2/core/mat.inl.hpp
Error:(834) undefined reference to cv::Mat::Mat(cv::Mat const&, cv::Rect_<int> const&)' Error:(768) undefined reference to
cv::Mat::copyTo(cv::OutputArray const&) const'
Error:(696) undefined reference to cv::fastFree(void*)' Error:(491) undefined reference to
cv::Mat::copySize(cv::Mat const&)'
Error:(501) undefined reference to cv::error(int, cv::String const&, char const*, char const*, int)' Error:(514) undefined reference to
cv::error(int, cv::String const&, char const*, char const*, int)'
Error:(521) undefined reference to cv::Mat::updateContinuityFlag()' Error:(808) undefined reference to
cv::Mat::deallocate()'
/Users/wonders/Documents/workspace/Zeusee-Face/Prj-Android-full-src/app/src/main/cpp/AliveDetector.h
Error:(75) undefined reference to cv::dnn::experimental_dnn_34_v7::Net::Net()' Error:(75) undefined reference to
cv::dnn::experimental_dnn_34_v7::Net::Net()'
Error:(75) undefined reference to cv::dnn::experimental_dnn_34_v7::Net::Net()' Error:(76) undefined reference to
cv::dnn::experimental_dnn_34_v7::readNetFromCaffe(cv::String const&, cv::String const&)'
Error:(76) undefined reference to cv::dnn::experimental_dnn_34_v7::Net::~Net()' Error:(77) undefined reference to
cv::dnn::experimental_dnn_34_v7::readNetFromCaffe(cv::String const&, cv::String const&)'
Error:(77) undefined reference to cv::dnn::experimental_dnn_34_v7::Net::~Net()' Error:(78) undefined reference to
cv::dnn::experimental_dnn_34_v7::readNetFromCaffe(cv::String const&, cv::String const&)'
Error:(78) undefined reference to cv::dnn::experimental_dnn_34_v7::Net::~Net()' Error:(76) undefined reference to
cv::dnn::experimental_dnn_34_v7::Net::~Net()'
Error:(78) undefined reference to cv::dnn::experimental_dnn_34_v7::Net::~Net()' Error:(79) undefined reference to
cv::dnn::experimental_dnn_34_v7::Net::~Net()'
Error:(282) undefined reference to cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)' Error:(294) undefined reference to
cv::dnn::experimental_dnn_34_v7::blobFromImages(cv::InputArray const&, double, cv::Size, cv::Scalar const&, bool, bool, int)'
Error:(305) undefined reference to cv::dnn::experimental_dnn_34_v7::Net::forward(cv::_OutputArray const&, std::vector<cv::String, std::allocator<cv::String> > const&)' Error:(313) undefined reference to
cv::dnn::experimental_dnn_34_v7::Net::setInput(cv::InputArray const&, cv::String const&, double, cv::Scalar const&)'
Error:(315) undefined reference to cv::dnn::experimental_dnn_34_v7::Net::forward(cv::_OutputArray const&, std::vector<cv::String, std::allocator<cv::String> > const&)' Error:(375) undefined reference to
cv::resize(cv::InputArray const&, cv::OutputArray const&, cv::Size, double, double, int)'
Error:(390) undefined reference to cv::dnn::experimental_dnn_34_v7::blobFromImage(cv::_InputArray const&, double, cv::Size_<int> const&, cv::Scalar_<double> const&, bool, bool, int)' Error:(393) undefined reference to
cv::dnn::experimental_dnn_34_v7::Net::setInput(cv::InputArray const&, cv::String const&, double, cv::Scalar const&)'
Error:(396) undefined reference to cv::dnn::experimental_dnn_34_v7::Net::forward(cv::_OutputArray const&, std::vector<cv::String, std::allocator<cv::String> > const&)' Error:(663) undefined reference to
cv::rectangle(cv::Mat&, cv::Rect, cv::Scalar const&, int, int, int)'
Error:(684) undefined reference to cv::line(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)' Error:(685) undefined reference to
cv::line(cv::InputOutputArray const&, cv::Point, cv::Point, cv::Scalar const&, int, int, int)'
Error:(689) undefined reference to cv::circle(cv::_InputOutputArray const&, cv::Point_<int>, int, cv::Scalar_<double> const&, int, int, int)' Error:(46) undefined reference to
cv::dnn::experimental_dnn_34_v7::Net::~Net()'
Error:(46) undefined reference to cv::dnn::experimental_dnn_34_v7::Net::~Net()' Error:(46) undefined reference to
cv::dnn::experimental_dnn_34_v7::Net::~Net()'
/Users/wonders/Documents/workspace/Zeusee-Face/Prj-Android-full-src/app/src/main/cpp/include/opencv2/core/cvstd.hpp
Error:(648) undefined reference to cv::String::deallocate()' Error:(602) undefined reference to
cv::String::allocate(unsigned long)'
Error:(656) undefined reference to `cv::String::deallocate()'
Error:error: linker command failed with exit code 1 (use -v to see invocation)
Information:BUILD FAILED
Information:Total time: 12.931 secs
Information:44 errors
Information:0 warnings
Information:See complete output in console
你好,想问一下,调试了一下安卓端的demo,手机摄像头权限什么都打开了,但是每次点击“打开相机,活体检测”按钮,就会自动退出?
You have many issues with the project however you are not bothering to reply or fix then !
Your company website says you have professional products made by professionals - it does not seem so if this Github project does compile and also has run errors as others have mentioned.
If you don't like the comment then fix the project @lsy17096535
bool getState() {
if (idx < CYCLE_ACTIVE)
return false;
int sum = 0;
bool flag = 0;
for (int i = 0; i < CYCLE_ACTIVE; i++) {
if (frames[i] > 11 || frames[i] < -11) {
flag = 1;
}
if (frames[i] > 8)
sum++;
else if (frames[i] < -8)
sum--;
}
if (abs(sum - 0) < 6 && flag == 1)
return true;
else
return false;
}
这里的abs(sum - 0) < 6 不是大于吗?还是我理解有错误
使用 Android Studio 尝试编造, 显示以下错误, 看起来找不到 cvv, std, 库, 该怎么办?
Error while executing process C:\Users\Wesley\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build D:\WorkingDirectory\MyStudy\Zeusee-Face-Anti-spoofing-master\Prj-Android-full-src\app.externalNativeBuild\cmake\debug\armeabi-v7a --target native-lib}
[1/1] Linking CXX shared library ........\build\intermediates\cmake\debug\obj\armeabi-v7a\libnative-lib.so
FAILED: cmd.exe /C "cd . && C:\Users\Wesley\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=C:/Users/Wesley/AppData/Local/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=C:/Users/Wesley/AppData/Local/Android/Sdk/ndk-bundle/sysroot -fPIC -isystem C:/Users/Wesley/AppData/Local/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=22 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -std=c++11 -frtti -fexceptions -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -nostdlib++ --sysroot C:/Users/Wesley/AppData/Local/Android/Sdk/ndk-bundle/platforms/android-22/arch-arm -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--fix-cortex-a8 -Wl,--exclude-libs,libunwind.a -LC:/Users/Wesley/AppData/Local/Android/Sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libnative-lib.so -o ........\build\intermediates\cmake\debug\obj\armeabi-v7a\libnative-lib.so @CMakeFiles/native-lib.rsp && cd ."
D:\WorkingDirectory\MyStudy\Zeusee-Face-Anti-spoofing-master\Prj-Android-full-src\app\src\main\cpp/AliveDetector.h:294: error: undefined reference to 'cv::dnn::experimental_dnn_v3::blobFromImages(std::__ndk1::vector<cv::Mat, std::ndk1::allocatorcv::Mat > const&, double, cv::Size, cv::Scalar const&, bool, bool)'
D:\WorkingDirectory\MyStudy\Zeusee-Face-Anti-spoofing-master\Prj-Android-full-src\app\src\main\cpp/AliveDetector.h:305: error: undefined reference to 'cv::dnn::experimental_dnn_v3::Net::forward(cv::_OutputArray const&, std::__ndk1::vector<cv::String, std::__ndk1::allocatorcv::String > const&)'
D:\WorkingDirectory\MyStudy\Zeusee-Face-Anti-spoofing-master\Prj-Android-full-src\app\src\main\cpp/AliveDetector.h:315: error: undefined reference to 'cv::dnn::experimental_dnn_v3::Net::forward(cv::_OutputArray const&, std::__ndk1::vector<cv::String, std::__ndk1::allocatorcv::String > const&)'
D:\WorkingDirectory\MyStudy\Zeusee-Face-Anti-spoofing-master\Prj-Android-full-src\app\src\main\cpp/AliveDetector.h:396: error: undefined reference to 'cv::dnn::experimental_dnn_v3::Net::forward(cv::_OutputArray const&, std::__ndk1::vector<cv::String, std::__ndk1::allocatorcv::String > const&)'
请问,基于IntraFace活体检测 是怎么做到的,有相关paper吗,谢谢!
app build successfully after the app is opened its not showing camera just a human black body
2020-01-14 19:26:19.761 15587-15587/alive.zeusees.activedetection E/STATE_log: -1
2020-01-14 19:26:19.801 15587-15587/alive.zeusees.activedetection E/STATE_log: -1
2020-01-14 19:26:19.832 15587-15587/alive.zeusees.activedetection E/DisplayEventDispatcher: dispatcher 0xeb6b4300 ~ last event processed while scheduling was for 120152685
長時間沒維護,就應該封存起來。
程序本身不單止版本兼容問題,是跟本不完整。
在github 上很少見到那麼垃圾的開源項目,跟你的官網上所說的完全不是一回事。
如题
OpenCV Error: Unspecified error (FAILED: fs.is_open(). Can't open "/storage/emulated/0/alivedetection/det1.prototxt") in bool cv::dnn::ReadProtoFromTextFile(const char*, google::protobuf::Message*), file /build/master_pack-android/opencv/modules/dnn/src/caffe/caffe_io.cpp, line 1119
看不到lib的代码?打算开源吗?
请放到 cpp-native 这目录
AliveDetector.h 这个头文件中#include "opencv2/dnn.hpp"
#include "opencv2/opencv.hpp" 这两个头文件引用找不到
如题
我引用了so库,但是我的手机无法设置前置摄像头的聚焦模式,一用聚焦就显示setParaments failed,把它去掉后,能正常预览,但是人像一直无法识别,永远显示无法识别人像。萌新,这方面不是很懂。
最终问题分析:Andriod Studio 3.4中的最新ndk缺少opencv编译的工具链,需要将ndk回退到16版本,即可以。
can you share the model files?For example,det1.prototxt,det1_half.caffemodel,etc.
Hi, thanks for this project.
Wanted to ask if i can find documentation of any kind to use the library?
I encounter the issue
\app\src\main\cpp/AliveDetector.h:294: error: undefined reference to 'cv::dnn::experimental_dnn_v3::blobFromImages(std::__ndk1::vector<cv::Mat, std::ndk1::allocatorcv::Mat > const&, double, cv::Size, cv::Scalar const&, bool, bool)'
In my CMakeList.txt OpenCV_DIR is precised as
set(OpenCV_DIR "E:/OpenCV-android-sdk343/sdk/native/jni")
使用的Android-easy-so目录下提供的so,Detection.java以及assets目录下所有东西,启动后,报错如下
FATAL EXCEPTION: main
Process: com.jianzhiku.zhongrenbang, PID: 23724
java.lang.UnsatisfiedLinkError: No implementation found for long com.baidu.aip.fl.exception.AliveDetection.init(java.lang.String) (tried Java_com_baidu_aip_fl_exception_AliveDetection_init and Java_com_baidu_aip_fl_exception_AliveDetection_init__Ljava_lang_String_2)
at com.baidu.aip.fl.exception.AliveDetection.init(Native Method)
at com.baidu.aip.fl.exception.AliveDetection.(AliveDetection.java:167)
at com.baidu.aip.fl.exception.Detection.onCreate(Detection.java:178)
at android.app.Activity.performCreate(Activity.java:7094)
at android.app.Activity.performCreate(Activity.java:7085)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2750)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2875)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1604)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6618)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:518)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:822)
根据错误找到报错的那行,是 aliveDetection = new AliveDetection("/sdcard//AliveDetection");
这个地方应该怎么配置才对?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.