[Solved] TypeError: Conversion is only valid for arrays with 1 or 2 dimensions. Argument has 3 dimensions......
In file "/var/kalibr-build/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ImageDatasetReader.py
Modify:
img_data = np.array(self.CVB.imgmsg_to_cv(data))
To:
img_data = np.squeeze(np.array(self.CVB.imgmsg_to_cv2(data, "mono8")))
Reference:
[1] https://github.com/ethz-asl/kalibr/issues
Modify:
img_data = np.array(self.CVB.imgmsg_to_cv(data))
To:
img_data = np.squeeze(np.array(self.CVB.imgmsg_to_cv2(data, "mono8")))
Reference:
[1] https://github.com/ethz-asl/kalibr/issues
留言
張貼留言