Besides the use of Cognitive Services (only for x64), a cool and fast idea can be to convert your RPi to a RTSP Cam device. We only need to connect a USB WebCam to the Raspberry Pi.
Once the USB Camera is connected, we need to add the following Edge Module to the device configuration
The module runs as a IoT Edge container named RtspWebCam. While running the container image, one must map the USB camera on the host device to the container by using the following module createOptions parameters: PathOnHost=/dev/video0, PathInContainer=/dev/video0.
Once we add the module, we can see the module running in the device:
And, we will have access to a RTSP Camera. And we can run a sample python app to have the view from the camera.
Sample Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Leave a comment