ball detection and tracking using color featuresdsie10/presentations/session 5/ball detection...

17
Ball Detection and Tracking using Color Features Catarina B. Santiago [email protected] Armando Sousa [email protected] Luís Paulo Reis [email protected] Luísa Estriga [email protected]

Upload: others

Post on 28-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 2: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

Presentation Outline

• Motivation

• Challenges

• Image Processing

• Test Platform

• Results

• Conclusions

• Future Work

2

Page 3: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

Motivation

• Interest by the sports community to monitorgames and training sessions

• Championships do not allow intrusive system

• Image processing techniques

o Deal with a huge amount of information/data

o Analyse the position and path of the ball

3Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 4: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

Challenges

• Develop a system to collect images from a movingball

o Able to detect a ball based on color features (using blobnotion)

o Perform the tracking of the ball

o Can in future be applied to a real handball game

4Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 5: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

• Color calibration

5

o Physical flood

o Colour growth

Color ball subspace

ColorCalibration

Motivation Challenges Processing Test Plat. Results Conclusions Future

RGB cube

HSL expansion

Page 6: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

• Background Subtraction

o Conditional subtraction based on the color difference betweenthe image under analysis and the background image

o Background is dynamically updated in each frame

6

Background Subtraction

ColorCalibration

Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 7: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

• Color Detection

o Compare each pixel color (binning)

• color ball subspace => pixel in the image is replaced by the ballidentifier

• color ball subspace => pixel keeps the original color

Image with the

color detected

Color ball

subspace

7

Background Subtraction

ColorDetection

Color Calibration

Motivation Challenges Processing Test Plat. Results Conclusions Future

Original

image

Page 8: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

• Blob Aggregation and Characterization

1. Scan per line to join pixels that belong to the ball

2. Join lines that belong to the same color blob

xmin xmax

y

xmin xmax

y

1 1 1 1 1 1

1 1 1 1 1 1

1 1 1

5 5 5

5 5 5 5 6 7 7

5 5 5 8 8 8 8

1 1 1 1 2 2

3 3 3 3 3 3

4 4 4

5 5 5

5 5 5 5 6 7 7

6 6 6 8 8 8 8

8

Background Subtraction

Color Detection

Blob Aggreg. and Charact.

Color Calibration

Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 9: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

• Blob Aggregation and Characterization

o Minimum and maximum x and y

o Blob area (bounding box)

o Blob centre of mass (converted into world coordinates)

o Blob density

9

Background Subtraction

Color Detection

Blob Aggreg. and Charact.

Color Calibration

Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 10: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

• Tracking the Ball

o The centre of mass of the ball is saved into a file which allows to determine statistics

Tracking algorithm

• Previous blob

characteristics

• Maximum

speed

likely

position area

Background Subtraction

Color Detection

Blob Aggreg. and Charact.

Tracking

10

Color Calibration

Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 11: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

Test Platform

• Test set mounted in the laboratory

o GigEthernet camera

o 2 sample footages of 7 seconds with fast and slow ball movements

o MJPEG encoding

o Used image size 412x708

o 30 frames per second

11Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 12: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

Results

• Impact of the color calibration expansion

12Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 13: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

Results

• Ball detection

o Detection rates

o Detection under severe light conditions

13

1st set 2nd set

98% 100%

Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 14: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

Results

• Ball Tracking

o 1st set – red, green and blue

o 2nd set – rose and purple

o Each frame took ~33ms to be processed laptop computer with 1MB L2 cache and powered by an Intel T2130 processor running at 1.86GHz

14Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 15: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

Conclusions

• System for detecting and tracking a ball (lab tested)

• Image processing using blob notion is a powerful and fast tool

• Color calibration has impact on the ball detection

• Ball detection rate: 98% (1st set) and 100% (2nd set)

• Ball tracking is possible

• On going work for handball tracking on a sports hall

15Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 16: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

Future Work

• Adapt the actual setup to a real environment

o Mount the system in a sports hall (FADEUP)

o Use it in real game situations (barrel distortion effects, other objects, varying light conditions)

• Improve overall performance

o Artificial Intelligence

o Kalman filter

• Develop a better interface for the data analysis

• Support system to aid and backup the teacher/coach

16Motivation Challenges Processing Test Plat. Results Conclusions Future

Page 17: Ball Detection and Tracking using Color Featuresdsie10/presentations/session 5/Ball Detection and... · •Image processing using blob notion is a powerful and fast tool •Color

Ball Detection and Tracking using Color Features

17

THANK YOU!

Questions?