示例#1
0
 public void detect(BitmapSource bmp, object extra)
 {
     FaceRestAPI.FaceAPI f = fra.faces_detect(null, createTempImage(bmp), null, null);
     //need to change to hold data
     EventArgs e = new FaceRecognitionEventArgs(f);
     detected(this, e);
 }
示例#2
0
        public void recognize(BitmapSource bmp, object extra)
        {
            //can use database to store tempimage path so image can later be used
            //can generate possible ids based on area context
            List<string> uids = new List<string>();
            uids.Add("all");
            FaceRestAPI.FaceAPI f = fra.faces_recognize(null, uids, nameSpace, null, createTempImage(bmp), null, null);

            EventArgs e = new FaceRecognitionEventArgs(f);
            recognized(this, e);
        }