25 Object Tracking
25 Object Tracking
Objectives
2
Object Tracking
3
What is Object Tracking?
Object tracking is the task of taking an initial set of object detections,
creating a unique ID for each of the initial detections, and then
tracking each of the objects as they move around frames in a video,
maintaining the ID assignment.
3
What is Object Tracking?
Features
Frame (i)
(i)
Frame Features
(i+1) (i+1)
Bounding
box (i)
3
The Approach
3
The Approach
Type 1: Point Tracking: Objects detected in consecutive frames
are represented by points: deterministic, probabilistic methods, and
the association of the points is based on the previous object state
which can include object position and motion. This approach
requires an external mechanism to detect the object in every frame.
3
The Approach
Point Tracking: Tracked point features in an image sequence. Blue
dots are older tracks and green dots are newly spawned tracks.
3
The Approach
Type 2: Kernel Tracking: kernel tracking is usually performed by
locating the moving object, which is represented by an embryonic
object region, from one frame to the next: multi- view based,
template based. It refers to the object shape and appearance.
3
The Approach
Kernel Tracking: Kernel based Object Tracking using Colour
Histogram Technique.
3
The Approach
Type 3: Silhouette Tracking: Tracking is performed by estimating
the object region in each frame. Silhouette tracking methods use the
information encoded inside the object region. Ex: contour evolution,
shape matching
3
The Approach
Silhouette Tracking:
– Tracking results using the
model-based silhouette
extraction method of Section
4.3. Frames 97, 98, 99 and
100 of the sequence in Figure
3 are shown.
– Snake- optimized contours are
overlaid on the original images
on the left as well as the
resulting model on the right
3
Object tracking levels
Type 1: Single Object Tracking (SOT)
– It creates bounding boxes that are given to the tracker based on
the first frame of the input image.
– Single Object Tracking is also sometimes known as Visual
Object Tracking.
– SOT implies that one singular object is tracked, even in
environments involving other objects.
13
Object tracking levels
Single Object Tracking (SOT)
14
Object tracking levels
Type 2: Multiple Object Tracking, or MOT
– It is an experimental technique used to study how our visual
system tracks multiple moving objects.
15
Object tracking levels
Multiple Object Tracking (MOT)
16
Object tracking Algorithms
OpenCV:
– CSRT: is best when the user requires a higher object tracking accuracy and can
tolerate slower FPS throughput
– KCF tracker: is not as accurate compared to the CSRT but provides comparably
higher FPS
– The MOSSE tracker is very fast, but its accuracy is even lower than KCF.
17
Object tracking Algorithms
Optical Flow: Optical flow, or motion estimation, is a fundamental
method of calculating the motion of image intensities, which may be
ascribed to the motion of objects in the scene.
Meanshift: Mean Shift is a non-parametric iterative algorithm that
can be used for a lot of purposes like finding modes, clustering
Kalman Filters: The Kalman filter for tracking moving objects
estimates a state vector comprising the parameters of the target,
such as position and velocity, based on a dynamic/measurement
model
18
Object tracking
Object tracking is the process of:
– Taking an initial set of object detections (such as an input set of bounding box
coordinates)
– Creating a unique ID for each of the initial detections
– And then tracking each of the objects as they move around frames in a video,
maintaining the assignment of unique IDs
19
The centroid tracking algorithm
Tracking object
+ Step 1: Compute centroids from box coordinates
(, ) ,
(, )
(, )
(, )
20/11
The centroid tracking algorithm
Tracking object
(, ) ,
√ 2
𝑑 ( 𝑝 ,𝑞 )= ( 𝑞 1 − 𝑝 1) + ( 𝑞 2 − 𝑝2 )
2
21/11
The centroid tracking algorithm
Tracking object
(, ) ,
√ 2
𝑑 ( 𝑝 ,𝑞 )= ( 𝑞 1 − 𝑝 1) + ( 𝑞 2 − 𝑝2 )
2
22/11
The centroid tracking algorithm
Tracking object
(, ) ,
√ 2
𝑑 ( 𝑝 ,𝑞 )= ( 𝑞 1 − 𝑝 1) + ( 𝑞 2 − 𝑝2 )
2
23/11
The centroid tracking algorithm
Tracking object
(, ) ,
√ 2
𝑑 ( 𝑝 ,𝑞 )= ( 𝑞 1 − 𝑝 1) + ( 𝑞 2 − 𝑝2 )
2
24/11
Multiple Object Tracking
– Given this information, the tracker tracks the location of these specified objects in
all subsequent frames.
25/11
Multiple Object Tracking
26/11
Applications
Behavioral analysis of objects or human, such as gesture analysis,
facial expression analysis.
Robotics such as autonomous vehicle
Smart camera such as video surveillance
27
Object tracking challenges
Occlusion: It occurs when an object we are tracking is hidden by
another object.
Scale change
Background clutter: Background near object has similar color or
texture as the object.
Appearance change: Different viewpoints of an object may look very
different visually and without context.
The main challenge is to hold balance between computational
efficiency and performance.
28
Summary
29