BrightnessContrastFilter QML Type

Provides filters used to alter the brightness and contrast of video footage. More...

Import Statement: import ArcGIS.AppFramework.VideoFilters 1.0

Properties

Detailed Description

The BrightnessConstrastFilter component provides a way for an app to change video output by allowing for brightness and contrast to be modified before being passed on to another filter. When used in conjunction with another video filter, it can result in improving the digital image processing in that video filter. For example, when used with BarcodeVideoFilter, it can improve the capture of barcodes.

This code sample shows a potential usage of BrightnessContrastFilter, altering the contrast of the video output before passing it on to BarcodeFilter.

Page {
    VideoOutput {
        anchors.fill: parent
        filters: [ brightnessContrastFilter, barcodeFilter ]
    }
    BrightnessContrastFilter {
        id: brightnessContrastFilter
        contrast: 0.20
    }
    BarcodeFilter {
        id: barcodeFilter
        onDecoded: console.log("barcode.decoded: ", barcode, barcodeType, barcodeTypeString)
    }
}

Property Documentation

brightness : float

This property defines how much the source brightness is increased or decreased. The value ranges from -1.0 to 1.0, with the default being 0.0 (no change).


contrast : float

This property defines how much the source contrast is increased or decreased. The value ranges from -1.0 to 1.0, with the default being 0.0 (no change).


orientation : int

This property contains the VideoOutput orientation. This helps in understanding the source video stream.