示例#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);
        }
示例#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);
        }