相机标定报错:'IFDRational' object does not support indexing如何解决

相机标定报错:'IFDRational' object does not support indexing如何解决

在运行过程中,可能没有读取到相应的数据,focal_length_exif并不是一个元组,所以报错。你需要从这里完整地将程式clone下来,然后运行。
git clone GitHub - OmarPadierna/3DReconstruction: Stereo reconstruction using OpenCV 3.4.4 and python Stereo reconstruction using OpenCV 3.4.4 and python - GitHub - OmarPadierna/3DReconstruction: Stereo reconstruction using OpenCV 3.4.4 and python https://github.com/OmarPadierna/3DReconstruction

如有帮助,望采纳。

报错为:Traceback (most recent call last):
File "D:/daima/3DReconstruction-master/3DReconstruction-master/Calibration/calibrate.py", line 89, in
focal_length = focal_length_exif[0]/focal_length_exif[1]
TypeError: 'IFDRational' object does not support indexing