Closed Jabulba closed 3 years ago
Are you absolutely sure that you are using the same OpenCV installation from Rust and Python?
Are you absolutely sure that you are using the same OpenCV installation from Rust and Python?
You are correct, python was using 4.5.1 and rust 4.5.2! But that wasn't the problem
When I tried 4.5.1 with Rust the program failed to run with exit code: 0xc0000135, STATUS_DLL_NOT_FOUND
because PATH and OPENCV_DIR had not been set.
I'm not sure why 4.5.2 didn't crash that way, but after setting them for 4.5.2 it worked fine!
I tried opening a video file for processing using the VideoCapture::from_file but is_opened always returns false (also tried several formats for path):
Its not the file format because the same code from python works fine:
rustc --version
): rustc 1.51.0-nightly (1d0d76f8d 2021-01-24) and rustc 1.49.0 (e1884a8e3 2020-12-29)