This project is motified based on tennis-court-detection, so most of the content is named as "Tennis..." instead of "Badminton..."
$ git clone https://github.com/maomao726/PP_Finalproject_Group6.git
$ cd {repo}/{version}
$ sudo apt install cmake
$ pip3 install conan
❗ conan doesn't support cmake generator since version 2.0, which is replaced by CMakeDeps + CMakeToolchain.
The previous version, 1.55.0, works for us:
$ pip3 install conan==1.55.0
$ vim conanfile.txt
❗ Not sure if this project is compatible with opencv4.
- If you lost your conan profile, you can create a new one with this command:
$ conan profile new default --detect // version 1.X
$ conan profile detect // version 2.X
- You can check your profile with this command:
$ conan profile show {profileName}
- if you got an error like this while installing packages: Try edit your configurations in your profile, permit conan to update/install the dependencies:
$ vim {path to your conan profile} // default : ~/.conan/profiles/default
add these lines in then save:
[conf]
tools.system.package_manager:mode = install
tools.system.package_manager:sudo = True
$ sh build.sh
or
$ mkdir build && cd build
$ conan install .. --build missing
$ cmake ..
$ cmake --build .
If you run these instructions successfully, there should be a executable file detect
under the directory build/bin
.
-
if you get an error like this: that's probably because your path isn't correct. Find where your
conanbuildinfo.cmake
andCMakeList.txt
at, update the correct path inCMakeList.txt
, and cmake again. If nothing else go wrong, this step should simultaneouly solveUnknown Cmake command "conan_basic_setup"
error. -
$ sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
could help
$ ./detect -i {image} -f -p {num_of_threads} white
Descriptions can be found while command is imcomplete