Requirements
- Python 3.7
- C++ compiler (eg. Windows: Visual Studio 15 2017, Ubuntu: g++)
- pybind11
https://github.com/pybind/pybind11.git - Linear Assignment Problem solver
https://github.com/gatagat/lap.git
Install
Install Eigen for Windows (after the following steps, add include directory C:\eigen-3.4.0 for example.)
- Download Eigen 3.4.0 (NOT lower than this version) from it official website https://eigen.tuxfamily.org/ or ZIP file here.
mkdir build_dircd build_dircmake ../make install, this step does not require
Install Eigen for Linux
- install and use eigen3 on ubuntu 16.04
sudo apt-get install libeigen3-devlibeigen3-dev is installed install to/usr/include/eigen3/and/usr/lib/cmake/eigen3.- We must make a change in CMakeLists.txt
SET( EIGEN3_INCLUDE_DIR "/usr/local/include/eigen3" )toSET( EIGEN3_INCLUDE_DIR "/usr/include/eigen3/" ).
Include OpenCV headers
- Install OpenCV
sudo apt install libopencv-dev - Find where OpenCV is instsallted:
pkg-config --cflags opencv4 - Change directory in CMakeLists.txt if needed
include_directories(/usr/include/opencv4/)
Build
- Build C++ Package to call from Python:
python setup.py build develop - Build to run directly from C++:
you need to change path of detect files and images inmain.cpp
Comment all lines related topybind11inCMakeLists.txtandmain.cpp, Uncommentadd_executableinCMakeLists.txt
Build:mkdir build>cd build>cmake ..>cmake --build .> and run it by./adaptbytetrack
LICENCE
Linh Ma, Machine Learning & Vision Laboratory, GIST, South Korea