I discovered about rust a few days ago and am really excited about using it for image processing. I looked into the rust book for a few chapters, wrote a few simple programs, learnt about the basic rust syntax and also the awesome rust compiler & cargo package manager.
Question, I tried installing opencv from crates with opencv = "0.34.0" into Cargo.toml, but the opencv installation fails with the error
error: failed to run custom build command for `opencv v0.34.0`
How do I resolve this?
Other questions, is there any other crate that I can use to get raw camera streams (cause all opencv does is call c++ api internally, hence want to do it at rust level if it exists)
I am able to run c++ examples by providing opencv via the command line since I built it myself, something like this, `g++ detect-camera.cpp pkg-config --cflags --libs opencv
Hi, please file a bug report at Issues · twistedfall/opencv-rust · GitHub and provide some information about your environment and the output of cargo build -vv. It's difficult to say what exactly is failing without it.
After spending some time I figured out that OpenCv wasn't properly installed on my machine (The environment variables weren't properly set to be exact), so I had to rebuild opencv from source with pkg-config generation enabled, then link the opencv4.pc file to PKG_CONFIG_PATH and the installation went through successfully.