Skip to content
Snippets Groups Projects
Commit de39578f authored by Your Name's avatar Your Name
Browse files

Video code parts

parent 4d97668f
No related branches found
No related tags found
No related merge requests found
import cv2
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
# Initbe:
self.image_sub = rospy.Subscriber("/tello/camera/image_raw",Image,self.image_handler_callback)
# Kép megjelenítés és billentyű példa:
def image_handler_callback(self,tello_image):
try:
cv_image = self.bridge.imgmsg_to_cv2(tello_image, "bgr8")
except CvBridgeError as e:
print(e)
cv2.imshow('frame', cv_image)
cv_key = cv2.waitKey(10)
key=chr(cv_key) if cv_key != -1 else False
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment