Detection Masks - aaronwmorris/indi-allsky GitHub Wiki
Detection Masks
By default, indi-allsky computes star counts and meteor lines within an automated central Region of Interest (RoI). However, terrestrial obstructions—such as trees, rooftops, power lines, and chimneys—interfere with analysis:
- Gaps in moving tree foliage produce spurious star detections.
- Rooflines, gutter contours, and power lines trigger false-positive meteor line detections during Hough line transformations.
Detection masks allow defining custom boundaries to restrict star and meteor detection strictly to unobstructed sky.
1. Mask Architecture
A detection mask is an 8-bit grayscale or monochrome PNG image matching the native sensor resolution:
- White Pixels (
#FFFFFF/ 255): Active detection zones (analyzed for stars and meteors). - Black Pixels (
#000000/ 0): Masked zones (excluded from analysis).
[!NOTE] The detection mask operates on raw sensor data prior to image flipping, rotation, or scaling. Consequently, the base image may appear inverted or mirrored relative to the final processed dashboard image.
2. Creation & Configuration Workflow
Step 1: Download the Base Template
- Navigate in the web dashboard to Tools → Mask Base (
https://<allsky-host>/indi-allsky/mask). - Download
mask_base.png. This image is generated automatically once the camera achieves a stable exposure.
Step 2: Draw the Mask
- Open
mask_base.pngin an image editor (e.g., GIMP, Photoshop, or Paint.NET). - Add a new layer and paint all non-sky features (trees, buildings, horizon structures) solid black (
#000000). - Fill all open sky regions with solid white (
#FFFFFF). - Ensure a small margin exists between high-contrast terrestrial boundaries and the sky zone to prevent edge artifacts.
- Export the file as a PNG (e.g.,
detection_mask.png).
Step 3: Install the Mask
Place the PNG mask file on the host filesystem:
- Debian Package (
.deb) Installations:/var/www/html/allsky/images/detection_mask.png(or/var/lib/indi-allsky/) - Source / Git (
setup.sh) Installations:/var/www/html/allsky/images/detection_mask.png
In Configuration → Processing:
- Set
DETECT_MASKtodetection_mask.png(or provide the absolute path).
Step 4: Validate Detection Tuning
- In the web dashboard, open Configuration → Image Processing → Detection Tuning.
- Enable Run Detection and select Process.
- Inspect the rendered preview overlay to confirm detected stars and meteors reside exclusively within your unobstructed sky zones.