Package Summary

Tags No category tags.
Version 3.2.1
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-perception/vision_opencv.git
VCS Type git
VCS Version humble
Last Updated 2024-12-02
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

This contains CvBridge, which converts between ROS2 Image messages and OpenCV images.

Additional Links

Maintainers

  • Kenji Brameld

Authors

  • Patrick Mihelich
  • James Bowman
  • Ethan Gao

cv_bridge

Introduction

cv_bridge converts between ROS 2 image messages and OpenCV image representation for perception applications. As follows:

cv_bridge overview

This ros2 branch initially derives from porting on the basis of ros kinetic branch

Installation

Firstly, it assumes that the ROS 2 core has already been installed, please refer to ROS 2 installation to get started.

Install dependencies

OpenCV3+ is a must to install, please refer to the official installation guide from OpenCV Tutorials Since ROS 2 uses Python 3, please make sure that python3-numpy is installed, or install like this:


sudo apt install python3-numpy


The cv_bridge python backend still has a dependency on python boost (equal or higher than 1.58.0), and install them as follows in Ubuntu:


sudo apt install libboost-python-dev


Build and Test

Fetch the latest code and build


cd <YOUR_ROS2_WORKSPACE>/src
git clone https://github.com/ros-perception/vision_opencv.git -b ros2
cd ..
colcon build --symlink-install


Run the tests

Python tests have a dependency on OpenCV Python support. To install it:


sudo apt install python3-opencv


Next to prepare runtime environment and run tests:


source <YOUR_ROS2_WORKSPACE>/install/local_setup.bash
colcon test


Known issues

  • boost endian: remove boost endian APIs with standard C++ 11 or higher instead
  • Not tested with Windows or macOS environments so there may be issues building or running
CHANGELOG

Changelog for package cv_bridge

3.2.1 (2022-09-21)

  • silence dperecation warnings using boost macros (#492)
  • Contributors: Kenji Brameld

3.2.0 (2022-09-14)

  • Add apache license and bsd license, because both are used. (#483)
  • Fix 16U encoding type (#463)
  • Reorganize author tag (#469)
  • Update maintainers (#451)
  • Fix ModuleNotFoundError: No module named 'cv_bridge' error (#444)
  • Make python3-opencv from test_depend to depend tag in package.xml (#439)
  • Contributors: Daisuke Nishimatsu, Kenji Brameld, RachelRen05

3.0.3 (2022-04-01)

  • Add missing dependency on rcpputils (#427)
  • Contributors: Shane Loretz

3.0.2 (2022-01-27)

  • Minor cleanups to the ROS 2 branch (#418)
  • Find Python3 if not on Android (#423)
  • Forward ports from noetic (#420)
    • Add header arg to cv2_to_imgmsg (#326)
    • prevent conversion of single channel 16bit integer images to/from colour (#412)
  • Contributors: Chris Lalancette, Christian Rauch, Michael Carroll, Naoya Yamaguchi, Shane Loretz

3.0.1 (2022-01-25)

  • Use Boost::python3 if Boost < 1.67 (#422)
  • Use Boost::pythonXY target (#421)
  • Contributors: Shane Loretz

3.0.0 (2022-01-19)

  • Export Modern CMake targets and install includes to another folder(#419)
  • Handle padded img msg in Python (#400)
  • Remove boost endian (#399)
  • Add conversions from YUV422 YUY2 (#396)
  • fix endianness comparison (#397)
  • Export sensor_msgs dependency (#392)
  • Fix multiple undefined references (#370)
  • Updated [cv_bridge.dll]{.title-ref} install location. (#356)
  • Contributors: Homalozoa X, Jacob Perron, Patrick Musau, Sean Yen, Shane Loretz

2.2.1 (2020-07-16)

  • Align module.hpp with noetic (#342)
  • Contributors: Michael Carroll

2.2.0 (2020-05-27)

  • Disable portable image tests (#337)
  • use more specific boost rosdep keys (#319)
  • add opencv4 into the dependency list for ROS2 (#324)
  • Corrected the typo of Boost_INCLUDE_DIRS (#315)
  • use target include directories (#313)
  • Contributors: Karsten Knese, Lewis Liu, Michael Carroll, Mikael Arguedas, Sean Yen

2.1.3 (2019-10-23)

  • populate array.array directly instead of converting to and from a string (#305)
  • include Boost to fix Windows build (#290)
  • Export interfaces for Win32 Shared Lib (#301)
  • Contributors: Dirk Thomas, Jonathan Noyola, Sean Yen

2.1.2 (2019-05-30)

  • Suppress Boost Python warning. (#279)
  • silence unused return value warnings (#276)
  • Contributors: Karsten Knese, Michael Carroll

2.1.1 (2019-04-26)

  • Replace ament commands with colcon (#263) Latest ros2 repo does not include ament_tools. Executing ament command results in error.
  • Contributors: Lalit Begani

2.1.0 (2018-11-26)

  • find boost_python on boost 1.58 (<1.65) (#246)
  • Contributors: Mikael Arguedas

2.0.5 (2018-08-17)

  • remove redundant ament_auto_lint dependency to release package
  • fix test_encode_decode_cv2_compressed runtime error with JPEG2000
  • change python3-numpy as build and execution dependency to fix building error while releasing package
  • Contributor: Ethan Gao

2.0.4 (2018-08-14)

  • Add libopencv-dev as dependency of cv_bridge
  • Replace assert_equal with assert to remove dependency to nose package
  • Contributor: Ethan Gao

2.0.3 (2018-08-07)

  • fix the build warning with colcon building
  • optimize buffer type of imgmsg_to_cv2()
  • add python3_opencv and python3_numpy as dependency
  • uncrustify 0.67 coding style alignment
  • Contributors: Mikael Arguedas, Lars Berscheid, Ethan Gao

2.0.2 (2018-06-29)

  • fix rosdep keys issue of opencv3

2.0.1 (2018-06-28)

2.0.0 (2018-06-06)

  • Port cv_bridge to ros2
  • Remove the old inherent boost files
  • Replace boost code with newer C++ standard higher than C++11
  • Add a new readme
  • Adapt message definition like sensor_msg/Image etc in ROS2
  • Coding style alignment with ROS2 using cppcheck/cpplint and python flake8/pep257
  • Enable all the C++/Python unit test with gtest and unittest with ament tools
  • Contributors: Ethan Gao

1.12.7 (2017-11-12)

1.12.6 (2017-11-11)

  • fix endianness issues
  • Contributors: Vincent Rabaud

1.12.5 (2017-11-05)

  • add version_gte for opencv3 \@vrabaud If you'll update opencv3 version as discussed in https://discourse.ros.org/t/opencv-3-3/2674/4, I think we'd better to add 'version_gte' tag so that apt-get install ros-kinetic-cv-bridge also pulls openv3.3 from repository, to avoid API breaking issue between opencv2 and opencv3.
  • Simplify the dependency components of cv_bridge Fixes #183
  • Fixes #177 The Python bridge was wrong on OpenCV2 with mono8 (and any Mat with only two dimensions btw). Took the official Python bridge from OpenCV.
  • Add missing test file This fixes #171
  • Properly deal with alpha in image compression. That fixes #169
  • Silence warnings about un-used variables
  • export OpenCV variables
  • Contributors: Kei Okada, Victor Lamoine, Vincent Rabaud

1.12.4 (2017-01-29)

  • properly find Boost Python 2 or 3 This fixes #158
  • Contributors: Vincent Rabaud

1.12.3 (2016-12-04)

1.12.2 (2016-09-24)

  • Specify background label when colorizing label image
  • Adjust to arbitrary image channels like 32FC40 Proper fix for #141
  • Remove unexpectedly included print statement
  • Contributors: Kentaro Wada, Vincent Rabaud

1.12.1 (2016-07-11)

  • split the conversion tests out of enumerants
  • support is_bigendian in Python Fixes #114 Also fixes mono16 test
  • Support compressed Images messages in python for indigo
    • Add cv2_to_comprssed_imgmsg: Convert from cv2 image to compressed image ros msg.
    • Add comprssed_imgmsg_to_cv2: Convert the compress message to a new image.
    • Add compressed image tests.

    - Add time to msgs (compressed and regular). add enumerants test for compressed image. merge the compressed tests with the regular ones. better comment explanation. I will squash this commit. Fix indentation fix typo mistage: from .imgmsg_to_compressed_cv2 to .compressed_imgmsg_to_cv2. remove cv2.CV_8UC1 remove rospy and time depndency. change from IMREAD_COLOR to IMREAD_ANYCOLOR.

    - keep the OpenCV error message. from: https://github.com/ros-perception/vision_opencv/pull/132#discussion_r66721013 add debug print for test. add case for 4 channels in test. remove 4 channels case from compressed test. add debug print for test. change typo of format. fix typo in format. change from dip to dib. change to IMREAD_ANYCOLOR as python code. (as it should). rename TIFF to tiff Sperate the tests one for regular images and one for compressed. update comment

  • Add CvtColorForDisplayOptions with new colormap param
  • fix doc jobs
  • Add python binding for cv_bridge::cvtColorForDisplay
  • Don't colorize float image as label image This is a bug and image whose encoding is other than 32SC1 should not be colorized. (currently, depth images with 32FC1 is also colorized.)
  • Fix compilation of cv_bridge with opencv3 and python3.
  • Contributors: Kentaro Wada, Maarten de Vries, Vincent Rabaud, talregev

1.12.0 (2016-03-18)

  • depend on OpenCV3 only
  • Contributors: Vincent Rabaud

1.11.12 (2016-03-10)

  • Fix my typo
  • Remove another eval Because [cvtype2_to_dtype_with_channels('8UCimport os; os.system("rm -rf /")')]{.title-ref} should never have a chance of happening.
  • Remove eval, and other fixes Also, extend from object, so as not to get a python 2.2-style class, and use the new-style raise statement
  • Contributors: Eric Wieser

1.11.11 (2016-01-31)

  • clean up the doc files
  • fix a few warnings in doc jobs
  • Contributors: Vincent Rabaud

1.11.10 (2016-01-16)

  • fix OpenCV3 build
  • Describe about converting label to bgr image in cvtColorForDisplay
  • Convert label to BGR image to display
  • Add test for rgb_colors.cpp
  • Add rgb_colors util
  • Update doc for converting to BGR in cvtColorForDisplay
  • Convert to BGR from any encoding
  • Refactor: sensor_msgs::image_encodings -> enc
  • Contributors: Kentaro Wada, Vincent Rabaud

1.11.9 (2015-11-29)

  • deal with endianness
  • add cvtColorForDisplay
  • Improved efficiency by using toCvShare instead of toCvCopy.
  • Add format enum for easy use and choose format.
  • fix compilation warnings
  • start to extend the cv_bridge with cvCompressedImage class, that will convert from cv::Mat opencv images to CompressedImage ros messages and vice versa
  • Contributors: Carlos Costa, Vincent Rabaud, talregev

1.11.8 (2015-07-15)

  • Simplify some OpenCV3 distinction
  • fix tests
  • fix test under OpenCV3
  • Remove Python for Android
  • Contributors: Gary Servin, Vincent Rabaud

1.11.7 (2014-12-14)

  • check that the type is indeed a Numpy one This is in response to #51
  • Contributors: Vincent Rabaud

1.11.6 (2014-11-16)

  • chnage the behavior when there is only one channel
  • cleanup tests
  • Contributors: Vincent Rabaud

1.11.5 (2014-09-21)

  • get code to work with OpenCV3 actually fixes #46 properly
  • Contributors: Vincent Rabaud

1.11.4 (2014-07-27)

  • Fix #42
  • Contributors: Libor Wagner

1.11.3 (2014-06-08)

  • Correct dependency from non-existent package to cv_bridge
  • Contributors: Isaac Isao Saito

1.11.2 (2014-04-28)

  • Add depend on python for cv_bridge
  • Contributors: Scott K Logan

1.11.1 (2014-04-16)

  • fixes #34
  • Contributors: Vincent Rabaud

1.11.0 (2014-02-15)

  • remove deprecated API and fixes #33
  • fix OpenCV dependencies
  • Contributors: Vincent Rabaud

1.10.15 (2014-02-07)

  • fix python 3 error at configure time
  • Contributors: Dirk Thomas

1.10.14 (2013-11-23 16:17)

  • update changelog
  • Find NumPy include directory
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.13 (2013-11-23 09:19)

  • fix compilation on older NumPy
  • Contributors: Vincent Rabaud

1.10.12 (2013-11-22)

  • bump changelog
  • Fixed issue with image message step size
  • fix crash for non char data
  • fix #26
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.11 (2013-10-23)

  • fix bad image check and improve it too
  • Contributors: Vincent Rabaud

1.10.10 (2013-10-19)

  • fixes #25
  • Contributors: Vincent Rabaud

1.10.9 (2013-10-07)

  • fixes #20
  • Contributors: Vincent Rabaud

1.10.8 (2013-09-09)

  • fixes #22
  • fixes #17
  • check for CATKIN_ENABLE_TESTING
  • fixes #16
  • update email address
  • Contributors: Lukas Bulwahn, Vincent Rabaud

1.10.7 (2013-07-17)

1.10.6 (2013-03-01)

  • make sure conversion are applied for depth differences
  • Contributors: Vincent Rabaud

1.10.5 (2013-02-11)

1.10.4 (2013-02-02)

  • fix installation of the boost package
  • Contributors: Vincent Rabaud

1.10.3 (2013-01-17)

  • Link against PTYHON_LIBRARIES
  • Contributors: William Woodall

1.10.2 (2013-01-13)

  • use CATKIN_DEVEL_PREFIX instead of obsolete CATKIN_BUILD_PREFIX
  • Contributors: Dirk Thomas

1.10.1 (2013-01-10)

  • add licenses
  • fixes #5 by removing the logic from Python and using wrapped C++ and adding a test for it
  • fix a bug discovered when running the opencv_tests
  • use some C++ logic
  • add a Boost Python module to have the C++ logix used directly in Python
  • Contributors: Vincent Rabaud

1.10.0 (2013-01-03)

  • add conversion from Bayer to gray
  • Contributors: Vincent Rabaud

1.9.15 (2013-01-02)

  • use the reverted isColor behavior
  • Contributors: Vincent Rabaud

1.9.14 (2012-12-30)

1.9.13 (2012-12-15)

  • use the catkin macros for the setup.py
  • fix #3
  • Contributors: Vincent Rabaud

1.9.12 (2012-12-14)

  • buildtool_depend catkin fix
  • CMakeLists.txt clean up.
  • Contributors: William Woodall

1.9.11 (2012-12-10)

  • fix issue #1
  • Cleanup of package.xml
  • Contributors: Vincent Rabaud, William Woodall

1.9.10 (2012-10-04)

  • fix the bad include folder
  • Contributors: Vincent Rabaud

1.9.9 (2012-10-01)

  • fix dependencies
  • Contributors: Vincent Rabaud

1.9.8 (2012-09-30)

  • fix some dependencies
  • add rosconsole as a dependency
  • fix missing Python at install and fix some dependencies
  • Contributors: Vincent Rabaud

1.9.7 (2012-09-28 21:07)

  • add missing stuff
  • make sure we find catkin
  • Contributors: Vincent Rabaud

1.9.6 (2012-09-28 15:17)

  • move the test to where it belongs
  • fix the tests and the API to not handle conversion from CV_TYPE to Color type (does not make sense)
  • comply to the new Catkin API
  • backport the YUV422 bug fix from Fuerte
  • apply patch from https://code.ros.org/trac/ros-pkg/ticket/5556
  • Contributors: Vincent Rabaud

1.9.5 (2012-09-15)

  • remove dependencies to the opencv2 ROS package
  • Contributors: Vincent Rabaud

1.9.4 (2012-09-13)

  • make sure the include folders are copied to the right place
  • Contributors: Vincent Rabaud

1.9.3 (2012-09-12)

1.9.2 (2012-09-07)

  • be more compliant to the latest catkin
  • added catkin_project() to cv_bridge, image_geometry, and opencv_tests
  • Contributors: Jonathan Binney, Vincent Rabaud

1.9.1 (2012-08-28 22:06)

  • remove things that were marked as ROS_DEPRECATED
  • Contributors: Vincent Rabaud

1.9.0 (2012-08-28 14:29)

  • catkinized opencv_tests by Jon Binney
  • catkinized cv_bridge package... others disable for now by Jon Binney
  • remove the version check, let's trust OpenCV :)
  • revert the removal of opencv2
  • vision_opencv: Export OpenCV flags in manifests for image_geometry, cv_bridge.
  • finally get rid of opencv2 as it is a system dependency now
  • bump REQUIRED version of OpenCV to 2.3.2, which is what's in ros-fuerte-opencv
  • switch rosdep name to opencv2, to refer to ros-fuerte-opencv2
  • added missing header
  • Added constructor to CvImage to make converting a cv::Mat to sensor_msgs::Image less verbose.
  • cv_bridge: Added unit test for #5206
  • cv_bridge: Applied patch from mdesnoyer to fix handling of non-continuous OpenCV images. #5206
  • Adding opencv2 to all manifests, so that client packages may not break when using them.
  • baking in opencv debs and attempting a pre-release
  • cv_bridge: Support for new 16-bit encodings.
  • cv_bridge: Deprecate old C++ cv_bridge API.
  • cv_bridge: Correctly scale for MONO8 <-> MONO16 conversions.
  • cv_bridge: Fixed issue where pointer version to toCvCopy would ignore the requested encoding (http://answers.ros.org/question/258/converting-kinect-rgb-image-to-opencv-gives-wrong).
  • fixed doc build by taking a static snapshot
  • cv_bridge: Marking doc reviewed.
  • cv_bridge: Tweaks to make docs look better.
  • cv_bridge: Added cvtColor(). License notices. Documented that CvBridge class is obsolete.
  • cv_bridge: Added redesigned C++ cv_bridge.
  • Doc cleanup
  • Trigger doc rebuild
  • mono16 -> bgr conversion tested and fixed in C
  • Added Ubuntu platform tags to manifest
  • Handle mono16 properly
  • Raise exception when imgMsgToCv() gets an image encoding it does not recognise, #3489
  • Remove use of deprecated rosbuild macros
  • Fixed example
  • cv_bridge split from opencv2
  • Contributors: Vincent Rabaud, ethanrublee, gerkey, jamesb, mihelich, vrabaud, wheeler

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Dependant Packages

Name Deps
apriltag_ros
aruco
aruco_ros
depthai_bridge
depthai_examples
depthai_filters
depthai_ros_driver
find_object_2d
gazebo_plugins
grid_map_cv
grid_map_demos
grid_map_ros
gscam
camera_calibration
depth_image_proc
image_proc
image_publisher
image_rotate
image_view
stereo_image_proc
compressed_depth_image_transport
compressed_image_transport
theora_image_transport
hri
pyhri
mapviz_plugins
swri_image_util
swri_opencv_util
swri_transform_util
moveit_ros_perception
mrpt_rawlog
mrpt_sensor_bumblebee_stereo
mrpt_sensor_gnss_nmea
mrpt_sensor_gnss_novatel
mrpt_sensor_imu_taobotics
mrpt_sensorlib
naoqi_driver
pose_cov_ops
realsense2_camera
robot_calibration
rqt_image_view
rtabmap
rtabmap_conversions
rtabmap_odom
rtabmap_slam
rtabmap_sync
rtabmap_util
rtabmap_viz
turtlebot3_aruco_tracker
turtlebot3_panorama
turtlebot3_autorace_camera
usb_cam
opencv_tests
vision_opencv
web_video_server
zbar_ros
apriltag_detector
apriltag_draw
aruco_opencv
camera_aravis2
ffmpeg_encoder_decoder
ffmpeg_image_transport_tools
mola_input_rosbag2
mrpt_apps
mrpt_libapps
mrpt_libbase
mrpt_libgui
mrpt_libhwdrivers
mrpt_libmaps
mrpt_libmath
mrpt_libnav
mrpt_libobs
mrpt_libopengl
mrpt_libposes
mrpt_libros_bridge
mrpt_libslam
mrpt_libtclap
nav2_waypoint_follower
nerian_stereo
python_mrpt
ros_image_to_qimage
sick_safevisionary_driver
turbojpeg_compressed_image_transport
v4l2_camera
adi_3dtof_adtf31xx
adi_3dtof_image_stitching
hri_rviz
ardrone_sumo
aruco_markers
camera_ros
rosbag2_to_video
crane_plus_examples
nicla_vision_ros2
raspimouse_ros2_examples
robosoft_openai
as2_behaviors_perception
as2_core
as2_usb_camera_interface
extrinsic_calibrator_core
extrinsic_calibrator_examples
hri_face_detect
vimbax_camera_examples

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cv_bridge at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 4.1.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-perception/vision_opencv.git
VCS Type git
VCS Version rolling
Last Updated 2024-12-02
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

This contains CvBridge, which converts between ROS2 Image messages and OpenCV images.

Additional Links

Maintainers

  • Kenji Brameld

Authors

  • Patrick Mihelich
  • James Bowman
  • Ethan Gao

cv_bridge

Introduction

cv_bridge converts between ROS 2 image messages and OpenCV image representation for perception applications. As follows:

cv_bridge overview

This ros2 branch initially derives from porting on the basis of ros kinetic branch

Installation

Firstly, it assumes that the ROS 2 core has already been installed, please refer to ROS 2 installation to get started.

Install dependencies

OpenCV3+ is a must to install, please refer to the official installation guide from OpenCV Tutorials Since ROS 2 uses Python 3, please make sure that python3-numpy is installed, or install like this:


sudo apt install python3-numpy


The cv_bridge python backend still has a dependency on python boost (equal or higher than 1.58.0), and install them as follows in Ubuntu:


sudo apt install libboost-python-dev


Build and Test

Fetch the latest code and build


cd <YOUR_ROS2_WORKSPACE>/src
git clone https://github.com/ros-perception/vision_opencv.git -b ros2
cd ..
colcon build --symlink-install


Run the tests

Python tests have a dependency on OpenCV Python support. To install it:


sudo apt install python3-opencv


Next to prepare runtime environment and run tests:


source <YOUR_ROS2_WORKSPACE>/install/local_setup.bash
colcon test


Known issues

  • boost endian: remove boost endian APIs with standard C++ 11 or higher instead
  • Not tested with Windows or macOS environments so there may be issues building or running
CHANGELOG

Changelog for package cv_bridge

4.1.0 (2024-04-19)

4.0.0 (2024-04-13)

  • Decode images in mode IMREAD_UNCHANGED (#520)
  • Remove header files that were deprecated in I-turtle (#517)
  • Fixed converstion for 32FC1 (#514)
  • Allow users to override encoding string in ROSCvMatContainer (#505)
  • Ensure dynamic scaling works when given matrix with inf, -inf and nan values. (#498)
  • Add new CMake option CV_BRIDGE_DISABLE_PYTHON to cv_bridge to disable building Python support if desired (#494)
  • Contributors: Alejandro Hernández Cordero, Christian Rauch, Kenji Brameld, Lightech, Yadunund, ijnek

3.4.0 (2022-10-03)

3.3.1 (2022-09-21)

  • export rclcpp as dependency (#491)
  • silence dperecation warnings using boost macros (#478)
  • Contributors: Kenji Brameld

3.3.0 (2022-09-14)

  • Add apache license and bsd license, because both are used. (#479)
  • Remove opencv2.cpp and rename opencv3.cpp to opencv4.cpp (#480)
  • Deprecate .h files in favor of .hpp headers (#448)
  • Reorganize author tag (#460)
  • Add colormap argument to python wrapper (#452)
  • Fix 16U encoding type (#459)
  • Add type adapter for cv::Mat (#441)
  • Update maintainers (#451)
  • Fix ModuleNotFoundError: No module named 'cv_bridge' error (#444)
  • Make python3-opencv from test_depend to depend tag in package.xml (#439)
  • Contributors: Daisuke Nishimatsu, Kenji Brameld, Marcel Zeilinger, RachelRen05

3.0.3 (2022-04-01)

  • Add missing dependency on rcpputils (#427)
  • Contributors: Shane Loretz

3.0.2 (2022-01-27)

  • Minor cleanups to the ROS 2 branch (#418)
  • Find Python3 if not on Android (#423)
  • Forward ports from noetic (#420)
    • Add header arg to cv2_to_imgmsg (#326)
    • prevent conversion of single channel 16bit integer images to/from colour (#412)
  • Contributors: Chris Lalancette, Christian Rauch, Michael Carroll, Naoya Yamaguchi, Shane Loretz

3.0.1 (2022-01-25)

  • Use Boost::python3 if Boost < 1.67 (#422)
  • Use Boost::pythonXY target (#421)
  • Contributors: Shane Loretz

3.0.0 (2022-01-19)

  • Export Modern CMake targets and install includes to another folder(#419)
  • Handle padded img msg in Python (#400)
  • Remove boost endian (#399)
  • Add conversions from YUV422 YUY2 (#396)
  • fix endianness comparison (#397)
  • Export sensor_msgs dependency (#392)
  • Fix multiple undefined references (#370)
  • Updated [cv_bridge.dll]{.title-ref} install location. (#356)
  • Contributors: Homalozoa X, Jacob Perron, Patrick Musau, Sean Yen, Shane Loretz

2.2.1 (2020-07-16)

  • Align module.hpp with noetic (#342)
  • Contributors: Michael Carroll

2.2.0 (2020-05-27)

  • Disable portable image tests (#337)
  • use more specific boost rosdep keys (#319)
  • add opencv4 into the dependency list for ROS2 (#324)
  • Corrected the typo of Boost_INCLUDE_DIRS (#315)
  • use target include directories (#313)
  • Contributors: Karsten Knese, Lewis Liu, Michael Carroll, Mikael Arguedas, Sean Yen

2.1.3 (2019-10-23)

  • populate array.array directly instead of converting to and from a string (#305)
  • include Boost to fix Windows build (#290)
  • Export interfaces for Win32 Shared Lib (#301)
  • Contributors: Dirk Thomas, Jonathan Noyola, Sean Yen

2.1.2 (2019-05-30)

  • Suppress Boost Python warning. (#279)
  • silence unused return value warnings (#276)
  • Contributors: Karsten Knese, Michael Carroll

2.1.1 (2019-04-26)

  • Replace ament commands with colcon (#263) Latest ros2 repo does not include ament_tools. Executing ament command results in error.
  • Contributors: Lalit Begani

2.1.0 (2018-11-26)

  • find boost_python on boost 1.58 (<1.65) (#246)
  • Contributors: Mikael Arguedas

2.0.5 (2018-08-17)

  • remove redundant ament_auto_lint dependency to release package
  • fix test_encode_decode_cv2_compressed runtime error with JPEG2000
  • change python3-numpy as build and execution dependency to fix building error while releasing package
  • Contributor: Ethan Gao

2.0.4 (2018-08-14)

  • Add libopencv-dev as dependency of cv_bridge
  • Replace assert_equal with assert to remove dependency to nose package
  • Contributor: Ethan Gao

2.0.3 (2018-08-07)

  • fix the build warning with colcon building
  • optimize buffer type of imgmsg_to_cv2()
  • add python3_opencv and python3_numpy as dependency
  • uncrustify 0.67 coding style alignment
  • Contributors: Mikael Arguedas, Lars Berscheid, Ethan Gao

2.0.2 (2018-06-29)

  • fix rosdep keys issue of opencv3

2.0.1 (2018-06-28)

2.0.0 (2018-06-06)

  • Port cv_bridge to ros2
  • Remove the old inherent boost files
  • Replace boost code with newer C++ standard higher than C++11
  • Add a new readme
  • Adapt message definition like sensor_msg/Image etc in ROS2
  • Coding style alignment with ROS2 using cppcheck/cpplint and python flake8/pep257
  • Enable all the C++/Python unit test with gtest and unittest with ament tools
  • Contributors: Ethan Gao

1.12.7 (2017-11-12)

1.12.6 (2017-11-11)

  • fix endianness issues
  • Contributors: Vincent Rabaud

1.12.5 (2017-11-05)

  • add version_gte for opencv3 \@vrabaud If you'll update opencv3 version as discussed in https://discourse.ros.org/t/opencv-3-3/2674/4, I think we'd better to add 'version_gte' tag so that apt-get install ros-kinetic-cv-bridge also pulls openv3.3 from repository, to avoid API breaking issue between opencv2 and opencv3.
  • Simplify the dependency components of cv_bridge Fixes #183
  • Fixes #177 The Python bridge was wrong on OpenCV2 with mono8 (and any Mat with only two dimensions btw). Took the official Python bridge from OpenCV.
  • Add missing test file This fixes #171
  • Properly deal with alpha in image compression. That fixes #169
  • Silence warnings about un-used variables
  • export OpenCV variables
  • Contributors: Kei Okada, Victor Lamoine, Vincent Rabaud

1.12.4 (2017-01-29)

  • properly find Boost Python 2 or 3 This fixes #158
  • Contributors: Vincent Rabaud

1.12.3 (2016-12-04)

1.12.2 (2016-09-24)

  • Specify background label when colorizing label image
  • Adjust to arbitrary image channels like 32FC40 Proper fix for #141
  • Remove unexpectedly included print statement
  • Contributors: Kentaro Wada, Vincent Rabaud

1.12.1 (2016-07-11)

  • split the conversion tests out of enumerants
  • support is_bigendian in Python Fixes #114 Also fixes mono16 test
  • Support compressed Images messages in python for indigo
    • Add cv2_to_comprssed_imgmsg: Convert from cv2 image to compressed image ros msg.
    • Add comprssed_imgmsg_to_cv2: Convert the compress message to a new image.
    • Add compressed image tests.

    - Add time to msgs (compressed and regular). add enumerants test for compressed image. merge the compressed tests with the regular ones. better comment explanation. I will squash this commit. Fix indentation fix typo mistage: from .imgmsg_to_compressed_cv2 to .compressed_imgmsg_to_cv2. remove cv2.CV_8UC1 remove rospy and time depndency. change from IMREAD_COLOR to IMREAD_ANYCOLOR.

    - keep the OpenCV error message. from: https://github.com/ros-perception/vision_opencv/pull/132#discussion_r66721013 add debug print for test. add case for 4 channels in test. remove 4 channels case from compressed test. add debug print for test. change typo of format. fix typo in format. change from dip to dib. change to IMREAD_ANYCOLOR as python code. (as it should). rename TIFF to tiff Sperate the tests one for regular images and one for compressed. update comment

  • Add CvtColorForDisplayOptions with new colormap param
  • fix doc jobs
  • Add python binding for cv_bridge::cvtColorForDisplay
  • Don't colorize float image as label image This is a bug and image whose encoding is other than 32SC1 should not be colorized. (currently, depth images with 32FC1 is also colorized.)
  • Fix compilation of cv_bridge with opencv3 and python3.
  • Contributors: Kentaro Wada, Maarten de Vries, Vincent Rabaud, talregev

1.12.0 (2016-03-18)

  • depend on OpenCV3 only
  • Contributors: Vincent Rabaud

1.11.12 (2016-03-10)

  • Fix my typo
  • Remove another eval Because [cvtype2_to_dtype_with_channels('8UCimport os; os.system("rm -rf /")')]{.title-ref} should never have a chance of happening.
  • Remove eval, and other fixes Also, extend from object, so as not to get a python 2.2-style class, and use the new-style raise statement
  • Contributors: Eric Wieser

1.11.11 (2016-01-31)

  • clean up the doc files
  • fix a few warnings in doc jobs
  • Contributors: Vincent Rabaud

1.11.10 (2016-01-16)

  • fix OpenCV3 build
  • Describe about converting label to bgr image in cvtColorForDisplay
  • Convert label to BGR image to display
  • Add test for rgb_colors.cpp
  • Add rgb_colors util
  • Update doc for converting to BGR in cvtColorForDisplay
  • Convert to BGR from any encoding
  • Refactor: sensor_msgs::image_encodings -> enc
  • Contributors: Kentaro Wada, Vincent Rabaud

1.11.9 (2015-11-29)

  • deal with endianness
  • add cvtColorForDisplay
  • Improved efficiency by using toCvShare instead of toCvCopy.
  • Add format enum for easy use and choose format.
  • fix compilation warnings
  • start to extend the cv_bridge with cvCompressedImage class, that will convert from cv::Mat opencv images to CompressedImage ros messages and vice versa
  • Contributors: Carlos Costa, Vincent Rabaud, talregev

1.11.8 (2015-07-15)

  • Simplify some OpenCV3 distinction
  • fix tests
  • fix test under OpenCV3
  • Remove Python for Android
  • Contributors: Gary Servin, Vincent Rabaud

1.11.7 (2014-12-14)

  • check that the type is indeed a Numpy one This is in response to #51
  • Contributors: Vincent Rabaud

1.11.6 (2014-11-16)

  • chnage the behavior when there is only one channel
  • cleanup tests
  • Contributors: Vincent Rabaud

1.11.5 (2014-09-21)

  • get code to work with OpenCV3 actually fixes #46 properly
  • Contributors: Vincent Rabaud

1.11.4 (2014-07-27)

  • Fix #42
  • Contributors: Libor Wagner

1.11.3 (2014-06-08)

  • Correct dependency from non-existent package to cv_bridge
  • Contributors: Isaac Isao Saito

1.11.2 (2014-04-28)

  • Add depend on python for cv_bridge
  • Contributors: Scott K Logan

1.11.1 (2014-04-16)

  • fixes #34
  • Contributors: Vincent Rabaud

1.11.0 (2014-02-15)

  • remove deprecated API and fixes #33
  • fix OpenCV dependencies
  • Contributors: Vincent Rabaud

1.10.15 (2014-02-07)

  • fix python 3 error at configure time
  • Contributors: Dirk Thomas

1.10.14 (2013-11-23 16:17)

  • update changelog
  • Find NumPy include directory
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.13 (2013-11-23 09:19)

  • fix compilation on older NumPy
  • Contributors: Vincent Rabaud

1.10.12 (2013-11-22)

  • bump changelog
  • Fixed issue with image message step size
  • fix crash for non char data
  • fix #26
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.11 (2013-10-23)

  • fix bad image check and improve it too
  • Contributors: Vincent Rabaud

1.10.10 (2013-10-19)

  • fixes #25
  • Contributors: Vincent Rabaud

1.10.9 (2013-10-07)

  • fixes #20
  • Contributors: Vincent Rabaud

1.10.8 (2013-09-09)

  • fixes #22
  • fixes #17
  • check for CATKIN_ENABLE_TESTING
  • fixes #16
  • update email address
  • Contributors: Lukas Bulwahn, Vincent Rabaud

1.10.7 (2013-07-17)

1.10.6 (2013-03-01)

  • make sure conversion are applied for depth differences
  • Contributors: Vincent Rabaud

1.10.5 (2013-02-11)

1.10.4 (2013-02-02)

  • fix installation of the boost package
  • Contributors: Vincent Rabaud

1.10.3 (2013-01-17)

  • Link against PTYHON_LIBRARIES
  • Contributors: William Woodall

1.10.2 (2013-01-13)

  • use CATKIN_DEVEL_PREFIX instead of obsolete CATKIN_BUILD_PREFIX
  • Contributors: Dirk Thomas

1.10.1 (2013-01-10)

  • add licenses
  • fixes #5 by removing the logic from Python and using wrapped C++ and adding a test for it
  • fix a bug discovered when running the opencv_tests
  • use some C++ logic
  • add a Boost Python module to have the C++ logix used directly in Python
  • Contributors: Vincent Rabaud

1.10.0 (2013-01-03)

  • add conversion from Bayer to gray
  • Contributors: Vincent Rabaud

1.9.15 (2013-01-02)

  • use the reverted isColor behavior
  • Contributors: Vincent Rabaud

1.9.14 (2012-12-30)

1.9.13 (2012-12-15)

  • use the catkin macros for the setup.py
  • fix #3
  • Contributors: Vincent Rabaud

1.9.12 (2012-12-14)

  • buildtool_depend catkin fix
  • CMakeLists.txt clean up.
  • Contributors: William Woodall

1.9.11 (2012-12-10)

  • fix issue #1
  • Cleanup of package.xml
  • Contributors: Vincent Rabaud, William Woodall

1.9.10 (2012-10-04)

  • fix the bad include folder
  • Contributors: Vincent Rabaud

1.9.9 (2012-10-01)

  • fix dependencies
  • Contributors: Vincent Rabaud

1.9.8 (2012-09-30)

  • fix some dependencies
  • add rosconsole as a dependency
  • fix missing Python at install and fix some dependencies
  • Contributors: Vincent Rabaud

1.9.7 (2012-09-28 21:07)

  • add missing stuff
  • make sure we find catkin
  • Contributors: Vincent Rabaud

1.9.6 (2012-09-28 15:17)

  • move the test to where it belongs
  • fix the tests and the API to not handle conversion from CV_TYPE to Color type (does not make sense)
  • comply to the new Catkin API
  • backport the YUV422 bug fix from Fuerte
  • apply patch from https://code.ros.org/trac/ros-pkg/ticket/5556
  • Contributors: Vincent Rabaud

1.9.5 (2012-09-15)

  • remove dependencies to the opencv2 ROS package
  • Contributors: Vincent Rabaud

1.9.4 (2012-09-13)

  • make sure the include folders are copied to the right place
  • Contributors: Vincent Rabaud

1.9.3 (2012-09-12)

1.9.2 (2012-09-07)

  • be more compliant to the latest catkin
  • added catkin_project() to cv_bridge, image_geometry, and opencv_tests
  • Contributors: Jonathan Binney, Vincent Rabaud

1.9.1 (2012-08-28 22:06)

  • remove things that were marked as ROS_DEPRECATED
  • Contributors: Vincent Rabaud

1.9.0 (2012-08-28 14:29)

  • catkinized opencv_tests by Jon Binney
  • catkinized cv_bridge package... others disable for now by Jon Binney
  • remove the version check, let's trust OpenCV :)
  • revert the removal of opencv2
  • vision_opencv: Export OpenCV flags in manifests for image_geometry, cv_bridge.
  • finally get rid of opencv2 as it is a system dependency now
  • bump REQUIRED version of OpenCV to 2.3.2, which is what's in ros-fuerte-opencv
  • switch rosdep name to opencv2, to refer to ros-fuerte-opencv2
  • added missing header
  • Added constructor to CvImage to make converting a cv::Mat to sensor_msgs::Image less verbose.
  • cv_bridge: Added unit test for #5206
  • cv_bridge: Applied patch from mdesnoyer to fix handling of non-continuous OpenCV images. #5206
  • Adding opencv2 to all manifests, so that client packages may not break when using them.
  • baking in opencv debs and attempting a pre-release
  • cv_bridge: Support for new 16-bit encodings.
  • cv_bridge: Deprecate old C++ cv_bridge API.
  • cv_bridge: Correctly scale for MONO8 <-> MONO16 conversions.
  • cv_bridge: Fixed issue where pointer version to toCvCopy would ignore the requested encoding (http://answers.ros.org/question/258/converting-kinect-rgb-image-to-opencv-gives-wrong).
  • fixed doc build by taking a static snapshot
  • cv_bridge: Marking doc reviewed.
  • cv_bridge: Tweaks to make docs look better.
  • cv_bridge: Added cvtColor(). License notices. Documented that CvBridge class is obsolete.
  • cv_bridge: Added redesigned C++ cv_bridge.
  • Doc cleanup
  • Trigger doc rebuild
  • mono16 -> bgr conversion tested and fixed in C
  • Added Ubuntu platform tags to manifest
  • Handle mono16 properly
  • Raise exception when imgMsgToCv() gets an image encoding it does not recognise, #3489
  • Remove use of deprecated rosbuild macros
  • Fixed example
  • cv_bridge split from opencv2
  • Contributors: Vincent Rabaud, ethanrublee, gerkey, jamesb, mihelich, vrabaud, wheeler

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Dependant Packages

Name Deps
apriltag_ros
aruco
aruco_ros
depthai_bridge
depthai_examples
depthai_filters
depthai_ros_driver
find_object_2d
gazebo_plugins
grid_map_cv
grid_map_demos
grid_map_ros
gscam
camera_calibration
depth_image_proc
image_proc
image_publisher
image_rotate
image_view
stereo_image_proc
compressed_depth_image_transport
compressed_image_transport
theora_image_transport
mapviz_plugins
swri_image_util
swri_opencv_util
swri_transform_util
moveit_ros_perception
mrpt_rawlog
mrpt_sensor_bumblebee_stereo
mrpt_sensor_gnss_nmea
mrpt_sensor_gnss_novatel
mrpt_sensor_imu_taobotics
mrpt_sensorlib
pose_cov_ops
realsense2_camera
robot_calibration
rqt_image_view
rtabmap
rtabmap_conversions
rtabmap_odom
rtabmap_slam
rtabmap_sync
rtabmap_util
rtabmap_viz
turtlebot3_aruco_tracker
turtlebot3_panorama
turtlebot3_autorace_camera
usb_cam
opencv_tests
vision_opencv
web_video_server
zbar_ros
apriltag_detector
apriltag_draw
aruco_opencv
camera_aravis2
ffmpeg_encoder_decoder
ffmpeg_image_transport_tools
mola_input_rosbag2
mrpt_apps
mrpt_libapps
mrpt_libbase
mrpt_libgui
mrpt_libhwdrivers
mrpt_libmaps
mrpt_libmath
mrpt_libnav
mrpt_libobs
mrpt_libopengl
mrpt_libposes
mrpt_libros_bridge
mrpt_libslam
mrpt_libtclap
nav2_waypoint_follower
python_mrpt
ros_image_to_qimage
sick_safevisionary_driver
turbojpeg_compressed_image_transport
v4l2_camera
depth_obstacle_detect_ros
ardrone_sumo
aruco_markers
camera_ros
rosbag2_to_video
clearpath_generator_gz
crane_plus_examples
multisensor_calibration
nicla_vision_ros2
raspimouse_ros2_examples
robosoft_openai

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cv_bridge at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 4.1.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-perception/vision_opencv.git
VCS Type git
VCS Version rolling
Last Updated 2024-12-02
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

This contains CvBridge, which converts between ROS2 Image messages and OpenCV images.

Additional Links

Maintainers

  • Kenji Brameld

Authors

  • Patrick Mihelich
  • James Bowman
  • Ethan Gao

cv_bridge

Introduction

cv_bridge converts between ROS 2 image messages and OpenCV image representation for perception applications. As follows:

cv_bridge overview

This ros2 branch initially derives from porting on the basis of ros kinetic branch

Installation

Firstly, it assumes that the ROS 2 core has already been installed, please refer to ROS 2 installation to get started.

Install dependencies

OpenCV3+ is a must to install, please refer to the official installation guide from OpenCV Tutorials Since ROS 2 uses Python 3, please make sure that python3-numpy is installed, or install like this:


sudo apt install python3-numpy


The cv_bridge python backend still has a dependency on python boost (equal or higher than 1.58.0), and install them as follows in Ubuntu:


sudo apt install libboost-python-dev


Build and Test

Fetch the latest code and build


cd <YOUR_ROS2_WORKSPACE>/src
git clone https://github.com/ros-perception/vision_opencv.git -b ros2
cd ..
colcon build --symlink-install


Run the tests

Python tests have a dependency on OpenCV Python support. To install it:


sudo apt install python3-opencv


Next to prepare runtime environment and run tests:


source <YOUR_ROS2_WORKSPACE>/install/local_setup.bash
colcon test


Known issues

  • boost endian: remove boost endian APIs with standard C++ 11 or higher instead
  • Not tested with Windows or macOS environments so there may be issues building or running
CHANGELOG

Changelog for package cv_bridge

4.1.0 (2024-04-19)

4.0.0 (2024-04-13)

  • Decode images in mode IMREAD_UNCHANGED (#520)
  • Remove header files that were deprecated in I-turtle (#517)
  • Fixed converstion for 32FC1 (#514)
  • Allow users to override encoding string in ROSCvMatContainer (#505)
  • Ensure dynamic scaling works when given matrix with inf, -inf and nan values. (#498)
  • Add new CMake option CV_BRIDGE_DISABLE_PYTHON to cv_bridge to disable building Python support if desired (#494)
  • Contributors: Alejandro Hernández Cordero, Christian Rauch, Kenji Brameld, Lightech, Yadunund, ijnek

3.4.0 (2022-10-03)

3.3.1 (2022-09-21)

  • export rclcpp as dependency (#491)
  • silence dperecation warnings using boost macros (#478)
  • Contributors: Kenji Brameld

3.3.0 (2022-09-14)

  • Add apache license and bsd license, because both are used. (#479)
  • Remove opencv2.cpp and rename opencv3.cpp to opencv4.cpp (#480)
  • Deprecate .h files in favor of .hpp headers (#448)
  • Reorganize author tag (#460)
  • Add colormap argument to python wrapper (#452)
  • Fix 16U encoding type (#459)
  • Add type adapter for cv::Mat (#441)
  • Update maintainers (#451)
  • Fix ModuleNotFoundError: No module named 'cv_bridge' error (#444)
  • Make python3-opencv from test_depend to depend tag in package.xml (#439)
  • Contributors: Daisuke Nishimatsu, Kenji Brameld, Marcel Zeilinger, RachelRen05

3.0.3 (2022-04-01)

  • Add missing dependency on rcpputils (#427)
  • Contributors: Shane Loretz

3.0.2 (2022-01-27)

  • Minor cleanups to the ROS 2 branch (#418)
  • Find Python3 if not on Android (#423)
  • Forward ports from noetic (#420)
    • Add header arg to cv2_to_imgmsg (#326)
    • prevent conversion of single channel 16bit integer images to/from colour (#412)
  • Contributors: Chris Lalancette, Christian Rauch, Michael Carroll, Naoya Yamaguchi, Shane Loretz

3.0.1 (2022-01-25)

  • Use Boost::python3 if Boost < 1.67 (#422)
  • Use Boost::pythonXY target (#421)
  • Contributors: Shane Loretz

3.0.0 (2022-01-19)

  • Export Modern CMake targets and install includes to another folder(#419)
  • Handle padded img msg in Python (#400)
  • Remove boost endian (#399)
  • Add conversions from YUV422 YUY2 (#396)
  • fix endianness comparison (#397)
  • Export sensor_msgs dependency (#392)
  • Fix multiple undefined references (#370)
  • Updated [cv_bridge.dll]{.title-ref} install location. (#356)
  • Contributors: Homalozoa X, Jacob Perron, Patrick Musau, Sean Yen, Shane Loretz

2.2.1 (2020-07-16)

  • Align module.hpp with noetic (#342)
  • Contributors: Michael Carroll

2.2.0 (2020-05-27)

  • Disable portable image tests (#337)
  • use more specific boost rosdep keys (#319)
  • add opencv4 into the dependency list for ROS2 (#324)
  • Corrected the typo of Boost_INCLUDE_DIRS (#315)
  • use target include directories (#313)
  • Contributors: Karsten Knese, Lewis Liu, Michael Carroll, Mikael Arguedas, Sean Yen

2.1.3 (2019-10-23)

  • populate array.array directly instead of converting to and from a string (#305)
  • include Boost to fix Windows build (#290)
  • Export interfaces for Win32 Shared Lib (#301)
  • Contributors: Dirk Thomas, Jonathan Noyola, Sean Yen

2.1.2 (2019-05-30)

  • Suppress Boost Python warning. (#279)
  • silence unused return value warnings (#276)
  • Contributors: Karsten Knese, Michael Carroll

2.1.1 (2019-04-26)

  • Replace ament commands with colcon (#263) Latest ros2 repo does not include ament_tools. Executing ament command results in error.
  • Contributors: Lalit Begani

2.1.0 (2018-11-26)

  • find boost_python on boost 1.58 (<1.65) (#246)
  • Contributors: Mikael Arguedas

2.0.5 (2018-08-17)

  • remove redundant ament_auto_lint dependency to release package
  • fix test_encode_decode_cv2_compressed runtime error with JPEG2000
  • change python3-numpy as build and execution dependency to fix building error while releasing package
  • Contributor: Ethan Gao

2.0.4 (2018-08-14)

  • Add libopencv-dev as dependency of cv_bridge
  • Replace assert_equal with assert to remove dependency to nose package
  • Contributor: Ethan Gao

2.0.3 (2018-08-07)

  • fix the build warning with colcon building
  • optimize buffer type of imgmsg_to_cv2()
  • add python3_opencv and python3_numpy as dependency
  • uncrustify 0.67 coding style alignment
  • Contributors: Mikael Arguedas, Lars Berscheid, Ethan Gao

2.0.2 (2018-06-29)

  • fix rosdep keys issue of opencv3

2.0.1 (2018-06-28)

2.0.0 (2018-06-06)

  • Port cv_bridge to ros2
  • Remove the old inherent boost files
  • Replace boost code with newer C++ standard higher than C++11
  • Add a new readme
  • Adapt message definition like sensor_msg/Image etc in ROS2
  • Coding style alignment with ROS2 using cppcheck/cpplint and python flake8/pep257
  • Enable all the C++/Python unit test with gtest and unittest with ament tools
  • Contributors: Ethan Gao

1.12.7 (2017-11-12)

1.12.6 (2017-11-11)

  • fix endianness issues
  • Contributors: Vincent Rabaud

1.12.5 (2017-11-05)

  • add version_gte for opencv3 \@vrabaud If you'll update opencv3 version as discussed in https://discourse.ros.org/t/opencv-3-3/2674/4, I think we'd better to add 'version_gte' tag so that apt-get install ros-kinetic-cv-bridge also pulls openv3.3 from repository, to avoid API breaking issue between opencv2 and opencv3.
  • Simplify the dependency components of cv_bridge Fixes #183
  • Fixes #177 The Python bridge was wrong on OpenCV2 with mono8 (and any Mat with only two dimensions btw). Took the official Python bridge from OpenCV.
  • Add missing test file This fixes #171
  • Properly deal with alpha in image compression. That fixes #169
  • Silence warnings about un-used variables
  • export OpenCV variables
  • Contributors: Kei Okada, Victor Lamoine, Vincent Rabaud

1.12.4 (2017-01-29)

  • properly find Boost Python 2 or 3 This fixes #158
  • Contributors: Vincent Rabaud

1.12.3 (2016-12-04)

1.12.2 (2016-09-24)

  • Specify background label when colorizing label image
  • Adjust to arbitrary image channels like 32FC40 Proper fix for #141
  • Remove unexpectedly included print statement
  • Contributors: Kentaro Wada, Vincent Rabaud

1.12.1 (2016-07-11)

  • split the conversion tests out of enumerants
  • support is_bigendian in Python Fixes #114 Also fixes mono16 test
  • Support compressed Images messages in python for indigo
    • Add cv2_to_comprssed_imgmsg: Convert from cv2 image to compressed image ros msg.
    • Add comprssed_imgmsg_to_cv2: Convert the compress message to a new image.
    • Add compressed image tests.

    - Add time to msgs (compressed and regular). add enumerants test for compressed image. merge the compressed tests with the regular ones. better comment explanation. I will squash this commit. Fix indentation fix typo mistage: from .imgmsg_to_compressed_cv2 to .compressed_imgmsg_to_cv2. remove cv2.CV_8UC1 remove rospy and time depndency. change from IMREAD_COLOR to IMREAD_ANYCOLOR.

    - keep the OpenCV error message. from: https://github.com/ros-perception/vision_opencv/pull/132#discussion_r66721013 add debug print for test. add case for 4 channels in test. remove 4 channels case from compressed test. add debug print for test. change typo of format. fix typo in format. change from dip to dib. change to IMREAD_ANYCOLOR as python code. (as it should). rename TIFF to tiff Sperate the tests one for regular images and one for compressed. update comment

  • Add CvtColorForDisplayOptions with new colormap param
  • fix doc jobs
  • Add python binding for cv_bridge::cvtColorForDisplay
  • Don't colorize float image as label image This is a bug and image whose encoding is other than 32SC1 should not be colorized. (currently, depth images with 32FC1 is also colorized.)
  • Fix compilation of cv_bridge with opencv3 and python3.
  • Contributors: Kentaro Wada, Maarten de Vries, Vincent Rabaud, talregev

1.12.0 (2016-03-18)

  • depend on OpenCV3 only
  • Contributors: Vincent Rabaud

1.11.12 (2016-03-10)

  • Fix my typo
  • Remove another eval Because [cvtype2_to_dtype_with_channels('8UCimport os; os.system("rm -rf /")')]{.title-ref} should never have a chance of happening.
  • Remove eval, and other fixes Also, extend from object, so as not to get a python 2.2-style class, and use the new-style raise statement
  • Contributors: Eric Wieser

1.11.11 (2016-01-31)

  • clean up the doc files
  • fix a few warnings in doc jobs
  • Contributors: Vincent Rabaud

1.11.10 (2016-01-16)

  • fix OpenCV3 build
  • Describe about converting label to bgr image in cvtColorForDisplay
  • Convert label to BGR image to display
  • Add test for rgb_colors.cpp
  • Add rgb_colors util
  • Update doc for converting to BGR in cvtColorForDisplay
  • Convert to BGR from any encoding
  • Refactor: sensor_msgs::image_encodings -> enc
  • Contributors: Kentaro Wada, Vincent Rabaud

1.11.9 (2015-11-29)

  • deal with endianness
  • add cvtColorForDisplay
  • Improved efficiency by using toCvShare instead of toCvCopy.
  • Add format enum for easy use and choose format.
  • fix compilation warnings
  • start to extend the cv_bridge with cvCompressedImage class, that will convert from cv::Mat opencv images to CompressedImage ros messages and vice versa
  • Contributors: Carlos Costa, Vincent Rabaud, talregev

1.11.8 (2015-07-15)

  • Simplify some OpenCV3 distinction
  • fix tests
  • fix test under OpenCV3
  • Remove Python for Android
  • Contributors: Gary Servin, Vincent Rabaud

1.11.7 (2014-12-14)

  • check that the type is indeed a Numpy one This is in response to #51
  • Contributors: Vincent Rabaud

1.11.6 (2014-11-16)

  • chnage the behavior when there is only one channel
  • cleanup tests
  • Contributors: Vincent Rabaud

1.11.5 (2014-09-21)

  • get code to work with OpenCV3 actually fixes #46 properly
  • Contributors: Vincent Rabaud

1.11.4 (2014-07-27)

  • Fix #42
  • Contributors: Libor Wagner

1.11.3 (2014-06-08)

  • Correct dependency from non-existent package to cv_bridge
  • Contributors: Isaac Isao Saito

1.11.2 (2014-04-28)

  • Add depend on python for cv_bridge
  • Contributors: Scott K Logan

1.11.1 (2014-04-16)

  • fixes #34
  • Contributors: Vincent Rabaud

1.11.0 (2014-02-15)

  • remove deprecated API and fixes #33
  • fix OpenCV dependencies
  • Contributors: Vincent Rabaud

1.10.15 (2014-02-07)

  • fix python 3 error at configure time
  • Contributors: Dirk Thomas

1.10.14 (2013-11-23 16:17)

  • update changelog
  • Find NumPy include directory
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.13 (2013-11-23 09:19)

  • fix compilation on older NumPy
  • Contributors: Vincent Rabaud

1.10.12 (2013-11-22)

  • bump changelog
  • Fixed issue with image message step size
  • fix crash for non char data
  • fix #26
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.11 (2013-10-23)

  • fix bad image check and improve it too
  • Contributors: Vincent Rabaud

1.10.10 (2013-10-19)

  • fixes #25
  • Contributors: Vincent Rabaud

1.10.9 (2013-10-07)

  • fixes #20
  • Contributors: Vincent Rabaud

1.10.8 (2013-09-09)

  • fixes #22
  • fixes #17
  • check for CATKIN_ENABLE_TESTING
  • fixes #16
  • update email address
  • Contributors: Lukas Bulwahn, Vincent Rabaud

1.10.7 (2013-07-17)

1.10.6 (2013-03-01)

  • make sure conversion are applied for depth differences
  • Contributors: Vincent Rabaud

1.10.5 (2013-02-11)

1.10.4 (2013-02-02)

  • fix installation of the boost package
  • Contributors: Vincent Rabaud

1.10.3 (2013-01-17)

  • Link against PTYHON_LIBRARIES
  • Contributors: William Woodall

1.10.2 (2013-01-13)

  • use CATKIN_DEVEL_PREFIX instead of obsolete CATKIN_BUILD_PREFIX
  • Contributors: Dirk Thomas

1.10.1 (2013-01-10)

  • add licenses
  • fixes #5 by removing the logic from Python and using wrapped C++ and adding a test for it
  • fix a bug discovered when running the opencv_tests
  • use some C++ logic
  • add a Boost Python module to have the C++ logix used directly in Python
  • Contributors: Vincent Rabaud

1.10.0 (2013-01-03)

  • add conversion from Bayer to gray
  • Contributors: Vincent Rabaud

1.9.15 (2013-01-02)

  • use the reverted isColor behavior
  • Contributors: Vincent Rabaud

1.9.14 (2012-12-30)

1.9.13 (2012-12-15)

  • use the catkin macros for the setup.py
  • fix #3
  • Contributors: Vincent Rabaud

1.9.12 (2012-12-14)

  • buildtool_depend catkin fix
  • CMakeLists.txt clean up.
  • Contributors: William Woodall

1.9.11 (2012-12-10)

  • fix issue #1
  • Cleanup of package.xml
  • Contributors: Vincent Rabaud, William Woodall

1.9.10 (2012-10-04)

  • fix the bad include folder
  • Contributors: Vincent Rabaud

1.9.9 (2012-10-01)

  • fix dependencies
  • Contributors: Vincent Rabaud

1.9.8 (2012-09-30)

  • fix some dependencies
  • add rosconsole as a dependency
  • fix missing Python at install and fix some dependencies
  • Contributors: Vincent Rabaud

1.9.7 (2012-09-28 21:07)

  • add missing stuff
  • make sure we find catkin
  • Contributors: Vincent Rabaud

1.9.6 (2012-09-28 15:17)

  • move the test to where it belongs
  • fix the tests and the API to not handle conversion from CV_TYPE to Color type (does not make sense)
  • comply to the new Catkin API
  • backport the YUV422 bug fix from Fuerte
  • apply patch from https://code.ros.org/trac/ros-pkg/ticket/5556
  • Contributors: Vincent Rabaud

1.9.5 (2012-09-15)

  • remove dependencies to the opencv2 ROS package
  • Contributors: Vincent Rabaud

1.9.4 (2012-09-13)

  • make sure the include folders are copied to the right place
  • Contributors: Vincent Rabaud

1.9.3 (2012-09-12)

1.9.2 (2012-09-07)

  • be more compliant to the latest catkin
  • added catkin_project() to cv_bridge, image_geometry, and opencv_tests
  • Contributors: Jonathan Binney, Vincent Rabaud

1.9.1 (2012-08-28 22:06)

  • remove things that were marked as ROS_DEPRECATED
  • Contributors: Vincent Rabaud

1.9.0 (2012-08-28 14:29)

  • catkinized opencv_tests by Jon Binney
  • catkinized cv_bridge package... others disable for now by Jon Binney
  • remove the version check, let's trust OpenCV :)
  • revert the removal of opencv2
  • vision_opencv: Export OpenCV flags in manifests for image_geometry, cv_bridge.
  • finally get rid of opencv2 as it is a system dependency now
  • bump REQUIRED version of OpenCV to 2.3.2, which is what's in ros-fuerte-opencv
  • switch rosdep name to opencv2, to refer to ros-fuerte-opencv2
  • added missing header
  • Added constructor to CvImage to make converting a cv::Mat to sensor_msgs::Image less verbose.
  • cv_bridge: Added unit test for #5206
  • cv_bridge: Applied patch from mdesnoyer to fix handling of non-continuous OpenCV images. #5206
  • Adding opencv2 to all manifests, so that client packages may not break when using them.
  • baking in opencv debs and attempting a pre-release
  • cv_bridge: Support for new 16-bit encodings.
  • cv_bridge: Deprecate old C++ cv_bridge API.
  • cv_bridge: Correctly scale for MONO8 <-> MONO16 conversions.
  • cv_bridge: Fixed issue where pointer version to toCvCopy would ignore the requested encoding (http://answers.ros.org/question/258/converting-kinect-rgb-image-to-opencv-gives-wrong).
  • fixed doc build by taking a static snapshot
  • cv_bridge: Marking doc reviewed.
  • cv_bridge: Tweaks to make docs look better.
  • cv_bridge: Added cvtColor(). License notices. Documented that CvBridge class is obsolete.
  • cv_bridge: Added redesigned C++ cv_bridge.
  • Doc cleanup
  • Trigger doc rebuild
  • mono16 -> bgr conversion tested and fixed in C
  • Added Ubuntu platform tags to manifest
  • Handle mono16 properly
  • Raise exception when imgMsgToCv() gets an image encoding it does not recognise, #3489
  • Remove use of deprecated rosbuild macros
  • Fixed example
  • cv_bridge split from opencv2
  • Contributors: Vincent Rabaud, ethanrublee, gerkey, jamesb, mihelich, vrabaud, wheeler

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cv_bridge at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 4.1.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-perception/vision_opencv.git
VCS Type git
VCS Version rolling
Last Updated 2024-12-02
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

This contains CvBridge, which converts between ROS2 Image messages and OpenCV images.

Additional Links

Maintainers

  • Kenji Brameld

Authors

  • Patrick Mihelich
  • James Bowman
  • Ethan Gao

cv_bridge

Introduction

cv_bridge converts between ROS 2 image messages and OpenCV image representation for perception applications. As follows:

cv_bridge overview

This ros2 branch initially derives from porting on the basis of ros kinetic branch

Installation

Firstly, it assumes that the ROS 2 core has already been installed, please refer to ROS 2 installation to get started.

Install dependencies

OpenCV3+ is a must to install, please refer to the official installation guide from OpenCV Tutorials Since ROS 2 uses Python 3, please make sure that python3-numpy is installed, or install like this:


sudo apt install python3-numpy


The cv_bridge python backend still has a dependency on python boost (equal or higher than 1.58.0), and install them as follows in Ubuntu:


sudo apt install libboost-python-dev


Build and Test

Fetch the latest code and build


cd <YOUR_ROS2_WORKSPACE>/src
git clone https://github.com/ros-perception/vision_opencv.git -b ros2
cd ..
colcon build --symlink-install


Run the tests

Python tests have a dependency on OpenCV Python support. To install it:


sudo apt install python3-opencv


Next to prepare runtime environment and run tests:


source <YOUR_ROS2_WORKSPACE>/install/local_setup.bash
colcon test


Known issues

  • boost endian: remove boost endian APIs with standard C++ 11 or higher instead
  • Not tested with Windows or macOS environments so there may be issues building or running
CHANGELOG

Changelog for package cv_bridge

4.1.0 (2024-04-19)

4.0.0 (2024-04-13)

  • Decode images in mode IMREAD_UNCHANGED (#520)
  • Remove header files that were deprecated in I-turtle (#517)
  • Fixed converstion for 32FC1 (#514)
  • Allow users to override encoding string in ROSCvMatContainer (#505)
  • Ensure dynamic scaling works when given matrix with inf, -inf and nan values. (#498)
  • Add new CMake option CV_BRIDGE_DISABLE_PYTHON to cv_bridge to disable building Python support if desired (#494)
  • Contributors: Alejandro Hernández Cordero, Christian Rauch, Kenji Brameld, Lightech, Yadunund, ijnek

3.4.0 (2022-10-03)

3.3.1 (2022-09-21)

  • export rclcpp as dependency (#491)
  • silence dperecation warnings using boost macros (#478)
  • Contributors: Kenji Brameld

3.3.0 (2022-09-14)

  • Add apache license and bsd license, because both are used. (#479)
  • Remove opencv2.cpp and rename opencv3.cpp to opencv4.cpp (#480)
  • Deprecate .h files in favor of .hpp headers (#448)
  • Reorganize author tag (#460)
  • Add colormap argument to python wrapper (#452)
  • Fix 16U encoding type (#459)
  • Add type adapter for cv::Mat (#441)
  • Update maintainers (#451)
  • Fix ModuleNotFoundError: No module named 'cv_bridge' error (#444)
  • Make python3-opencv from test_depend to depend tag in package.xml (#439)
  • Contributors: Daisuke Nishimatsu, Kenji Brameld, Marcel Zeilinger, RachelRen05

3.0.3 (2022-04-01)

  • Add missing dependency on rcpputils (#427)
  • Contributors: Shane Loretz

3.0.2 (2022-01-27)

  • Minor cleanups to the ROS 2 branch (#418)
  • Find Python3 if not on Android (#423)
  • Forward ports from noetic (#420)
    • Add header arg to cv2_to_imgmsg (#326)
    • prevent conversion of single channel 16bit integer images to/from colour (#412)
  • Contributors: Chris Lalancette, Christian Rauch, Michael Carroll, Naoya Yamaguchi, Shane Loretz

3.0.1 (2022-01-25)

  • Use Boost::python3 if Boost < 1.67 (#422)
  • Use Boost::pythonXY target (#421)
  • Contributors: Shane Loretz

3.0.0 (2022-01-19)

  • Export Modern CMake targets and install includes to another folder(#419)
  • Handle padded img msg in Python (#400)
  • Remove boost endian (#399)
  • Add conversions from YUV422 YUY2 (#396)
  • fix endianness comparison (#397)
  • Export sensor_msgs dependency (#392)
  • Fix multiple undefined references (#370)
  • Updated [cv_bridge.dll]{.title-ref} install location. (#356)
  • Contributors: Homalozoa X, Jacob Perron, Patrick Musau, Sean Yen, Shane Loretz

2.2.1 (2020-07-16)

  • Align module.hpp with noetic (#342)
  • Contributors: Michael Carroll

2.2.0 (2020-05-27)

  • Disable portable image tests (#337)
  • use more specific boost rosdep keys (#319)
  • add opencv4 into the dependency list for ROS2 (#324)
  • Corrected the typo of Boost_INCLUDE_DIRS (#315)
  • use target include directories (#313)
  • Contributors: Karsten Knese, Lewis Liu, Michael Carroll, Mikael Arguedas, Sean Yen

2.1.3 (2019-10-23)

  • populate array.array directly instead of converting to and from a string (#305)
  • include Boost to fix Windows build (#290)
  • Export interfaces for Win32 Shared Lib (#301)
  • Contributors: Dirk Thomas, Jonathan Noyola, Sean Yen

2.1.2 (2019-05-30)

  • Suppress Boost Python warning. (#279)
  • silence unused return value warnings (#276)
  • Contributors: Karsten Knese, Michael Carroll

2.1.1 (2019-04-26)

  • Replace ament commands with colcon (#263) Latest ros2 repo does not include ament_tools. Executing ament command results in error.
  • Contributors: Lalit Begani

2.1.0 (2018-11-26)

  • find boost_python on boost 1.58 (<1.65) (#246)
  • Contributors: Mikael Arguedas

2.0.5 (2018-08-17)

  • remove redundant ament_auto_lint dependency to release package
  • fix test_encode_decode_cv2_compressed runtime error with JPEG2000
  • change python3-numpy as build and execution dependency to fix building error while releasing package
  • Contributor: Ethan Gao

2.0.4 (2018-08-14)

  • Add libopencv-dev as dependency of cv_bridge
  • Replace assert_equal with assert to remove dependency to nose package
  • Contributor: Ethan Gao

2.0.3 (2018-08-07)

  • fix the build warning with colcon building
  • optimize buffer type of imgmsg_to_cv2()
  • add python3_opencv and python3_numpy as dependency
  • uncrustify 0.67 coding style alignment
  • Contributors: Mikael Arguedas, Lars Berscheid, Ethan Gao

2.0.2 (2018-06-29)

  • fix rosdep keys issue of opencv3

2.0.1 (2018-06-28)

2.0.0 (2018-06-06)

  • Port cv_bridge to ros2
  • Remove the old inherent boost files
  • Replace boost code with newer C++ standard higher than C++11
  • Add a new readme
  • Adapt message definition like sensor_msg/Image etc in ROS2
  • Coding style alignment with ROS2 using cppcheck/cpplint and python flake8/pep257
  • Enable all the C++/Python unit test with gtest and unittest with ament tools
  • Contributors: Ethan Gao

1.12.7 (2017-11-12)

1.12.6 (2017-11-11)

  • fix endianness issues
  • Contributors: Vincent Rabaud

1.12.5 (2017-11-05)

  • add version_gte for opencv3 \@vrabaud If you'll update opencv3 version as discussed in https://discourse.ros.org/t/opencv-3-3/2674/4, I think we'd better to add 'version_gte' tag so that apt-get install ros-kinetic-cv-bridge also pulls openv3.3 from repository, to avoid API breaking issue between opencv2 and opencv3.
  • Simplify the dependency components of cv_bridge Fixes #183
  • Fixes #177 The Python bridge was wrong on OpenCV2 with mono8 (and any Mat with only two dimensions btw). Took the official Python bridge from OpenCV.
  • Add missing test file This fixes #171
  • Properly deal with alpha in image compression. That fixes #169
  • Silence warnings about un-used variables
  • export OpenCV variables
  • Contributors: Kei Okada, Victor Lamoine, Vincent Rabaud

1.12.4 (2017-01-29)

  • properly find Boost Python 2 or 3 This fixes #158
  • Contributors: Vincent Rabaud

1.12.3 (2016-12-04)

1.12.2 (2016-09-24)

  • Specify background label when colorizing label image
  • Adjust to arbitrary image channels like 32FC40 Proper fix for #141
  • Remove unexpectedly included print statement
  • Contributors: Kentaro Wada, Vincent Rabaud

1.12.1 (2016-07-11)

  • split the conversion tests out of enumerants
  • support is_bigendian in Python Fixes #114 Also fixes mono16 test
  • Support compressed Images messages in python for indigo
    • Add cv2_to_comprssed_imgmsg: Convert from cv2 image to compressed image ros msg.
    • Add comprssed_imgmsg_to_cv2: Convert the compress message to a new image.
    • Add compressed image tests.

    - Add time to msgs (compressed and regular). add enumerants test for compressed image. merge the compressed tests with the regular ones. better comment explanation. I will squash this commit. Fix indentation fix typo mistage: from .imgmsg_to_compressed_cv2 to .compressed_imgmsg_to_cv2. remove cv2.CV_8UC1 remove rospy and time depndency. change from IMREAD_COLOR to IMREAD_ANYCOLOR.

    - keep the OpenCV error message. from: https://github.com/ros-perception/vision_opencv/pull/132#discussion_r66721013 add debug print for test. add case for 4 channels in test. remove 4 channels case from compressed test. add debug print for test. change typo of format. fix typo in format. change from dip to dib. change to IMREAD_ANYCOLOR as python code. (as it should). rename TIFF to tiff Sperate the tests one for regular images and one for compressed. update comment

  • Add CvtColorForDisplayOptions with new colormap param
  • fix doc jobs
  • Add python binding for cv_bridge::cvtColorForDisplay
  • Don't colorize float image as label image This is a bug and image whose encoding is other than 32SC1 should not be colorized. (currently, depth images with 32FC1 is also colorized.)
  • Fix compilation of cv_bridge with opencv3 and python3.
  • Contributors: Kentaro Wada, Maarten de Vries, Vincent Rabaud, talregev

1.12.0 (2016-03-18)

  • depend on OpenCV3 only
  • Contributors: Vincent Rabaud

1.11.12 (2016-03-10)

  • Fix my typo
  • Remove another eval Because [cvtype2_to_dtype_with_channels('8UCimport os; os.system("rm -rf /")')]{.title-ref} should never have a chance of happening.
  • Remove eval, and other fixes Also, extend from object, so as not to get a python 2.2-style class, and use the new-style raise statement
  • Contributors: Eric Wieser

1.11.11 (2016-01-31)

  • clean up the doc files
  • fix a few warnings in doc jobs
  • Contributors: Vincent Rabaud

1.11.10 (2016-01-16)

  • fix OpenCV3 build
  • Describe about converting label to bgr image in cvtColorForDisplay
  • Convert label to BGR image to display
  • Add test for rgb_colors.cpp
  • Add rgb_colors util
  • Update doc for converting to BGR in cvtColorForDisplay
  • Convert to BGR from any encoding
  • Refactor: sensor_msgs::image_encodings -> enc
  • Contributors: Kentaro Wada, Vincent Rabaud

1.11.9 (2015-11-29)

  • deal with endianness
  • add cvtColorForDisplay
  • Improved efficiency by using toCvShare instead of toCvCopy.
  • Add format enum for easy use and choose format.
  • fix compilation warnings
  • start to extend the cv_bridge with cvCompressedImage class, that will convert from cv::Mat opencv images to CompressedImage ros messages and vice versa
  • Contributors: Carlos Costa, Vincent Rabaud, talregev

1.11.8 (2015-07-15)

  • Simplify some OpenCV3 distinction
  • fix tests
  • fix test under OpenCV3
  • Remove Python for Android
  • Contributors: Gary Servin, Vincent Rabaud

1.11.7 (2014-12-14)

  • check that the type is indeed a Numpy one This is in response to #51
  • Contributors: Vincent Rabaud

1.11.6 (2014-11-16)

  • chnage the behavior when there is only one channel
  • cleanup tests
  • Contributors: Vincent Rabaud

1.11.5 (2014-09-21)

  • get code to work with OpenCV3 actually fixes #46 properly
  • Contributors: Vincent Rabaud

1.11.4 (2014-07-27)

  • Fix #42
  • Contributors: Libor Wagner

1.11.3 (2014-06-08)

  • Correct dependency from non-existent package to cv_bridge
  • Contributors: Isaac Isao Saito

1.11.2 (2014-04-28)

  • Add depend on python for cv_bridge
  • Contributors: Scott K Logan

1.11.1 (2014-04-16)

  • fixes #34
  • Contributors: Vincent Rabaud

1.11.0 (2014-02-15)

  • remove deprecated API and fixes #33
  • fix OpenCV dependencies
  • Contributors: Vincent Rabaud

1.10.15 (2014-02-07)

  • fix python 3 error at configure time
  • Contributors: Dirk Thomas

1.10.14 (2013-11-23 16:17)

  • update changelog
  • Find NumPy include directory
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.13 (2013-11-23 09:19)

  • fix compilation on older NumPy
  • Contributors: Vincent Rabaud

1.10.12 (2013-11-22)

  • bump changelog
  • Fixed issue with image message step size
  • fix crash for non char data
  • fix #26
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.11 (2013-10-23)

  • fix bad image check and improve it too
  • Contributors: Vincent Rabaud

1.10.10 (2013-10-19)

  • fixes #25
  • Contributors: Vincent Rabaud

1.10.9 (2013-10-07)

  • fixes #20
  • Contributors: Vincent Rabaud

1.10.8 (2013-09-09)

  • fixes #22
  • fixes #17
  • check for CATKIN_ENABLE_TESTING
  • fixes #16
  • update email address
  • Contributors: Lukas Bulwahn, Vincent Rabaud

1.10.7 (2013-07-17)

1.10.6 (2013-03-01)

  • make sure conversion are applied for depth differences
  • Contributors: Vincent Rabaud

1.10.5 (2013-02-11)

1.10.4 (2013-02-02)

  • fix installation of the boost package
  • Contributors: Vincent Rabaud

1.10.3 (2013-01-17)

  • Link against PTYHON_LIBRARIES
  • Contributors: William Woodall

1.10.2 (2013-01-13)

  • use CATKIN_DEVEL_PREFIX instead of obsolete CATKIN_BUILD_PREFIX
  • Contributors: Dirk Thomas

1.10.1 (2013-01-10)

  • add licenses
  • fixes #5 by removing the logic from Python and using wrapped C++ and adding a test for it
  • fix a bug discovered when running the opencv_tests
  • use some C++ logic
  • add a Boost Python module to have the C++ logix used directly in Python
  • Contributors: Vincent Rabaud

1.10.0 (2013-01-03)

  • add conversion from Bayer to gray
  • Contributors: Vincent Rabaud

1.9.15 (2013-01-02)

  • use the reverted isColor behavior
  • Contributors: Vincent Rabaud

1.9.14 (2012-12-30)

1.9.13 (2012-12-15)

  • use the catkin macros for the setup.py
  • fix #3
  • Contributors: Vincent Rabaud

1.9.12 (2012-12-14)

  • buildtool_depend catkin fix
  • CMakeLists.txt clean up.
  • Contributors: William Woodall

1.9.11 (2012-12-10)

  • fix issue #1
  • Cleanup of package.xml
  • Contributors: Vincent Rabaud, William Woodall

1.9.10 (2012-10-04)

  • fix the bad include folder
  • Contributors: Vincent Rabaud

1.9.9 (2012-10-01)

  • fix dependencies
  • Contributors: Vincent Rabaud

1.9.8 (2012-09-30)

  • fix some dependencies
  • add rosconsole as a dependency
  • fix missing Python at install and fix some dependencies
  • Contributors: Vincent Rabaud

1.9.7 (2012-09-28 21:07)

  • add missing stuff
  • make sure we find catkin
  • Contributors: Vincent Rabaud

1.9.6 (2012-09-28 15:17)

  • move the test to where it belongs
  • fix the tests and the API to not handle conversion from CV_TYPE to Color type (does not make sense)
  • comply to the new Catkin API
  • backport the YUV422 bug fix from Fuerte
  • apply patch from https://code.ros.org/trac/ros-pkg/ticket/5556
  • Contributors: Vincent Rabaud

1.9.5 (2012-09-15)

  • remove dependencies to the opencv2 ROS package
  • Contributors: Vincent Rabaud

1.9.4 (2012-09-13)

  • make sure the include folders are copied to the right place
  • Contributors: Vincent Rabaud

1.9.3 (2012-09-12)

1.9.2 (2012-09-07)

  • be more compliant to the latest catkin
  • added catkin_project() to cv_bridge, image_geometry, and opencv_tests
  • Contributors: Jonathan Binney, Vincent Rabaud

1.9.1 (2012-08-28 22:06)

  • remove things that were marked as ROS_DEPRECATED
  • Contributors: Vincent Rabaud

1.9.0 (2012-08-28 14:29)

  • catkinized opencv_tests by Jon Binney
  • catkinized cv_bridge package... others disable for now by Jon Binney
  • remove the version check, let's trust OpenCV :)
  • revert the removal of opencv2
  • vision_opencv: Export OpenCV flags in manifests for image_geometry, cv_bridge.
  • finally get rid of opencv2 as it is a system dependency now
  • bump REQUIRED version of OpenCV to 2.3.2, which is what's in ros-fuerte-opencv
  • switch rosdep name to opencv2, to refer to ros-fuerte-opencv2
  • added missing header
  • Added constructor to CvImage to make converting a cv::Mat to sensor_msgs::Image less verbose.
  • cv_bridge: Added unit test for #5206
  • cv_bridge: Applied patch from mdesnoyer to fix handling of non-continuous OpenCV images. #5206
  • Adding opencv2 to all manifests, so that client packages may not break when using them.
  • baking in opencv debs and attempting a pre-release
  • cv_bridge: Support for new 16-bit encodings.
  • cv_bridge: Deprecate old C++ cv_bridge API.
  • cv_bridge: Correctly scale for MONO8 <-> MONO16 conversions.
  • cv_bridge: Fixed issue where pointer version to toCvCopy would ignore the requested encoding (http://answers.ros.org/question/258/converting-kinect-rgb-image-to-opencv-gives-wrong).
  • fixed doc build by taking a static snapshot
  • cv_bridge: Marking doc reviewed.
  • cv_bridge: Tweaks to make docs look better.
  • cv_bridge: Added cvtColor(). License notices. Documented that CvBridge class is obsolete.
  • cv_bridge: Added redesigned C++ cv_bridge.
  • Doc cleanup
  • Trigger doc rebuild
  • mono16 -> bgr conversion tested and fixed in C
  • Added Ubuntu platform tags to manifest
  • Handle mono16 properly
  • Raise exception when imgMsgToCv() gets an image encoding it does not recognise, #3489
  • Remove use of deprecated rosbuild macros
  • Fixed example
  • cv_bridge split from opencv2
  • Contributors: Vincent Rabaud, ethanrublee, gerkey, jamesb, mihelich, vrabaud, wheeler

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cv_bridge at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 2.2.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description Multi-target tracking application for small and fast-moving targets using their kinematic features.
Checkout URI https://github.com/sieniven/spot-it-3d.git
VCS Type git
VCS Version main
Last Updated 2023-04-15
Dev Status UNKNOWN
CI status No Continuous Integration
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

This contains CvBridge, which converts between ROS2 Image messages and OpenCV images.

Additional Links

Maintainers

  • Ethan Gao

Authors

  • Patrick Mihelich
  • James Bowman

cv_bridge

Introduction

cv_bridge converts between ROS2 image messages and OpenCV image representation for perception applications. As follows:

cv_bridge overview

This ros2 branch initially derives from porting on the basis of ros kinetic branch

Installation

Firstly, it assumes that the ros2 core has already been installed, please refer to ROS2 installation to get started if the ros2 core isn’t ready to use

Install dependencies

OpenCV3 is a must to install, please refer to the official installation guide from OpenCV Tutorials Since ros2 bases on python3, please make sure that python3-numpy is installed, or install like this:


sudo apt install python3-numpy


Now cv_bridge python backend still has dependency on python boost (equal or higer than 1.58.0), and install them as follows in Ubuntu 16.04:


sudo apt install libboost-python1.58.0
cd /usr/lib/x86_64-linux-gnu/ && sudo ln -s libboost_python-py35.so libboost_python3.so


Build and Test

Fetch the latest code and build


cd <YOUR_ROS2_WORKSPACE>
git clone https://github.com/ros-perception/vision_opencv.git
cd vision_opencv
git checkout ros2
colcon build --symlink-install


Run the tests

Python tests have dependency to opencv python support and install it:

pip3 install opencv-python


Next to prepare runtime environment and run tests:


source <YOUR_ROS2_WORKSPACE>/install/local_setup.bash
colcon test


Known issues

  • boost endian: remove boost endian APIs with standard C++ 11 or higer instead
  • Not verify with Windows and OS X environment and there may be building or running issues
CHANGELOG

Changelog for package cv_bridge

2.2.1 (2020-07-16)

  • Align module.hpp with noetic (#342)
  • Contributors: Michael Carroll

2.2.0 (2020-05-27)

  • Disable portable image tests (#337)
  • use more specific boost rosdep keys (#319)
  • add opencv4 into the dependency list for ROS2 (#324)
  • Corrected the typo of Boost_INCLUDE_DIRS (#315)
  • use target include directories (#313)
  • Contributors: Karsten Knese, Lewis Liu, Michael Carroll, Mikael Arguedas, Sean Yen

2.1.3 (2019-10-23)

  • populate array.array directly instead of converting to and from a string (#305)
  • include Boost to fix Windows build (#290)
  • Export interfaces for Win32 Shared Lib (#301)
  • Contributors: Dirk Thomas, Jonathan Noyola, Sean Yen

2.1.2 (2019-05-30)

  • Suppress Boost Python warning. (#279)
  • silence unused return value warnings (#276)
  • Contributors: Karsten Knese, Michael Carroll

2.1.1 (2019-04-26)

  • Replace ament commands with colcon (#263) Latest ros2 repo does not include ament_tools. Executing ament command results in error.
  • Contributors: Lalit Begani

2.1.0 (2018-11-26)

  • find boost_python on boost 1.58 (<1.65) (#246)
  • Contributors: Mikael Arguedas

2.0.5 (2018-08-17)

  • remove redundant ament_auto_lint dependency to release package
  • fix test_encode_decode_cv2_compressed runtime error with JPEG2000
  • change python3-numpy as build and execution dependency to fix building error while releasing package
  • Contributor: Ethan Gao

2.0.4 (2018-08-14)

  • Add libopencv-dev as dependency of cv_bridge
  • Replace assert_equal with assert to remove dependency to nose package
  • Contributor: Ethan Gao

2.0.3 (2018-08-07)

  • fix the build warning with colcon building
  • optimize buffer type of imgmsg_to_cv2()
  • add python3_opencv and python3_numpy as dependency
  • uncrustify 0.67 coding style alignment
  • Contributors: Mikael Arguedas, Lars Berscheid, Ethan Gao

2.0.2 (2018-06-29)

  • fix rosdep keys issue of opencv3

2.0.1 (2018-06-28)

2.0.0 (2018-06-06)

  • Port cv_bridge to ros2
  • Remove the old inherent boost files
  • Replace boost code with newer C++ standard higher than C++11
  • Add a new readme
  • Adapt message definition like sensor_msg/Image etc in ROS2
  • Coding style alignment with ROS2 using cppcheck/cpplint and python flake8/pep257
  • Enable all the C++/Python unit test with gtest and unittest with ament tools
  • Contributors: Ethan Gao

1.12.7 (2017-11-12)

1.12.6 (2017-11-11)

  • fix endianness issues
  • Contributors: Vincent Rabaud

1.12.5 (2017-11-05)

  • add version_gte for opencv3 \@vrabaud If you'll update opencv3 version as discussed in https://discourse.ros.org/t/opencv-3-3/2674/4, I think we'd better to add 'version_gte' tag so that apt-get install ros-kinetic-cv-bridge also pulls openv3.3 from repository, to avoid API breaking issue between opencv2 and opencv3.
  • Simplify the dependency components of cv_bridge Fixes #183
  • Fixes #177 The Python bridge was wrong on OpenCV2 with mono8 (and any Mat with only two dimensions btw). Took the official Python bridge from OpenCV.
  • Add missing test file This fixes #171
  • Properly deal with alpha in image compression. That fixes #169
  • Silence warnings about un-used variables
  • export OpenCV variables
  • Contributors: Kei Okada, Victor Lamoine, Vincent Rabaud

1.12.4 (2017-01-29)

  • properly find Boost Python 2 or 3 This fixes #158
  • Contributors: Vincent Rabaud

1.12.3 (2016-12-04)

1.12.2 (2016-09-24)

  • Specify background label when colorizing label image
  • Adjust to arbitrary image channels like 32FC40 Proper fix for #141
  • Remove unexpectedly included print statement
  • Contributors: Kentaro Wada, Vincent Rabaud

1.12.1 (2016-07-11)

  • split the conversion tests out of enumerants
  • support is_bigendian in Python Fixes #114 Also fixes mono16 test
  • Support compressed Images messages in python for indigo
    • Add cv2_to_comprssed_imgmsg: Convert from cv2 image to compressed image ros msg.
    • Add comprssed_imgmsg_to_cv2: Convert the compress message to a new image.
    • Add compressed image tests.

    - Add time to msgs (compressed and regular). add enumerants test for compressed image. merge the compressed tests with the regular ones. better comment explanation. I will squash this commit. Fix indentation fix typo mistage: from .imgmsg_to_compressed_cv2 to .compressed_imgmsg_to_cv2. remove cv2.CV_8UC1 remove rospy and time depndency. change from IMREAD_COLOR to IMREAD_ANYCOLOR.

    - keep the OpenCV error message. from: https://github.com/ros-perception/vision_opencv/pull/132#discussion_r66721013 add debug print for test. add case for 4 channels in test. remove 4 channels case from compressed test. add debug print for test. change typo of format. fix typo in format. change from dip to dib. change to IMREAD_ANYCOLOR as python code. (as it should). rename TIFF to tiff Sperate the tests one for regular images and one for compressed. update comment

  • Add CvtColorForDisplayOptions with new colormap param
  • fix doc jobs
  • Add python binding for cv_bridge::cvtColorForDisplay
  • Don't colorize float image as label image This is a bug and image whose encoding is other than 32SC1 should not be colorized. (currently, depth images with 32FC1 is also colorized.)
  • Fix compilation of cv_bridge with opencv3 and python3.
  • Contributors: Kentaro Wada, Maarten de Vries, Vincent Rabaud, talregev

1.12.0 (2016-03-18)

  • depend on OpenCV3 only
  • Contributors: Vincent Rabaud

1.11.12 (2016-03-10)

  • Fix my typo
  • Remove another eval Because [cvtype2_to_dtype_with_channels('8UCimport os; os.system("rm -rf /")')]{.title-ref} should never have a chance of happening.
  • Remove eval, and other fixes Also, extend from object, so as not to get a python 2.2-style class, and use the new-style raise statement
  • Contributors: Eric Wieser

1.11.11 (2016-01-31)

  • clean up the doc files
  • fix a few warnings in doc jobs
  • Contributors: Vincent Rabaud

1.11.10 (2016-01-16)

  • fix OpenCV3 build
  • Describe about converting label to bgr image in cvtColorForDisplay
  • Convert label to BGR image to display
  • Add test for rgb_colors.cpp
  • Add rgb_colors util
  • Update doc for converting to BGR in cvtColorForDisplay
  • Convert to BGR from any encoding
  • Refactor: sensor_msgs::image_encodings -> enc
  • Contributors: Kentaro Wada, Vincent Rabaud

1.11.9 (2015-11-29)

  • deal with endianness
  • add cvtColorForDisplay
  • Improved efficiency by using toCvShare instead of toCvCopy.
  • Add format enum for easy use and choose format.
  • fix compilation warnings
  • start to extend the cv_bridge with cvCompressedImage class, that will convert from cv::Mat opencv images to CompressedImage ros messages and vice versa
  • Contributors: Carlos Costa, Vincent Rabaud, talregev

1.11.8 (2015-07-15)

  • Simplify some OpenCV3 distinction
  • fix tests
  • fix test under OpenCV3
  • Remove Python for Android
  • Contributors: Gary Servin, Vincent Rabaud

1.11.7 (2014-12-14)

  • check that the type is indeed a Numpy one This is in response to #51
  • Contributors: Vincent Rabaud

1.11.6 (2014-11-16)

  • chnage the behavior when there is only one channel
  • cleanup tests
  • Contributors: Vincent Rabaud

1.11.5 (2014-09-21)

  • get code to work with OpenCV3 actually fixes #46 properly
  • Contributors: Vincent Rabaud

1.11.4 (2014-07-27)

  • Fix #42
  • Contributors: Libor Wagner

1.11.3 (2014-06-08)

  • Correct dependency from non-existent package to cv_bridge
  • Contributors: Isaac Isao Saito

1.11.2 (2014-04-28)

  • Add depend on python for cv_bridge
  • Contributors: Scott K Logan

1.11.1 (2014-04-16)

  • fixes #34
  • Contributors: Vincent Rabaud

1.11.0 (2014-02-15)

  • remove deprecated API and fixes #33
  • fix OpenCV dependencies
  • Contributors: Vincent Rabaud

1.10.15 (2014-02-07)

  • fix python 3 error at configure time
  • Contributors: Dirk Thomas

1.10.14 (2013-11-23 16:17)

  • update changelog
  • Find NumPy include directory
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.13 (2013-11-23 09:19)

  • fix compilation on older NumPy
  • Contributors: Vincent Rabaud

1.10.12 (2013-11-22)

  • bump changelog
  • Fixed issue with image message step size
  • fix crash for non char data
  • fix #26
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.11 (2013-10-23)

  • fix bad image check and improve it too
  • Contributors: Vincent Rabaud

1.10.10 (2013-10-19)

  • fixes #25
  • Contributors: Vincent Rabaud

1.10.9 (2013-10-07)

  • fixes #20
  • Contributors: Vincent Rabaud

1.10.8 (2013-09-09)

  • fixes #22
  • fixes #17
  • check for CATKIN_ENABLE_TESTING
  • fixes #16
  • update email address
  • Contributors: Lukas Bulwahn, Vincent Rabaud

1.10.7 (2013-07-17)

1.10.6 (2013-03-01)

  • make sure conversion are applied for depth differences
  • Contributors: Vincent Rabaud

1.10.5 (2013-02-11)

1.10.4 (2013-02-02)

  • fix installation of the boost package
  • Contributors: Vincent Rabaud

1.10.3 (2013-01-17)

  • Link against PTYHON_LIBRARIES
  • Contributors: William Woodall

1.10.2 (2013-01-13)

  • use CATKIN_DEVEL_PREFIX instead of obsolete CATKIN_BUILD_PREFIX
  • Contributors: Dirk Thomas

1.10.1 (2013-01-10)

  • add licenses
  • fixes #5 by removing the logic from Python and using wrapped C++ and adding a test for it
  • fix a bug discovered when running the opencv_tests
  • use some C++ logic
  • add a Boost Python module to have the C++ logix used directly in Python
  • Contributors: Vincent Rabaud

1.10.0 (2013-01-03)

  • add conversion from Bayer to gray
  • Contributors: Vincent Rabaud

1.9.15 (2013-01-02)

  • use the reverted isColor behavior
  • Contributors: Vincent Rabaud

1.9.14 (2012-12-30)

1.9.13 (2012-12-15)

  • use the catkin macros for the setup.py
  • fix #3
  • Contributors: Vincent Rabaud

1.9.12 (2012-12-14)

  • buildtool_depend catkin fix
  • CMakeLists.txt clean up.
  • Contributors: William Woodall

1.9.11 (2012-12-10)

  • fix issue #1
  • Cleanup of package.xml
  • Contributors: Vincent Rabaud, William Woodall

1.9.10 (2012-10-04)

  • fix the bad include folder
  • Contributors: Vincent Rabaud

1.9.9 (2012-10-01)

  • fix dependencies
  • Contributors: Vincent Rabaud

1.9.8 (2012-09-30)

  • fix some dependencies
  • add rosconsole as a dependency
  • fix missing Python at install and fix some dependencies
  • Contributors: Vincent Rabaud

1.9.7 (2012-09-28 21:07)

  • add missing stuff
  • make sure we find catkin
  • Contributors: Vincent Rabaud

1.9.6 (2012-09-28 15:17)

  • move the test to where it belongs
  • fix the tests and the API to not handle conversion from CV_TYPE to Color type (does not make sense)
  • comply to the new Catkin API
  • backport the YUV422 bug fix from Fuerte
  • apply patch from https://code.ros.org/trac/ros-pkg/ticket/5556
  • Contributors: Vincent Rabaud

1.9.5 (2012-09-15)

  • remove dependencies to the opencv2 ROS package
  • Contributors: Vincent Rabaud

1.9.4 (2012-09-13)

  • make sure the include folders are copied to the right place
  • Contributors: Vincent Rabaud

1.9.3 (2012-09-12)

1.9.2 (2012-09-07)

  • be more compliant to the latest catkin
  • added catkin_project() to cv_bridge, image_geometry, and opencv_tests
  • Contributors: Jonathan Binney, Vincent Rabaud

1.9.1 (2012-08-28 22:06)

  • remove things that were marked as ROS_DEPRECATED
  • Contributors: Vincent Rabaud

1.9.0 (2012-08-28 14:29)

  • catkinized opencv_tests by Jon Binney
  • catkinized cv_bridge package... others disable for now by Jon Binney
  • remove the version check, let's trust OpenCV :)
  • revert the removal of opencv2
  • vision_opencv: Export OpenCV flags in manifests for image_geometry, cv_bridge.
  • finally get rid of opencv2 as it is a system dependency now
  • bump REQUIRED version of OpenCV to 2.3.2, which is what's in ros-fuerte-opencv
  • switch rosdep name to opencv2, to refer to ros-fuerte-opencv2
  • added missing header
  • Added constructor to CvImage to make converting a cv::Mat to sensor_msgs::Image less verbose.
  • cv_bridge: Added unit test for #5206
  • cv_bridge: Applied patch from mdesnoyer to fix handling of non-continuous OpenCV images. #5206
  • Adding opencv2 to all manifests, so that client packages may not break when using them.
  • baking in opencv debs and attempting a pre-release
  • cv_bridge: Support for new 16-bit encodings.
  • cv_bridge: Deprecate old C++ cv_bridge API.
  • cv_bridge: Correctly scale for MONO8 <-> MONO16 conversions.
  • cv_bridge: Fixed issue where pointer version to toCvCopy would ignore the requested encoding (http://answers.ros.org/question/258/converting-kinect-rgb-image-to-opencv-gives-wrong).
  • fixed doc build by taking a static snapshot
  • cv_bridge: Marking doc reviewed.
  • cv_bridge: Tweaks to make docs look better.
  • cv_bridge: Added cvtColor(). License notices. Documented that CvBridge class is obsolete.
  • cv_bridge: Added redesigned C++ cv_bridge.
  • Doc cleanup
  • Trigger doc rebuild
  • mono16 -> bgr conversion tested and fixed in C
  • Added Ubuntu platform tags to manifest
  • Handle mono16 properly
  • Raise exception when imgMsgToCv() gets an image encoding it does not recognise, #3489
  • Remove use of deprecated rosbuild macros
  • Fixed example
  • cv_bridge split from opencv2
  • Contributors: Vincent Rabaud, ethanrublee, gerkey, jamesb, mihelich, vrabaud, wheeler

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Dependant Packages

Name Deps
apriltag_ros
apriltag_ros
apriltag_ros
apriltag_ros
apriltag_ros
fetch_depth_layer
fetch_depth_layer
fetch_depth_layer
nav2_waypoint_follower
nav2_waypoint_follower
nav2_waypoint_follower
nav2_waypoint_follower
nav2_waypoint_follower
nav2_waypoint_follower
nav2_waypoint_follower
vitis_accelerated_resize
vitis_accelerated_stereolbm
camera_based_semantic_grid_mapping
image_segmentation_py
pointcloud_segmentation_py
camera_based_semantic_grid_mapping_r2
image_segmentation_r2
pointcloud_segmentation_r2
grid_map_cv
grid_map_cv
grid_map_cv
grid_map_cv
grid_map_demos
grid_map_demos
grid_map_demos
grid_map_demos
grid_map_ros
grid_map_ros
grid_map_ros
grid_map_ros
realsense2_camera
realsense2_camera
realsense2_camera
realsense2_camera
realsense2_camera
compressed_depth_image_transport
compressed_depth_image_transport
compressed_depth_image_transport
compressed_image_transport
compressed_image_transport
compressed_image_transport
theora_image_transport
theora_image_transport
theora_image_transport
opencv_tests
opencv_tests
opencv_tests
opencv_tests
opencv_tests
vision_opencv
vision_opencv
vision_opencv
vision_opencv
vision_opencv
vision_opencv
apriltag_docking
camera_calibration
camera_calibration
camera_calibration
depth_image_proc
depth_image_proc
image_proc
image_proc
image_publisher
image_publisher
image_rotate
image_rotate
image_view
image_view
image_view
stereo_image_proc
stereo_image_proc
ariac_sensors
video_stream_opencv
yolov3_pytorch_ros
mujoco
mujoco
mujoco
carla_ros_bridge
carla_ros_bridge
ar_tag_based_localizer
yabloc_common
yabloc_common
yabloc_image_processing
yabloc_image_processing
ros2_bevdet
bytetrack
image_projection_based_fusion
tensorrt_yolo
tensorrt_yolox
traffic_light_classifier
traffic_light_fine_detector
traffic_light_ssd_fine_detector
traffic_light_visualization
image_diagnostics
image_transport_decompressor
pointcloud_preprocessor
pointcloud_preprocessor
tier4_target_object_type_rviz_plugin
tier4_target_object_type_rviz_plugin
dma_transfer
direct_visual_lidar_calibration
darknet_ros
darknet_ros
vehicle_simulator
vehicle_simulator
vehicle_simulator
receive_theta
go2_h264_repub
carla_pointcloud
carla_pointcloud
image_processor
lidar_kf_contour_track
pixel_cloud_fusion
points_preprocessor
range_vision_fusion
road_occupancy_processor
trafficlight_recognizer
vision_beyond_track
vision_darknet_detect
vision_lane_detect
vision_segment_enet_detect
vision_ssd_detect
autoware_camera_lidar_calibrator
calibration_publisher
data_preprocessor
kitti_player
detected_objects_visualizer
integrated_viewer
points2image
autoware_driveworks_gmsl_interface
autoware_pointgrey_drivers
vectacam
autoware_ar_tag_based_localizer
yabloc_pose_initializer
autoware_bytetrack
autoware_image_projection_based_fusion
autoware_tensorrt_yolox
autoware_traffic_light_classifier
autoware_traffic_light_fine_detector
autoware_traffic_light_visualization
autoware_image_diagnostics
autoware_image_transport_decompressor
autoware_pointcloud_preprocessor
detection_2d_visualizer
ball_tracker
sim
bitbots_basler_camera
bitbots_localization
blue_localization
bob_auxiliary
bob_camera
bob_image_processing
bob_monitor
bob_observer
bob_recorder
bob_shared
bob_visualizers
bob_webapi
br2_tracking
ros2_full_sensor_suite
bytetrack_viewer
lidar_cam_reader
autocore_camera_lidar_calib
ceres_intrinsic_camera_calibrator
tag_based_pnp_calibrator
tag_based_sfm_calibrator
aruco
aruco
aruco_ros
aruco_ros
aruco_ros
ht_cv_bridge
ht_image
robot_vision
robot_vision
robot_vision
robot_vision
centerpoint
crs_perception
site_model
costmap_converter
costmap_converter
costmap_converter
costmap_converter
costmap_converter
cyberdog_miloc
cyberrunner_camera
cyberrunner_dreamer
cyberrunner_state_estimation
depth_anything_v2_ros2
monocular_depth
detection
detection
perception
orbslam3
emd_grasp_planner
easy_perception_deployment
edgeyolo_ros_cpp
ekf_cal
fiducial_vlam
ngp_ros2
object_detect
armor_detector
armor_detector
rune_detector
rune_solver
gazebo_gridmap_plugin
py_action_pkg
ros2_practice
gisnav
glim_ros
go2_robot_sdk
gscam2
cam_laser_calib
hector_compressed_map_transport
qr_tf
tensorflow_object_detector
h6x_internship_gazebo
handeye_realsense
happypose_ros
hri_fullbody
map_inflate
image_transport_tutorials
image_transport_tutorials
image_transport_tutorials_py
detect_pump
cyberdog_action
isaac_ros_test
isaac_ros_h264_decoder
isaac_ros_h264_encoder
isaac_ros_stereo_image_proc
nvblox_image_padding
nvblox_ros
nvblox_ros
isaac_ros_yolov8
isaac_ros_centerpose
isaac_ros_dope
isaac_ros_foundationpose
isaac_ros_visual_slam
kachaka_vision
kachaka_grpc_ros2_bridge
kalman_hardware
kinect_ros2
kitti_to_ros2bag
opencv_ros2
rosai_camera
rosai_file
lidar_camera_calib
ipm_image_node
entrance_exploration
grounded_sam2
lightnet_trt
llama_demos
llama_ros
lucid_vision_driver
mep3_localization
mini_pupper_driver
mini_pupper_recognition
tms_ss_tracker
moveit_ros_perception
moveit_ros_perception
multiple_object_tracking_lidar
road_signs_classifier
traffic_light_detector
web_video_server
map_manager
onboard_detector
rpicam_ai_interface
isaac_ros_segway_rmp
oakd_s2
oasis_perception_cpp
azure_kinect_ros_driver
okvis
omnivision
gridmap_ros
sdf_tools
face_cropping
map_image_generator
opentera_webrtc_ros
depth_map_creator
ros2_orb_slam3
ros2_orb_slam3
orbbec_camera
orbbec_camera
ovc2
ovc_driver
ovc_driver_ros2
person_following_robot
picamera_ros2
multi_object_tracking_lidar
race
pylon_ros2_camera_component
pylon_ros2_camera_wrapper
radar_robotcar_dataset_ros2
img_recognizer
nn_detector
target_matcher
rae_camera
rae_hw
realsense_ros2
region_detection_rclcpp
rknpu2_ros_yolov5
rmoss_cam
robomaster_ros
robomaster_ros
chapter4_tutorials
opencv_candidate
rotors_gazebo_plugins
usb_cam
robovision_images
robovision_processing
robovision_rgbd
robovision_services
gst_pipeline
gst_pipeline_plugins
gst_pipeline_plugins_webrtc
face_tracker_pkg
hog_haar_person_detection
aruco_pose_estimation
interbotix_perception_modules
interbotix_perception_pipelines
rqt_image_view
ros2_nanoowl
ros2_orbslam
computer_vision
dc_measurements
vision_examples
ros2_ipcamera
ros2_nanollm
openvino_wrapper_lib
openvino_node
openvino_test
ros2_orbslam3
pcl_object_detection
ros2_sam
live_classifier
live_detection
trt_live_classifier
trt_live_detector
ros2bag_tools
dds_rostopic
tensorflow_mnist
tensorflow_object_detection
testcv2new
face_detector
face_detector
turtlebot_actions
sgm_gpu
sky360_camera
sky360_image_processing
sky360_monitoring
sky360_tracking
sky360_visualizers
lane_detector
obstacle_detector
mcmt_detect
mcmt_track
spot_driver
stella_vslam_ros
stingray_object_detection
stretch_web_teleop
okvis_ros
pose_graph
pose_graph
debug_map
tdt_vision
rosbag_player
tabletop_handybot
uol_tidybot
telegram_ros2
orbslam2
tello_driver
theta_driver
torcs_img_publisher
v4l2_camera
capturedata
dtv2_tactile_camera
vtnf_camera
aruco_tracker
challenge_find_my_mates
robot_skills
test_tools
camera_driver
armor_processor
buff_detector
buff_processor
buff
two_wheeled_robot
ugv_slam
yolo_object_detector
image_processing
unitree_ocr
vidu_ros2_wrapper
vidu_ros_wrapper
camera_models
loop_fusion
vins
ar_demo
camera_model
feature_tracker
vins_estimator
aruco_detect
fiducial_slam
lab_5
lab_6
archived_vox_nav_grid_map
archived_vox_nav_openvslam
ORB_SLAM2
rbx1_vision
cv_camera
face_recognition
ros_orb
vtr_radar
vtr_radar_lidar
camera_object_detection
depth_estimation
lane_detection
semantic_segmentation
bbox_2d_3d
tracking_viz
yolact_ros2_3d
yolo_ros
yolov5_ros
yolov5_tensorrt
yolov5_isaac_ros
yolov5_ros2
yolox_ros_cpp

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cv_bridge at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 1.16.2
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-perception/vision_opencv.git
VCS Type git
VCS Version noetic
Last Updated 2024-08-20
Dev Status MAINTAINED
CI status
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

This contains CvBridge, which converts between ROS Image messages and OpenCV images.

Additional Links

Maintainers

  • Vincent Rabaud

Authors

  • Patrick Mihelich
  • James Bowman
README
No README found. See repository README.
CHANGELOG

Changelog for package cv_bridge

1.16.2 (2022-10-03)

1.16.1 (2022-09-06)

  • Fix 16U encoding type (#445)
  • Add header arg to cv2_to_imgmsg (#326)
  • Contributors: Ibrahim Essam, Kenji Brameld, Naoya Yamaguchi

1.16.0 (2021-11-23)

  • prevent conversion of single channel 16bit integer images to/from colour (#412)
  • decode images in mode IMREAD_UNCHANGED (#228)
  • Optimize includes (#354) As suggested by include-what-you-use
  • Fix Python linking on OSX (#331)
  • Fix typo (#333)
  • Contributors: Christian Rauch, Markus Vieth, Matthijs van der Burgh, Tobias Fischer

1.15.0 (2020-05-19)

  • [Noetic] Use opencv3 on buster (#330)
  • more portable fixes. (#328)
  • Contributors: Sean Yen, Shane Loretz

1.14.0 (2020-04-06)

  • Noetic release (#323)
  • update CMakeLists.txt for Windows build environment (#265)
  • remove path splash separator from 'package_dir' (#267)
  • fix travis. (#269)
  • Contributors: Alejandro Hernández Cordero, James Xu, Sean Yen

1.13.0 (2018-04-30)

  • Use rosdep OpenCV and not ROS one. We defintely don't need the whole OpenCV. We need to clean the rosdep keys.
  • Contributors: Vincent Rabaud

1.12.8 (2018-04-17)

  • Merge pull request #191 from patrickelectric/kinetic cv2_to_imgmsg: step must be int
  • cv2_to_imgmsg: step must be int Signed-off-by: Patrick José Pereira <<patrickelectric@gmail.com>>
  • Contributors: Patrick José Pereira, Vincent Rabaud

1.12.7 (2017-11-12)

1.12.6 (2017-11-11)

  • fix endianness issues
  • Contributors: Vincent Rabaud

1.12.5 (2017-11-05)

  • add version_gte for opencv3 \@vrabaud If you'll update opencv3 version as discussed in https://discourse.ros.org/t/opencv-3-3/2674/4, I think we'd better to add 'version_gte' tag so that apt-get install ros-kinetic-cv-bridge also pulls openv3.3 from repository, to avoid API breaking issue between opencv2 and opencv3.
  • Simplify the dependency components of cv_bridge Fixes #183
  • Fixes #177 The Python bridge was wrong on OpenCV2 with mono8 (and any Mat with only two dimensions btw). Took the official Python bridge from OpenCV.
  • Add missing test file This fixes #171
  • Properly deal with alpha in image compression. That fixes #169
  • Silence warnings about un-used variables
  • export OpenCV variables
  • Contributors: Kei Okada, Victor Lamoine, Vincent Rabaud

1.12.4 (2017-01-29)

  • properly find Boost Python 2 or 3 This fixes #158
  • Contributors: Vincent Rabaud

1.12.3 (2016-12-04)

1.12.2 (2016-09-24)

  • Specify background label when colorizing label image
  • Adjust to arbitrary image channels like 32FC40 Proper fix for #141
  • Remove unexpectedly included print statement
  • Contributors: Kentaro Wada, Vincent Rabaud

1.12.1 (2016-07-11)

  • split the conversion tests out of enumerants
  • support is_bigendian in Python Fixes #114 Also fixes mono16 test
  • Support compressed Images messages in python for indigo
    • Add cv2_to_comprssed_imgmsg: Convert from cv2 image to compressed image ros msg.
    • Add comprssed_imgmsg_to_cv2: Convert the compress message to a new image.
    • Add compressed image tests.

    - Add time to msgs (compressed and regular). add enumerants test for compressed image. merge the compressed tests with the regular ones. better comment explanation. I will squash this commit. Fix indentation fix typo mistage: from .imgmsg_to_compressed_cv2 to .compressed_imgmsg_to_cv2. remove cv2.CV_8UC1 remove rospy and time depndency. change from IMREAD_COLOR to IMREAD_ANYCOLOR.

    - keep the OpenCV error message. from: https://github.com/ros-perception/vision_opencv/pull/132#discussion_r66721013 add debug print for test. add case for 4 channels in test. remove 4 channels case from compressed test. add debug print for test. change typo of format. fix typo in format. change from dip to dib. change to IMREAD_ANYCOLOR as python code. (as it should). rename TIFF to tiff Sperate the tests one for regular images and one for compressed. update comment

  • Add CvtColorForDisplayOptions with new colormap param
  • fix doc jobs
  • Add python binding for cv_bridge::cvtColorForDisplay
  • Don't colorize float image as label image This is a bug and image whose encoding is other than 32SC1 should not be colorized. (currently, depth images with 32FC1 is also colorized.)
  • Fix compilation of cv_bridge with opencv3 and python3.
  • Contributors: Kentaro Wada, Maarten de Vries, Vincent Rabaud, talregev

1.12.0 (2016-03-18)

  • depend on OpenCV3 only
  • Contributors: Vincent Rabaud

1.11.12 (2016-03-10)

  • Fix my typo
  • Remove another eval Because [cvtype2_to_dtype_with_channels('8UCimport os; os.system("rm -rf /")')]{.title-ref} should never have a chance of happening.
  • Remove eval, and other fixes Also, extend from object, so as not to get a python 2.2-style class, and use the new-style raise statement
  • Contributors: Eric Wieser

1.11.11 (2016-01-31)

  • clean up the doc files
  • fix a few warnings in doc jobs
  • Contributors: Vincent Rabaud

1.11.10 (2016-01-16)

  • fix OpenCV3 build
  • Describe about converting label to bgr image in cvtColorForDisplay
  • Convert label to BGR image to display
  • Add test for rgb_colors.cpp
  • Add rgb_colors util
  • Update doc for converting to BGR in cvtColorForDisplay
  • Convert to BGR from any encoding
  • Refactor: sensor_msgs::image_encodings -> enc
  • Contributors: Kentaro Wada, Vincent Rabaud

1.11.9 (2015-11-29)

  • deal with endianness
  • add cvtColorForDisplay
  • Improved efficiency by using toCvShare instead of toCvCopy.
  • Add format enum for easy use and choose format.
  • fix compilation warnings
  • start to extend the cv_bridge with cvCompressedImage class, that will convert from cv::Mat opencv images to CompressedImage ros messages and vice versa
  • Contributors: Carlos Costa, Vincent Rabaud, talregev

1.11.8 (2015-07-15)

  • Simplify some OpenCV3 distinction
  • fix tests
  • fix test under OpenCV3
  • Remove Python for Android
  • Contributors: Gary Servin, Vincent Rabaud

1.11.7 (2014-12-14)

  • check that the type is indeed a Numpy one This is in response to #51
  • Contributors: Vincent Rabaud

1.11.6 (2014-11-16)

  • chnage the behavior when there is only one channel
  • cleanup tests
  • Contributors: Vincent Rabaud

1.11.5 (2014-09-21)

  • get code to work with OpenCV3 actually fixes #46 properly
  • Contributors: Vincent Rabaud

1.11.4 (2014-07-27)

  • Fix #42
  • Contributors: Libor Wagner

1.11.3 (2014-06-08)

  • Correct dependency from non-existent package to cv_bridge
  • Contributors: Isaac Isao Saito

1.11.2 (2014-04-28)

  • Add depend on python for cv_bridge
  • Contributors: Scott K Logan

1.11.1 (2014-04-16)

  • fixes #34
  • Contributors: Vincent Rabaud

1.11.0 (2014-02-15)

  • remove deprecated API and fixes #33
  • fix OpenCV dependencies
  • Contributors: Vincent Rabaud

1.10.15 (2014-02-07)

  • fix python 3 error at configure time
  • Contributors: Dirk Thomas

1.10.14 (2013-11-23 16:17)

  • update changelog
  • Find NumPy include directory
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.13 (2013-11-23 09:19)

  • fix compilation on older NumPy
  • Contributors: Vincent Rabaud

1.10.12 (2013-11-22)

  • bump changelog
  • Fixed issue with image message step size
  • fix crash for non char data
  • fix #26
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.11 (2013-10-23)

  • fix bad image check and improve it too
  • Contributors: Vincent Rabaud

1.10.10 (2013-10-19)

  • fixes #25
  • Contributors: Vincent Rabaud

1.10.9 (2013-10-07)

  • fixes #20
  • Contributors: Vincent Rabaud

1.10.8 (2013-09-09)

  • fixes #22
  • fixes #17
  • check for CATKIN_ENABLE_TESTING
  • fixes #16
  • update email address
  • Contributors: Lukas Bulwahn, Vincent Rabaud

1.10.7 (2013-07-17)

1.10.6 (2013-03-01)

  • make sure conversion are applied for depth differences
  • Contributors: Vincent Rabaud

1.10.5 (2013-02-11)

1.10.4 (2013-02-02)

  • fix installation of the boost package
  • Contributors: Vincent Rabaud

1.10.3 (2013-01-17)

  • Link against PTYHON_LIBRARIES
  • Contributors: William Woodall

1.10.2 (2013-01-13)

  • use CATKIN_DEVEL_PREFIX instead of obsolete CATKIN_BUILD_PREFIX
  • Contributors: Dirk Thomas

1.10.1 (2013-01-10)

  • add licenses
  • fixes #5 by removing the logic from Python and using wrapped C++ and adding a test for it
  • fix a bug discovered when running the opencv_tests
  • use some C++ logic
  • add a Boost Python module to have the C++ logix used directly in Python
  • Contributors: Vincent Rabaud

1.10.0 (2013-01-03)

  • add conversion from Bayer to gray
  • Contributors: Vincent Rabaud

1.9.15 (2013-01-02)

  • use the reverted isColor behavior
  • Contributors: Vincent Rabaud

1.9.14 (2012-12-30)

1.9.13 (2012-12-15)

  • use the catkin macros for the setup.py
  • fix #3
  • Contributors: Vincent Rabaud

1.9.12 (2012-12-14)

  • buildtool_depend catkin fix
  • CMakeLists.txt clean up.
  • Contributors: William Woodall

1.9.11 (2012-12-10)

  • fix issue #1
  • Cleanup of package.xml
  • Contributors: Vincent Rabaud, William Woodall

1.9.10 (2012-10-04)

  • fix the bad include folder
  • Contributors: Vincent Rabaud

1.9.9 (2012-10-01)

  • fix dependencies
  • Contributors: Vincent Rabaud

1.9.8 (2012-09-30)

  • fix some dependencies
  • add rosconsole as a dependency
  • fix missing Python at install and fix some dependencies
  • Contributors: Vincent Rabaud

1.9.7 (2012-09-28 21:07)

  • add missing stuff
  • make sure we find catkin
  • Contributors: Vincent Rabaud

1.9.6 (2012-09-28 15:17)

  • move the test to where it belongs
  • fix the tests and the API to not handle conversion from CV_TYPE to Color type (does not make sense)
  • comply to the new Catkin API
  • backport the YUV422 bug fix from Fuerte
  • apply patch from https://code.ros.org/trac/ros-pkg/ticket/5556
  • Contributors: Vincent Rabaud

1.9.5 (2012-09-15)

  • remove dependencies to the opencv2 ROS package
  • Contributors: Vincent Rabaud

1.9.4 (2012-09-13)

  • make sure the include folders are copied to the right place
  • Contributors: Vincent Rabaud

1.9.3 (2012-09-12)

1.9.2 (2012-09-07)

  • be more compliant to the latest catkin
  • added catkin_project() to cv_bridge, image_geometry, and opencv_tests
  • Contributors: Jonathan Binney, Vincent Rabaud

1.9.1 (2012-08-28 22:06)

  • remove things that were marked as ROS_DEPRECATED
  • Contributors: Vincent Rabaud

1.9.0 (2012-08-28 14:29)

  • catkinized opencv_tests by Jon Binney
  • catkinized cv_bridge package... others disable for now by Jon Binney
  • remove the version check, let's trust OpenCV :)
  • revert the removal of opencv2
  • vision_opencv: Export OpenCV flags in manifests for image_geometry, cv_bridge.
  • finally get rid of opencv2 as it is a system dependency now
  • bump REQUIRED version of OpenCV to 2.3.2, which is what's in ros-fuerte-opencv
  • switch rosdep name to opencv2, to refer to ros-fuerte-opencv2
  • added missing header
  • Added constructor to CvImage to make converting a cv::Mat to sensor_msgs::Image less verbose.
  • cv_bridge: Added unit test for #5206
  • cv_bridge: Applied patch from mdesnoyer to fix handling of non-continuous OpenCV images. #5206
  • Adding opencv2 to all manifests, so that client packages may not break when using them.
  • baking in opencv debs and attempting a pre-release
  • cv_bridge: Support for new 16-bit encodings.
  • cv_bridge: Deprecate old C++ cv_bridge API.
  • cv_bridge: Correctly scale for MONO8 <-> MONO16 conversions.
  • cv_bridge: Fixed issue where pointer version to toCvCopy would ignore the requested encoding (http://answers.ros.org/question/258/converting-kinect-rgb-image-to-opencv-gives-wrong).
  • fixed doc build by taking a static snapshot
  • cv_bridge: Marking doc reviewed.
  • cv_bridge: Tweaks to make docs look better.
  • cv_bridge: Added cvtColor(). License notices. Documented that CvBridge class is obsolete.
  • cv_bridge: Added redesigned C++ cv_bridge.
  • Doc cleanup
  • Trigger doc rebuild
  • mono16 -> bgr conversion tested and fixed in C
  • Added Ubuntu platform tags to manifest
  • Handle mono16 properly
  • Raise exception when imgMsgToCv() gets an image encoding it does not recognise, #3489
  • Remove use of deprecated rosbuild macros
  • Fixed example
  • cv_bridge split from opencv2
  • Contributors: Vincent Rabaud, ethanrublee, gerkey, jamesb, mihelich, vrabaud, wheeler

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Dependant Packages

Name Deps
ainstein_radar_tools
apriltag_ros
aruco
aruco_ros
laser
pico_driver
depth_odometry
interest_point
lk_optical_flow
localization_measurements
localization_node
marker_tracking
astrobee_gazebo
basler_tof
image_cb_detector
laser_cb_detector
generic_throttle
cob_map_accessibility_analysis
cob_image_flip
cob_object_detection_visualizer
cob_vision_utils
ipa_3d_fov_visualization
costmap_converter
camera_throttle
cras_bag_tools
criutils
cv_camera
depthai_bridge
depthai_examples
depthai_filters
depthai_ros_driver
ensenso_camera
smach_viewer
fetch_depth_layer
aruco_detect
fiducial_slam
stag_detect
find_object_2d
gazebo_plugins
grid_map_cv
grid_map_demos
grid_map_ros
hector_compressed_map_transport
hfl_driver
ifm3d_ros_driver
ifm3d_core
camera_calibration
depth_image_proc
image_proc
image_publisher
image_rotate
image_view
stereo_image_proc
compressed_depth_image_transport
compressed_image_transport
theora_image_transport
imagezero_image_transport
imagezero_ros
drone_wrapper
tello_driver
libcmt
opt_camera
image_view2
jsk_rosbag_tools
jsk_tools
posedetection_msgs
audio_to_spectrogram
checkerboard_detector
depth_image_publisher
imagesift
jsk_pcl_ros
jsk_pcl_ros_utils
jsk_perception
jsk_recognition_utils
resized_image_transport
jsk_rqt_plugins
jsk_rviz_plugins
hri
mapviz
mapviz_plugins
multires_image
swri_geometry_util
swri_image_util
swri_opencv_util
swri_transform_util
moveit_ros_perception
lensfun_metadata_extractor
multi_object_tracking_lidar
multisense_lib
multisense_ros
naoqi_driver
nerian_stereo
ov_core
ov_init
ov_msckf
opencv_apps
pcdfilter_pa
face_detector
point_cloud_color
pose_cov_ops
pr2_gazebo_plugins
robot_calibration
rqt_image_view
rtabmap
rtabmap_conversions
rtabmap_odom
rtabmap_slam
rtabmap_sync
rtabmap_util
rtabmap_viz
rviz_animated_view_controller
sciurus17_examples
sciurus17_vision
sm_ridgeback_barrel_search_1
sm_ridgeback_barrel_search_2
stag_ros
tuw_geometry
tuw_multi_robot_router
tuw_voronoi_graph
usb_cam
usb_cam_controllers
velo2cam_calibration
video_stream_opencv
opencv_tests
vision_opencv
visp_ros
zbar_ros
aruco_opencv
mrpt_apps
mrpt_libapps
mrpt_libbase
mrpt_libgui
mrpt_libhwdrivers
mrpt_libmaps
mrpt_libmath
mrpt_libnav
mrpt_libobs
mrpt_libopengl
mrpt_libposes
mrpt_libros_bridge
mrpt_libslam
mrpt_libtclap
python_mrpt
adi_3dtof_adtf31xx
adi_3dtof_image_stitching
cam2lidar
clpe_ros
cmvision
cob_fiducials
darknet_ros
depth_obstacle_detect_ros
dnn_detect
gnss_info
hri_rviz
ipcamera_driver
l3cam_ros
leo_example_line_follower
leo_example_object_detection
mlx90640_thermal_camera
moveit_calibration_gui
nicla_vision_ros
pyhri
quori_face
sick_safevisionary_driver
sick_visionary_ros

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cv_bridge at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 3.1.3
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-perception/vision_opencv.git
VCS Type git
VCS Version galactic
Last Updated 2022-10-15
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

This contains CvBridge, which converts between ROS2 Image messages and OpenCV images.

Additional Links

Maintainers

  • Kenji Brameld

Authors

  • Patrick Mihelich
  • James Bowman
  • Ethan Gao

cv_bridge

Introduction

cv_bridge converts between ROS 2 image messages and OpenCV image representation for perception applications. As follows:

cv_bridge overview

This ros2 branch initially derives from porting on the basis of ros kinetic branch

Installation

Firstly, it assumes that the ROS 2 core has already been installed, please refer to ROS 2 installation to get started.

Install dependencies

OpenCV3+ is a must to install, please refer to the official installation guide from OpenCV Tutorials Since ROS 2 uses Python 3, please make sure that python3-numpy is installed, or install like this:


sudo apt install python3-numpy


The cv_bridge python backend still has a dependency on python boost (equal or higher than 1.58.0), and install them as follows in Ubuntu:


sudo apt install libboost-python-dev


Build and Test

Fetch the latest code and build


cd <YOUR_ROS2_WORKSPACE>/src
git clone https://github.com/ros-perception/vision_opencv.git -b ros2
cd ..
colcon build --symlink-install


Run the tests

Python tests have a dependency on OpenCV Python support. To install it:


sudo apt install python3-opencv


Next to prepare runtime environment and run tests:


source <YOUR_ROS2_WORKSPACE>/install/local_setup.bash
colcon test


Known issues

  • boost endian: remove boost endian APIs with standard C++ 11 or higher instead
  • Not tested with Windows or macOS environments so there may be issues building or running
CHANGELOG

Changelog for package cv_bridge

3.1.3 (2022-10-15)

  • Add message to print out Boost_VERSION_STRING, and apply with CMP0093
  • Fix RHEL buildfailure with Boost 1.66.0
  • Contributors: Kenji Brameld

3.1.2 (2022-09-21)

  • Fix windows build when Boost 1.67 or newer (#489)
  • Contributors: Kenji Brameld

3.1.1 (2022-09-17)

  • Revert API breakages
  • Contributors: Kenji Brameld

3.1.0 (2022-09-14)

  • Add apache license and bsd license, because both are used. (#482)
  • Fix 16U encoding type (#462)
  • Reorganize author tag (#468)
  • Update maintainers (#451)
  • Fix ModuleNotFoundError: No module named 'cv_bridge' error (#444)
  • Update README.md (#252)
  • Make python3-opencv from test_depend to depend tag in package.xml (#439)
  • Contributors: Daisuke Nishimatsu, Kenji Brameld, RachelRen05

3.0.3 (2022-04-01)

  • Add missing dependency on rcpputils (#427)
  • Contributors: Shane Loretz

3.0.2 (2022-01-27)

  • Minor cleanups to the ROS 2 branch (#418)
  • Find Python3 if not on Android (#423)
  • Forward ports from noetic (#420)
    • Add header arg to cv2_to_imgmsg (#326)
    • prevent conversion of single channel 16bit integer images to/from colour (#412)
  • Contributors: Chris Lalancette, Christian Rauch, Michael Carroll, Naoya Yamaguchi, Shane Loretz

3.0.1 (2022-01-25)

  • Use Boost::python3 if Boost < 1.67 (#422)
  • Use Boost::pythonXY target (#421)
  • Contributors: Shane Loretz

3.0.0 (2022-01-19)

  • Export Modern CMake targets and install includes to another folder(#419)
  • Handle padded img msg in Python (#400)
  • Remove boost endian (#399)
  • Add conversions from YUV422 YUY2 (#396)
  • fix endianness comparison (#397)
  • Export sensor_msgs dependency (#392)
  • Fix multiple undefined references (#370)
  • Updated [cv_bridge.dll]{.title-ref} install location. (#356)
  • Contributors: Homalozoa X, Jacob Perron, Patrick Musau, Sean Yen, Shane Loretz

2.2.1 (2020-07-16)

  • Align module.hpp with noetic (#342)
  • Contributors: Michael Carroll

2.2.0 (2020-05-27)

  • Disable portable image tests (#337)
  • use more specific boost rosdep keys (#319)
  • add opencv4 into the dependency list for ROS2 (#324)
  • Corrected the typo of Boost_INCLUDE_DIRS (#315)
  • use target include directories (#313)
  • Contributors: Karsten Knese, Lewis Liu, Michael Carroll, Mikael Arguedas, Sean Yen

2.1.3 (2019-10-23)

  • populate array.array directly instead of converting to and from a string (#305)
  • include Boost to fix Windows build (#290)
  • Export interfaces for Win32 Shared Lib (#301)
  • Contributors: Dirk Thomas, Jonathan Noyola, Sean Yen

2.1.2 (2019-05-30)

  • Suppress Boost Python warning. (#279)
  • silence unused return value warnings (#276)
  • Contributors: Karsten Knese, Michael Carroll

2.1.1 (2019-04-26)

  • Replace ament commands with colcon (#263) Latest ros2 repo does not include ament_tools. Executing ament command results in error.
  • Contributors: Lalit Begani

2.1.0 (2018-11-26)

  • find boost_python on boost 1.58 (<1.65) (#246)
  • Contributors: Mikael Arguedas

2.0.5 (2018-08-17)

  • remove redundant ament_auto_lint dependency to release package
  • fix test_encode_decode_cv2_compressed runtime error with JPEG2000
  • change python3-numpy as build and execution dependency to fix building error while releasing package
  • Contributor: Ethan Gao

2.0.4 (2018-08-14)

  • Add libopencv-dev as dependency of cv_bridge
  • Replace assert_equal with assert to remove dependency to nose package
  • Contributor: Ethan Gao

2.0.3 (2018-08-07)

  • fix the build warning with colcon building
  • optimize buffer type of imgmsg_to_cv2()
  • add python3_opencv and python3_numpy as dependency
  • uncrustify 0.67 coding style alignment
  • Contributors: Mikael Arguedas, Lars Berscheid, Ethan Gao

2.0.2 (2018-06-29)

  • fix rosdep keys issue of opencv3

2.0.1 (2018-06-28)

2.0.0 (2018-06-06)

  • Port cv_bridge to ros2
  • Remove the old inherent boost files
  • Replace boost code with newer C++ standard higher than C++11
  • Add a new readme
  • Adapt message definition like sensor_msg/Image etc in ROS2
  • Coding style alignment with ROS2 using cppcheck/cpplint and python flake8/pep257
  • Enable all the C++/Python unit test with gtest and unittest with ament tools
  • Contributors: Ethan Gao

1.12.7 (2017-11-12)

1.12.6 (2017-11-11)

  • fix endianness issues
  • Contributors: Vincent Rabaud

1.12.5 (2017-11-05)

  • add version_gte for opencv3 \@vrabaud If you'll update opencv3 version as discussed in https://discourse.ros.org/t/opencv-3-3/2674/4, I think we'd better to add 'version_gte' tag so that apt-get install ros-kinetic-cv-bridge also pulls openv3.3 from repository, to avoid API breaking issue between opencv2 and opencv3.
  • Simplify the dependency components of cv_bridge Fixes #183
  • Fixes #177 The Python bridge was wrong on OpenCV2 with mono8 (and any Mat with only two dimensions btw). Took the official Python bridge from OpenCV.
  • Add missing test file This fixes #171
  • Properly deal with alpha in image compression. That fixes #169
  • Silence warnings about un-used variables
  • export OpenCV variables
  • Contributors: Kei Okada, Victor Lamoine, Vincent Rabaud

1.12.4 (2017-01-29)

  • properly find Boost Python 2 or 3 This fixes #158
  • Contributors: Vincent Rabaud

1.12.3 (2016-12-04)

1.12.2 (2016-09-24)

  • Specify background label when colorizing label image
  • Adjust to arbitrary image channels like 32FC40 Proper fix for #141
  • Remove unexpectedly included print statement
  • Contributors: Kentaro Wada, Vincent Rabaud

1.12.1 (2016-07-11)

  • split the conversion tests out of enumerants
  • support is_bigendian in Python Fixes #114 Also fixes mono16 test
  • Support compressed Images messages in python for indigo
    • Add cv2_to_comprssed_imgmsg: Convert from cv2 image to compressed image ros msg.
    • Add comprssed_imgmsg_to_cv2: Convert the compress message to a new image.
    • Add compressed image tests.

    - Add time to msgs (compressed and regular). add enumerants test for compressed image. merge the compressed tests with the regular ones. better comment explanation. I will squash this commit. Fix indentation fix typo mistage: from .imgmsg_to_compressed_cv2 to .compressed_imgmsg_to_cv2. remove cv2.CV_8UC1 remove rospy and time depndency. change from IMREAD_COLOR to IMREAD_ANYCOLOR.

    - keep the OpenCV error message. from: https://github.com/ros-perception/vision_opencv/pull/132#discussion_r66721013 add debug print for test. add case for 4 channels in test. remove 4 channels case from compressed test. add debug print for test. change typo of format. fix typo in format. change from dip to dib. change to IMREAD_ANYCOLOR as python code. (as it should). rename TIFF to tiff Sperate the tests one for regular images and one for compressed. update comment

  • Add CvtColorForDisplayOptions with new colormap param
  • fix doc jobs
  • Add python binding for cv_bridge::cvtColorForDisplay
  • Don't colorize float image as label image This is a bug and image whose encoding is other than 32SC1 should not be colorized. (currently, depth images with 32FC1 is also colorized.)
  • Fix compilation of cv_bridge with opencv3 and python3.
  • Contributors: Kentaro Wada, Maarten de Vries, Vincent Rabaud, talregev

1.12.0 (2016-03-18)

  • depend on OpenCV3 only
  • Contributors: Vincent Rabaud

1.11.12 (2016-03-10)

  • Fix my typo
  • Remove another eval Because [cvtype2_to_dtype_with_channels('8UCimport os; os.system("rm -rf /")')]{.title-ref} should never have a chance of happening.
  • Remove eval, and other fixes Also, extend from object, so as not to get a python 2.2-style class, and use the new-style raise statement
  • Contributors: Eric Wieser

1.11.11 (2016-01-31)

  • clean up the doc files
  • fix a few warnings in doc jobs
  • Contributors: Vincent Rabaud

1.11.10 (2016-01-16)

  • fix OpenCV3 build
  • Describe about converting label to bgr image in cvtColorForDisplay
  • Convert label to BGR image to display
  • Add test for rgb_colors.cpp
  • Add rgb_colors util
  • Update doc for converting to BGR in cvtColorForDisplay
  • Convert to BGR from any encoding
  • Refactor: sensor_msgs::image_encodings -> enc
  • Contributors: Kentaro Wada, Vincent Rabaud

1.11.9 (2015-11-29)

  • deal with endianness
  • add cvtColorForDisplay
  • Improved efficiency by using toCvShare instead of toCvCopy.
  • Add format enum for easy use and choose format.
  • fix compilation warnings
  • start to extend the cv_bridge with cvCompressedImage class, that will convert from cv::Mat opencv images to CompressedImage ros messages and vice versa
  • Contributors: Carlos Costa, Vincent Rabaud, talregev

1.11.8 (2015-07-15)

  • Simplify some OpenCV3 distinction
  • fix tests
  • fix test under OpenCV3
  • Remove Python for Android
  • Contributors: Gary Servin, Vincent Rabaud

1.11.7 (2014-12-14)

  • check that the type is indeed a Numpy one This is in response to #51
  • Contributors: Vincent Rabaud

1.11.6 (2014-11-16)

  • chnage the behavior when there is only one channel
  • cleanup tests
  • Contributors: Vincent Rabaud

1.11.5 (2014-09-21)

  • get code to work with OpenCV3 actually fixes #46 properly
  • Contributors: Vincent Rabaud

1.11.4 (2014-07-27)

  • Fix #42
  • Contributors: Libor Wagner

1.11.3 (2014-06-08)

  • Correct dependency from non-existent package to cv_bridge
  • Contributors: Isaac Isao Saito

1.11.2 (2014-04-28)

  • Add depend on python for cv_bridge
  • Contributors: Scott K Logan

1.11.1 (2014-04-16)

  • fixes #34
  • Contributors: Vincent Rabaud

1.11.0 (2014-02-15)

  • remove deprecated API and fixes #33
  • fix OpenCV dependencies
  • Contributors: Vincent Rabaud

1.10.15 (2014-02-07)

  • fix python 3 error at configure time
  • Contributors: Dirk Thomas

1.10.14 (2013-11-23 16:17)

  • update changelog
  • Find NumPy include directory
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.13 (2013-11-23 09:19)

  • fix compilation on older NumPy
  • Contributors: Vincent Rabaud

1.10.12 (2013-11-22)

  • bump changelog
  • Fixed issue with image message step size
  • fix crash for non char data
  • fix #26
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.11 (2013-10-23)

  • fix bad image check and improve it too
  • Contributors: Vincent Rabaud

1.10.10 (2013-10-19)

  • fixes #25
  • Contributors: Vincent Rabaud

1.10.9 (2013-10-07)

  • fixes #20
  • Contributors: Vincent Rabaud

1.10.8 (2013-09-09)

  • fixes #22
  • fixes #17
  • check for CATKIN_ENABLE_TESTING
  • fixes #16
  • update email address
  • Contributors: Lukas Bulwahn, Vincent Rabaud

1.10.7 (2013-07-17)

1.10.6 (2013-03-01)

  • make sure conversion are applied for depth differences
  • Contributors: Vincent Rabaud

1.10.5 (2013-02-11)

1.10.4 (2013-02-02)

  • fix installation of the boost package
  • Contributors: Vincent Rabaud

1.10.3 (2013-01-17)

  • Link against PTYHON_LIBRARIES
  • Contributors: William Woodall

1.10.2 (2013-01-13)

  • use CATKIN_DEVEL_PREFIX instead of obsolete CATKIN_BUILD_PREFIX
  • Contributors: Dirk Thomas

1.10.1 (2013-01-10)

  • add licenses
  • fixes #5 by removing the logic from Python and using wrapped C++ and adding a test for it
  • fix a bug discovered when running the opencv_tests
  • use some C++ logic
  • add a Boost Python module to have the C++ logix used directly in Python
  • Contributors: Vincent Rabaud

1.10.0 (2013-01-03)

  • add conversion from Bayer to gray
  • Contributors: Vincent Rabaud

1.9.15 (2013-01-02)

  • use the reverted isColor behavior
  • Contributors: Vincent Rabaud

1.9.14 (2012-12-30)

1.9.13 (2012-12-15)

  • use the catkin macros for the setup.py
  • fix #3
  • Contributors: Vincent Rabaud

1.9.12 (2012-12-14)

  • buildtool_depend catkin fix
  • CMakeLists.txt clean up.
  • Contributors: William Woodall

1.9.11 (2012-12-10)

  • fix issue #1
  • Cleanup of package.xml
  • Contributors: Vincent Rabaud, William Woodall

1.9.10 (2012-10-04)

  • fix the bad include folder
  • Contributors: Vincent Rabaud

1.9.9 (2012-10-01)

  • fix dependencies
  • Contributors: Vincent Rabaud

1.9.8 (2012-09-30)

  • fix some dependencies
  • add rosconsole as a dependency
  • fix missing Python at install and fix some dependencies
  • Contributors: Vincent Rabaud

1.9.7 (2012-09-28 21:07)

  • add missing stuff
  • make sure we find catkin
  • Contributors: Vincent Rabaud

1.9.6 (2012-09-28 15:17)

  • move the test to where it belongs
  • fix the tests and the API to not handle conversion from CV_TYPE to Color type (does not make sense)
  • comply to the new Catkin API
  • backport the YUV422 bug fix from Fuerte
  • apply patch from https://code.ros.org/trac/ros-pkg/ticket/5556
  • Contributors: Vincent Rabaud

1.9.5 (2012-09-15)

  • remove dependencies to the opencv2 ROS package
  • Contributors: Vincent Rabaud

1.9.4 (2012-09-13)

  • make sure the include folders are copied to the right place
  • Contributors: Vincent Rabaud

1.9.3 (2012-09-12)

1.9.2 (2012-09-07)

  • be more compliant to the latest catkin
  • added catkin_project() to cv_bridge, image_geometry, and opencv_tests
  • Contributors: Jonathan Binney, Vincent Rabaud

1.9.1 (2012-08-28 22:06)

  • remove things that were marked as ROS_DEPRECATED
  • Contributors: Vincent Rabaud

1.9.0 (2012-08-28 14:29)

  • catkinized opencv_tests by Jon Binney
  • catkinized cv_bridge package... others disable for now by Jon Binney
  • remove the version check, let's trust OpenCV :)
  • revert the removal of opencv2
  • vision_opencv: Export OpenCV flags in manifests for image_geometry, cv_bridge.
  • finally get rid of opencv2 as it is a system dependency now
  • bump REQUIRED version of OpenCV to 2.3.2, which is what's in ros-fuerte-opencv
  • switch rosdep name to opencv2, to refer to ros-fuerte-opencv2
  • added missing header
  • Added constructor to CvImage to make converting a cv::Mat to sensor_msgs::Image less verbose.
  • cv_bridge: Added unit test for #5206
  • cv_bridge: Applied patch from mdesnoyer to fix handling of non-continuous OpenCV images. #5206
  • Adding opencv2 to all manifests, so that client packages may not break when using them.
  • baking in opencv debs and attempting a pre-release
  • cv_bridge: Support for new 16-bit encodings.
  • cv_bridge: Deprecate old C++ cv_bridge API.
  • cv_bridge: Correctly scale for MONO8 <-> MONO16 conversions.
  • cv_bridge: Fixed issue where pointer version to toCvCopy would ignore the requested encoding (http://answers.ros.org/question/258/converting-kinect-rgb-image-to-opencv-gives-wrong).
  • fixed doc build by taking a static snapshot
  • cv_bridge: Marking doc reviewed.
  • cv_bridge: Tweaks to make docs look better.
  • cv_bridge: Added cvtColor(). License notices. Documented that CvBridge class is obsolete.
  • cv_bridge: Added redesigned C++ cv_bridge.
  • Doc cleanup
  • Trigger doc rebuild
  • mono16 -> bgr conversion tested and fixed in C
  • Added Ubuntu platform tags to manifest
  • Handle mono16 properly
  • Raise exception when imgMsgToCv() gets an image encoding it does not recognise, #3489
  • Remove use of deprecated rosbuild macros
  • Fixed example
  • cv_bridge split from opencv2
  • Contributors: Vincent Rabaud, ethanrublee, gerkey, jamesb, mihelich, vrabaud, wheeler

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cv_bridge at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 3.5.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-perception/vision_opencv.git
VCS Type git
VCS Version iron
Last Updated 2024-04-13
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

This contains CvBridge, which converts between ROS2 Image messages and OpenCV images.

Additional Links

Maintainers

  • Kenji Brameld

Authors

  • Patrick Mihelich
  • James Bowman
  • Ethan Gao

cv_bridge

Introduction

cv_bridge converts between ROS 2 image messages and OpenCV image representation for perception applications. As follows:

cv_bridge overview

This ros2 branch initially derives from porting on the basis of ros kinetic branch

Installation

Firstly, it assumes that the ROS 2 core has already been installed, please refer to ROS 2 installation to get started.

Install dependencies

OpenCV3+ is a must to install, please refer to the official installation guide from OpenCV Tutorials Since ROS 2 uses Python 3, please make sure that python3-numpy is installed, or install like this:


sudo apt install python3-numpy


The cv_bridge python backend still has a dependency on python boost (equal or higher than 1.58.0), and install them as follows in Ubuntu:


sudo apt install libboost-python-dev


Build and Test

Fetch the latest code and build


cd <YOUR_ROS2_WORKSPACE>/src
git clone https://github.com/ros-perception/vision_opencv.git -b ros2
cd ..
colcon build --symlink-install


Run the tests

Python tests have a dependency on OpenCV Python support. To install it:


sudo apt install python3-opencv


Next to prepare runtime environment and run tests:


source <YOUR_ROS2_WORKSPACE>/install/local_setup.bash
colcon test


Known issues

  • boost endian: remove boost endian APIs with standard C++ 11 or higher instead
  • Not tested with Windows or macOS environments so there may be issues building or running
CHANGELOG

Changelog for package cv_bridge

3.5.0 (2024-04-13)

  • Fixed converstion for 32FC1 (#514)
  • Allow users to override encoding string in ROSCvMatContainer (#505)
  • Ensure dynamic scaling works when given matrix with inf, -inf and nan values. (#498)
  • Add new CMake option CV_BRIDGE_DISABLE_PYTHON to cv_bridge to disable building Python support if desired (#494)
  • Contributors: Alejandro Hernández Cordero, Kenji Brameld, Lightech, Yadunund, ijnek

3.4.0 (2022-10-03)

3.3.1 (2022-09-21)

  • export rclcpp as dependency (#491)
  • silence dperecation warnings using boost macros (#478)
  • Contributors: Kenji Brameld

3.3.0 (2022-09-14)

  • Add apache license and bsd license, because both are used. (#479)
  • Remove opencv2.cpp and rename opencv3.cpp to opencv4.cpp (#480)
  • Deprecate .h files in favor of .hpp headers (#448)
  • Reorganize author tag (#460)
  • Add colormap argument to python wrapper (#452)
  • Fix 16U encoding type (#459)
  • Add type adapter for cv::Mat (#441)
  • Update maintainers (#451)
  • Fix ModuleNotFoundError: No module named 'cv_bridge' error (#444)
  • Make python3-opencv from test_depend to depend tag in package.xml (#439)
  • Contributors: Daisuke Nishimatsu, Kenji Brameld, Marcel Zeilinger, RachelRen05

3.0.3 (2022-04-01)

  • Add missing dependency on rcpputils (#427)
  • Contributors: Shane Loretz

3.0.2 (2022-01-27)

  • Minor cleanups to the ROS 2 branch (#418)
  • Find Python3 if not on Android (#423)
  • Forward ports from noetic (#420)
    • Add header arg to cv2_to_imgmsg (#326)
    • prevent conversion of single channel 16bit integer images to/from colour (#412)
  • Contributors: Chris Lalancette, Christian Rauch, Michael Carroll, Naoya Yamaguchi, Shane Loretz

3.0.1 (2022-01-25)

  • Use Boost::python3 if Boost < 1.67 (#422)
  • Use Boost::pythonXY target (#421)
  • Contributors: Shane Loretz

3.0.0 (2022-01-19)

  • Export Modern CMake targets and install includes to another folder(#419)
  • Handle padded img msg in Python (#400)
  • Remove boost endian (#399)
  • Add conversions from YUV422 YUY2 (#396)
  • fix endianness comparison (#397)
  • Export sensor_msgs dependency (#392)
  • Fix multiple undefined references (#370)
  • Updated [cv_bridge.dll]{.title-ref} install location. (#356)
  • Contributors: Homalozoa X, Jacob Perron, Patrick Musau, Sean Yen, Shane Loretz

2.2.1 (2020-07-16)

  • Align module.hpp with noetic (#342)
  • Contributors: Michael Carroll

2.2.0 (2020-05-27)

  • Disable portable image tests (#337)
  • use more specific boost rosdep keys (#319)
  • add opencv4 into the dependency list for ROS2 (#324)
  • Corrected the typo of Boost_INCLUDE_DIRS (#315)
  • use target include directories (#313)
  • Contributors: Karsten Knese, Lewis Liu, Michael Carroll, Mikael Arguedas, Sean Yen

2.1.3 (2019-10-23)

  • populate array.array directly instead of converting to and from a string (#305)
  • include Boost to fix Windows build (#290)
  • Export interfaces for Win32 Shared Lib (#301)
  • Contributors: Dirk Thomas, Jonathan Noyola, Sean Yen

2.1.2 (2019-05-30)

  • Suppress Boost Python warning. (#279)
  • silence unused return value warnings (#276)
  • Contributors: Karsten Knese, Michael Carroll

2.1.1 (2019-04-26)

  • Replace ament commands with colcon (#263) Latest ros2 repo does not include ament_tools. Executing ament command results in error.
  • Contributors: Lalit Begani

2.1.0 (2018-11-26)

  • find boost_python on boost 1.58 (<1.65) (#246)
  • Contributors: Mikael Arguedas

2.0.5 (2018-08-17)

  • remove redundant ament_auto_lint dependency to release package
  • fix test_encode_decode_cv2_compressed runtime error with JPEG2000
  • change python3-numpy as build and execution dependency to fix building error while releasing package
  • Contributor: Ethan Gao

2.0.4 (2018-08-14)

  • Add libopencv-dev as dependency of cv_bridge
  • Replace assert_equal with assert to remove dependency to nose package
  • Contributor: Ethan Gao

2.0.3 (2018-08-07)

  • fix the build warning with colcon building
  • optimize buffer type of imgmsg_to_cv2()
  • add python3_opencv and python3_numpy as dependency
  • uncrustify 0.67 coding style alignment
  • Contributors: Mikael Arguedas, Lars Berscheid, Ethan Gao

2.0.2 (2018-06-29)

  • fix rosdep keys issue of opencv3

2.0.1 (2018-06-28)

2.0.0 (2018-06-06)

  • Port cv_bridge to ros2
  • Remove the old inherent boost files
  • Replace boost code with newer C++ standard higher than C++11
  • Add a new readme
  • Adapt message definition like sensor_msg/Image etc in ROS2
  • Coding style alignment with ROS2 using cppcheck/cpplint and python flake8/pep257
  • Enable all the C++/Python unit test with gtest and unittest with ament tools
  • Contributors: Ethan Gao

1.12.7 (2017-11-12)

1.12.6 (2017-11-11)

  • fix endianness issues
  • Contributors: Vincent Rabaud

1.12.5 (2017-11-05)

  • add version_gte for opencv3 \@vrabaud If you'll update opencv3 version as discussed in https://discourse.ros.org/t/opencv-3-3/2674/4, I think we'd better to add 'version_gte' tag so that apt-get install ros-kinetic-cv-bridge also pulls openv3.3 from repository, to avoid API breaking issue between opencv2 and opencv3.
  • Simplify the dependency components of cv_bridge Fixes #183
  • Fixes #177 The Python bridge was wrong on OpenCV2 with mono8 (and any Mat with only two dimensions btw). Took the official Python bridge from OpenCV.
  • Add missing test file This fixes #171
  • Properly deal with alpha in image compression. That fixes #169
  • Silence warnings about un-used variables
  • export OpenCV variables
  • Contributors: Kei Okada, Victor Lamoine, Vincent Rabaud

1.12.4 (2017-01-29)

  • properly find Boost Python 2 or 3 This fixes #158
  • Contributors: Vincent Rabaud

1.12.3 (2016-12-04)

1.12.2 (2016-09-24)

  • Specify background label when colorizing label image
  • Adjust to arbitrary image channels like 32FC40 Proper fix for #141
  • Remove unexpectedly included print statement
  • Contributors: Kentaro Wada, Vincent Rabaud

1.12.1 (2016-07-11)

  • split the conversion tests out of enumerants
  • support is_bigendian in Python Fixes #114 Also fixes mono16 test
  • Support compressed Images messages in python for indigo
    • Add cv2_to_comprssed_imgmsg: Convert from cv2 image to compressed image ros msg.
    • Add comprssed_imgmsg_to_cv2: Convert the compress message to a new image.
    • Add compressed image tests.

    - Add time to msgs (compressed and regular). add enumerants test for compressed image. merge the compressed tests with the regular ones. better comment explanation. I will squash this commit. Fix indentation fix typo mistage: from .imgmsg_to_compressed_cv2 to .compressed_imgmsg_to_cv2. remove cv2.CV_8UC1 remove rospy and time depndency. change from IMREAD_COLOR to IMREAD_ANYCOLOR.

    - keep the OpenCV error message. from: https://github.com/ros-perception/vision_opencv/pull/132#discussion_r66721013 add debug print for test. add case for 4 channels in test. remove 4 channels case from compressed test. add debug print for test. change typo of format. fix typo in format. change from dip to dib. change to IMREAD_ANYCOLOR as python code. (as it should). rename TIFF to tiff Sperate the tests one for regular images and one for compressed. update comment

  • Add CvtColorForDisplayOptions with new colormap param
  • fix doc jobs
  • Add python binding for cv_bridge::cvtColorForDisplay
  • Don't colorize float image as label image This is a bug and image whose encoding is other than 32SC1 should not be colorized. (currently, depth images with 32FC1 is also colorized.)
  • Fix compilation of cv_bridge with opencv3 and python3.
  • Contributors: Kentaro Wada, Maarten de Vries, Vincent Rabaud, talregev

1.12.0 (2016-03-18)

  • depend on OpenCV3 only
  • Contributors: Vincent Rabaud

1.11.12 (2016-03-10)

  • Fix my typo
  • Remove another eval Because [cvtype2_to_dtype_with_channels('8UCimport os; os.system("rm -rf /")')]{.title-ref} should never have a chance of happening.
  • Remove eval, and other fixes Also, extend from object, so as not to get a python 2.2-style class, and use the new-style raise statement
  • Contributors: Eric Wieser

1.11.11 (2016-01-31)

  • clean up the doc files
  • fix a few warnings in doc jobs
  • Contributors: Vincent Rabaud

1.11.10 (2016-01-16)

  • fix OpenCV3 build
  • Describe about converting label to bgr image in cvtColorForDisplay
  • Convert label to BGR image to display
  • Add test for rgb_colors.cpp
  • Add rgb_colors util
  • Update doc for converting to BGR in cvtColorForDisplay
  • Convert to BGR from any encoding
  • Refactor: sensor_msgs::image_encodings -> enc
  • Contributors: Kentaro Wada, Vincent Rabaud

1.11.9 (2015-11-29)

  • deal with endianness
  • add cvtColorForDisplay
  • Improved efficiency by using toCvShare instead of toCvCopy.
  • Add format enum for easy use and choose format.
  • fix compilation warnings
  • start to extend the cv_bridge with cvCompressedImage class, that will convert from cv::Mat opencv images to CompressedImage ros messages and vice versa
  • Contributors: Carlos Costa, Vincent Rabaud, talregev

1.11.8 (2015-07-15)

  • Simplify some OpenCV3 distinction
  • fix tests
  • fix test under OpenCV3
  • Remove Python for Android
  • Contributors: Gary Servin, Vincent Rabaud

1.11.7 (2014-12-14)

  • check that the type is indeed a Numpy one This is in response to #51
  • Contributors: Vincent Rabaud

1.11.6 (2014-11-16)

  • chnage the behavior when there is only one channel
  • cleanup tests
  • Contributors: Vincent Rabaud

1.11.5 (2014-09-21)

  • get code to work with OpenCV3 actually fixes #46 properly
  • Contributors: Vincent Rabaud

1.11.4 (2014-07-27)

  • Fix #42
  • Contributors: Libor Wagner

1.11.3 (2014-06-08)

  • Correct dependency from non-existent package to cv_bridge
  • Contributors: Isaac Isao Saito

1.11.2 (2014-04-28)

  • Add depend on python for cv_bridge
  • Contributors: Scott K Logan

1.11.1 (2014-04-16)

  • fixes #34
  • Contributors: Vincent Rabaud

1.11.0 (2014-02-15)

  • remove deprecated API and fixes #33
  • fix OpenCV dependencies
  • Contributors: Vincent Rabaud

1.10.15 (2014-02-07)

  • fix python 3 error at configure time
  • Contributors: Dirk Thomas

1.10.14 (2013-11-23 16:17)

  • update changelog
  • Find NumPy include directory
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.13 (2013-11-23 09:19)

  • fix compilation on older NumPy
  • Contributors: Vincent Rabaud

1.10.12 (2013-11-22)

  • bump changelog
  • Fixed issue with image message step size
  • fix crash for non char data
  • fix #26
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.11 (2013-10-23)

  • fix bad image check and improve it too
  • Contributors: Vincent Rabaud

1.10.10 (2013-10-19)

  • fixes #25
  • Contributors: Vincent Rabaud

1.10.9 (2013-10-07)

  • fixes #20
  • Contributors: Vincent Rabaud

1.10.8 (2013-09-09)

  • fixes #22
  • fixes #17
  • check for CATKIN_ENABLE_TESTING
  • fixes #16
  • update email address
  • Contributors: Lukas Bulwahn, Vincent Rabaud

1.10.7 (2013-07-17)

1.10.6 (2013-03-01)

  • make sure conversion are applied for depth differences
  • Contributors: Vincent Rabaud

1.10.5 (2013-02-11)

1.10.4 (2013-02-02)

  • fix installation of the boost package
  • Contributors: Vincent Rabaud

1.10.3 (2013-01-17)

  • Link against PTYHON_LIBRARIES
  • Contributors: William Woodall

1.10.2 (2013-01-13)

  • use CATKIN_DEVEL_PREFIX instead of obsolete CATKIN_BUILD_PREFIX
  • Contributors: Dirk Thomas

1.10.1 (2013-01-10)

  • add licenses
  • fixes #5 by removing the logic from Python and using wrapped C++ and adding a test for it
  • fix a bug discovered when running the opencv_tests
  • use some C++ logic
  • add a Boost Python module to have the C++ logix used directly in Python
  • Contributors: Vincent Rabaud

1.10.0 (2013-01-03)

  • add conversion from Bayer to gray
  • Contributors: Vincent Rabaud

1.9.15 (2013-01-02)

  • use the reverted isColor behavior
  • Contributors: Vincent Rabaud

1.9.14 (2012-12-30)

1.9.13 (2012-12-15)

  • use the catkin macros for the setup.py
  • fix #3
  • Contributors: Vincent Rabaud

1.9.12 (2012-12-14)

  • buildtool_depend catkin fix
  • CMakeLists.txt clean up.
  • Contributors: William Woodall

1.9.11 (2012-12-10)

  • fix issue #1
  • Cleanup of package.xml
  • Contributors: Vincent Rabaud, William Woodall

1.9.10 (2012-10-04)

  • fix the bad include folder
  • Contributors: Vincent Rabaud

1.9.9 (2012-10-01)

  • fix dependencies
  • Contributors: Vincent Rabaud

1.9.8 (2012-09-30)

  • fix some dependencies
  • add rosconsole as a dependency
  • fix missing Python at install and fix some dependencies
  • Contributors: Vincent Rabaud

1.9.7 (2012-09-28 21:07)

  • add missing stuff
  • make sure we find catkin
  • Contributors: Vincent Rabaud

1.9.6 (2012-09-28 15:17)

  • move the test to where it belongs
  • fix the tests and the API to not handle conversion from CV_TYPE to Color type (does not make sense)
  • comply to the new Catkin API
  • backport the YUV422 bug fix from Fuerte
  • apply patch from https://code.ros.org/trac/ros-pkg/ticket/5556
  • Contributors: Vincent Rabaud

1.9.5 (2012-09-15)

  • remove dependencies to the opencv2 ROS package
  • Contributors: Vincent Rabaud

1.9.4 (2012-09-13)

  • make sure the include folders are copied to the right place
  • Contributors: Vincent Rabaud

1.9.3 (2012-09-12)

1.9.2 (2012-09-07)

  • be more compliant to the latest catkin
  • added catkin_project() to cv_bridge, image_geometry, and opencv_tests
  • Contributors: Jonathan Binney, Vincent Rabaud

1.9.1 (2012-08-28 22:06)

  • remove things that were marked as ROS_DEPRECATED
  • Contributors: Vincent Rabaud

1.9.0 (2012-08-28 14:29)

  • catkinized opencv_tests by Jon Binney
  • catkinized cv_bridge package... others disable for now by Jon Binney
  • remove the version check, let's trust OpenCV :)
  • revert the removal of opencv2
  • vision_opencv: Export OpenCV flags in manifests for image_geometry, cv_bridge.
  • finally get rid of opencv2 as it is a system dependency now
  • bump REQUIRED version of OpenCV to 2.3.2, which is what's in ros-fuerte-opencv
  • switch rosdep name to opencv2, to refer to ros-fuerte-opencv2
  • added missing header
  • Added constructor to CvImage to make converting a cv::Mat to sensor_msgs::Image less verbose.
  • cv_bridge: Added unit test for #5206
  • cv_bridge: Applied patch from mdesnoyer to fix handling of non-continuous OpenCV images. #5206
  • Adding opencv2 to all manifests, so that client packages may not break when using them.
  • baking in opencv debs and attempting a pre-release
  • cv_bridge: Support for new 16-bit encodings.
  • cv_bridge: Deprecate old C++ cv_bridge API.
  • cv_bridge: Correctly scale for MONO8 <-> MONO16 conversions.
  • cv_bridge: Fixed issue where pointer version to toCvCopy would ignore the requested encoding (http://answers.ros.org/question/258/converting-kinect-rgb-image-to-opencv-gives-wrong).
  • fixed doc build by taking a static snapshot
  • cv_bridge: Marking doc reviewed.
  • cv_bridge: Tweaks to make docs look better.
  • cv_bridge: Added cvtColor(). License notices. Documented that CvBridge class is obsolete.
  • cv_bridge: Added redesigned C++ cv_bridge.
  • Doc cleanup
  • Trigger doc rebuild
  • mono16 -> bgr conversion tested and fixed in C
  • Added Ubuntu platform tags to manifest
  • Handle mono16 properly
  • Raise exception when imgMsgToCv() gets an image encoding it does not recognise, #3489
  • Remove use of deprecated rosbuild macros
  • Fixed example
  • cv_bridge split from opencv2
  • Contributors: Vincent Rabaud, ethanrublee, gerkey, jamesb, mihelich, vrabaud, wheeler

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cv_bridge at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 1.13.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-perception/vision_opencv.git
VCS Type git
VCS Version melodic
Last Updated 2022-10-03
Dev Status MAINTAINED
CI status
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

This contains CvBridge, which converts between ROS Image messages and OpenCV images.

Additional Links

Maintainers

  • Vincent Rabaud

Authors

  • Patrick Mihelich
  • James Bowman
README
No README found. See repository README.
CHANGELOG

Changelog for package cv_bridge

1.13.1 (2022-10-03)

  • Fix endian mismatch issue per boostorg/python PR #218
  • Update CMakeLists.txt for Windows build environment (#265)
  • Remove path splash separator from 'package_dir' (#267)
  • Fix travis. (#269)
  • Contributors: Duan Yutong, James Xu, Kenji Brameld, Sean Yen

1.13.0 (2018-04-30)

  • Use rosdep OpenCV and not ROS one. We defintely don't need the whole OpenCV. We need to clean the rosdep keys.
  • Contributors: Vincent Rabaud

1.12.8 (2018-04-17)

  • Merge pull request #191 from patrickelectric/kinetic cv2_to_imgmsg: step must be int
  • cv2_to_imgmsg: step must be int Signed-off-by: Patrick José Pereira <<patrickelectric@gmail.com>>
  • Contributors: Patrick José Pereira, Vincent Rabaud

1.12.7 (2017-11-12)

1.12.6 (2017-11-11)

  • fix endianness issues
  • Contributors: Vincent Rabaud

1.12.5 (2017-11-05)

  • add version_gte for opencv3 \@vrabaud If you'll update opencv3 version as discussed in https://discourse.ros.org/t/opencv-3-3/2674/4, I think we'd better to add 'version_gte' tag so that apt-get install ros-kinetic-cv-bridge also pulls openv3.3 from repository, to avoid API breaking issue between opencv2 and opencv3.
  • Simplify the dependency components of cv_bridge Fixes #183
  • Fixes #177 The Python bridge was wrong on OpenCV2 with mono8 (and any Mat with only two dimensions btw). Took the official Python bridge from OpenCV.
  • Add missing test file This fixes #171
  • Properly deal with alpha in image compression. That fixes #169
  • Silence warnings about un-used variables
  • export OpenCV variables
  • Contributors: Kei Okada, Victor Lamoine, Vincent Rabaud

1.12.4 (2017-01-29)

  • properly find Boost Python 2 or 3 This fixes #158
  • Contributors: Vincent Rabaud

1.12.3 (2016-12-04)

1.12.2 (2016-09-24)

  • Specify background label when colorizing label image
  • Adjust to arbitrary image channels like 32FC40 Proper fix for #141
  • Remove unexpectedly included print statement
  • Contributors: Kentaro Wada, Vincent Rabaud

1.12.1 (2016-07-11)

  • split the conversion tests out of enumerants
  • support is_bigendian in Python Fixes #114 Also fixes mono16 test
  • Support compressed Images messages in python for indigo
    • Add cv2_to_comprssed_imgmsg: Convert from cv2 image to compressed image ros msg.
    • Add comprssed_imgmsg_to_cv2: Convert the compress message to a new image.
    • Add compressed image tests.

    - Add time to msgs (compressed and regular). add enumerants test for compressed image. merge the compressed tests with the regular ones. better comment explanation. I will squash this commit. Fix indentation fix typo mistage: from .imgmsg_to_compressed_cv2 to .compressed_imgmsg_to_cv2. remove cv2.CV_8UC1 remove rospy and time depndency. change from IMREAD_COLOR to IMREAD_ANYCOLOR.

    - keep the OpenCV error message. from: https://github.com/ros-perception/vision_opencv/pull/132#discussion_r66721013 add debug print for test. add case for 4 channels in test. remove 4 channels case from compressed test. add debug print for test. change typo of format. fix typo in format. change from dip to dib. change to IMREAD_ANYCOLOR as python code. (as it should). rename TIFF to tiff Sperate the tests one for regular images and one for compressed. update comment

  • Add CvtColorForDisplayOptions with new colormap param
  • fix doc jobs
  • Add python binding for cv_bridge::cvtColorForDisplay
  • Don't colorize float image as label image This is a bug and image whose encoding is other than 32SC1 should not be colorized. (currently, depth images with 32FC1 is also colorized.)
  • Fix compilation of cv_bridge with opencv3 and python3.
  • Contributors: Kentaro Wada, Maarten de Vries, Vincent Rabaud, talregev

1.12.0 (2016-03-18)

  • depend on OpenCV3 only
  • Contributors: Vincent Rabaud

1.11.12 (2016-03-10)

  • Fix my typo
  • Remove another eval Because [cvtype2_to_dtype_with_channels('8UCimport os; os.system("rm -rf /")')]{.title-ref} should never have a chance of happening.
  • Remove eval, and other fixes Also, extend from object, so as not to get a python 2.2-style class, and use the new-style raise statement
  • Contributors: Eric Wieser

1.11.11 (2016-01-31)

  • clean up the doc files
  • fix a few warnings in doc jobs
  • Contributors: Vincent Rabaud

1.11.10 (2016-01-16)

  • fix OpenCV3 build
  • Describe about converting label to bgr image in cvtColorForDisplay
  • Convert label to BGR image to display
  • Add test for rgb_colors.cpp
  • Add rgb_colors util
  • Update doc for converting to BGR in cvtColorForDisplay
  • Convert to BGR from any encoding
  • Refactor: sensor_msgs::image_encodings -> enc
  • Contributors: Kentaro Wada, Vincent Rabaud

1.11.9 (2015-11-29)

  • deal with endianness
  • add cvtColorForDisplay
  • Improved efficiency by using toCvShare instead of toCvCopy.
  • Add format enum for easy use and choose format.
  • fix compilation warnings
  • start to extend the cv_bridge with cvCompressedImage class, that will convert from cv::Mat opencv images to CompressedImage ros messages and vice versa
  • Contributors: Carlos Costa, Vincent Rabaud, talregev

1.11.8 (2015-07-15)

  • Simplify some OpenCV3 distinction
  • fix tests
  • fix test under OpenCV3
  • Remove Python for Android
  • Contributors: Gary Servin, Vincent Rabaud

1.11.7 (2014-12-14)

  • check that the type is indeed a Numpy one This is in response to #51
  • Contributors: Vincent Rabaud

1.11.6 (2014-11-16)

  • chnage the behavior when there is only one channel
  • cleanup tests
  • Contributors: Vincent Rabaud

1.11.5 (2014-09-21)

  • get code to work with OpenCV3 actually fixes #46 properly
  • Contributors: Vincent Rabaud

1.11.4 (2014-07-27)

  • Fix #42
  • Contributors: Libor Wagner

1.11.3 (2014-06-08)

  • Correct dependency from non-existent package to cv_bridge
  • Contributors: Isaac Isao Saito

1.11.2 (2014-04-28)

  • Add depend on python for cv_bridge
  • Contributors: Scott K Logan

1.11.1 (2014-04-16)

  • fixes #34
  • Contributors: Vincent Rabaud

1.11.0 (2014-02-15)

  • remove deprecated API and fixes #33
  • fix OpenCV dependencies
  • Contributors: Vincent Rabaud

1.10.15 (2014-02-07)

  • fix python 3 error at configure time
  • Contributors: Dirk Thomas

1.10.14 (2013-11-23 16:17)

  • update changelog
  • Find NumPy include directory
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.13 (2013-11-23 09:19)

  • fix compilation on older NumPy
  • Contributors: Vincent Rabaud

1.10.12 (2013-11-22)

  • bump changelog
  • Fixed issue with image message step size
  • fix crash for non char data
  • fix #26
  • Contributors: Brian Jensen, Vincent Rabaud

1.10.11 (2013-10-23)

  • fix bad image check and improve it too
  • Contributors: Vincent Rabaud

1.10.10 (2013-10-19)

  • fixes #25
  • Contributors: Vincent Rabaud

1.10.9 (2013-10-07)

  • fixes #20
  • Contributors: Vincent Rabaud

1.10.8 (2013-09-09)

  • fixes #22
  • fixes #17
  • check for CATKIN_ENABLE_TESTING
  • fixes #16
  • update email address
  • Contributors: Lukas Bulwahn, Vincent Rabaud

1.10.7 (2013-07-17)

1.10.6 (2013-03-01)

  • make sure conversion are applied for depth differences
  • Contributors: Vincent Rabaud

1.10.5 (2013-02-11)

1.10.4 (2013-02-02)

  • fix installation of the boost package
  • Contributors: Vincent Rabaud

1.10.3 (2013-01-17)

  • Link against PTYHON_LIBRARIES
  • Contributors: William Woodall

1.10.2 (2013-01-13)

  • use CATKIN_DEVEL_PREFIX instead of obsolete CATKIN_BUILD_PREFIX
  • Contributors: Dirk Thomas

1.10.1 (2013-01-10)

  • add licenses
  • fixes #5 by removing the logic from Python and using wrapped C++ and adding a test for it
  • fix a bug discovered when running the opencv_tests
  • use some C++ logic
  • add a Boost Python module to have the C++ logix used directly in Python
  • Contributors: Vincent Rabaud

1.10.0 (2013-01-03)

  • add conversion from Bayer to gray
  • Contributors: Vincent Rabaud

1.9.15 (2013-01-02)

  • use the reverted isColor behavior
  • Contributors: Vincent Rabaud

1.9.14 (2012-12-30)

1.9.13 (2012-12-15)

  • use the catkin macros for the setup.py
  • fix #3
  • Contributors: Vincent Rabaud

1.9.12 (2012-12-14)

  • buildtool_depend catkin fix
  • CMakeLists.txt clean up.
  • Contributors: William Woodall

1.9.11 (2012-12-10)

  • fix issue #1
  • Cleanup of package.xml
  • Contributors: Vincent Rabaud, William Woodall

1.9.10 (2012-10-04)

  • fix the bad include folder
  • Contributors: Vincent Rabaud

1.9.9 (2012-10-01)

  • fix dependencies
  • Contributors: Vincent Rabaud

1.9.8 (2012-09-30)

  • fix some dependencies
  • add rosconsole as a dependency
  • fix missing Python at install and fix some dependencies
  • Contributors: Vincent Rabaud

1.9.7 (2012-09-28 21:07)

  • add missing stuff
  • make sure we find catkin
  • Contributors: Vincent Rabaud

1.9.6 (2012-09-28 15:17)

  • move the test to where it belongs
  • fix the tests and the API to not handle conversion from CV_TYPE to Color type (does not make sense)
  • comply to the new Catkin API
  • backport the YUV422 bug fix from Fuerte
  • apply patch from https://code.ros.org/trac/ros-pkg/ticket/5556
  • Contributors: Vincent Rabaud

1.9.5 (2012-09-15)

  • remove dependencies to the opencv2 ROS package
  • Contributors: Vincent Rabaud

1.9.4 (2012-09-13)

  • make sure the include folders are copied to the right place
  • Contributors: Vincent Rabaud

1.9.3 (2012-09-12)

1.9.2 (2012-09-07)

  • be more compliant to the latest catkin
  • added catkin_project() to cv_bridge, image_geometry, and opencv_tests
  • Contributors: Jonathan Binney, Vincent Rabaud

1.9.1 (2012-08-28 22:06)

  • remove things that were marked as ROS_DEPRECATED
  • Contributors: Vincent Rabaud

1.9.0 (2012-08-28 14:29)

  • catkinized opencv_tests by Jon Binney
  • catkinized cv_bridge package... others disable for now by Jon Binney
  • remove the version check, let's trust OpenCV :)
  • revert the removal of opencv2
  • vision_opencv: Export OpenCV flags in manifests for image_geometry, cv_bridge.
  • finally get rid of opencv2 as it is a system dependency now
  • bump REQUIRED version of OpenCV to 2.3.2, which is what's in ros-fuerte-opencv
  • switch rosdep name to opencv2, to refer to ros-fuerte-opencv2
  • added missing header
  • Added constructor to CvImage to make converting a cv::Mat to sensor_msgs::Image less verbose.
  • cv_bridge: Added unit test for #5206
  • cv_bridge: Applied patch from mdesnoyer to fix handling of non-continuous OpenCV images. #5206
  • Adding opencv2 to all manifests, so that client packages may not break when using them.
  • baking in opencv debs and attempting a pre-release
  • cv_bridge: Support for new 16-bit encodings.
  • cv_bridge: Deprecate old C++ cv_bridge API.
  • cv_bridge: Correctly scale for MONO8 <-> MONO16 conversions.
  • cv_bridge: Fixed issue where pointer version to toCvCopy would ignore the requested encoding (http://answers.ros.org/question/258/converting-kinect-rgb-image-to-opencv-gives-wrong).
  • fixed doc build by taking a static snapshot
  • cv_bridge: Marking doc reviewed.
  • cv_bridge: Tweaks to make docs look better.
  • cv_bridge: Added cvtColor(). License notices. Documented that CvBridge class is obsolete.
  • cv_bridge: Added redesigned C++ cv_bridge.
  • Doc cleanup
  • Trigger doc rebuild
  • mono16 -> bgr conversion tested and fixed in C
  • Added Ubuntu platform tags to manifest
  • Handle mono16 properly
  • Raise exception when imgMsgToCv() gets an image encoding it does not recognise, #3489
  • Remove use of deprecated rosbuild macros
  • Fixed example
  • cv_bridge split from opencv2
  • Contributors: Vincent Rabaud, ethanrublee, gerkey, jamesb, mihelich, vrabaud, wheeler

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Dependant Packages

Name Deps
ainstein_radar_tools
apriltag_ros
ar_track_alvar
aruco
aruco_ros
asr_aruco_marker_recognition
laser
pico_driver
depth_odometry
interest_point
lk_optical_flow
localization_measurements
localization_node
marker_tracking
astrobee_gazebo
basler_tof
image_cb_detector
laser_cb_detector
cis_camera
aruco_pose
clover
generic_throttle
cob_map_accessibility_analysis
cob_image_flip
cob_object_detection_visualizer
cob_vision_utils
ipa_3d_fov_visualization
points_preprocessor
costmap_converter
camera_throttle
cras_bag_tools
criutils
cv_camera
depthcloud_encoder
ensenso_camera
smach_viewer
edrone_client
fetch_depth_layer
aruco_detect
fiducial_slam
find_object_2d
flir_boson_usb
gazebo_plugins
graph_rviz_plugin
grid_map_cv
grid_map_demos
grid_map_ros
gscam
hector_compressed_map_transport
hfl_driver
hrpsys
ifm3d_ros_driver
ifm3d_core
camera_calibration
depth_image_proc
image_proc
image_publisher
image_rotate
image_view
stereo_image_proc
compressed_depth_image_transport
compressed_image_transport
theora_image_transport
imagezero_image_transport
imagezero_ros
jderobot_color_tuner
libcmt
opt_camera
image_view2
jsk_rosbag_tools
jsk_tools
posedetection_msgs
audio_to_spectrogram
checkerboard_detector
depth_image_publisher
imagesift
jsk_pcl_ros
jsk_pcl_ros_utils
jsk_perception
jsk_recognition_utils
resized_image_transport
jsk_rqt_plugins
jsk_rviz_plugins
hri
mapviz
mapviz_plugins
multires_image
swri_geometry_util
swri_image_util
swri_opencv_util
swri_transform_util
moveit_ros_perception
lensfun_metadata_extractor
multi_object_tracking_lidar
multisense_lib
multisense_ros
naoqi_driver
nerian_stereo
ov_core
ov_init
ov_msckf
opencv_apps
orb_slam2_ros
pcdfilter_pa
face_detector
ping360_sonar
point_cloud_color
pose_cov_ops
pr2_gazebo_plugins
robot_calibration
rotors_gazebo_plugins
rqt_bag_exporter
rqt_image_view
rtabmap
rtabmap_ros
rviz_animated_view_controller
sciurus17_examples
sciurus17_vision
seek_thermal
sm_ridgeback_barrel_search_1
sm_ridgeback_barrel_search_2
stag_ros
turtlebot3_autorace_camera
turtlebot3_autorace_detect
tuw_geometry
tuw_aruco
tuw_checkerboard
tuw_ellipses
tuw_marker_pose_estimation
tuw_multi_robot_router
tuw_voronoi_graph
usb_cam
usb_cam_controllers
velo2cam_calibration
video_stream_opencv
opencv_tests
opencv_tests
vision_opencv
vision_opencv
visp_ros
webrtc_ros
zbar_ros

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cv_bridge at Robotics Stack Exchange