【问题标题】:Is there a way to get the both main stream and sub stream together in opencv python有没有办法在opencv python中同时获得主流和子流
【发布时间】:2020-05-13 13:24:12
【问题描述】:

我正在使用大华热像仪

相机可以提供两个流(Color_Stream + Thermal_Stream)

我通过带有cv2.VideoCapture() 函数的给定 URL 从 python 中的热像仪获取颜色流(在 URL 中保留 channel=1

rtsp://admin:admin@10.7.6.67:554/cam/realmonitor?channel=1&subtype=0

和给定 URL 的热流(在 URL 中保留 channel=2

rtsp://admin:admin@10.7.6.67:554/cam/realmonitor?channel=2&subtype=0

有没有办法可以将两个流放在一起? (只调用一个函数)

【问题讨论】:

    标签: python opencv video-capture ip-camera opencv-python


    【解决方案1】:

    我没有用 IP 摄像机尝试过这个。但也许您可以尝试使用 2 个线程来打开 2 个流。然后你可能能够获取两个流。如果这不起作用,您可以尝试在流之间交替切换,如果有帮助的话

    【讨论】:

    • 是的,这就是我现在使用的终极解决方案。但我只是想看看是否有任何方法可以通过 rtsp 链接等方式将它们一起选择。顺便谢谢你的回答:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-05-30
    • 1970-01-01
    • 1970-01-01
    • 2019-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多