'How to link QT with Intel RealSense?
I am creating an app using Qt5.15(Qt quick), Visual studio 2019, C++ and the "im-show" example from the Intel RealSense SDK.
I created a special « Rectangle » where i am displaying the stream of my RealSense on my app interface after clicking on the start button that I have created also. To link my User interface with my C++ codes, i created a C++ file named « Backend.h & Backend.cpp » where I create my functions so I can use them on my QML code directly.
My issue is that I haven’t figured « yet » out a way to link my camera streams with my « Rectangle » scene. I found an example of what I’m looking for but in Qt widgets. I followed the example and my problem is that I haven’t found an "equivalent" of this line of code "ui.camera->setPixmap(QPixmap::fromImage(qt_image));" in QML. This code is used to display the camera streams on the app.
I also tried with the « Qml Camera example » but it worked only for the « RGB Camera » of the RealSense. For the depth camera, I had a compilation error « unsupported media type ».
Can someone help me or explain how can I figure this out ?
Thanks in advance.
The link of the example with Qt Widgets :
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
