def get(self): colors = ColorCountList(self.image, box=self.box()).get() return Color.avg_weighted(colors)
def compare(self): return 1.0 - Color.diff( self.color_operation(self.image_one).get(), self.color_operation(self.image_two).get() )