/sky360lib

Primary LanguageC++MIT LicenseMIT

sky360lib

C++ Library/Apps for background subtraction and other algorithms for sky360 project

ViBe

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

Getting and Building

  • You need a development environment to build with:

    • Build tools (gcc, cmake)
    • OpenCV > 4.0
  • Open a terminal:

    First we install easy profiler

    Download and install the qhyccd camera sdk

    Building OpenCV

    • 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 .

    Building the library/demo

    Running the demo

    • 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

Additional notes for those running Ubuntu in WSL2

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 .