lawsonsli / facecapture Goto Github PK
View Code? Open in Web Editor NEWan Android app kind like Facerig(but simpler)
an Android app kind like Facerig(but simpler)
03-05 15:08:34.773 14507-14507/com.facedetection D/FaceDetector: constructed.
03-05 15:08:34.773 14507-14507/com.facedetection D/dalvikvm: Trying to load lib /data/app-lib/com.facedetection-2/libandroid_dlib.so 0x42bedb70
03-05 15:08:34.783 14507-14507/com.facedetection D/dalvikvm: Added shared lib /data/app-lib/com.facedetection-2/libandroid_dlib.so 0x42bedb70
03-05 15:08:34.783 14507-14507/? A/native: F/jni_primitives.h:113 'detRetClass' Must be non NULL
03-05 15:08:34.783 14507-14507/? A/native: terminating.
03-05 15:08:34.783 14507-14507/? A/libc: Fatal signal 6 (SIGABRT) at 0x000038ab (code=-6), thread 14507 (m.facedetection)
03-05 15:08:34.783 14507-14507/? A/libc: Unable to open connection to debuggerd: Connection refused
when opening camera have Error
LogCat Error :
10-25 00:27:10.182 17316-17316/signalprocess.facecapture I/native: I/jni_face_det.cpp:140 det face size: 0
10-25 00:27:10.182 17316-17316/signalprocess.facecapture I/native: I/jni_face_det.cpp:92 getFaceRet
10-25 00:27:10.182 17316-17316/signalprocess.facecapture D/FaceDetector: no face.
10-25 00:27:10.184 17316-17316/signalprocess.facecapture D/skia: onFlyCompress
10-25 00:27:10.193 17316-17316/signalprocess.facecapture I/native: I/jni_face_det.cpp:128 jniBitmapFaceDet
10-25 00:27:10.193 17316-17316/signalprocess.facecapture I/native: I/jni_bitmap2mat.cpp:29 nBitmapToMat: RGBA_8888 -> CV_8UC4
10-25 00:27:10.195 17316-17316/signalprocess.facecapture I/native: I/detector.h:175 com_tzutalin_dlib_PeopleDet go to det(mat)
10-25 00:27:10.281 17316-17316/signalprocess.facecapture I/native: I/detector.h:184 Dlib HOG face det size : 1
10-25 00:27:10.282 17316-17316/signalprocess.facecapture I/native: I/detector.h:190 face index:0number of parts: 0
10-25 00:27:10.282 17316-17316/signalprocess.facecapture I/native: I/jni_face_det.cpp:140 det face size: 1
10-25 00:27:10.282 17316-17316/signalprocess.facecapture I/native: I/jni_face_det.cpp:92 getFaceRet
10-25 00:27:10.282 17316-17316/signalprocess.facecapture D/AndroidRuntime: Shutting down VM
10-25 00:27:10.283 17316-17316/signalprocess.facecapture E/AndroidRuntime: FATAL EXCEPTION: main
Process: signalprocess.facecapture, PID: 17316
java.lang.IndexOutOfBoundsException: Index: 36, Size: 0
at java.util.ArrayList.get(ArrayList.java:411)
at signalprocess.facecapture.FaceDetector.solveFacePose(FaceDetector.java:74)
at signalprocess.facecapture.FaceDetector.getLandmarks(FaceDetector.java:64)
at signalprocess.facecapture.CameraPreview$FrameCallback.onPreviewFrame(CameraPreview.java:173)
at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1133)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
10-25 00:27:21.442 17316-17362/signalprocess.facecapture E/Surface: queueBuffer: error queuing buffer to SurfaceTexture, -19
10-25 00:27:21.448 17316-17362/signalprocess.facecapture W/GLThread: eglSwapBuffers failed: EGL_BAD_NATIVE_WINDOW
我可以得到人脸框,但是没法得到landmark,我猜可能是shape_predictor_68_face_landmarks.dat的路径问题,
compileSdkVersion 25
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "signalprocess.facecapture"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
cppFlags ""
}
}
ndk {
moduleName "native-lib"
abiFilters "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
}
这是我的build.gradle,我不知道该怎么解决,方便的话还请您能指点一下
pitch俯仰角“点头“ yaw偏航角‘摇头’ roll旋转角“翻滚”
请问一下,r_m和r_n的默认取值与论文中不同,代码中这两个值的来源是根据自己的情况取的值吗?
返回的landmark大小一直为0,大哥求帮忙解决下
大佬啥时候出详细点的讲解,想学习学习。
我想请教一下帧与帧的平滑和防抖要怎么实现
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.