public void Recognize(Image image) { try { var frame = ImageToFrame(image); detector.process(frame); } catch { } }
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)); } }
public void Process(Bitmap image) { try { detector.start(); detector.process(image.ConvertToFrame()); } catch (AffdexException ae) { detector.stop(); OnFailure?.Invoke(this, new DetectAdapterEventAgrs(ae)); } }