- https://docs.rs/opencv/0.60.0/opencv/
- https://lib.rs/crates/opencv
- https://github.com/twistedfall/opencv-rust/tree/master/examples
Windows
- Install LLVM
- https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/LLVM-13.0.0-win64.exe
- Add LLVM to the system Path while installing
- Download OpenCV
- https://github.com/opencv/opencv/releases/download/4.5.4/opencv-4.5.4-vc14_vc15.exe
- Extract to
C:/opencv
(If you use a different directory, change the commands in the next step)
- Set environment variables (Power Shell)
$env:Path+=";C:/opencv/build/x64/vc15/bin"
$env:OPENCV_LINK_LIBS="opencv_world454"
$env:OPENCV_LINK_PATHS="C:/opencv/build/x64/vc15/lib"
$env:OPENCV_INCLUDE_PATHS="C:/opencv/build/include"
Linux
Setup
Resource
OpenCV Sample Projects in Rust
- https://docs.rs/opencv/0.60.0/opencv/
- https://lib.rs/crates/opencv
- https://github.com/twistedfall/opencv-rust/tree/master/examples
Windows
- Install LLVM
- https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/LLVM-13.0.0-win64.exe
- Add LLVM to the system Path while installing
- Download OpenCV
- https://github.com/opencv/opencv/releases/download/4.5.4/opencv-4.5.4-vc14_vc15.exe
- Extract to
C:/opencv
(If you use a different directory, change the commands in the next step)
- Set environment variables (Power Shell)
$env:Path+=";C:/opencv/build/x64/vc15/bin"
$env:OPENCV_LINK_LIBS="opencv_world454"
$env:OPENCV_LINK_PATHS="C:/opencv/build/x64/vc15/lib"
$env:OPENCV_INCLUDE_PATHS="C:/opencv/build/include"
Linux
Setup
- https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/LLVM-13.0.0-win64.exe
- Add LLVM to the system Path while installing
- https://github.com/opencv/opencv/releases/download/4.5.4/opencv-4.5.4-vc14_vc15.exe
- Extract to
C:/opencv
(If you use a different directory, change the commands in the next step)
$env:Path+=";C:/opencv/build/x64/vc15/bin"
$env:OPENCV_LINK_LIBS="opencv_world454"
$env:OPENCV_LINK_PATHS="C:/opencv/build/x64/vc15/lib"
$env:OPENCV_INCLUDE_PATHS="C:/opencv/build/include"
todo
Add crate
[dependencies]
opencv = "0.60"
Acknowledgements
- OpenCV
- https://github.com/opencv/opencv
- Licensed under the Apache License, Version 2.0
- Some images are copied from this project