image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

Go Back   Physics Forums > Other Sciences > Computing & Technology > Programming & Comp Sci


Reply

image Tracking an object in a recorded video Share It Thread Tools Search this Thread image
Old Jun29-09, 10:33 PM                  #1
henrykay

henrykay is Offline:
Posts: 4
Tracking an object in a recorded video

Hi guys,

i stumble across this forum searching for a way to tag an object in a recorder video and track it as it goes.

Can i check is this possible to do ?

for example i had a video of my 2 dogs playing fetch. is it possible to tag both my dogs and the stick and track them throughout the video?

is it hard to achieve this if its possible to do it?


Thanks alot for the advise given.
  Reply With Quote
Old Jun29-09, 10:53 PM                  #2
gendou2

gendou2 is Offline:
Posts: 190
Re: Tracking an object in a recorded video

It is possible but a very difficult task.
It can be made easier your black dog is running on a grey background fetching a white stick.
A computer algorithm called "blob detection" can identify blobs of color in an image.
For example, you might track the black and white blobs frame be frame, and interpolate the motion.
For simple experiments, I recommend experimenting with this library:

http://v3ga.net/processing/BlobDetection/
  Reply With Quote
Old Jun29-09, 11:35 PM                  #3
maverick_starstrider
 
maverick_starstrider's Avatar

maverick_starstrider is Offline:
Posts: 819
Recognitions:
PF Contributor PF Contributor
Re: Tracking an object in a recorded video

This is called image segmentation and image registration and is a big field of computer science
  Reply With Quote
Old Jun30-09, 01:45 AM                  #4
CylonMath

CylonMath is Offline:
Posts: 35
Re: Tracking an object in a recorded video

How much time is needed to do such a task ?
  Reply With Quote
Old Jun30-09, 03:00 AM                  #5
maverick_starstrider
 
maverick_starstrider's Avatar

maverick_starstrider is Offline:
Posts: 819
Recognitions:
PF Contributor PF Contributor
Re: Tracking an object in a recorded video

well that entirely depends on the specific task. It could be an easy thing you could write in matlab, it could take a supercomputer, it could not be doable at all. It could involve simple integral transformations on an image or it could involve developing a machine learning algorithm. It entirely depends on the specifics. (I used to tinker with this kinda stuff when I worked in medical physics in undergrad, they were trying to write algorithms to detect cancer in MRI image automatically, it was an extraordinarly difficult undertaking).
  Reply With Quote
Old Jun30-09, 07:02 AM                  #6
henrykay

henrykay is Offline:
Posts: 4
Re: Tracking an object in a recorded video

thanks all for your valuable opinion.

gendou2 thank you for the link, i'll take a look at the information there .

hopefully its not too hard to acheive this and will not require a super computer to do so.

I assume the more object that needs to be track in a video, the harder it will be to do so. is there a chance that the tracking can be done even if the object went out of the video and re-enter ?

Appreciate any advise given .
  Reply With Quote
Old Jun30-09, 08:25 AM                  #7
minger

minger is Offline:
Posts: 980
Recognitions:
Science Advisor Science Advisor
Re: Tracking an object in a recorded video

I remember seeing features of a new video editing software that was still unreleased. In it, the user drew a box on the side of a car in the first frame. The person then drew inside that box (text IIRC). Then they simply hit play and the code was able to track the side of the car through the entire stage as it both translated and rotated.

I really wish I could remember the name of it; perhaps it was just a beta version of Premeire or something like that?
  Reply With Quote
Old Jun30-09, 04:07 PM                  #8
maverick_starstrider
 
maverick_starstrider's Avatar

maverick_starstrider is Offline:
Posts: 819
Recognitions:
PF Contributor PF Contributor
Re: Tracking an object in a recorded video

the difficulty is not in the number of objects. Once you have it working for one, tracking multiple identical objects is trivial. The difficult is dependent on how much help the computer gets before hand in determining what it's tracking and how difficult it is to distinguish the object you're tracking from the background (not so much a camoflage object on a plain background but busy backgrounds are a big problem). So if you want the algorithm to track a ball of unknown dimensions, shape and color across a very 'busy' image without you giving it any hints to start with that could be very difficult.
  Reply With Quote
Old Jun30-09, 04:33 PM                  #9
mgb_phys

Physics Guru 2008

mgb_phys is Offline:
Posts: 7,290
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: Tracking an object in a recorded video

As maverick says, it's not hard to do the simple case - the hard cases can be impossible.
A popular image processing library for this sort of stuff is OpenCV http://opencv.willowgarage.com/wiki/ there are probably even some examples of this topic - it's a common application of image processing
  Reply With Quote
Old Jul1-09, 04:16 AM                  #10
henrykay

henrykay is Offline:
Posts: 4
Re: Tracking an object in a recorded video

interesting.

more reading to be done :D
  Reply With Quote
Old Jul1-09, 08:52 AM                  #11
CylonMath

CylonMath is Offline:
Posts: 35
Re: Tracking an object in a recorded video

Digital Image Processing - Rafael Gonzales, Richard Woods
Introductory Techniques for 3-D Computer Vision - Trucco, Alessandro Verri
Computer Vision - Linda G. Shapiro, George Stockman
Learning OpenCV : Computer Vision with the OpenCV - Gary Bradski, Adrian Kaehler

That books are worth having a look if youre interested in doing that task.
  Reply With Quote
Old Jul1-09, 10:23 PM                  #12
henrykay

henrykay is Offline:
Posts: 4
Re: Tracking an object in a recorded video

cool. Time to hit the library for some reading up :D Hopefully those books you've mentioned are available at my region :D
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: Tracking an object in a recorded video
Thread Thread Starter Forum Replies Last Post
General Relativity Recorded Lectures nicksauce Advanced Physics Learning Materials 7 Oct3-09 03:29 AM
More about that gamma burst (the brightest ever recorded) marcus Astrophysics 4 Oct15-08 10:22 AM
Video object tracking: ping-pong balls awvvu Computing & Technology 1 Mar30-08 10:02 PM
Questions relating to creating a teather object for a video game. Crusty General Math 0 Mar14-06 07:21 AM
Loops '05 recorded talks now available marcus Beyond the Standard Model 13 Nov15-05 11:30 AM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image