Commit 653e6fda authored by Inès EL HADRI's avatar Inès EL HADRI 💤

Fix cam_vision crash

parent 44f8c25a
...@@ -52,6 +52,9 @@ class CameraVision(CameraDriver): ...@@ -52,6 +52,9 @@ class CameraVision(CameraDriver):
self._kernel = np.ones((5, 5), np.uint8) self._kernel = np.ones((5, 5), np.uint8)
self._color_info = (0, 0, 255) self._color_info = (0, 0, 255)
self._rgb_detection = None
self._mask_detection = None
# Initialize a ROS2 Image to CV2 image converter # Initialize a ROS2 Image to CV2 image converter
self._bridge = CvBridge() self._bridge = CvBridge()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment