Skip to content

jacobcrawford/IoTCamera

Repository files navigation

IoTCamera

To setup the pi camera do the following:

  1. Connect the camera to the pi with the pins facing the hdmi port

  2. ssh into the pi and run

sudo raspi-config

  1. Select "Interfaceing options"

  2. Select "P1 camera" and enable the camera

  3. Reboot pi

  4. Run

sudo apt-get install python3-picamera

  1. Spend 4 hours installing openCV

  2. install mqtt client

pip install paho-mqtt

You can now run:

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

About

THe python camera setup and the pictures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages