mirror of
https://github.com/macaodha/batdetect2.git
synced 2026-07-07 21:00:10 +02:00
Some checks failed
CI / Checks (push) Has been cancelled
Docs Pages / Build Docs (push) Has been cancelled
CI / Tests (Python ${{ matrix.python-version }}) (3.10) (push) Has been cancelled
CI / Tests (Python ${{ matrix.python-version }}) (3.11) (push) Has been cancelled
CI / Tests (Python ${{ matrix.python-version }}) (3.12) (push) Has been cancelled
Docs Pages / Deploy Docs (push) Has been cancelled
1.6 KiB
1.6 KiB
Targets config workflow reference
This page summarizes the target-definition configuration used by batdetect2.
TargetConfig
Defined in batdetect2.targets.config.
Fields:
detection_target: oneTargetClassConfigdefining detection eligibility.classification_targets: list ofTargetClassConfigentries for class encoding/decoding.roi: ROI mapping config withdefaultmapper and optional per-classoverrides.
TargetClassConfig
Defined in batdetect2.targets.classes.
Fields:
name: class label name.tags: tag list used for matching (shortcut formatch_if).match_if: explicit condition config (match_ifis accepted as alias).assign_tags: tags used when decoding this class.
tags and match_if are mutually exclusive.
Supported condition config types
Built from batdetect2.data.conditions.
has_taghas_all_tagshas_any_tagdurationfrequencyall_ofany_ofnot
ROI mapper config
roi.default and each roi.overrides.<class_name> entry support built-in
mappers including:
anchor_bboxpeak_energy_bbox
Key anchor_bbox fields:
anchortime_scalefrequency_scale
Top-level ROI mapping shape:
default: fallback mapper used for all classes.overrides: optional mapping from class name to mapper config.
Related pages
- Detection target setup:
{doc}
../../../how_to/data/configure-target-definitions - Class setup:
{doc}
../../../how_to/data/define-target-classes - ROI setup:
{doc}
../../../how_to/data/configure-roi-mapping - Concept overview:
{doc}
../../../explanation/target-encoding-and-decoding