Using python, which may be the best algorithm or the best strategy to detect the presence of colored bands as in image? The image is scanned and cropped, the problem is that the crop not to be precise and I can not make use of a control that makes use of Cartesian coordinates to determine if the lines are present. The strips may be present or not.

