Ask Your Question

anunuparov's profile - activity

2016-12-28 06:13:23 -0600 received badge  Organizer (source)
2016-12-28 04:56:22 -0600 received badge  Student (source)
2016-12-28 04:42:31 -0600 asked a question Open udp encoded videostream with gstreamer

Hello,

I have a host which sends videostream with opencv and gstreamer. Writter looks like this:

writer.open("appsrc ! videoconvert ! x264enc noise-reduction=10000 tune=zerolatency byte-stream=true threads=4 ! mpegtsmux ! udpsink host=192.168.0.148 port=7002", 0, (double)30, Size(640, 480), true);

I can open it with gstreamer with this parameters, and everything works correctly:

gst-launch-1.0 udpsrc port=7002 ! tsparse ! tsdemux ! h264parse ! avdec_h264 ! videoconvert ! ximagesink sync=false

But If I try to open this stream in opencv with next command:

VideoCapture cap("udpsrc port=7002 ! tsparse ! tsdemux ! h264parse ! avdec_h264 ! videoconvert ! appsink");

Program halts during execution of next line:

cap >> frame;

P.S. opencv is build with support of gstreamer-1.0

Thank you for attention, anunuparov

2016-12-28 04:31:21 -0600 commented question How to add module from opencv 3 to opencv 2

P.S. I actually decided just to have 2 opencv builds on computer, and use when it's possible OpenCV 2, and where is not OpenCV 3.

2016-12-21 05:49:35 -0600 commented question How to add module from opencv 3 to opencv 2

Anyway thank you!

2016-12-20 12:03:12 -0600 commented question How to add module from opencv 3 to opencv 2

On devs forum they said that that will not be soon, so It's best option but will not work at this moment. So I hope to find another way

2016-12-20 11:40:13 -0600 commented answer Aruco + Opencv 2.4.10

Can you clarify me, how to compile it and integrate with OpenCV 2? Thank you

2016-12-20 11:39:05 -0600 commented question How to add module from opencv 3 to opencv 2

Thank you for your answer!

I want to use aruco markers with opencv 2.4. Upgrade to opencv 3 is not possible, because I'm using OpenCV4Tegra, if I will upgrade to 3d version I will lose all optimization made by nvidia.

This solution will work for aruco, but actually I think I will need to port other modules from opencv 3, so I hope to find some sort of universal solution for adding opencv 3 modules to opencv 2. Thats why I thought it will be interesting to compile opencv 3 module alone and integrate it with opencv 2.

2016-12-20 09:54:11 -0600 asked a question How to add module from opencv 3 to opencv 2

Hello,

More precisely I want to add ArUco library support in OpenCV 2.4.13. And I have no idea how to do this.

I saw this post http://answers.opencv.org/question/98...

Next advice was in this post: "If switching to OpenCV 3+ is that much of a problem, you can just download the source files for the ARUCO module directly. It will take a little bit of work to get them to compile, but much less than trying to re-write all the functions yourself. Just remember that it falls under the OpenCV BSD license, so be aware of how you integrate it."

But I have no idea how to do this, CMakeLists.txt file is made for building is a part of the full OpenCV library. How can I compile only one module? And how to include it in OpenCV 2.4.13

Thank you in advance!