Exemplo n.º 1
0
        public void LoadJpegFromRaspberryCamera()
        {
            const int Width     = 1280;
            const int Height    = 720;
            const int DisWidth  = 1280;
            const int DisHeight = 720;
            const int FrameRate = 30;
            var       ptr       = yolo.GetRaspberryCameraImage(Width, Height, DisWidth, DisHeight, FrameRate);

#if WIN64
            Assert.That(ptr, Is.EqualTo((IntPtr)0));
#elif LINUX64
            Assert.That(ptr, Is.Not.EqualTo(0));
#else
            throw new PlatformNotSupportedException();
#endif
        }