def colorEvolution(img1, contour1, img2, contour2):
     '''
         returns the evolution of color
     '''
     nbColors1 = Color.colorHSVIntervals(img1, contour1)
     nbColors2 = Color.colorHSVIntervals(img2, contour2)
     evolutionC = abs(nbColors1 - nbColors2)
     return evolutionC
 def color(img, contour):
     '''
         returns the number of colors
     '''
     nbColors = Color.colorHSVIntervals(img, contour)
     return nbColors