Use camera when screen locked [on hold]

I want to create application that scan your face save it in memory and when you want to unlock your telephone you just have to keep telephone in front of your face that the camera can recognize your face and unlock the smartphone. I want to use FaceRecognition SDK. How can I do it ?