How to connect Ip camera using openCV library for the Qt version 5.15.2..Im trying to display the Ip camera output in QML window
-
-
@Vijaykarthikeyan You're not linking OepnCV library to your application
-
@jsulm Sir,can you please tell me how to do it? Im trying this task for the past one week.I came to know that Qt multimedia wont support this and mediaplayer wont accept rtsp link..There is no webEngine and webview module in 5.15.2..thats why I went with OpenCV..how to link it sir..
-
@Vijaykarthikeyan Using QtCreator: https://doc.qt.io/qtcreator/creator-project-qmake-libraries.html
Manually editing pro file: https://doc.qt.io/qt-6/qmake-variable-reference.html#libs -
@Vijaykarthikeyan Please post text not pictures! Please post all errors, especially the first one.
What compiler do you use and what compiler was used to build OpenCV? I'm asking because MSVC++ and MinGW are not compatible. -
@Vijaykarthikeyan Sorry sir..Im using MingGW 8.1.0 32 and 64 bit compiler Sir.There is no error until I put the statement VideoCapture cap;
-
@Vijaykarthikeyan You did not answer all my questions.
Please build and post whole build log here, so that we can see what happens... -
@Vijaykarthikeyan What compiler was used to build OpenCV?
And I'm not sure whether the OpenCV library you're linking is the only one you need. Check what other libraries are there and which you need. -
@jsulm These are my compilers sir. Im new to Qt, Sir. The other libraries which could be used for this purposes are VLClib, Gstreamer,live55..My only problem is around linking these external libraries which ends up in inability to use those functions
-
@Vijaykarthikeyan I asked about the compiler which was used to compile OpenCV and I also explained why I'm asking this. Up to you to ignore that or not...
And what about "And I'm not sure whether the OpenCV library you're linking is the only one you need. Check what other libraries are there and which you need."? Are you going to do something about it or just ignore? -
@jsulm Yes Sir I understand.. OpenCV is the 3rd part library for which the compiler used is not well known. Other alternative libraries are live555 or GStreamer or VLClib..I could able to do that function sir but im stuck with the linking
-
This post is deleted!
-
-
The OpenCV documentation seems to only mention visual studio for the pre-built binaries so you will likely have to build it yourself to use it with MinGW.
-
@SGaist Thank you Sir.. With your words, I have finally solved the linking problem..Actually what the problem is I have MINGW compiler but OPenCV library is for MSVC.. I have downloaded the correct version for MINGW compiler..Now,I want it to show it in QML window
-