This project is designed to analyze Wild Pig in real environments. It enables store owners and researchers to understand customer movement patterns, as well as time in specific zones, and overall store dynamics.
- Movement Analysis: Tracks how people move throughout the place.
- Integration with YOLO: Allows for specific queries on detected objects and individuals.
- Multi-Camera Tracking: Capable of tracking individuals across multiple camera feeds.
- Model Retraining: Saves random images to re-train the machine learning model for improved accuracy.
- Heat Maps: Generates heat maps to visualize high-traffic areas.
- Track Path: Generate the path of the object.
Before running this system, you need to:
- Install Python 3.9 or above.
- Ensure you have the required hardware to process video feeds in real-time.
- Set up the necessary camera infrastructure as per the system's requirements.
git clone https://github.com/AdonaiVera/wildboard-behavior-analysis.git
cd wildboard-behavior-analysis
pip install git+https://github.com/AdonaiVera/supervision.git@add_time_byte_tracking
pip install ultralytics
To start analyzing a video stream:
from behavior_analysis import process_video
# Example
camera_entry = [{
"url": "input/wild_pig_demo.mp4",
"confidence_threshold": 0.4,
"target_video_path": "output/result_yolov8.mp4",
"switch_model": "models/yolov8_v3.pt", # "yolov8l-worldv2.pt"
"iou_threshold": 0.7,
}]
Replace the paths and parameters with those relevant to your specific setup, you have to download your model or ask for the model of the project.
python run.py
Pending to develop
- Integrate with yolo-world
- Tracking wildboard in multiples cameras.
- Classify Baby and adults.
Interested in contributing? Great! Here's how you can:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
If you are interested in building on top of this, feel free to reach out :)
- Adonai Vera - AI ML Subterra AI - AdonaiVera
- Donghoon Kim - Assistant Professor - DonghoonKim