-
Connect the camera to the pi with the pins facing the hdmi port
-
ssh into the pi and run
sudo raspi-config
-
Select "Interfaceing options"
-
Select "P1 camera" and enable the camera
-
Reboot pi
-
Run
sudo apt-get install python3-picamera
-
Spend 4 hours installing openCV
-
install mqtt client
pip install paho-mqtt
python camera.py
To open a websocket connection an send a picture analysed with openCV
OR
python mqtt_camera.py
To publish to a mqtt broker if a person is detected by the camera or not