Skip to content

Commit

Permalink
Added rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephSaliba01 committed May 12, 2024
1 parent 470610f commit c877e3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions camera_data/src/camera_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def webcam_publisher():
ret, frame = cap.read()
if ret:
# Convert the frame to ROS format
frame = cv2.rotate(frame, cv2.ROTATE_180)
ros_image = bridge.cv2_to_imgmsg(frame, "bgr8")
# Publish the frame
pub.publish(ros_image)
Expand Down

0 comments on commit c877e3f

Please sign in to comment.