This was inspired by:
Cross Compile opencv to raspberry pi
Optimizing opencv on the raspberry pi
This project is a simple vagrant/ansible project to
- bring up a debian VM
- install opencv required dev libraries
- download opencv binaries
Bring up the vagrant box. This will create a new debian/stretch VM, install all the arm development libraries on it and compile/install/package opencv
vagrant up
Once the vagrant build is complete, copy the ~/opencv-build/dist folder off the vagrant vm. You will probably have to add vagrant ssh-config to your ~/.ssh/config file
vagrant ssh-config >> ~/.ssh/config
mkdir -p dist
scp vagrant@debian:/home/vagrant/opencv-build/dist/* dist/
Follow the instructions to install the libraries on the pi: Cross Compile opencv to raspberry pi