The MIPI connector for the Raspberry Pi cam is placed in the middle of the board closed to the CM3 socket as shown below:
We have chosen this position to place the camera on the front panel of the DIN rail case.
Insert the camera connector with the blue band oriented to the relay then turn-on the board and access to the Linux prompt using an ssh connection.
Select Interfacing Options-->P1 Camera and enable the camera interface.
Install this overlay (dt-blob.bin) on the microSD by typing:
sudo wget http://goo.gl/U4t12b -O /boot/dt-blob.bin
Then check if the camera is enabled by typing:
I found on this URL https://blog.miguelgrinberg.com/post/flask-video-streaming-revisited a very easy way to implement example of video streaming made in pure Python written by Miguel Grinberg.
I suggest to read this tutorial to understand how it works. But if you want to try quickly these are thet steps to do:
sudo apt-get update sudo apt-get install python-flask
Install the Python support for the Pi Camera:
sudo apt-get install python-picamera
sudo apt-get install git
Clone the flask-video-streaming repository:
git clone https://github.com/miguelgrinberg/flask-video-streaming.git
Move inside the directory created by Git:
CAMERA=pi python app.py
Open a browser on your PC and go to the URL:
CM3-HOME-B - Home automation carrier board for Raspberry CM3L module
Motherboard designed to provide a reliable Home Automation solution based on Raspberry Pi CM3L industrial module