# 需要导入模块: from cv_bridge import CvBridge [as 别名]# 或者: from cv_bridge.CvBridge importcv2_to_compressed_imgmsg[as 别名]deftest_encode_decode_cv2_compressed(self):importnumpyasnp# from: http://docs.opencv.org/2.4/modules/highgui/doc/reading_and_writing_images_and_video.html#Mat i...