def ImgCcallback(self, ros_img):
global imgi
imgi = mx.img.imdecode(ros_img.data)
global img_rect
global img_raw
global Frame
img_rect = CvBridge().compressed_imgmsg_to_cv2(ros_img)
# img_raw = img_rect.copy()
Frame = pv.Image(img_rect.copy())
# cv2.imshow("tester", Frame.asOpenCV())
# def Imgcallback(self, ros_img):
# global img_rect
# img_rect = CvBridge().imgmsg_to_cv2(ros_img)
评论列表
文章目录