Tracking an object in a recorded video

In summary, it is possible to tag an object in a recorder video and track it as it goes, but it is a difficult task.
  • #1
henrykay
4
0
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 a lot for the advise given.
 
Technology news on Phys.org
  • #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/
 
  • #3
This is called image segmentation and image registration and is a big field of computer science
 
  • #4
How much time is needed to do such a task ?
 
  • #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).
 
  • #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 achieve 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 .
 
  • #7
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?
 
  • #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.
 
  • #9
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
 
Last edited by a moderator:
  • #10
interesting.

more reading to be done :D
 
  • #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.
 
  • #12
cool. Time to hit the library for some reading up :D Hopefully those books you've mentioned are available at my region :D
 

1. How does object tracking in a recorded video work?

Object tracking in a recorded video involves using computer vision techniques to identify and follow a specific object in a video. This can be achieved through various methods such as motion-based tracking, feature-based tracking, or deep learning-based tracking algorithms.

2. What are the benefits of object tracking in a recorded video?

Object tracking in a recorded video can be used for various purposes, including motion analysis, surveillance, and activity recognition. It allows for the extraction of valuable data from a video, making it easier to analyze and understand the behavior of objects in a given scenario.

3. How accurate is object tracking in a recorded video?

The accuracy of object tracking in a recorded video depends on various factors, such as the quality of the video, the choice of tracking algorithm, and the complexity of the object's motion. In general, modern tracking algorithms can achieve high levels of accuracy, but it may vary depending on the specific application.

4. Can object tracking be applied to any type of video?

Object tracking can be applied to most types of videos, as long as the objects in the video have distinguishable features and there is enough contrast between the object and its background. However, certain environmental factors, such as poor lighting or occlusions, may affect the accuracy of object tracking.

5. Is object tracking in a recorded video a real-time process?

The real-time capabilities of object tracking in a recorded video depend on the processing power of the computer or device used for the task. In general, modern tracking algorithms can achieve real-time performance, but it may also depend on the complexity of the video and the number of objects being tracked.

Similar threads

  • Mechanical Engineering
Replies
33
Views
2K
  • Introductory Physics Homework Help
Replies
6
Views
1K
Replies
34
Views
2K
  • Programming and Computer Science
Replies
4
Views
661
  • Astronomy and Astrophysics
Replies
17
Views
3K
  • Feedback and Announcements
Replies
1
Views
384
  • Computing and Technology
Replies
2
Views
2K
  • Sci-Fi Writing and World Building
Replies
9
Views
2K
  • Other Physics Topics
Replies
1
Views
1K
  • Other Physics Topics
Replies
3
Views
2K
Back
Top