开发者

Playing a Video and grabbing frames using a timer

开发者 https://www.devze.com 2023-02-12 06:28 出处:网络
I am having trouble playing a video and grabbing frames. I need to grab frames to perform change detection among other t开发者_如何学编程hings...Is there a way of playing a video and grabbing frames p

I am having trouble playing a video and grabbing frames. I need to grab frames to perform change detection among other t开发者_如何学编程hings...Is there a way of playing a video and grabbing frames periodically (using a timer) such as using Windows Media Player control on a windows form?

N.B:

  1. I have looked over DirectShow.NET, seems too complicated & involved for such a simple requirement. So don;t want to head that route, unless i absolutely must.
  2. The AVIFile lib won't cut it since I need to support multiple video formats (other than AVI)


I have done something similar to this in the past with DirectShow.

You are going to get much better results with DirectShow, since you can do you calculations frame by frame rather than on a timer.

These are both examples of motion capture, that use DirectShow: A B

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号