StereoMatching
StereoMatching

Reputation: 5019

How to design a custom videoOutput?

The videoOutput I mean is

Rectangle {
        width: 320
        height: 240

        Camera{
            id: camera
        }

        VideoOutput {
            id: videoOutput

            anchors.fill: parent
            source: camera
        }    

        GammaAdjust {
            id: gammaAdjust

            anchors.fill: videoOutput
            source: videoOutput
            gamma: 0.5
        }
    }

How could I design the videoOutput by myself? Maybe this is the fastest and easiest way to save the image after postprocessing,thanks

Edit 1: The purpose of mine is design a videoOutput which could save the frame after postprocessing.If there are any solution to get the frame buffer of videoOutput, I don't have to design a custom videoOutput.

Upvotes: 2

Views: 682

Answers (1)

Qin Peixi
Qin Peixi

Reputation: 165

This code may help you, it's a C++ plugin for QML. Cooperating with other QML types may be a hard work, but reading camera and processing image in C++ is always quite easy.

Upvotes: 1

Related Questions