YMaze Analyzer is a Python/OpenCV GUI tool for analyzing mouse behavior in recorded Y-maze videos using simple contrast-based tracking.
The program loads a video, lets the user select a region of interest and Y-maze zones, adjusts HSV/object-size detection parameters, tracks the mouse centroid, and calculates zone occupancy, distance, speed, trajectory, and intensity-map outputs.
- Load recorded Y-maze videos
- Select ROI manually
- Define Y-maze zones manually
- Adjust HSV threshold and object-size parameters
- Detect the mouse using OpenCV contour detection
- Track mouse centroid across frames
- Calculate zone occupancy
- Calculate total distance and zone-specific distance
- Estimate speed
- Generate centroid trace images
- Generate spatial intensity maps
- Save detection and analysis results as CSV files
- Python 3.11
- OpenCV
- NumPy
- Matplotlib
- Tkinter