Thursday, 12 April 2012

Revised Image Analysis (part 2)

In part one it was decided to use the HSV colour space to filter out the unnecessary parts of the image. There are 3 main sections needed; the table co-ordinates, ball co-ordinates and cue angle. After extensive testing the required filtering of each component was found.

To filter for the table the following filtering will be used;  0.22<Hue<0.49
T0 filter for the ball;  Hue<0.21 or 0.2<=Hue<0.5 and value>=0.64 or Hue>0.49
To filter for the cue; Hue<0.1 or Hue>0.9

It was decided from the testing that it would be easiest to detect red balls as the values for Hue stayed relatively constant over the testing.

No comments:

Post a Comment