Hello, so i have a color detection code which i learned from youtube
The photo (RGBPate.JPG)
The output of the code
my code can detect the color Red from the photo.
My question for this code are:
- how do i make it so when the code detects the color red, the command window will show a text that reads "Roses" same goes for other colors. When it detecs blue, the command window will show a text that reads "Anemone" and etc.
- From what i know
can detect colors Red, Green, Blue from changing the numbers from 1,2,3 respectively. What is the proper code for detecting the color black?
I am currently using the lastest Matlab which is R2021b
Thank you for taking the time to read this post.