我一直在尝试运行以下代码:
exif = pyexiv2.ImageMetadata(image_file)
exif.read()
在 Python 3.7.0 上,它会产生错误AttributeError: module 'pyexiv2' has no attribute 'ImageMetadata'
我以前没有使用过 pyexiv2,但这里说明的示例与我的类似,我认为它可以正常工作。我也不确定 Python 3 是否完全支持 pyexiv2。请告知。
你可以在这里找到我正在使用的脚本