Example #1
0
        public byte[] ToJpegBytes(FrameEntry frame)
        {
            var cvBuffer = NNHelpers.ToCVPixelBuffer(frame);

            cvBuffer.ToCGImage(out CGImage image);
            cvBuffer.Dispose();
            return(UIImage.FromImage(image).AsJPEG().ToArray());
        }
Example #2
0
 public object ToNativeImage(FrameEntry frame)
 {
     return(NNHelpers.ToCVPixelBuffer(frame));
 }