开发者

GUI for multiple OpenCV videos

开发者 https://www.devze.com 2023-02-17 08:46 出处:网络
I want to build a GUI for a OpenCV application. What I want to ac开发者_如何学运维complish is show multiple videos in one Window and show a tracker in the same window.

I want to build a GUI for a OpenCV application. What I want to ac开发者_如何学运维complish is show multiple videos in one Window and show a tracker in the same window.

Please help


First of all, if you're asking for help on the tracker, please consult the OpenCV documentation (cvNamedWindow and cvCreateTrackbar). As for having multiple videos in one window, it's relatively easy. All you need to do is create an image that can hold the frames for all of your videos. For example, if you have two videos @ 320x240 each, create a frame that can hold a 640x240 frame. Call off to cvQueryFrame (two times -- one for each source). Copy the first result into the left half of the image, and the second result into the right half. Then call off to cvShowImage with the concatenated images and you're done! Hope that helps :)

0

精彩评论

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