Exemplo n.º 1
0
        public float depthLiveness(byte[] data, int width, int height, int[] landmarks)
        {
            float depthScore = FaceSDK.Run_livenessSilentPredictByte(FaceSDK.LivenessTypeId.LiveidDepth, data,
                                                                     height, width, 2, landmarks);

            return(depthScore);
        }
Exemplo n.º 2
0
        public float irLiveness(byte[] data, int width, int height, int[] landmarks)
        {
            float irScore = FaceSDK.Run_livenessSilentPredictByte(FaceSDK.LivenessTypeId.LiveidIr, data,
                                                                  height, width, 0, landmarks);

            return(irScore);
        }