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

Accessing EXIF MakerNote as bytes #194

Open
astrorafael opened this issue Jan 20, 2024 · 0 comments
Open

Accessing EXIF MakerNote as bytes #194

astrorafael opened this issue Jan 20, 2024 · 0 comments

Comments

@astrorafael
Copy link

Hi
First of all, thank you so much for this very useful package.

I'm trying to process some RaspberryPi images and accesing some exclusive parameters as the analog gain. As this is not in an ordinary EXIF tag, the capture program (raspistill) stores some specific information in the EXIF MakerNote Tag and it is displayed as such in the EXIF.py utility

When trying to acess this tag like this

note = str(exif.get('EXIF MakerNote', None))
log.info("EXINF MakerNote  = %s",note)

EXIF MakerNote = [101, 118, 61, 45, 49, 32, 109, 108, 117, 120, 61, 45, 49, 32, 101, 120, 112, 61, 51, 52, ... ]

EXIF MakerNote = [101, 118, 61, 45, 49, 32, 109, 108, 117, 120, 61, 45, 49, 32, 101, 120, 112, 61, 51, 52, ... ]

But it doesn't return the whole bytes array

If you decode these first bytes, you get part of the information that I'm looking for

value =  bytes([101, 118, 61, 45, 49, 32, 109, 108, 117, 120, 61, 45, 49, 32, 101, 120, 112, 61, 51, 52,])
print(str(value))

b'ev=-1 mlux=-1 exp=34'

Is there any way to obtain the whole bytes array content with exifread?

Thank you so much in advance

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

1 participant