Skip to content

MicaSense Image Processing Setup #229

@job012

Description

@job012

In the MicaSense Image Processing Setup, I got after running

  • first cell:

Successfully imported all required libraries. Successfully executed exiftool.

  • second cell:

FileNotFoundError Traceback (most recent call last)
Cell In[2], line 7
3 imageName = glob.glob(os.path.join(imagePath,'IMG_0001_1.tif'))[0]
5 exiftool_path = None
----> 7 img = Image(imageName)
8 img.plot_raw(figsize=(8.73,8.73));
10 from micasense.panel import Panel

File ~\imageprocessing\micasense\image.py:72, in Image.init(self, image_path, exiftool_obj, allow_uncalibrated)
70 raise IOError("Provided path is not a file: {}".format(image_path))
71 self.path = image_path
---> 72 self.meta = metadata.Metadata(self.path, exiftool_obj=exiftool_obj)
74 if self.meta.band_name() is None:
75 raise ValueError("Provided file path does not have a band name: {}".format(image_path))

File ~\imageprocessing\micasense\metadata.py:51, in Metadata.init(self, filename, exiftool_path, exiftool_obj)
49 if not os.path.isfile(filename):
50 raise IOError("Input path is not a file")
---> 51 with exiftool.ExifToolHelper() as exift:
52 self.exif = exift.get_metadata(filename)

File ~\anaconda3\envs\micasense\lib\site-packages\exiftool\helper.py:100, in ExifToolHelper.init(self, auto_start, check_execute, check_tag_names, **kwargs)
92 """
93 :param bool auto_start: Will automatically start the exiftool process on first command run, defaults to True
94 :param bool check_execute: Will check the exit status (return code) of all commands. This catches some invalid commands passed to exiftool subprocess, defaults to True. See :py:attr:check_execute for more info.
(...)
97 :param kwargs: All other parameters are passed directly to the super-class constructor: :py:meth:exiftool.ExifTool.__init__()
98 """
99 # call parent's constructor
--> 100 super().init(**kwargs)
102 self._auto_start: bool = auto_start
103 self._check_execute: bool = check_execute

File ~\anaconda3\envs\micasense\lib\site-packages\exiftool\exiftool.py:292, in ExifTool.init(self, executable, common_args, win_shell, config_file, encoding, logger)
288 self.logger = logger
290 # use the passed in parameter, or the default if not set
291 # error checking is done in the property.setter
--> 292 self.executable = executable or constants.DEFAULT_EXECUTABLE
293 self.encoding = encoding
294 self.common_args = common_args

File ~\anaconda3\envs\micasense\lib\site-packages\exiftool\exiftool.py:366, in ExifTool.executable(self, new_executable)
363 abs_path = shutil.which(new_executable)
365 if abs_path is None:
--> 366 raise FileNotFoundError(f'"{new_executable}" is not found, on path or as absolute path')
368 # absolute path is returned
369 self._executable = str(abs_path)

FileNotFoundError: "exiftool.exe" is not found, on path or as absolute path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions