Exemple #1
0
 public void Recognize(Image image)
 {
     try
     {
         var frame = ImageToFrame(image);
         detector.process(frame);
     }
     catch
     {
     }
 }
Exemple #2
0
 public void Process(Bitmap image)
 {
     try
     {
         Frame frame = image.ConvertToFrame();
         frame.setTimestamp(0);
         detector.process(frame);
     }
     catch (AffdexException ae)
     {
         OnFailure?.Invoke(this, new DetectAdapterEventAgrs(ae));
     }
 }
Exemple #3
0
 public void Process(Bitmap image)
 {
     try
     {
         detector.start();
         detector.process(image.ConvertToFrame());
     }
     catch (AffdexException ae)
     {
         detector.stop();
         OnFailure?.Invoke(this, new DetectAdapterEventAgrs(ae));
     }
 }