Skip to content

Latest commit

 

History

History
100 lines (85 loc) · 1.95 KB

README.md

File metadata and controls

100 lines (85 loc) · 1.95 KB

PersonDetection

This repository is based on OpenCV 3.x and Luna and is aiming at detecting a person.

How to build

Build Steps

  • step1: build or install FFmpeg
  • step2: build or install OpenCV 3.x
  • step3: build Luna
  • step4: build PersonDetection

STEP1: Build FFmpeg

When you build FFmpeg you have to be careful. If your target board is 32-bits, you must add the --enable-pic option.

cd ~/git
git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
  • For 32-bits processor like Raspberry Pi 2 or 3
./configure --enable-libfreetype --enable-gpl \
            --enable-nonfree --enable-libx264 --enable-shared --enable-pic
make
sudo make install
  • For 64-bits processor like macOS, Linux
./configure --enable-libfreetype --enable-gpl \
            --enable-nonfree --enable-libx264 --enable-shared --enable-pic
make
sudo make install

STEP2: Build OpenCV 3.x

cd ~/git
git clone https://github.com/opencv/opencv.git
cd opencv
mkdir build
cd build
cmake ..
make
sudo make install

STEP3: Build Luna

Luna needs curl and mbedTLS libraries because of supporting RESTful client using TLS. So you have to build those first before building Luna.

cd ~/git/PersonDetection
git submodule init
git submodule update
cd ./dependency/Luna
git submodule init
git submodule update
  • build curl and mbedTLS
cd ~/git/PersonDetection/dependency/Luna
git submodule init
git submodule update
cd dependency
mkdir build
cd build
cmake ..
make
  • build Luna
cd ~/git/PersonDetection/dependency/Luna
mkdir build
cd build
cmake ..
make

STEP4: Build PersonDetection

cd ~/git/PersonDetection
mkdir build
cd build
cmake ..
make

How to run

Under construction

Demo Videos

Demo Video1

Watch the video

Demo Video2

Watch the video