micasense / imageprocessing

MicaSense RedEdge and Altum image processing tutorials
https://www.micasense.com
MIT License
263 stars 152 forks source link

Image processing setup error reading sample imagery #138

Closed barkermi closed 3 years ago

barkermi commented 3 years ago

Testing installation succeeds and prints imported libraries and executed exiftool. When I run the next snippet, image.Image function is throwing an error (at line 72: provided filepath does not have a band name) like it is unable to pull from the exif? I am using the sample imagery provided from the github repository. Oddly, I do not have this error on another machine that has an older installation of the imageprocessing repository and older micasense environment.


ValueError Traceback (most recent call last)

in 3 imageName = glob.glob(os.path.join(imagePath,'IMG_0000_1.tif'))[0] 4 ----> 5 img = Image(imageName) 6 img.plot_raw(figsize=(8.73,8.73)); 7

c:\Users\barkmatt\imageprocessing\micasense\image.py in init(self, image_path, exiftool_obj) 70 71 if self.meta.band_name() is None: ---> 72 raise ValueError("Provided file path does not have a band name: {}".format(image_path)) 73 if self.meta.band_name().upper() != 'LWIR' and not self.meta.supports_radiometric_calibration(): 74 raise ValueError('Library requires images taken with RedEdge-(3/M/MX) camera firmware v2.1.0 or later. ' +

ValueError: Provided file path does not have a band name: .\data\0000SET\000\IMG_0000_1.tif

Sorry, relatively green with python.

barkermi commented 3 years ago

Resolved, did not see pin above. Issue is I did not install git lfs.