Info on GHI Gadgeteer USB Camera

I’ve tested the dear-old GHI Gadgeteer Usb Camera under Win IoT and it works fine with Windows.Media.Capture framework api.
You need to attach USB camera to an USB Gadgeteer (red) power module, then to RaspberryPi USB port. If you own one of this camera you can revitalize it in this way for some new mission…:smiley:


using Windows.Media.Capture;
....

        MediaCapture m = null;

        // USB camera (GHI camera) test in IoT.    
        public async Task<int> MediaCaptureInit()
        {
            m = new MediaCapture();
            await m.InitializeAsync();

            previewElement.Source = m;
            await m.StartPreviewAsync();
            return 0;
        }
//// In file XAML:

        <Canvas x:Name="imageCam" HorizontalAlignment="Left" Height="240" Margin="35,154,0,0" VerticalAlignment="Top" Width="320">
            <CaptureElement x:Name="previewElement" Height="240" Width="320"></CaptureElement>
        </Canvas>

Microsoft has some example on Github on how to take video and snapshots.

1 Like