ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Best OpenCV version for ROS Noetic.

asked 2020-09-23 22:10:44 -0500

ajpaezm gravatar image

I ran this command to find out if my OpenCV version was 4:

kg-config --modversion opencv4

The outcome was:

4.2.0

I also tried importing it after calling python3 on the lxterminal, verifying that the version I'm using is 4.

My ROS distro is Noetic, would that version of OpenCV work here? Should I install OpenCV2? If the answer is affirmative, would that cause any conflict of interest with OpenCV4?

Thanks in advance for any input.

edit retag flag offensive close merge delete

Comments

i could guess between opencv3 and opencv4, but opencv2 i think is so old, isn't?

from http://wiki.ros.org/vision_opencv Seems like the standard is opencv3 (at the end it says that). In melodic i had issues with 4.2 but nevertheless is possible to work with 4.2 if you search through internet, and personally seems to be much better in performance the 4.2, so, up to you

Solrac3589 gravatar image Solrac3589  ( 2020-09-24 01:04:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-09-24 02:28:16 -0500

gvdhoorn gravatar image

updated 2020-09-24 02:56:50 -0500

My ROS distro is Noetic, would that version of OpenCV work here?

There is only a one version for which Noetic binary packages are built on Ubuntu Focal (20.04): that would be version 4.2.

Refer to REP 3 - Target Platforms: Noetic Ninjemys (May 2020 - May 2025) for information on which specific versions of the various dependencies are supported.

Technically vision_opencv should support the range of versions listed in the row for OpenCV (so 3.2 and 4.2).

edit flag offensive delete link more

Comments

Got it, thanks a lot.

ajpaezm gravatar image ajpaezm  ( 2020-09-24 11:07:03 -0500 )edit
1

Something else @gvdhoorn:

In my CMakeLists.txt file, I have the following line:

find_package(OpenCV REQUIRED)

Should I change that in order to point out the proper OpencV version?

ajpaezm gravatar image ajpaezm  ( 2020-09-24 22:13:05 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-09-23 22:10:44 -0500

Seen: 6,969 times

Last updated: Sep 24 '20