-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The first and easiest thing we can do to detect the cone is look for its color.
Prep work: Get a cone and point the PI camera at it.
Algorithm:
- Load the live camera feed.
- Make a copy of the image call it cImg
- For each pixel value detect if the RGB range is within a set tolerance. Set a lower and upper bound for red, green, and blue to compare the pixels to.
- If the value is within the tolerance set the pixel that corresponds to its position in cImg to 255 and if it is not set it to 0.
- Display the original and the copy.
Some notes:
Play with the tolerance and set it to be as small as possible.
We are creating a binary image in the copy, think about what that means.
To start with for the tolerance, google the RGB value of yellow and set it around that.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels