Hello all,
I'm trying to detect, calculate and compare the amount of two colours present in a webcam feed.
something similar to what is being done here
http://forum.processing.org/topic/compare-measurement-of-x-color-pixels-compared-to-background. Except I would like to use coloured cards, say red and green, and by holding them up to the camera being able to tell which is more prominent in the video - and from their calculating the ratio.
I'm not completely sure how to implement this with a video feed from a webcam and i'm just looking for some advice on how to go about the logic.
Any input or direction to something similar
would be greatly appreciated.
many thanks
1