Synchronize opencv streams
Liene Cirule
lienes.cirules at gmail.com
Sat Aug 6 19:03:17 UTC 2016
Hi,
I use GStreamer inside OpenCV and I try to figure out - how it's possible
to synchronize multiple opencv streams in order to get smallest possible
difference of captures.
So if I set this on loop like this :
VideoCapture cap1 (... ! ... ! ... appsink)
VideoCapture cap2 (... ! ... ! ... appsink)
While (true) {
cap1 >> frame1;
cap2 >> frame2;
}
I get difference because of linear code execution.
I am thinking about 2 things:
1. is there any event of first cap frame (so I could manage situation where
all src received the first frame)
1.2 Is it possible to manage that event on opencv code
2. Do I have to implement some async operation or threads idle state to to
request frames simultaneously ?
Thanks :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160806/c5d3b6b4/attachment.html>
More information about the gstreamer-devel
mailing list