【发布时间】:2018-01-20 13:46:03
【问题描述】:
我有一个获取新帧的线程、2 个处理新获取的图像的其他线程和 1 个基于处理线程打印输出的线程。
程序循环进行,
>thread 3, print an output based on the previous outputs of the thread 0 and 1
>thread 0 get new image
>> thread 1, process image for color
>> thread 2, process image for haar cascade
循环进行 3&0>1&2>3&0>1&2>
'>' 表示在生成下一组之前加入
如何在线程 0 到 1&2 之间传递 opencv Mat?
另外,我如何将数据从线程 1 和 2 传递到线程 0?
我猜是消息队列系统,如何实现?
【问题讨论】:
标签: linux opencv message-queue