Skip to content

jtd45/SeniorProj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 

Repository files navigation

Overview:

Senior Project from Pitt, we desigend a tripod that could automatically track a Frisbee during ultimate Frisbee games

My role was to program the image processing component using python and openCV to track a red Frisbee as it passed by our webcam and tell the Arduino that to move the camera. I did this by looking for red objects moving in the frame

Steps to Run:

To run first pip install numpy, opencv.python and serial

Then run 'videoTest.py'

Explanation:

The green rectangle/circle will surround all red objects that are currently on screen

The yellow numbers next to this circle/rectangle show first the id of the red object and second if we can confirm that the red object is the Frisbee (0 means it could be, 1 means it probably is, 2 means it definitely is and -1 means we thought it was but it turned out not to be)

The yellow numbers on the top left are the directions for the Arduino and it's servo motor. Directions are given as a 2 integer array with x and y directions, x or y=9 means move the camera right or down, x or y = 1 means move the camera left or up.

The Blue rectangle is our 'region of interest' once the Frisbee is found we want to make sure no other moving red objects are taken as the Frisbee so we limit the search to around where the Frisbee was last seen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published