I would need to verify if and how much of certain predefined color ranges are present in a image file. each color range is defined by 6 variables and a counter in a colorRange class: The image can either be a file, or loaded from the camera. Following code loads the image from the camera buffer: what I would need