Re: [問題] android 4.0人臉解鎖
※ 引述《vivi50218 (vivi)》之銘言:
: 我在網上看到android 4.0 有人臉識別功能,因為我現在再做的程式有用到人臉偵測
: 我現在想更進一步用到識別,我google也沒看到原始碼釋出,請問這功能只有4.0能使用?
: 或是一般的2.2 2.3也能用? 還有也聽說有指紋辨識? 那手機硬體方面有支援嗎?
哦..只有4.0可以用,這個facelock的功能是用一個獨立的service存在的
private ServiceConnection mFaceLockConnection = new ServiceConnection() {
// Completes connection, registers callback and starts FaceLock when service is bound
@Override
public void onServiceConnected(ComponentName className, IBinder iservice) {
mFaceLockService = IFaceLockInterface.Stub.asInterface(iservice);
if (DEBUG) Log.d(TAG, "Connected to FaceLock service");
try {
mFaceLockService.registerCallback(mFaceLockCallback);
} catch (RemoteException e) {
Log.e(TAG, "Caught exception connecting to FaceLock: " + e.toString());
mFaceLockService = null;
mBoundToFaceLockService = false;
return;
}
稍微找了一下,只有一個 IFaceLockInterface的AIDL,所以這就是交給廠商自己搞啦,
沒有source code。
--
Beware of bugs in the above code;
I have only proved it correct, not tried it.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.32.193.107
推
01/29 10:50, , 1F
01/29 10:50, 1F
→
01/29 13:03, , 2F
01/29 13:03, 2F
→
01/29 14:45, , 3F
01/29 14:45, 3F
→
01/29 14:46, , 4F
01/29 14:46, 4F
→
01/29 14:46, , 5F
01/29 14:46, 5F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):