Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/OmalPerera/Human-detection-system-with-raspberry-Pi

A motion detection system with RaspberryPi, OpenCV, Python
https://github.com/OmalPerera/Human-detection-system-with-raspberry-Pi

camera opencv python raspberry-pi raspberry-pi-3 raspberry-pi-camera

Last synced: 4 days ago
JSON representation

A motion detection system with RaspberryPi, OpenCV, Python

Awesome Lists containing this project

README

        

# Human Detection System using Raspberry Pi

## Functionality
Activates a relay on detecting motion.

You may need following components to get the expected Results

## Hardware Components
* A raspberry pi 2 or 3 model B ([Raspberry pi 3 model 3](https://www.raspberrypi.org/products/raspberry-pi-2-model-b/) has been used in my case)
* A compatible camera module ([CAMERA MODULE V2](https://www.raspberrypi.org/products/camera-module-v2/))
* A power Adapter with 2.0A - 2.5A ([RASPBERRY PI UNIVERSAL POWER SUPPLY](https://www.raspberrypi.org/products/universal-power-supply/))
* A micro SD card (16Gb -32GB recommended)

## Software Requirements
* Any compatible Raspbian OS can be used.
* Update the OS to latest `sudo apt-get update`
* Upgrade the OS `sudo apt-get upgrade`
* Update the Raspberry Pi firmware `sudo rpi-update`
* Should install OpenCV `sudo apt-get install libopencv`
* Should Install Python
* imutils ```pip install imutils```
* RPi.GPIO```pip install RPi.GPIO```

If you need to update openCV to latest version install following dependencies
```
sudo apt-get install build-essential checkinstall cmake pkg-config yasm
sudo apt-get install libtiff4-dev libjpeg-dev libjasper-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev
sudo apt-get install python-dev python-numpy
sudo apt-get install libtbb-dev
sudo apt-get install libqt4-dev libgtk2.0-dev
```

## Usage
```
python pi_surveillance.py --conf conf.json
```