문제

I want to identify the colors of this color checker chart in a little robust way. In the first step not every color has to be detected correctly.

I ectracted already the subimages, so that I have squares with only one color.

The idea for detecting the color (and print them out) was to transform the colors from RGB to the HSV color model.

Does anybody has a better solution or can help? Best regards!

도움이 되었습니까?

해결책

I think you want an algorithm like the following:

  • Compute the mean RGB value for a given subimg.
  • Compute the Euclidean distance from your mean RGB value to the RGB value in each of the squares.
  • Return the square name that is closest to your RGB value.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top