tyhjh / arcface Goto Github PK
View Code? Open in Web Editor NEW虹软的人脸识别V1.2、人证对比、活体检测封装
虹软的人脸识别V1.2、人证对比、活体检测封装
啥时候更新成最新版本的
/**
* 人脸搜索
*/
public void faceSerch(byte[] faceData, List<byte[]> faceDataList, FaceSerchListener listener) {
AFR_FSDKMatching score = new AFR_FSDKMatching();
AFR_FSDKFace face1 = new AFR_FSDKFace();
face1.setFeatureData(faceData);
AFR_FSDKFace face2 = new AFR_FSDKFace();
int positon = 0;
float max = 0.0f;
for (int i = 0; i < faceDataList.size(); i++) {
float like = 0.0f;
face2.setFeatureData(faceDataList.get(i));
frEngine.AFR_FSDK_FacePairMatching(face1, face2, score);
like = score.getScore();
if (like > max) {
max = like;
positon = i;
}
}
listener.serchFinish(max, positon);
}
这里检测出来的相似度一直为0.0
荣耀9活体检测引擎失败 94209 无法解析主机服务器
问下你有没有试过用身份证去注册,然后检测的时候再用身份证,这种情况有时候能出来是活体,这种应该是他们官方的sdk的问题是吧?
在 arcLibrary 模块中的 com.example.arclibrary.util.DrawUtils 的函数 adjustRect 中
下面这段代码的 if else 的内容一样,应该是 else 里面的 widthRatio 和 heightRatio 写反了
if (cameraOri == 0 || cameraOri == 180 ){
rect.left *= widthRatio;
rect.right *= widthRatio;
rect.top *= heightRatio;
rect.bottom *= heightRatio;
}else {
rect.left *= widthRatio;
rect.right *= widthRatio;
rect.top *= heightRatio;
rect.bottom *= heightRatio;
}
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.