A simple application centering the Dahua PTZ camera on a double-clicked point in the camera preview window.
The main logic is inside the main.cpp file. The remaining files contain functionality controlling the camera, i.e. expose simple interface (dahua_ptz_camera.h) and hide unnecessary details.
After running the application a window with the camera preview is opened. Double click at any place
inside that window centers the PTZ camera at that point. At the application start the camera is moved to the point zero which
corresponds to horizontal and vertical angles equal 0
. Pressing q
while the window is focused quits the application.
- Linux Ubuntu (checked on 19.10 and 20.04),
- cmake, build system generator (sudo apt install cmake),
- GNU Makefile (sudo apt install make),
- OpenCV4, mostly for data structures (sudo apt install libopencv-dev),
- Boost C++ libraries, for string processing (sudo apt install libboost-all-dev),
- libcurl, for performing HTTP communication (sudo apt install libcurl4),
- Eigen3, for algebra (sudo apt install libeigen3-dev),
- Glog, logging library (sudo apt install libgoogle-glog-dev),
git clone
mkdir build
cd build
cmake ..
make
./goto_point
./inventory_test