rustmas icon indicating copy to clipboard operation
rustmas copied to clipboard

Remove dependency on OpenCV

Open mrozycki opened this issue 2 years ago • 2 comments

OpenCV is a large C++ library that has been causing us various issues over time, including problems building on Windows, constant rebuilds despite no changes etc.

Given that we only use a tiny fraction of what OpenCV has to offer, we might be able to replace that with either native Rust libraries or manually rewrite a couple of OpenCV functions into pure Rust, to avoid those issues in the future.

It seems that using imageproc for image processing and nokhwa for camera control might be enough for our use case.

mrozycki avatar Sep 08 '23 06:09 mrozycki

nokhwa seems to have trouble working on macOS: https://github.com/l1npengtul/nokhwa/issues/100

This has to be postponed until those issues are resolved, or we find another capture library.

mrozycki avatar Nov 17 '23 13:11 mrozycki

nokhwa is unfortunately still not ready, and at this point it doesn't seem like it's going to be anytime soon. We have found a simpler crate, but with enough functionality to support our use case: payload/kamera.

mrozycki avatar Oct 24 '24 06:10 mrozycki