Skip to main content

Lint Status

Disclaimer - Community-maintained Version

This project is an independent, open‑source library for processing data captured with MicaSense cameras. It is a fork of the unmaintained Micasense imageprocessing library.

It is not affiliated or distributed by Micasense. This project is an independent, open-source tool and is not affiliated with, endorsed by, or sponsored by MicaSense, EagleNXT, AgEagle Aerial Systems Inc., or any of their subsidiaries or affiliates.

MicaSense RedEdge and Altum Image Processing Tutorials

This repository includes tutorials and examples for processing MicaSense RedEdge and Altum images into usable information using the python programming language. RedEdge images captured with firmware 2.1.0 (released June 2017) or newer are required. Altum images captured with all firmware versions are supported. Dual-camera (10-band) capture are also included. As of 2023, RedEdge-P and Altum-PT are also supported in the "v2" notebooks. Previous notebooks have been updated to refer to newer images in this repository.

The intended audience is researchers and developers with some software development experience that want to do their own image processing. While a number of commercial tools fully support processing MicaSense data into reflectance maps, there are a number of reasons to process your own data, including controlling the entire radiometric workflow (for academic or publication reasons), pre-processing images to be used in a non-radiometric photogrammetry suite, or processing single sets of 5 images without building a larger map.

What do I need to succeed?

A working knowledge of running Python software on your system and using the command line are both very helpful. We've worked hard to make these tutorials straightforward to run and understand, but the target audience is someone that's looking to learn more about how to process their own imagery and write software to perform more powerful analysis.

You can start today even if you don't have your own RedEdge or Altum. We provide example images, including full flight datasets.

For a user of RedEdge or Altum that wants a turnkey processing solution, this repository probably is not the best place to start. Instead consider one of the MicaSense processing partners who provide turnkey software for processing and analysis.

Tutorial Articles

Click here to view the tutorial articles. The set of example notebooks and their outputs can be viewed in your browser without downloading anything or running any code.

How do I get set up?

First you'll need to install git and git-lfs. Install both before running git clone or you may have issues with the example data files included.

Next, git clone this repository, as it has all the code and examples you'll need.

Once you have git installed and the repository cloned, you are ready to start with the first tutorial. Check out the setup tutorial which will walk through installing and checking the necessary tools to run the remaining tutorials.

MicaSense Library Usage

In addition to the tutorials, we've created library code that shows some common transformations, usages, and applications of RedEdge imagery. In general, these are intended for developers that are familiar with installing and managing python packages and third party software. The purpose of this code is readability and clarity to help others develop processing workflows, therefore performance may not be optimal.

This package is available on PyPi and can be installed using pip install micasense_imageprocessing.

Running this code

The code in these tutorials consists of two parts. First, the tutorials generally end in .ipynb and are the Jupyter notebooks that were used to create the web page tutorials linked above. You can run this code by opening a terminal (linux/mac) or Command Prompt/PowerShell (Windows), navigating to the folder you cloned the git repository into, and running

jupyter notebook .

That command should open a web browser window showing the set of files and folder in the repository. Click the ...Setup.ipynb notebook to get started.

Second, a set of helper utilities is available in the micasense folder that can be used both with these tutorials as well as separtely.

Note that some of the hyperlinks in the notebooks may give you a 404 Not Found error. This is because the links are setup to allow the list of files above to be accessed on the github.io site. When running the notebooks, use your jupyter "home" tab to open the different notebooks.

Contribution guidelines

Find a problem with the tutorial? Please look through the existing issues (open and closed) and if it's new, create an issue on github.

Want to correct an issue or expand library functionality? Fork the repository, make your fix, and submit a pull request on github.

Have a question? Please double-check that you're able to run the setup notebook successfully, and resolve any issues with that first. If you're pulling newer code, recreate your virtual environment or reinstall with pip install -e ".[test]" to pick up dependency changes.

This code is a community effort and is not supported by MicaSense support. Please don't reach out to MicaSense support for issues with this codebase; instead, work through the above troubleshooting steps and then create an issue on github.

Tests

Tests for many library functions are included in the tests directory. Install test dependencies and run from the repository root:

pip install -e ".[test]"
pytest

Coverage and default options are configured in pyproject.toml (pytest>=9).

Test execution can be relatively slow (2-3 minutes) as there is a lot of image processing occuring in some of the tests, and quite a bit of re-used IO. To speed up tests, install the pytest-xdist plugin using pip and achieve a significant speed up by running tests in parallel.

pytest -n auto

Data used by the tests is included in the data folder.

For (Tutorial) Developers

To generate the HTML pages after updating the jupyter notebooks, run the following command in the repository directory:

jupyter nbconvert --to html --ExecutePreprocessor.timeout=None --output-dir docs --execute *.ipynb

License

The MIT License (MIT)

Copyright (c) 2017-2019 MicaSense, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

micasense_imageprocessing-0.2.tar.gz (54.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

micasense_imageprocessing-0.2-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

File details

Details for the file micasense_imageprocessing-0.2.tar.gz.

File metadata

  • Download URL: micasense_imageprocessing-0.2.tar.gz
  • Upload date:
  • Size: 54.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for micasense_imageprocessing-0.2.tar.gz
Algorithm Hash digest
SHA256 3c8e5020d48194d9980f5208d87244b283355f4fb097f28233f939241e384b8e
MD5 9338e4c355ff505602489262d4dd6263
BLAKE2b-256 4cf61043cad7dd41128ae1e64dc7203868c017d4e1adb330cc43c32d2dca2727

See more details on using hashes here.

Provenance

The following attestation bundles were made for micasense_imageprocessing-0.2.tar.gz:

Publisher: publish.yml on idt-fhac/micasense_imageprocessing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file micasense_imageprocessing-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for micasense_imageprocessing-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7b0af7d50ce2a2c01b7a971f83a97f25928ead8c752057f0ddf072cd85fde412
MD5 bc2f433ebf9a5af4faa1af3697263968
BLAKE2b-256 0fa8b137cb4c43464c29bb008826cb8d0790b7b659fe8974373c7bdee3e140e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for micasense_imageprocessing-0.2-py3-none-any.whl:

Publisher: publish.yml on idt-fhac/micasense_imageprocessing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2 This release

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page