Written in C++ application based on OpenCV library. Main purpose of application is sending handled by OpenCV images from raspberry to another machine.
- build-essentials
sudo apt-get install build-essentials
- opencv 3.1
- cmake >= 3.0
sudo apt-get install cmake
- (optonal) raspicam module
- (optonal) clang
sudo apt-get install clang
- if you want fast compilation. (to disable-DFORCE_DISABLE_CLANG=ON
)
pi@raspberrypi:~ $ git clone https://github.com/DiaLight/OpenCVClient.git
pi@raspberrypi:~ $ cd OpenCVClient/
pi@raspberrypi:~/OpenCVClient $ mkdir build && cd build
pi@raspberrypi:~/OpenCVClient/build $ cmake ..
pi@raspberrypi:~/OpenCVClient/build $ make
pi@raspberrypi:~/OpenCVClient/build $ ./OpenCVClient --help
Client closes when receiving the interrupt signal SIGINT(Ctrl+C) or SIGTERM(stop signal from IDE).
There is two IDE's I am working in.
CLion is very convenient development environment and have good design, but it compiles and runs code local machine only.
NetBeans can compile and run code on remote machine through ssh connection.
- Select
Import Project from Sources
or openfile/Import Project...
Open Project
- Select
OpenCVClient
Run/Build Configuration and run
Создать проект
Проект С/С++ с существующими исходными файлами
- Указываем папку с проектом
- Указываем режим настройки
выборочно
, затем переходимдалее
Требуется действие предварительной сборки
должна стоять галочкаВыполнить в папке:
дописываем/build
или/cmake-build-netbeans
по вкусу (в результате должно выглядеть примерно так/home/pi/OpenCVClient/cmake-build-netbeans
)- Выбираем
Предварительно настроенная команда:
тип сценария:
CMake (CMakeLists.txt)
, затем переходимдалее
- Нажимаем
далее
до победы и за темГотово
.