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

Working with multiple images and ironbow filter #5

Open
speri203 opened this issue Sep 5, 2019 · 0 comments
Open

Working with multiple images and ironbow filter #5

speri203 opened this issue Sep 5, 2019 · 0 comments

Comments

@speri203
Copy link

speri203 commented Sep 5, 2019

I am running into an issue with this script when I try to run it on all images within a folder. I initially checked to see that the flir encoded data was in the metadata with exiftool. It is present. When running the code, though, on ironbow filter images I get the following error:
Traceback (most recent call last):
File ".\u_value_module.py", line 438, in
export_temperatures()
File ".\u_value_module.py", line 434, in export_temperatures
flir.process_image(images)
File "C:\Users\sai.peri\Documents\u_value_module\flir_image_extractor.py", line 62, in process_image
self.rgb_image_np = self.extract_embedded_image()
File "C:\Users\sai.peri\Documents\u_value_module\flir_image_extractor.py", line 102, in extract_embedded_image
visual_img = Image.open(visual_img_stream)
File "C:\Users\sai.peri\AppData\Local\Programs\Python\Python37-32\lib\site-packages\PIL\Image.py", line 2822, in open
raise IOError("cannot identify image file %r" % (filename if filename else fp))
OSError: cannot identify image file <_io.BytesIO object at 0x038543C0>

Not sure how to fix it. It occurs at the visual_img = Image.open line.

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