This repository is based on OpenCV 3.x and Luna and is aiming at detecting a person.
- step1: build or install FFmpeg
- step2: build or install OpenCV 3.x
- step3: build Luna
- step4: build PersonDetection
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
cd ~/git
git clone https://github.com/opencv/opencv.git
cd opencv
mkdir build
cd build
cmake ..
make
sudo make install
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
cd ~/git/PersonDetection
mkdir build
cd build
cmake ..
make
Under construction