Esempio n. 1
0
 public void Recognize(Image image)
 {
     try
     {
         var frame = ImageToFrame(image);
         detector.process(frame);
     }
     catch
     {
     }
 }
Esempio n. 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));
     }
 }
Esempio n. 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));
     }
 }