Skip to content

CalvinDSeamons/CompVisionCandyFinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find The M&M's!!!

This project makes use of OpenCV to find m&m's in multiple photos. The biggest help OpenCV offers is a built in function called HOUGH_CIRCLES that can locate circular objects in images. The main issue was fading out the wooden background while still being able to locate the brown m&m's. A mix of carefully incremented functions of Gaussian BLur, Edge Detection, and Dilation allows the program to find and colorize all the M&M's in the picture.

Below are the image results once it goes through the program.

Small image of M&M's on table:

Screen Shot 2019-03-17 at 2 02 10 PM

Larger image of M&M's on tables:

Screen Shot 2019-03-17 at 2 10 05 PM

Note that there is an extra circle (top left). This happens on occasion as HOUGH_CIRCLES are not perfect. When we calculate the color however, the false circle falls below the threshold for brown so we do not count it letting us get an accurate count of M&M's.

About

Computer Vision lab to identify M&M's on a table.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages