Closed Cavalletta98 closed 1 year ago
You're probably using a custom-built OpenCV version that is too new for this package. Please, use the version of OpenCV distributed by your operating system (you can build it yourself to get better optimizations, but it should be the same version as the one provided by the OS).
Yes i did as you suggested. Thanks
Hi, i'm trying to compres an image publish on a topic but i'm getting this error when i run this command
rosrun image_transport republish raw in:=/webcam/image_raw compressed out:=/webcam/image_compressed
:[ERROR] [1671541709.318842973]: OpenCV(4.6.0-dev) /home/pi/opencv/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&)'
Can someone please help me?