asdfqwrasdf / arcfacedemo Goto Github PK
View Code? Open in Web Editor NEWArcSoft Free SDK demo,support ArcFace2.1, ArcFace2.0, ArcFace1.2
ArcSoft Free SDK demo,support ArcFace2.1, ArcFace2.0, ArcFace1.2
When I try to integrate your sdk with my project for the face detection functionality, it throws exception at the line
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_face_detect); // crash here }
The logcat trace indicates that the something wrong in librender.so.
FaceDetectActivity.java
package cn.com.hotcent.eyecare.activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.YuvImage;
import android.hardware.Camera;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.arcsoft.facedetection.AFD_FSDKEngine;
import com.arcsoft.facedetection.AFD_FSDKError;
import com.arcsoft.facedetection.AFD_FSDKFace;
import com.guo.android_extend.java.AbsLoop;
import com.guo.android_extend.java.ExtByteArrayOutputStream;
import com.guo.android_extend.widget.CameraFrameData;
import com.guo.android_extend.widget.CameraGLSurfaceView;
import com.guo.android_extend.widget.CameraSurfaceView;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import cn.com.hotcent.eyecare.R;
public class FaceDetectActivity extends AppCompatActivity implements CameraSurfaceView.OnCameraListener, View.OnTouchListener, Camera.AutoFocusCallback{
private final String TAG = this.getClass().getSimpleName();
private static final String APPID = "H3Qa8ho6J9V3hhgfWmVYjWbBBDPUmGCb1xYvB76AEf4N";
private static final String FD_KEY = "2rBiHTjU6tiJzxuDTeJjGvhtN7fBBWAyMQHV38dcdiGh";
private int mWidth, mHeight, mFormat;
private CameraSurfaceView mSurfaceView;
private CameraGLSurfaceView mGLSurfaceView;
private Camera mCamera;
// AFT_FSDKVersion version = new AFT_FSDKVersion();
// AFT_FSDKEngine engine = new AFT_FSDKEngine();
// ASAE_FSDKVersion mAgeVersion = new ASAE_FSDKVersion();
// ASAE_FSDKEngine mAgeEngine = new ASAE_FSDKEngine();
// ASGE_FSDKVersion mGenderVersion = new ASGE_FSDKVersion();
// ASGE_FSDKEngine mGenderEngine = new ASGE_FSDKEngine();
// List<AFT_FSDKFace> result = new ArrayList<>();
// List<ASAE_FSDKAge> ages = new ArrayList<>();
// List<ASGE_FSDKGender> genders = new ArrayList<>();
int mCameraID;
int mCameraRotate;
boolean mCameraMirror;
byte[] mImageNV21 = null;
// FRAbsLoop mFRAbsLoop = null;
// AFT_FSDKFace mAFT_FSDKFace = null;
Handler mHandler;
Runnable hide = new Runnable() {
@Override
public void run() {
mTextView.setAlpha(0.5f);
mImageView.setImageAlpha(128);
}
};
private TextView mTextView;
private TextView mTextView1;
private ImageView mImageView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_face_detect);
}
@Override
public void onAutoFocus(boolean success, Camera camera) {
}
@Override
public boolean onTouch(View v, MotionEvent event) {
return false;
}
@Override
public Camera setupCamera() {
return null;
}
@Override
public void setupChanged(int format, int width, int height) {
}
@Override
public boolean startPreviewLater() {
return false;
}
@Override
public Object onPreview(byte[] data, int width, int height, int format, long timestamp) {
return null;
}
@Override
public void onBeforeRender(CameraFrameData data) {
}
@Override
public void onAfterRender(CameraFrameData data) {
}
}
activity_face_detect.xml
`
<com.guo.android_extend.widget.CameraSurfaceView
android:id="@+id/surfaceView"
android:layout_width="1dp"
android:layout_height="1dp"/>
<com.guo.android_extend.widget.CameraGLSurfaceView
android:id="@+id/glsurfaceView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"/>
<ImageView
android:id="@+id/imageView"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="10dp"/>
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imageView"
android:layout_alignRight="@+id/imageView"
android:layout_below="@+id/imageView"
android:layout_marginTop="10dp"
android:text="@string/app_name"
android:textAlignment="center"/>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imageView"
android:layout_alignRight="@+id/imageView"
android:layout_below="@+id/textView"
android:layout_marginTop="10dp"
android:text="@string/app_name"
android:textAlignment="center"/>
Logcat trace
01-03 14:23:37.119 1286-1415/? I/ActivityManager: Displayed cn.com.hotcent.eyecare/.activity.FaceDetectActivity: +138ms
01-03 14:23:37.127 3657-4226/cn.com.hotcent.eyecare I/ATC.: image.so JNI_OnLoad
01-03 14:23:37.127 3657-4226/cn.com.hotcent.eyecare D/ATC.: glesInit() <--- format = 0
01-03 14:23:37.127 3657-4226/cn.com.hotcent.eyecare D/ATC.: glGetShaderiv called shader = 1 GL_INVALID_ENUM = 1280 GL_INVALID_OPERATION = 1282
01-03 14:23:37.133 3657-4226/cn.com.hotcent.eyecare D/ATC.: glGetShaderiv called compiled = 1, shader = 1
01-03 14:23:37.133 3657-4226/cn.com.hotcent.eyecare D/ATC.: glAttachShader
01-03 14:23:37.133 3657-4226/cn.com.hotcent.eyecare D/ATC.: glBindAttribLocation
01-03 14:23:37.133 3657-4226/cn.com.hotcent.eyecare D/ATC.: glLinkProgram
01-03 14:23:37.133 3657-4226/cn.com.hotcent.eyecare E/ATC.: link failed
01-03 14:23:37.133 3657-4226/cn.com.hotcent.eyecare D/ATC.: glesInit() <--- format = 0
01-03 14:23:37.133 3657-4226/cn.com.hotcent.eyecare D/ATC.: glGetShaderiv called shader = 2 GL_INVALID_ENUM = 1280 GL_INVALID_OPERATION = 1282
01-03 14:23:37.138 3657-4226/cn.com.hotcent.eyecare D/ATC.: glGetShaderiv called compiled = 1, shader = 2
01-03 14:23:37.138 3657-4226/cn.com.hotcent.eyecare D/ATC.: glGetShaderiv called shader = 3 GL_INVALID_ENUM = 1280 GL_INVALID_OPERATION = 1282
01-03 14:23:37.140 3657-4226/cn.com.hotcent.eyecare D/ATC.: glGetShaderiv called compiled = 1, shader = 3
01-03 14:23:37.148 3657-4226/cn.com.hotcent.eyecare D/ATC.: glLinkProgram
01-03 14:23:37.148 3657-4226/cn.com.hotcent.eyecare D/ATC.: glesInit() --->
01-03 14:23:37.148 3657-4226/cn.com.hotcent.eyecare D/ATC.: glesChanged(720, 1120) <---
01-03 14:23:37.148 3657-4226/cn.com.hotcent.eyecare A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xd0 in tid 4226 (GLThread 1384)
01-03 14:23:37.149 3657-3952/cn.com.hotcent.eyecare D/OpenGLRenderer: endAllStagingAnimators on 0xab92b750 (RippleDrawable) with handle 0xab8dae50
01-03 14:23:37.210 624-624/? A/DEBUG: pid: 3657, tid: 4226, name: GLThread 1384 >>> cn.com.hotcent.eyecare <<<
01-03 14:23:37.250 624-624/? A/DEBUG: #00 pc 000029f2 /data/app/cn.com.hotcent.eyecare-1/lib/arm/librender.so (GLChanged+25)
01-03 14:23:37.250 624-624/? A/DEBUG: #01 pc 0000196b /data/app/cn.com.hotcent.eyecare-1/lib/arm/librender.so
楼主你好,我下载了你的demo,编译完报这个错误,请问有什么好的解决方案嘛,'facedetection.jar这个文件好像转换失败了,我的studio也是3.0的
Error:Could not resolve all files for configuration ':ArcFaceDemo-master:debugCompileClasspath'.
Failed to transform file 'facedetection.jar' to match attributes {artifactType=android-classes} using transform JarTransform
Transform output file D:\project\ArcFaceDemo\ArcFaceDemo-master\libs\facedetection.jar does not exist.
Failed to transform file 'facerecognition.jar' to match attributes {artifactType=android-classes} using transform JarTransform
Transform output file D:\project\ArcFaceDemo\ArcFaceDemo-master\libs\facerecognition.jar does not exist.
Failed to transform file 'facetracking.jar' to match attributes {artifactType=android-classes} using transform JarTransform
Transform output file D:\project\ArcFaceDemo\ArcFaceDemo-master\libs\facetracking.jar does not exist.
Failed to transform file 'ageestimation.jar' to match attributes {artifactType=android-classes} using transform JarTransform
Transform output file D:\project\ArcFaceDemo\ArcFaceDemo-master\libs\ageestimation.jar does not exist.
Failed to transform file 'genderestimation.jar' to match attributes {artifactType=android-classes} using transform JarTransform
Transform output file D:\project\ArcFaceDemo\ArcFaceDemo-master\libs\genderestimation.jar does not exist.
你好,请问贵公司的免费算法在对二代证小照片(人证统一验证)方面支持的怎么样?可不可以应用到市场上?
Error:Execution failed for task ':ArcFaceDemo-master:transformDexArchiveWithExternalLibsDexMergerForDebug'.
java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
一共有四个SDK哦,不知道用哪个;谢谢
我试了三个人,网上下载了好几张图片,都是这个提示
I got error when I try the demo code.
In PermissionActivity.java:
public void startActiviy() {
mProgressDialog.show();
}
01-01 17:06:18.326 21592-21592/cn.com.hotcent.testarcface E/WindowManager: android.view.WindowLeaked: Activity cn.com.hotcent.testarcface.PermissionAcitivity has leaked window com.android.internal.policy.PhoneWindow$DecorView{8e50da3 V.E...... R......D 0,0-684,322} that was originally added here
at android.view.ViewRootImpl.(ViewRootImpl.java:368)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:302)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:86)
at android.app.Dialog.show(Dialog.java:322)
at cn.com.hotcent.testarcface.PermissionAcitivity.startActiviy(PermissionAcitivity.java:84)
at cn.com.hotcent.testarcface.PermissionAcitivity.onCreate(PermissionAcitivity.java:50)
at android.app.Activity.performCreate(Activity.java:6303)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2402)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2509)
at android.app.ActivityThread.access$1000(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:5529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
The project cannot be exported completely,Can the specific use method be put forward?
Application app = (Application) PermissionAcitivity.this.getApplicationContext();
should be
Application app = (Application) PermissionAcitivity.this.getApplication();
加了sourceSets.main {
jniLibs.srcDirs = ['libs']
}
也没有用
混淆文件怎么弄啊?我debug模式下没事,正式环境就报错了
当人脸特征库在10以下的时候,单人识别速度可以,但是当人脸特征在100左右的时候,速度就下降很多,应该从哪些方面来改进代码呢
为什么到了第二部检测识别时,就说没有注册人脸呢?谢谢
为什么用AS打不开呢?
1:1的代码可以顺利跑起来。我想问问这个1:N的怎么搞?或者怎么改改?
如题,我用照片也可以检测到。。
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.arcsoft.sdk_demo-2/base.apk"],nativeLibraryDirectories=[/data/app/com.arcsoft.sdk_demo-2/lib/arm, /data/app/com.arcsoft.sdk_demo-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libmpbase.so"
at java.lang.Runtime.loadLibrary(Runtime.java:379)
at java.lang.System.loadLibrary(System.java:1086)
at com.arcsoft.facerecognition.AFR_FSDKEngine.(AFR_FSDKEngine.java:25)
at com.arcsoft.sdk_demo.FaceDB.(FaceDB.java:54)
at com.arcsoft.sdk_demo.Application.onCreate(Application.java:20)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1015)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4793)
at android.app.ActivityThread.access$1600(ActivityThread.java:165)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1437)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:150)
at android.app.ActivityThread.main(ActivityThread.java:5621)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)
您好,华为荣耀6的机型出现couldn't find 'libmpbase.so'的问题,系统:Android6.0 ,CPU:麒麟935
修改成调用前置摄像头后,预览时候图像倒置,自己给自己采集照片比对不放,希望能有一个设置为前置摄像头预览的功能和后置摄像头预览的功能,图像不要倒置。
按照网上的资料无法实现正常的显示,还是倒置,请看:
http://www.jianshu.com/p/1513134733d0
不使用框架com.facebook.fresco:fresco:0.9.0时能使用,使用框架com.facebook.fresco:fresco:0.9.0时显示异常提示:java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.gmcx.upload-1/base.apk", zip file "/data/app/com.gmcx.upload-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.gmcx.upload-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.gmcx.upload-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.gmcx.upload-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.gmcx.upload-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.gmcx.upload-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.gmcx.upload-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.gmcx.upload-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.gmcx.upload-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.gmcx.upload-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.gmcx.upload-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.gmcx.upload-1/lib/arm64, /system/fake-libs64, /data/app/com.gmcx.upload-1/base.apk!/lib/arm64-v8a, /data/app/com.gmcx.upload-1/split_lib_dependencies_apk.apk!/lib/arm64-v8a, /data/app/com.gmcx.upload-1/split_lib_slice_0_apk.apk!/lib/arm64-v8a, /data/app/com.gmcx.upload-1/split_lib_slice_1_apk.apk!/lib/arm64-v8a, /data/app/com.gmcx.upload-1/split_lib_slice_2_apk.apk!/lib/arm64-v8a, /data/app/com.gmcx.upload-1/split_lib_slice_3_apk.apk!/lib/arm64-v8a, /data/app/com.gmcx.upload-1/split_lib_slice_4_apk.apk!/lib/arm64-v8a, /data/app/com.gmcx.upload-1/split_lib_slice_5_apk.apk!/lib/arm64-v8a, /data/app/com.gmcx.upload-1/split_lib_slice_6_apk.apk!/lib/arm64-v8a, /data/app/com.gmcx.upload-1/split_lib_slice_7_apk.apk!/lib/arm64-v8a, /data/app/com.gmcx.upload-1/split_lib_slice_8_apk.apk!/lib/arm64-v8a, /data/app/com.gmcx.upload-1/split_lib_slice_9_apk.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /system/vendor/lib64, /product/lib64]]] couldn't find "libmpbase.so"
demo中预览视频流总是循转了90度,在setupCamera()中调用Camera.setDisplayOrientation()没有效果
不知道是否支持
12-12 20:20:44.887 22763-22763/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.jzg.buildworker, PID: 22763
java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/com.jzg.buildworker-1/lib/arm/libArcSoft_FREngine.so"
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at com.arcsoft.facerecognition.AFR_FSDKEngine.(Unknown Source)
at com.jzg.buildworker.kit.g.(Unknown Source)
at com.jzg.buildworker.JzgApplication.onCreate(Unknown Source)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4765)
at android.app.ActivityThread.access$1700(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1436)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:5524)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:740)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:630)
用了网上N种方法也没有用,就是说找不到 libArcSoft_FREngine.so 但是我打出来的包lib中有,这怎么解?
点击第一个按钮不能注册人脸 请输入注册名字之后 就停止下一步操作了
FD初始化失败,错误码28677!
人脸注册失败,没有检测到人脸,这是为什么
大神,这个so文件在哪儿可以下载
当检测人脸时,如果拿一张照片来和数据库的照片做对比,也是可以完美识别。这个应该是不可以识别的才对,怎么解决这个问题?
使用外置usb摄像头做人脸检测,分辨率640480(720960)都很难检测出人脸,用android自带前置后置摄像头都可以很好的检测出人脸,是什么原因呢
安卓环境,三星S4,android4.4,打开app崩溃,报错如下:
11-13 21:29:33.597 7106-7106/? E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.ExceptionInInitializerError
at com.arcsoft.sdk_demo.FaceDB.(FaceDB.java:54)
at com.arcsoft.sdk_demo.Application.onCreate(Application.java:22)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4567)
at android.app.ActivityThread.access$1400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load mpbase from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.arcsoft.sdk_demo-1.apk,libraryPath=/data/app-lib/com.arcsoft.sdk_demo-1]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:365)
at java.lang.System.loadLibrary(System.java:535)
at com.arcsoft.facerecognition.AFR_FSDKEngine.(AFR_FSDKEngine.java:25)
at com.arcsoft.sdk_demo.FaceDB.(FaceDB.java:54)
at com.arcsoft.sdk_demo.Application.onCreate(Application.java:22)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4567)
at android.app.ActivityThread.access$1400(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
请问这是什么原因?
您好, 请问没有 API 可以用人脸的大小来判断靠近和远离的动作,让 camera 后台是一直运行着只是没有绘制界面,假如有人靠近自动打开前置摄像头
您好:
试用贵方的1:1安卓 demo 运行起来,可以工作, 如何和其他平台的打通? 安卓认证 IOS 也可以识别,有办法交互数据吗?
1:1SDK 和1:N 的SDK有什么区别啊
楼主你好,昨天试了下你的sdk,还是有点问题,key那些都注册了。检测识别人脸,后置,前置相机打开,都是一片绿的页面。没有出现正常的画面。我测试的机子安卓版本是6.0.1的。不知道这个是什么原因导致的?
Project to use libimage.so file, the network can not download, can not upload a document.
Android 打包混淆需要屏蔽那些东西呢?
请问这两个jar包在哪下载呢??android端下载的sdk中并没有这两个jar包
文档说传进AFD_FSDK_StillImageFaceDetection方法中的height不能为奇数,我对height做一个奇数判断,如果是奇数就加1,结果就会报参数错误,是因为不能乱改图像数据吧,是不是判断如果是奇数就不要调用检测API了直接提示图像不合法?
int mPicBitmapHeight = mPicBitmap.getHeight();
if(mPicBitmapHeight是奇数){mPicBitmapHeight = mPicBitmapHeight+1; }
err = engine.AFD_FSDK_StillImageFaceDetection(data, mPicBitmap.getWidth(), mPicBitmapHeight, AFD_FSDKEngine.CP_PAF_NV21, result);
运行demo时,提示找不到face.txt文件,
报错的代码在FileInputStream fs = new FileInputStream(mDBPath + "/face.txt");
以下是日志
12-19 10:23:35.512 7679-7703/com.arcsoft.sdk_demo W/System.err: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.arcsoft.sdk_demo/cache/face.txt: open failed: ENOENT (No such file or directory)
12-19 10:23:35.512 7679-7703/com.arcsoft.sdk_demo W/System.err: at libcore.io.IoBridge.open(IoBridge.java:409)
12-19 10:23:35.512 7679-7703/com.arcsoft.sdk_demo W/System.err: at java.io.FileInputStream.(FileInputStream.java:78)
12-19 10:23:35.512 7679-7703/com.arcsoft.sdk_demo W/System.err: at java.io.FileInputStream.(FileInputStream.java:105)
12-19 10:23:35.512 7679-7703/com.arcsoft.sdk_demo W/System.err: at com.arcsoft.sdk_demo.FaceDB.loadInfo(FaceDB.java:92)
12-19 10:23:35.520 7679-7703/com.arcsoft.sdk_demo W/System.err: at com.arcsoft.sdk_demo.FaceDB.loadFaces(FaceDB.java:119)
12-19 10:23:35.520 7679-7703/com.arcsoft.sdk_demo W/System.err: at com.arcsoft.sdk_demo.PermissionAcitivity$1.run(PermissionAcitivity.java:89)
12-19 10:23:35.520 7679-7703/com.arcsoft.sdk_demo W/System.err: at java.lang.Thread.run(Thread.java:841)
请问如何解决这个问题呢
按照 demo 里的方式使用 CameraSurfaceView 及 CameraGLSurfaceView 在个别机型如 honor6 DLI-AL 10 上会出现灰色边框。
摄像头向前如何设置?
对焦好慢 哪里设置能优化?
在AS中导入这个项目后,会出现Error:(31, 35) 错误: 程序包com.arcsoft.facerecognition不存在。请问这样该怎么解决呢?demo里面我找不到libs文件夹这该怎么解决?原谅我是个小白,在此先说声感谢!
人脸验证只能用相机预览么,可以用png照片验证码
CameraGLSurfaceView 用作相机预览时无法全屏,不知能解决吗? 它里面有做有操作,怎么给Camera.setPreviewSize 都没用。。。
下载的libs没有arm64-v8a的.so文件,在这类手机上没办法启动,是不支持嘛?
原来用的手机都可以正常运行,但用到定制的android设备,闪退;只要布局里用CameraGLSurfaceView就闪退,跟断点发现正常运行时都会运行CameraGLSurfaceView中的setImageConfig,闪退时不会进此函数
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.