gstreamer ubuntu gscam如何分离我的相机左右图像 [英] gstreamer ubuntu gscam How to separate my camra left and right images

查看:187
本文介绍了gstreamer ubuntu gscam如何分离我的相机左右图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的相机照片:

我的相机很特殊(不是纯双目相机),具有一个USB接口,但是有两个设备编号. 设备:/dev/video0是关于左右摄像机图像的, 设备:/dev/video1是结合左右摄像头的图像深度,我用gscam(gstream)驱逐出了/dev/video0的情况是这样的:左右摄像头图像在内部的一个窗口中:

My camera is special (Not a pure binocular camera), has one usb interface but two device numbersthe. device:/dev/video0 is about left and right camera images, device:/dev/video1 is the depth of the image combined with left and right cameras, I used gscam (gstream) driven out / dev / video0 is this case:The left and right camera images are in a window inside:

如何将它们分开?分为两个窗口,让左右摄像机图像分别显示吗?

How to separate them? divided into two windows, let the left and right camera images are displayed separately?

推荐答案

下一个提供的解决方案.使用width=1280, height=480 videotestsrc ,可以使用videocrop插件和tee进行裁剪.

The solution provided is next. Using a width=1280, height=480 videotestsrc the cropping could be done using videocrop plugin and a tee.

gst-launch-1.0 videotestsrc pattern=0 ! video/x-raw, width=1280, height=480 ! tee name=t ! videocrop left=640 ! queue ! ximagesink t. ! videocrop right=640 ! queue ! ximagesink

在gstreamer 0.10中,管道将是下一个:

In gstreamer 0.10, the pipeline would be next:

gst-launch-0.10 videotestsrc pattern=0 ! video/x-raw-yuv, width=1280, height=480 ! ffmpegcolorspace ! tee name="t" ! videocrop left=640 ! queue ! ximagesink t. ! videocrop right=640 ! queue ! ximagesink

原始来源是videotestsrc中的SMPTE彩条.最终的作物显示在下一个链接中.根据需要进行调整,您应该拥有两个分开的视频图像.

The original source is the SMPTE color bars from the videotestsrc. The resulting crop is shown in the next link. Adjusting it to your needs, you should have your two separated video images.

这篇关于gstreamer ubuntu gscam如何分离我的相机左右图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆