Automated Drone Image Analysis Tool

Nov. 6, 2024 - Version 1.4 Now Available!

ADAIT version 1.4 includes an enhanced image viewer experience with new show/hide and thumbnail navigation capabilities.  Checkout our new, dedicated Facebook Page for ADIAT News and Announcements.

Product Overview

The Automated Drone Image Analysis Tool (ADIAT) is a platform and set of algorithms that can be used to programmatically identify “areas of interest” in a set of digital images. The primary use case for this tool is to aid in the analysis of photos taken by UAVs during search and rescue operations, however, the detection algorithms may be applicable to users in many different fields.

Development of ADIAT began in 2017 based on the needs of TEXSAR with input from industry experts.  In 2018 a GUI was added to make it more “user friendly” and, in May 2019, the first version was released to the public.  As UAV utilization by SAR teams continued to increase so did interest in ADIAT.  In October 2023 v1.2 of ADIAT was release with significant performance improvements as well as the addition of a third algorithm and advanced features that make the platform much more powerful.  In August 2024 v1.3 was release with support for thermal images, video parsing, and new installers for MacOS.

Given that search teams often operate in austere conditions, ADIAT was built to run as a Windows desktop application without the benefit of or a dependency on internet connectivity.

This tool was developed by TEXSAR (Texas Search and Rescue) as an open source project for the SAR community.  If you are interested in helping in developing the project please reach out to us at adiat@texsar.org

Downloads

Version 1.4

Released Nov. 6, 2024

User Guide

Interface Guide

The ADIAT interface is built on the QT platform and is comprised of two main components: the “Main Window” where the user provides the inputs required to run the detectors and the “Image Viewer” where the user will be able to see and interact with images were identified as having “areas of interest.”  Once the detection algorithm has run, the augmented images with “areas of interest” are also available in the user-selected output folder for viewing outside if ADIAT.

Main Window

  1. Menu: Provides menu options to load previously completed analysis, update application preferences, and open the video parser.
  2. Input Folder: Location from which images will be sourced.
  3. Output Folder: Location where augmented images with “areas of interest” identified will be stored along with an xml file containing metadata from the processing.
  4. Min Object Area (px): The minimum size (area), in pixels, that an object must meet or exceed to be flagged as an “area of interest.”
  5. Object Identification Color: The color that will be used to circle “areas of interest.”
  6. Max Processes: The number of images that will be processed in parallel.  This number is driven by the complexity of the algorithm/features being used and the performance characteristics of the user’s computer.
  7. Normalize Histograms & Reference Image: The option to adjust the lighting conditions for all input images to where they match the conditions in the reference image.  See more about this feature here.
  8. Use K-Means Clustering & Number of Clusters: The option to leverage K-Means Clustering to reduce the number of colors in the input images.  See more about this feature here.
  9. Algorithm: The detector that will be used.  More info about the available algorithms can be found here.
  10. Algorithm Options: Settings and parameters that are specific to the selected algorithm.
  11. Start: Button that starts the image analyzer.
  12. Cancel: Terminates the analysis in progress.
  13. View Results: Launches the image viewer after analysis has been completed.
  14. Information Window: Provides real-time updates during the image analysis process.

Image Viewer

  1. File Name: The name of the file currently being viewed.
  2. Skid Hidden: Toggles whether “hidden” images will be shown when navigation with Previous and Next buttons. Also shows a count of hidden images in the result set.
  3. Image Count/Index: The index of the current image and the total number of images with “areas of interest.” 
  4. Main Image Viewer: The zoomable image with “areas of interest” circled.
  5. Area of Interest List: A scrollable section showing thumbnails of “areas of interest” found in the image.  Clicking on a thumbnail will zoom the main image to that area.
  6. Hide Image: Toggle to show/hide the current image
  7. Jump To: Provides the ability to move directly to a specific image number
  8. Previous Image & Next Image: Navigation buttons to move between images with “areas of interest” identified by ADIAT.
  9. Generate KML: Generates a KML (Keyhole Markup Language) with markers identifying the locations of each image containing “areas of interest.”
  10. Thumbnail Navigation: Scrollable area with thumbnails representing each image with “areas of interest” identified by ADIAT.
  11. Information Bar: Provides location data for the image and pixel-level temperature data for thermal images.
Keyboard Shortcuts
Key/ Combination Function
Left Arrow Navigation to Previous Image
Right Arrow Navigate to Next Image
Down Arrow or P Hide Current Image
Up Arrow or U Unhide the Current Image

Video Parser

Available from the application menu.

  1. Video File: The file to be parser.
  2. SRT File: The SRT file containing timestamp and location information.  This is optional, but without it the captured images will not include location information.
  3. Output Folder: Location where the still frame images will be stored.
  4. Time Interval (seconds): Interval between still frames to be captured.
  5. Start: Button that starts the video parsing process.
  6. Cancel: Terminates the parsing process.
  7. Information Window: Provides real-time updates during the video parsing process.

Detection Algorithms

ADIAT has been designed so that additional detection algorithms can be added as the fields of computer vision and data science continue to progress.  As an open source project, users throughout the SAR and scientific communities are welcome to contribute their expertise to the project through new algorithms and refinement of those that have already been implemented.

The algorithms that have been implemented to date would not be possible without the monumental contributions other have made to freely available resources such as OpenCVscikit-image, and Spectral Python.  Wherever possible we will callout where we have leveraged these libraries as well as the contributions from additional tutorials and guides that make these resources approachable for all users.

RGB Image Algorithms

Color Range

Released – May 2019
Available On – Windows, MacOS
Previous called “Color Match” algorithm

Summary

The “Color Range” algorithm looks at each pixel in an image to determine if it is within a user-specified color range.  Any sufficiently sized (defined by the user) areas where all pixels are within the selected color range are flagged as “areas of interest” in the image. 

The color detection algorithm in ADIAT utilizes the inRange function in OpenCV.

Input Parameters

  1. Reference Color: The base color we will be searching for in the images.
  2. Color Range Selectors (Red, Green, Blue): Allowed deviation from the selected base color for each color component.
  3. Color Range Min, Mid, Max: Shows the min, mid, and max color for the selected color rage.
  4. Color Range Viewer*: Shows the selected and unselected color range in a HSL color maps.

* The color range viewer is a one-dimensional representation of the three-dimensional selected color range.  It is intended to be a guide and is not comprehensive.

Libraries, Research, and Tutorials

Matched Filter

Released – October 2023
Available On – Windows, MacOS

Summary

With the “Matched Filter” algorithm, individual pixels are scored based on how close they are to the reference color and then the scores are evaluated against the user-provided threshold. Any sufficiently sized (defined by the user) areas of pixels scored above the threshold are flagged as “areas of interest” in the image.

The matched filter detector used in ADIAT utilizes the matched_filter function in Spectral Python.

Input Parameters
  1. Reference Color: The color we will be searching for in the images.
  2. Threshold: Sets the minimum “score” (on a scale of .1 – 1) that we will consider to be a match to the reference color once the matched filter detector is run.  Default value is .3
  3. Color Range Viewer: Shows the selected and unselected color range in a HSL color maps.
Libraries, Research, and Tutorials

RX Anomaly Detection

Released – May 2019
Available On – Windows, MacOS

Summary

The RX (Reed-Xiaoli) anomaly detector extracts targets that are spectrally distinct from the image background by using the squared Mahalanobis distance as a measure of how anomalous a pixel is with respect to an assumed background.  Once the RX scores have been calculated, each scored pixel is evaluated against a user-specified threshold to declare whether or not it should declared anomalous.  Any sufficiently sized (defined by the user) areas of pixels scored above the threshold are flagged as “areas of interest” in the image.

The RX anomaly detector used in ADIAT utilizes the rx function in Spectral Python.

Note: In previous versions of ADIAT this algorithm was called “Color Anomaly”

Input Parameters

  1. Image Segments: Divides the image in to equally-sized segments so that the target pixel will be compared to a section of the image rather than the entire image. 
  2. Sensitivity: Threshold for determining if a pixel is anomalous with respect to the background.  Default value is 5
Libraries, Research, and Tutorials

 

Thermal Algorithms

Temperature Range

Released – August 2024
Available On – Windows

Summary

The “Temperature Range” algorithm leverages radiometric data capture by thermal sensors and determines for each pixel if it is within a user-specified temperature range.  Any sufficiently sized areas where all pixels are within the selected temperature range are flagged as “areas of interest” in the jpg rendering of the thermal data.

Drones/Cameras Supported:
DJI –  H20T, H30T,  XT2, XTR, XTS, Mavic 2 Enterprise-Advanced, Mavic 3T, Matrice 30T
Autel – EVO II 640T v3, EVO Max 4T
FLIR – AX8, B60, E40, T650

Input Parameters
  1. Minimum Temp*: The bottom of the temperature range
  2. Maximum Temp*: The top of the temperature range
  3. Color Map: The color visualization to apply to the rendered jpg.

*The temperature unit can be set in the application preferences.

Libraries, Research, and Tutorials

Temperature Anomaly

Released – August 2024
Available On – Windows

Summary

The “Temperature Anomaly” algorithm leverages radiometric data capture by thermal sensors and determines for each pixel if it is outside of the user-specified number of standard deviations from the mean temperature of all pixels in the image.  Any sufficiently sized areas where all pixels are anomalous are flagged as “areas of interest” in the jpg rendering of the thermal data.

Drones/Cameras Supported:
DJI –  H20T, H30T, XT2, XTR, XTS, Mavic 2 Enterprise-Advanced, Mavic 3T, Matrice 30T
Autel – EVO II 640T v3, EVO Max 4T
FLIR – AX8, B60, E40, T650

Input Parameters
  1. Anomaly Type: Specifies if anomalies above, below, or above and below the mean should be flagged.
  2. Anomaly Threshold: The number of standard deviations a pixel must exceed to be considered anomalous
  3. Color Map: The color visualization to apply to the rendered jpg.
Libraries, Research, and Tutorials

Advanced Features

In addition to the detection algorithms, v1.2 of ADIAT includes the addition of two new advanced features which can be leveraged in tandem with any of the algorithms to address common real-world issues that negatively impact the effectiveness of detectors.

Histogram Normalization

Released – October 2023
Available On – RGB Image Algorithms

Summary

Lighting conditions can have a dramatic impact on the representation of colors in an image which, in turn, means that color identification can be problematic with UAV photos when they are taken at different times of day or with variable cloud cover.  Histogram normalization addresses this by “standardizing” the lighting conditions across a set of images so that they can be evaluated consistently.

The histogram normalization feature in ADIAT utilizes the match_histograms function in scikit-image.

Input Parameters

  1. Reference Image: The image that will be used as the baseline against which all other images will be normalized.
Libraries, Research, and Tutorials

K-Means Clustering

Released – October 2023
Available on – RGB Image Algorithms

Summary

K-means clustering is a classification technique designed to group like data points.  For the purposes of image analysis, K-means clustering is used to group similar pixels together in order to reduce the overall number of colors represented in an image.  Essentially we are reducing the number of colors in the image so we have “one shade of green”, “one shade of brown”, etc. which allows us to isolate anomalous colors.

The K-Means Clustering feature in ADIAT utilizes the kmeans function in OpenCV.

**Warning** This feature is extremally expensive in terms of performance and execution time.

Input Parameters

  1. Number of Clusters: The number of colors we want to remain in the image after processing.
Libraries, Research, and Tutorials

Technical Details

Overview

ADIAT was built in Python and has been compiled into a Windows app and packaged with an installer for portability and ease of use.  As an open source program, the source code is freely available in Github along with instructions on how to run and compile the app.

The modular structure of the codebase was designed to allow additional algorithms to be added with minimal changes to the core functions.  If you are interested in contributing to this project please contact us at adiat@texsar.org

System Requirements

ADIAT will run on any relatively modern Windows system, but we do recommend using  Windows 10 or higher.  The application is designed to allow for the scaling of memory and cpu utilization based on the capabilities of the user’s system, but ultimately “more is better” and a more performant system will allow for faster execution times.  ADIAT requires 440MB of hard drive space for the application installation and the user will need to allocate additional space for the augmented images saved during execution.

License Information

ADIAT is licensed under the GNU General Public License v3.0.   This makes it freely available to use by the community with limited conditions.

Release Notes

  • 1.4 (November, 2024)
    • Improved viewer experience with thumbnail navigation and show/hide capabilities.
  • 1.3 (August, 2024)
    • Added support for thermal images with temperature range and temperature anomaly algorithms
    • Added video parser capability
    • Overall performance improvements
  • 1.2 (October, 2023)
    • Added K-Means Clustering and Histogram Normalization features as well as Matched Filter algorithm.
    • Performance and detection improvements
    • Completed major refactoring and modernization of the codebase
  • 1.1 (May 30, 2019)
    • First public release including core platform with Color Detection and RX Anomaly algorithms.

Stay up to date with TEXSAR's latest news and events!

Donate