Skip to content

H9Chae/YMaze_analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

YMaze Analyzer

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.

Features

  • 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

Requirements

  • Python 3.11
  • OpenCV
  • NumPy
  • Matplotlib
  • Tkinter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages