28.02.2013 Views

3rd meeting of young researchers at UP 1 - IJUP - Universidade do ...

3rd meeting of young researchers at UP 1 - IJUP - Universidade do ...

3rd meeting of young researchers at UP 1 - IJUP - Universidade do ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Autom<strong>at</strong>ic Shooting Sport Target Classific<strong>at</strong>ion System<br />

Rui Diogo Ribeiro Barbosa 1 , Leonar<strong>do</strong> Veríssimo Car<strong>do</strong>so 2<br />

1 Department <strong>of</strong> Electrical and Computer Engineering, Faculty <strong>of</strong> Engineering University <strong>of</strong> Porto,<br />

Portugal.<br />

2 Department <strong>of</strong> Electrical and Computer Engineering, Faculty <strong>of</strong> Engineering University <strong>of</strong> Porto,<br />

Portugal.<br />

Digital photography technology evolution enabled continuous decrease <strong>of</strong> price per megapixel.<br />

So it became possible to use a common digital camera in systems th<strong>at</strong> require precision image<br />

processing, such as classifying <strong>of</strong>ficial shooting sports targets. This project has been developed<br />

as a low cost solution, for shooting sport target classific<strong>at</strong>ion, and as an option to the use <strong>of</strong><br />

specific classifying machines th<strong>at</strong> are actually used. The project was primarily focused on<br />

developing s<strong>of</strong>tware th<strong>at</strong> autom<strong>at</strong>ically classifies the targets.<br />

The photos used, to test the developed s<strong>of</strong>tware, were taken in the labor<strong>at</strong>ory, where a tripod<br />

was used to hold the camera <strong>do</strong>wn and align it with the target. After configuring some<br />

important parameters, like contrast and diaphragm aperture, the most important is to know the<br />

minimum size in pixels needed to process the image because as the file size gets bigger the<br />

more time the s<strong>of</strong>tware takes to process.<br />

The developed s<strong>of</strong>tware can be divided into three parts:<br />

i) Detection and calcul<strong>at</strong>ion <strong>of</strong> the centers <strong>of</strong> the shots.<br />

ii) Detection <strong>of</strong> the type <strong>of</strong> target and its center.<br />

iii) Shot classific<strong>at</strong>ion.<br />

To detect shots on the targets, the photos were taken with a red sheet beyond them. This color<br />

was chosen to detect the shots with a segment<strong>at</strong>ion <strong>of</strong> the initial image. So the shots would be<br />

red in the image.<br />

Processing this image we get the edges <strong>of</strong> each shot. The centers are calcul<strong>at</strong>ed using an<br />

equ<strong>at</strong>ion for centers <strong>of</strong> mass and then optimized by a least squares method.<br />

Detecting the type <strong>of</strong> target and its center was based on images processed through the initial<br />

photo and in an algorithm th<strong>at</strong> detects the size <strong>of</strong> target’s black circle. Knowing th<strong>at</strong> each target<br />

has different width for its black circle, the center and the type <strong>of</strong> target are autom<strong>at</strong>ically<br />

known.<br />

Finally, through distance between points in a plane, and knowing th<strong>at</strong> the radius <strong>of</strong> all shots is<br />

the same, we get the distance between the center <strong>of</strong> the target and the closest point <strong>of</strong> the shot<br />

to the center <strong>of</strong> the target, and, with th<strong>at</strong>, the classific<strong>at</strong>ion for each shot is made.<br />

Graphic user interfaces, which gives an overview <strong>of</strong> the parameters used, and show the<br />

obtained results, has been developed so the s<strong>of</strong>tware can easily be used.<br />

References:<br />

[1] Avelino, Pedro (2006), Optical recognition <strong>of</strong> shots in a shooting sports target, FE<strong>UP</strong><br />

[2] The M<strong>at</strong>hWorks, Inc. (1994-2010), Available <strong>at</strong>: http://www.m<strong>at</strong>hworks.com<br />

[3] Intern<strong>at</strong>ional Shooting Sport Feder<strong>at</strong>ion (2010), Available <strong>at</strong>: http://www.issf-sports.org<br />

416 3 rd <strong>meeting</strong> <strong>of</strong> <strong>young</strong> <strong>researchers</strong> <strong>at</strong> <strong>UP</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!