Extract contour regions and use inRange for thesholding rgb channels