SkillAgentSearch skills...

Pyseeta2

python API for seetaface2

Install / Use

/learn @egasus/Pyseeta2
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

pyseeta2

A python API interface for SeetaFace2

Installation

Environment

  • [x] opencv3.x
  • [x] ubuntu 16.04/18.04
  • [x] python 2.7.x/3.5.x

Prerequisite

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.

Install

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

Example

[detection]
python example/det.py

Result

[recognition]
python example/rec.py

Thanks

Related Skills

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated3y ago
Forks4

Languages

C++

Security Score

75/100

Audited on Jan 27, 2023

No findings