You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: