Running with opencv-python instead of installing opencv from source
I am trying to deploy a Flask app that calls this code on images, and I want to avoid having to installing opencv from source every time from source for each new machine I scale to (it takes a long time and is error prone).
Is it possible to run this repo with the python bindings for opencv (e.g. installed using: pip3 install python-opencv)? If not, is there a way to export some sort of C++ binary (compiled once) and call it from Python.
I think you can not easily do that. Basically the compiled file requires the OpenCV library (.so files) to run. I think 1) you can install OpenCV from command line tools to make your deployment process a bit smoother (e.g., sudo apt-get install libopencv-dev) or 2) you can try to modify the Makefile so that opencv libraries are statically linked to the compiled program. I am not exactly sure if opencv allows you to do that but it's a possible option.