English 中文(简体)
Tracking Objects in Videos [closed]
原标题:

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Are there any open Source libraries for tracking objects and over-laying graphics in videos ? Specifically, to create effects similar to the products offered in the below link :-

http://www.orad.tv/en/page.asp?id=85

问题回答

Essentially you need a library that will decode a video file and present you with the raw data for you to analyse. There are no libraries (certainly none that I am aware of anyway) that will allow you to do the high level tracking directly (i.e. there won t be a findBall() method!!!). You will almost certainly have to gain access to the pixel values and analyse them yourself.

For this kind of thing, I would use something like opencv. It s a C++ library that will (1) allow you to gain access to the raw pixel data (as well as motion vector data etc), (2) provide you with some utility methods for analysis, and (3) allow you to overlay graphics on top of a video frame.

Overlaying the graphics on the video is the easy part, automatically tracking the players and detecting the situations etc is a lot harder. Usually it involves a mixture of analysis defining what you are looking for, and some machine learning algorithm to detect the specific events.

[edit]:

For what it s worth, I believe a lot of soccer analysis techniques use the lines on the pitch as markers for analysis, so a first step would be to detect them. The Hough Transform is a good way to do this (openCV will generate it for you). The next step would be to look for moving blobs (players) of a similar colour and size within these lines (i.e. ignore the crowd and ballboys etc). You can then use a combination of motion vector tracking and colour tracking to keep track of where they are. This will be a little difficult, since you have a moving camera and also moving players. Tracking the football can be done by essentially looking for a fast-moving small blob.

I would imagine (guessing here) that the makers of that software trained their system using some form of classifier to find free kicks etc, this will essentially say: "Find me situations when there is a stationary small white blob (the ball), with some larget blobs of a similar colour nearby (the players taking the free kick), and a large number of different colour blobs near the right/left extremety of the pitch (the players beside the goal)".

[/edit]

If you don t object to having markers in your video. This artoolkit (Augmented reality tookit) might be just for you

Please look into OpenCV in all its incarnations.

There is also openTLD solution: http://www.gnebehay.com/tld/





相关问题
Non-linear video editing tool/API?

Can anyone recommend a good library that would enable me to write an application that can blend multiple input videos into one output video (for example into a split screen). I don t care about the ...

WPF playing a video, shopping up, can I preload?

Im showing a video int my application, but its being chopped up, its locally on disc so I dont understand why this is so... any way i can start to preload it before playing it - so the content would ...

FLVs on timeline are glitching out

I have a Movieclip with about five FLV movies embedded on its timeline, one after another. I am loading multiple instances (about 5-10) of this movieclip onto the stage. Once added to the stage, they ...

Get the dimensions of a H.264 MP4

Does anybody know a ready-made, reliable way to tell the dimensions (width x height) of a MP4 encoded using the H.264 codec without ffmpeg or similar extensions, in pure PHP? Thanks for all the ...

热门标签