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

Use OpenCV 3.2 on Buster #536

Merged
merged 1 commit into from May 19, 2020

Conversation

sloretz
Copy link

@sloretz sloretz commented May 19, 2020

This should fix the binary job for image_publisher on Debian Buster. It uses OpenCV 3 if OpenCV 4 is not available.

http://build.ros.org/view/Nbin_db_dB64/job/Nbin_db_dB64__image_publisher__debian_buster_amd64__binary/4/

@SteveMacenski @JWhitleyWork assuming the change looks ok to you, would you be willing to make a new Noetic release with it today?

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
@sloretz sloretz self-assigned this May 19, 2020
@SteveMacenski
Copy link
Member

@sloretz I'm surprised if there's not more code changes that need to be made for OpenCV3. I thought some of the enums changed as part of the OpenCV4 transition. Can you confirm local evidence that this solves your problem in OpenCV3 on Buster in the current state of this PR without any code modifications?

@sloretz
Copy link
Author

sloretz commented May 19, 2020

Can you confirm local evidence that this solves your problem in OpenCV3 on Buster in the current state of this PR without any code modifications?

I built and ran tests locally in both a Buster and Focal container. I was surprised by it too. As far as I can tell the only code changes to image_publisher for OpenCV 4 were in this file in #530

https://github.com/ros-perception/image_pipeline/pull/530/files#diff-cf9b4f0fb39104a4d4fdac9e6c63846a

Maybe those changes were related to droping OpenCV 2 support? They look compatible with OpenCV 3 and 4.

  1. CV_PROP_POS_FRAMES -> cv::CV_PROP_POS_FRAMES

It looks like CV_PROP_POS_FRAMES was already in the cv namespace in OpenCV 3.2
https://docs.opencv.org/3.2.0/d4/d15/group__videoio__flags__base.html#ggaeb8dd9c89c10a5c63c139bf7c4f5704da6223452891755166a4fd5173ea257068

  1. CV_LOAD_IMAGE_COLOR -> cv::IMREAD_COLOR

It looks like cv::IMREAD_COLOR already existed in OpenCV 3.2

https://docs.opencv.org/3.2.0/d4/da8/group__imgcodecs.html#gga61d9b0126a3e57d9277ac48327799c80af660544735200cbe942eea09232eb822

@SteveMacenski
Copy link
Member

🤷 I'll go with it.

@SteveMacenski SteveMacenski merged commit 9585f93 into ros-perception:noetic May 19, 2020
@SteveMacenski
Copy link
Member

You should see a PR on rosdistro now with your name on it

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.

None yet

2 participants