Lupy is an AI-based command-line tool designed to process and classify wildlife videos from camera traps.
It uses computer vision to automatically detect animals and assign class labels through a custom-trained model.
Built for conservationists, ecologists, and AI enthusiasts working with large-scale wildlife video data.
- 🧠 AI-powered wildlife detection and classification
- 🌍 Focused on species found in the Alta Murgia National Park, Italy
- 🎥 Process single video files or entire folders
- ✏️ Rename videos based on AI predictions
- 📄 Export classification results to CSV
- ⚙️ Combines MegaDetector with a custom classifier
- 🔍 Tesseract OCR engine using pytesseract
- 🖼️ Save annotated images from video
Lupy’s AI model has been trained specifically to classify wildlife species typical of the Alta Murgia region.
It supports the following animal categories:
badger,bird,boar,butterfly,cat,dog,fox,lizard,podolic_cow,porcupine,weasel,wolf,other(for unrecognized or less common species)
The model is based on real video data collected from camera traps in the Alta Murgia landscape.
git clone https://github.com/Giut0/lupy.git
cd lupypip install .-
Download the precompiled binary:
-
Install it (or unzip the portable
.zipversion).
sudo apt update
sudo apt install tesseract-ocrsudo pacman -S tesseractAfter installation, run lupy from your terminal.
lupy --helplupy --versionlupy -p /path/to/video.mp4lupy -f /path/to/folder/lupy -p /path/to/video.mp4 --rename
# or
lupy -f /path/to/folder/ --renamelupy -p /path/to/video.mp4 -t
# or
lupy -f /path/to/folder/ -tlupy -p /path/to/video.mp4 -i /path/to/img_folder/
# or
lupy -f /path/to/folder/ -i /path/to/img_folder/lupy -p /path/to/video.mp4 --csv resultsYou can also combine options:
lupy -f /path/to/folder/ --rename --csv resultsLupy also includes a graphical interface built with Streamlit, designed for quick, visual interaction.
From your terminal:
lupy --guiOr directly:
streamlit run lupy/UI.py- Drag & drop video upload
- Visual playback of uploaded video(s)
- Run classification with one click
- View textual results
- Download predictions as
.csv - Download annotated frames as
.zip
- Python 3.8+
- Deep learning model files (MegaDetector + custom classifier)
- Python dependencies (installed via
pip install -r requirements.txt) - Tesseract OCR
The custom classifier used in Lupy is part of a broader AI-powered computer vision pipeline developed for wildlife monitoring.
To explore the training process and model architecture, check out the companion repository:
👉 Wildlife Computer Vision Model Repository
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 (CC BY-NC 4.0) license.
You may use, modify, and share the code for non-commercial purposes only, and you must give appropriate credit.