Installing & Configuring OpenCV crate for rust on macOS
All of us have had some trouble setting up opencv create for rust-lang on macOS. In this article i will be showing you how to properly set up OpenCV so that when you build it you do not encounter any build issues.
opencv crate : https://crates.io/crates/opencv
Note: In this article we will rely on auto-detection of the OpenCV library, which is the best thing to do on macOS. So make sure to only set the environment variables that have been advised here. Do not need to set any variables that relate to OpenCV specifically.
Tested on Following
OpenCV Version 4.8.0 stable