C++ Library/Apps for background subtraction and other algorithms for sky360 project
Right now the ViBe BS is the only one implemented, you can learn more about ViBe from:
http://www.telecom.ulg.ac.be/publi/publications/barnich/Barnich2011ViBe/index.html
-
You need a development environment to build with:
- Build tools (gcc, cmake)
- OpenCV > 4.0
-
Open a terminal:
- git clone https://github.com/yse/easy_profiler.git
- cd easy_profiler
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE="Release" ..
- sudo make install
- Download qhyccd sdk - https://www.qhyccd.com/html/prepub/log_en.html#!log_en.md
- tar zxvf sdk_linux64_22.07.06.tgz
- cd sdk_linux64_22.07.06
- sudo bash install.sh
- sudo apt install build-essential cmake -y
- create a new dir:
- mkdir sky360
- cd sky360
- git clone https://github.com/opencv/opencv.git
- mkdir build
- cd build
- cmake ..
- cmake --build .
- sudo cmake --install .
- go to the sky360 directory
- git clone https://github.com/Sky360-Repository/sky360lib.git
- cd embedded-bgsub
- mkdir build
- cd build
- cmake ..
- cmake --build .
- go to the sky360 directory
- cd build/bin
- sky360lib_demo 0
- The number is the camera number, you might need to change it to 1, 2
The above has been tried with Ubuntu 22.04.1 WSL2. However one in issue came up relating to libcuda. Problem and workaround is described here: microsoft/WSL#5663 (comment) cd \Windows\System32\lxss\lib del libcuda.so del libcuda.so.1
Note that you might need the following: sudo apt install libgtk2.0-dev If so you have to rerun cmake from OpenCV build directory. cmake .. cmake --build . sudo cmake --install .