Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mouse Motion Tracking

This repository contains a python script to track the motion based on a cropped region of interest. It uses the pixel difference of a reference frame to determine if there is motion. If there is a pixel difference, a contour is drawn based on the difference. If the contour is large enough, motion is recorded.

python setup.py install 

Usage

python Motiontracker.py
  • Select the .mp4 file
  • Once both the desired chambers to track are empty press 'P' to pause
  • Press 'M' to select the first chamber
  • Press 'M' again to select the second chamber
  • Press 'Q' once finished
  • Motion in the chamber will be tracked

New Features

  • Progress bar now tracks and shows number of frames processed

Future Development

  • Add ability to track a second chamber (COMPLETE)
  • Calculate time spent in each chamber

About

Python Script to track motion using OpenCV3

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages