Wednesday, December 7, 2016

Activity 11 - Basic Video Processing

Last activity for AP 186!

Activity 10 is about video processing. Video processing is not really that different from image processing, since a video is basically a series of images. And so, what we can do is process each image that comprises the video. 

The task at hand was to experimentally determine a kinematic constant, such as the acceleration due to gravity \( g \), by processing a video capturing a kinematic event. One way to determine \( g \) was simply to drop an object from a certain height and determine the time for it to travel a certain distance. \( g \) can then be calculated using the equation
$$ g = \dfrac{2 (h_o - h)}{t^2} $$
where \(h_o\) is the initial height, \( h \) is the final height, and \(t\) is the time to reach \(h\) from \(h_o\).

The video below shows my trial in performing this activity. I dropped a red cube and captured the event using my phone. The ruler was meant to serve as reference for distance. 


The video was then converted to images using Video to JPG Converter. The series of images during the drop are shown below









To identify the object, we perform color image segmentation like we performed in one of the previous activities. I obtained the color patch of the ROI from the cube in the 1st image. However, I encountered a problem. The object is identified until the 2nd image only. Starting from the 3rd image, since the object is blurred due to its motion, it cannot be identified using the ROI used. 

Luckily, Harold offered to let me use his video (thanks Harold!) of a simple pendulum. The video is shown below. \( g \) may be calculated by knowing the period of its oscillation \(T\) and using the formula 
$$g = \dfrac{4 \pi^2 L }{T}$$
where \(L\) is the length of the string



The same thing was done, where color segmentation was performed to identify the ball. Some of the images comprising the video are shown below.
















No comments:

Post a Comment