Extract last 2 frames from camera
Hello,
How do I extract multiple frames from a video streaming using ROS ?
I subscribed to my camera topic :
self.image_sub = rospy.Subscriber('/bebop2/image_raw',Image, self.image_callback)
And then :
frame = self.bridge.imgmsg_to_cv2(msg,desired_encoding='bgr8')
This way I have the actual frame from my streaming. How can I store N frames (the actual and previous ones) ?