Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 1 KB

README.md

File metadata and controls

37 lines (34 loc) · 1 KB

motionDetector

Prequisite

you need to install some libraies with the following commands below.

sudo apt-get update
sudo apt-get install g++ cmake python3-dev libboost-all-dev libssl-dev libcamera-dev

Instruction

On Raspberry Pi, you need to set a python virtual environment. Firstly, clone this repository.

git clone https://github.com/VEDA-Five-Guys/motionDetector.git

In the directory, set up the virtual environment and install required libraries.

cd motionDetector
python3 -m venv --system-site-packages venv
source venv/bin/activate
pip install opencv-python mediapipe numpy picamera2

Build the program with the following commands.

mkdir build
cd build
cmake ..
make

Then you can see the executable file named 'motion_detector'.
Now, you can execute the program with the following command.

./motion_detector

Note that you need to run this program on virtual environment.

IMG_2221.mp4