A python API interface for SeetaFace2
- opencv3.x
- ubuntu 16.04/18.04
- python 2.7.x/3.5.x
sudo pip install opencv-python opencv-contrib-python
[ubuntu-18.04]
sudo apt-get install libopencv-dev
[ubuntu-16.04]
install opencv3.x from source code after uninstalling original opencv 2.4.x if exists.
git clone https://github.com/gaojunying/pyseeta2
cd pyseeta2
git submodule add https://github.com/pybind/pybind11.git pybind11
git submodule add https://github.com/gaojunying/SeetaFace2.git SeetaFace2
[SeetaFace2](optional)
cd SeetaFace2
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=`pwd`/install -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLE=OFF # 如果有 OpenCV,则设置为 ON
cmake --build . --config Release --target install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/lib
cd ..
cp build/bin/* ../lib/x64
cp -rf build/install/include ../src/
cp example/tracking/seeta/Struct_cv.h ../src/include/seeta
cd ..
[pybind11]
cd pybind11
git checkout tags/v2.4.3
cd ..
[install]
sudo make install
[detection]
python example/det.py
[recognition]
python example/rec.py