ColorDetect icon indicating copy to clipboard operation
ColorDetect copied to clipboard

get_color_count() failed when having colors with equal percentage

Open whzzt opened this issue 3 years ago • 2 comments

In colordetect/color_detect.py, line 258, the sorted function will raise an error when two values in hist are equal because the result of comparing two np.ndarray is used as a value.

whzzt avatar Aug 17 '22 21:08 whzzt

@whzzt Great note there. I can check on that. Do you have a sample image with you for the tests and subsequent fix?

MarvinKweyu avatar Sep 04 '22 05:09 MarvinKweyu

@whzzt Great note there. I can check on that. Do you have a sample image with you for the tests and subsequent fix?

I cannot find it now, but I guess there will be one if you test it on a cropped region of a video.

whzzt avatar Sep 14 '22 22:09 whzzt

closed by #65

MarvinKweyu avatar Aug 14 '24 21:08 MarvinKweyu