Professional Documents
Culture Documents
ME 423 Object Tracking Using Imaging Processing
ME 423 Object Tracking Using Imaging Processing
ME 423 Object Tracking Using Imaging Processing
Kartik
IIT Bombay
The objective of this activity is to track a small object in a video using simple image processing
methods. ‘Tracking’ here refers to obtaining the instantaneous X and Y coordinates of the
object with respect to a fixed point (the ‘origin’, that is generally fixed/stationary). Knowing
the above at several time instants, relations between certain input and output parameters can be
obtained.
Any colour can be expressed as a combination of three basic colours, viz., Red, Green and
Blue. The intensity of any of these colours is commonly expressed as an RGB value. A single
pixel is defined by a set of RGB values and its location from a known (typically, top-left corner)
location within the image. The most common way of expressing RGB values is in terms of
resolution in 8-bits for each colour, giving 24-bit resolution in total. This provides 28 or 256
possible values for each one of Red, Green and Blue. The values taken generally are from 0-
255.
As shown in Fig. 2, the pendulum mass is released from height ℎ! and it rises to height ℎ"
after impacting the specimen. Here, ℎ! and ℎ" are measured with reference to the bottom
most position of the pendulum mass.
The size of the feature (or attached marker) on the pendulum mass should be appropriate
(neither too large, nor too small) so as to track the position correctly. Also, a sufficient distance
should be maintained between the camera and the setup in order to minimize the parallax error.
V. Kartik
IIT Bombay
Note that a scale factor needs to be applied in the code in order to convert pixel data (from
your video) into (actual) length data in engineering units (such as mm).
𝐴𝑐𝑡𝑢𝑎𝑙 𝑙𝑒𝑛𝑔𝑡ℎ 𝑖𝑛 𝑚𝑚
𝑆𝑐𝑎𝑙𝑒 =
𝐿𝑒𝑛𝑔𝑡ℎ 𝑖𝑛 𝑝𝑖𝑥𝑒𝑙𝑠