Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Scanning and Detecting Object Color in Image

Hello everybody

Am developing a software that detects boxers punching motion. At the moment i used color based segmentation using inRange function ans set it to detect blue Minimum value and Blue Maximum value. The problem is that the range is quiet wide and my cam at times picks out noize and segments objects of no interest. To improve the software i though of scanning image of a boxing glove and establishing exact Blue color Value before further processing.

It would make sens to me to store that value in a Vector and call it in inRange fiction

//This is my current function which takes the Minimum and Maximum values of Blue Color

 Mat range_out;
        inRange(blur_out, Scalar(100, 100, 100), Scalar(120, 255, 255), range_out);

So i would image the vector to go somewhere here.

image description

  1. Scan this above image compute the Blue value
  2. Store this value in an array
  3. recall the array in a inRange function

If anybody could suggest a solution to this problem or direct me to a source of information where i can look for answers.

Thanks for your attention