Browse Source

Fixed syntax issue.

noetic
Alan G. Sanchez 2 years ago
parent
commit
0017bc82e6
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/capture_image.py
  2. +1
    -1
      src/edge_detection.py

+ 1
- 1
src/capture_image.py View File

@ -42,7 +42,7 @@ class CaptureImage:
# Try to convert the ROS image message to a cv2 Image
try:
image = self.bridge.imgmsg_to_cv2(msg, 'bgr8')
except CvBridgeError, e:
except CvBridgeError as e:
rospy.logwarn('CV Bridge error: {0}'.format(e))
# Define the file name

+ 1
- 1
src/edge_detection.py View File

@ -55,7 +55,7 @@ class EdgeDetection:
# Try to convert the ROS image message to a CV2 Image
try:
image = self.bridge.imgmsg_to_cv2(msg, 'bgr8')
except CvBridgeError, e:
except CvBridgeError as e:
rospy.logwarn('CV Bridge error: {0}'.format(e))
# Apply the Canny Edge filter function to the transformed CV2 Image

Loading…
Cancel
Save