This will be used to detect tennis balls from a video feed.
Note: you will need to have opencv and cmake installed.
sudo apt-get install libopencv-dev
sudo apt-get install cmake
- Clone this repo
git clone https://github.com/UofA-SPEAR/opencv-ball-detection.git
cd opencv-ball-detection
- Create a build directory, run cmake, then run make
mkdir build
cd build
cmake ..
make
- Run the compiled program
cd ..
./build/main tennis.jpg