Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urgently help please #15

Open
xxsle opened this issue Apr 13, 2023 · 1 comment
Open

urgently help please #15

xxsle opened this issue Apr 13, 2023 · 1 comment

Comments

@xxsle
Copy link

xxsle commented Apr 13, 2023

Hi Hwiyoung, when I try to run my own data file (jpg+txt) in the script I get the following error.
File c:\users...\main.py:57 in get_metadata
focal_length = convert_string_to_float(exif['Exif.Photo.FocalLength']) / 1000 # unit: m
KeyError: 'Exif.Photo.FocalLength'
Why do you think? How can I fix it?

focal_length = convert_string_to_float(exif['Exif.Photo.FocalLength']) / 1000 # unit: m

@hwiyoung
Copy link
Owner

Hi

It seems that the data doesn't have metadata named "Exif.Photo.FocalLength"

I think you have to check a EXIF in the data using like exiftool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants