Nivratti / opencv-static-build-cpp--docker-compose

Statically building opencv to avoid any external dependency on production system to run generated binary file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Opencv static build with cpp demo inside docker-compose

statically building opencv to avoid any external dependency on production system to run generated binary file

1. Docker compose build and run useful commands:

sudo docker compose build
sudo docker compose up

After running docker container, you can coonect it via bash from other terminal window.

sudo docker compose exec opencv bash

2. Building and testing demo - you can change dir inside docker to:

cd /workspace/opencv-dnn-demo/build/
cmake .. && make -j $nproc
./main

About

Statically building opencv to avoid any external dependency on production system to run generated binary file


Languages

Language:Makefile 44.6%Language:CMake 23.5%Language:Dockerfile 18.9%Language:C++ 13.1%