- 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 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_dir
cd build_dir
cmake ../
make install
, this step does not require
Install Eigen for Linux
- install and use eigen3 on ubuntu 16.04
sudo apt-get install libeigen3-dev
libeigen3-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 topybind11
inCMakeLists.txt
andmain.cpp
, Uncommentadd_executable
inCMakeLists.txt
Build:mkdir build
>cd build
>cmake ..
>cmake --build .
> and run it by./adaptbytetrack
Linh Ma, Machine Learning & Vision Laboratory, GIST, South Korea