def right_color_detection(self, data):
""" Callback to detect r, g, and b values in the image """
try:
self.right_image = self.bridge.imgmsg_to_cv2(data, "bgr8")
except CvBridgeError as excep:
print excep
for processor in self.processors:
if processor.side&self.RIGHT == self.RIGHT:
processor.process_image(self.right_image, data.header, 'right')
评论列表
文章目录