CvCamView
CvCamView copied to clipboard
Not able to display using Qt5.5
Hi,
I am glad that you could display camera capture in qml using opencv. I tried to build your plugin using Qt 5.5. I made the necessary changes like QDeclarative to QQuickItem and replaced QStyleOptionGraphicsItem with QGraphicsItem. I am able to receive the iplData, qImage in the qml onNewFrame. However I am not able to view the image in qml. Could you please share the qmlTest solution.
@rbotta, could you please share your Qt5-related changes?
Feel free to open a PR, during this week I'll take a look at this code and start the migration to Qt5
Btw, Qt 5.5 now has a VideoOutput QML object that can have custom filters.
They are basically saying that we should write cvFilters. It's reasonable: VideoOutput can play from a media file too.
But I think a downside of Qt's videofilterrunnable is, that the QVideoFrame images on android are GLTextureBuffers, so it's expensive to copy them to the user memory. Wouldn't it be faster to have opencv capture the camera image if you want to manipulate it since it is already in user space and draw it later?
When can we expect a Qt 5 version of this library?