简体   繁体   English

rpi4 中带有 openCV 的 gstreamer

[英]gstreamer with openCV in rpi4

I am trying to build software using GStreamer and OpenCV in C++ in rpi4.我正在尝试在 rpi4 的 C++ 中使用 GStreamer 和 OpenCV 构建软件。 But the problem is I don't have the root access so I am not able to install any packages for GStreamer.但问题是我没有 root 访问权限,所以我无法为 GStreamer 安装任何软件包。 What I am trying is to copy all the libs for GStreamer and then try to build my software.我正在尝试复制 GStreamer 的所有库,然后尝试构建我的软件。 I am using the following code:我正在使用以下代码:

cv::VideoCapture cap;
cap.open("videotestsrc ! appsink",CAP_GSTREAMER);

But it is not working.但它不起作用。 I have tried the same with my laptop after installing GStreamer and it is working.安装 GStreamer 后,我在笔记本电脑上尝试过同样的操作,它正在工作。 So my guess is the problem is that the GStreamer is not setup correctly.所以我的猜测是问题是 GStreamer 设置不正确。 Is there any way to use GStreamer without installing the packages by just copying the libs and bin files?有没有什么方法可以使用 GStreamer 而无需通过复制 libs 和 bin 文件来安装包?

Thanks in advance.提前致谢。

Didn't get any solution till now.到现在都没有解决办法。

If you don't have root access, then there's not much you can do here.如果您没有 root 访问权限,那么您在这里无能为力。 Sorry.对不起。

You would need to build them yourself for PI (if technically feasible), find somebody who has done it, or possibly use Android OS on your Pi.您需要自己为 PI 构建它们(如果技术上可行),找到做过的人,或者可能在您的 Pi 上使用 Android OS。

FYI, link to prebuilt packages (only osx, windows, android, ios) and link to using Cerbero for building gstreamer (same deal)仅供参考,链接到预构建的软件包(仅 osx、windows、android、ios)并链接到使用 Cerbero 构建 gstreamer(同样的交易)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM