https://github.com/conservationtechlab/heatseek
Thermal imagery detetion and tracking
https://github.com/conservationtechlab/heatseek
Last synced: 6 months ago
JSON representation
Thermal imagery detetion and tracking
- Host: GitHub
- URL: https://github.com/conservationtechlab/heatseek
- Owner: conservationtechlab
- License: mit
- Created: 2025-05-05T17:01:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-12T22:27:44.000Z (8 months ago)
- Last Synced: 2025-11-13T00:18:37.193Z (8 months ago)
- Language: Python
- Size: 977 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HeatSeek
**HeatSeek** is a command-line tool for downloading thermal datasets, preprocessing video, training YOLO models, and tracking objects in thermal imagery. The current focus of the package is on thermal imagery of bats.
## Installation
First, clone the repository:
```bash
git clone ...
cd heatseek
```
It is recommended to build a conda environment for correct dependencies:
```bash
conda env create -f environment.yml
```
Then install the package:
```bash
pip install . --no-build-isolation
```
Alternatively, for development:
```bash
pip install -e . --no-build-isolation
```
---
## Usage
### Download Weights if Necassary
```bash
heatseek train \
--data-yaml path/to/data.yaml \
--weights yolov8s.pt \
--epochs 400 \
--batch 16 \
--imgsz 640
```
### Download dataset from RoboFlow
```bash
heatseek download --api-key API_KEY --workspace WORKSPACE --project PROJECT_NAME --version VERSION_NUM --nc CLASS_NUM --names CLASS_NAME
```
### Train YOLO Model
```bash
heatseek train \
--data-yaml path/to/data.yaml \
--weights yolov11s.pt \
--epochs 400 \
--batch 16 \
--imgsz 640
```
---
### Preprocess Thermal Video
```bash
heatseek preprocess \
--input raw_video.mp4 \
--output bg_reduced.mp4
```
Removes background using thermal contrast thresholding.
---
### Track Objects
```bash
heatseek track \
--input video.mp4 \
--output tracks.json \
--weights yolov8.pt
```
Runs YOLO-based detection and object tracking.
---
### Preprocess + Track in One Step
```bash
heatseek pretrack \
--input raw.mp4 \
--preprocessed bg_reduced.mp4 \
--output tracks.mp4 \
--weights yolov8.pt
```
Runs background reduction then tracking in one go.
---
---
### Density Annotator
```bash
heatseek annotate \
--input raw.mp4 /path/to/data/folder\
```
Click to annotate points for density data. Press 's' to save and 'n' to skip
Creates annotations of density data to train density count estimator models.
---
## Dependencies
Ensure you have the following installed via:
```bash
pip install -r requirements.txt
```
---
## Project Structure
```
heatseek/
├── cli.py # Entry point
├── data_utils.py # Dataset download and YAML writing
├── train.py # Training logic
├── preprocess.py # Background reduction
├── detect_track.py # Detection and tracking
```
---
## Acknowledgements
Example images and datasets:
https://universe.roboflow.com/goingbatty/
---
## License
MIT License
Copyright (c) 2025 SDZWA
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.