Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Tracking an object in a recorded video

  1. Jun 29, 2009 #1
    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.
     
  2. jcsd
  3. Jun 29, 2009 #2
    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/
     
  4. Jun 29, 2009 #3
    This is called image segmentation and image registration and is a big field of computer science
     
  5. Jun 30, 2009 #4
    How much time is needed to do such a task ?
     
  6. Jun 30, 2009 #5
    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).
     
  7. Jun 30, 2009 #6
    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 .
     
  8. Jun 30, 2009 #7

    minger

    User Avatar
    Science Advisor

    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?
     
  9. Jun 30, 2009 #8
    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.
     
  10. Jun 30, 2009 #9

    mgb_phys

    User Avatar
    Science Advisor
    Homework Helper

    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/ [Broken] there are probably even some examples of this topic - it's a common application of image processing
     
    Last edited by a moderator: May 4, 2017
  11. Jul 1, 2009 #10
    interesting.

    more reading to be done :D
     
  12. Jul 1, 2009 #11
    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.
     
  13. Jul 1, 2009 #12
    cool. Time to hit the library for some reading up :D Hopefully those books you've mentioned are available at my region :D
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Tracking an object in a recorded video
  1. Record Menu (Replies: 0)

Loading...