Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated OpenCV from 0.93 to 0.94.2 and Fixed OpenCV Build Failure #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dkrishnakumar987
Copy link

So when I tried to install this on Arch, the build broke with this error:
"error[E0061]: this function takes 5 arguments but 4 arguments were supplied
--> src/common/utils.rs:66:8
|
66 | if imgproc::cvt_color(&mat, &mut rgb_mat, imgproc::COLOR_BGR2RGB, 0).is_ok() {
| ^^^^^^^^^^^^^^^^^^----------------------------------------------- argument #5 of type AlgorithmHint is missing
|
|
6212 | pub fn cvt_color(src: &impl ToInputArray, dst: &mut impl ToOutputArray, code: i32, dst_cn: i32, hint: core::AlgorithmHint) -> Result<()> {
| ^^^^^^^^^
help: provide the argument
|
66 | if imgproc::cvt_color(&mat, &mut rgb_mat, imgproc::COLOR_BGR2RGB, 0, /* AlgorithmHint */).is_ok() {"

This was occurring even with OpenCV 0.93.
So I changed the required parameters and updated OpenCV to 0.94.2

For now there doesn't seem to be any issues on my system. Please let me know if there's any issues and if this may break things on other Distros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant