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

Imencode error (Opencv 4.7) #141

Open
BryanBetancur opened this issue Apr 3, 2023 · 3 comments
Open

Imencode error (Opencv 4.7) #141

BryanBetancur opened this issue Apr 3, 2023 · 3 comments

Comments

@BryanBetancur
Copy link

I upgrade Opencv to 4.7 release but when I try to publish a compressed image topic I get this error in CompressedPublisher node:

[ERROR] [1680555257.247563111] [CompressedPublisher]: OpenCV(4.7.0) /root/opencv/modules/imgcodecs/src/loadsave.cpp:1145: error: (-2:Unspecified error) in function 'bool cv::imencode(const String&, cv::InputArray, std::vector&, const std::vector&)'

> Encoding 'params' must be key-value pairs:
> '(params.size() & 1) == 0'
> where
> 'params.size()' is 3

I followed the problem to the file opencv/modules/imgcodecs/src/loadsave.cpp line 1145 where they add new validations to the params argument. By now I commented that line in opencv library to continue working but I'm not sure how to manage it from image_transport_plugins.

@kevinstoesser
Copy link

I have a similar problem, have you solved it?

@jtaveau
Copy link

jtaveau commented May 20, 2024

Any news on that?

@daenny
Copy link

daenny commented Jul 22, 2024

I found the issue:
only 1.14.0 is released. The issue was fixed in 1.15.0, which is tagged in this repo, but that was never properly released here:
https://github.com/ros-gbp/image_transport_plugins-release

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

No branches or pull requests

4 participants