Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   2014 Ball HSV Values (http://www.chiefdelphi.com/forums/showthread.php?t=125410)

lucas.alvarez96 28-01-2014 22:27

2014 Ball HSV Values
 
Has anybody determined the HSV values of the blue ball? My team received the red ball and I've been using the minimum range as (160, 50, 50) and maximum as (180, 200, 200). These values are for OpenCV, so hue is considered form 0 to 180, instead of 0 to 360 as usual. The same for saturation and value, which are 0 to 255 in OpenCV, whereas they're usually taken from 0 to 100.

jmartin 28-01-2014 22:32

Re: 2014 Ball HSV Values
 
Regardless of what works for others, it is probably a good idea to calibrate these values on the field, as they may vary greatly depending on lighting and camera settings.

lucas.alvarez96 28-01-2014 22:38

Re: 2014 Ball HSV Values
 
Yes, it's very important to calibrate them on the field, but it's good to have a range with which to work. Also, the hue value won't change to much. Or so I've been told :ahh:

jmartin 28-01-2014 22:44

Re: 2014 Ball HSV Values
 
Ideally, hue wouldn't change too much, but under white lights vs yellow lights etc, I think it would vary some. And auto white balance or auto exposure can really screw with this kind of thresholding.

Anyway, our team has a blue ball. If I get a chance to find a good range, I'll try to remember to post it here. Can't promise it would be anytime soon -- we have a lot of other things to get working first.

billbo911 29-01-2014 00:11

Re: 2014 Ball HSV Values
 
I just did some testing today with OpenCV and one of the JPGs that came with LV of the red and blue ball. This was from a print, not a real blue ball. Calibration on the field is a must!

Here are the Upper and Lower values for HSV I found worked for testing purposes:

UH = 135
LH = 70
US = 186
LS = 25
UV = 227
LV = 100

Hope those help.


All times are GMT -5. The time now is 02:35.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi