Android 人脸识别,移动app软件开发工程师

.setPositiveButton(“Ok”, new DialogInterface.OnClickListener() {

@Override

public void onClick(DialogInterface dialogInterface, int j) {

FSDK.LockID(mTracker, mTouchedID);

String userName = input.getText().toString();

FSDK.SetName(mTracker, mTouchedID, userName);

if (userName.length() <= 0)

FSDK.PurgeID(mTracker, mTouchedID);

FSDK.UnlockID(mTracker, mTouchedID);

mTouchedIndex = -1;

}

})

这代码,看来人脸图和特征应该是放在手机存储里,存储里想查看但是查不到,无法改目录才能查看

抱歉,这项目源代码暂时不公开哈,id和key也不公开,先看一下代码吧,代码如下:

完整的MainActivity.java

public class MainActivity extends Activity implements OnClickListener {

private boolean mIsFailed = false;

private Preview mPreview;

private ProcessImageAndDrawResults mDraw;

private final String database = “Memory50.dat”;

private final String help_text = “Luxand Face Recognition\n\nJust tap any detected face and name it. The app will recognize this face further. For best results, hold the device at arm’s length. You may slowly rotate the head for the app to memorize you at multiple views. The app can memorize several persons. If a face is not recognized, tap and name it again.\n\nThe SDK is available for mobile developers: www.luxand.com/facesdk”;

public static float sDensity = 1.0f;

public void showErrorAndClose(String error, int code) {

AlertDialog.Builder builder = new AlertDialog.Builder(this);

builder.setMessage(error + ": " + code)

.setPositiveButton(“Ok”, new DialogInterface.OnClickListener() {

@Override

public void onClick(DialogInterface dialogInterface, int i) {

android.os.Process.killProcess(android.os.Process.myPid());

}

})

.show();

}

public void showMessage(String message) {

AlertDialog.Builder builder = new AlertDialog.Builder(this);

builder.setMessage(message)

.setPositiveButton(“Ok”, new DialogInterface.OnClickListener() {

@Override

public void onClick(DialogInterface dialogInterface, int i) {

}

})

.setCancelable(false) // cancel with button only

.show();

}

private void resetTrackerParameters() {

int errpos[] = new int[1];

FSDK.SetTrackerMultipleParameters(mDraw.mTracker, “ContinuousVideoFeed=true;FacialFeatureJitterSuppression=0;RecognitionPrecision=1;Threshold=0.996;Threshold2=0.9995;ThresholdFeed=0.97;MemoryLimit=2000;HandleArbitraryRotations=false;DetermineFaceRotationAngle=false;InternalResizeWidth=70;FaceDetectionThreshold=3;”, errpos);

if (errpos[0] != 0) {

showErrorAndClose(“Error setting tracker parameters, position”, errpos[0]);

}

}

/**

  • Called when the activity is first created.

*/

@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

sDensity = get

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值