Search code examples
opencvhsv

Best way to find HSV values


I am going to apply a HSV threshold to the image below in order to extract the tennis ball. But I could not figure out the best way to find the correct HSV values of the ball. Which method/software do you suggest to me? (I am using Ubuntu) Also according to your experiences which min/max values do you prefer to me? (±10? ±5?)

Regards

image


Solution

  • You can use Gimp to get needed color. The tool is called Color Picker. It also shows HSV values. Here's screenshot of your image:

    enter image description here