components.qt.qtdisplay

class QtDisplay(**config)[source]

Bases: Transformer, object

Display images in a Qt window.

This is a “pass through” component that can be inserted anywhere in a pipeline to display the images at that point.

The displayed image can be enlarged or reduced in size by setting the expand and shrink config values. The size changing is done within OpenGL.

The framerate config item sets a target rate (default value 25 fps). If the incoming video cannot keep up then frames will be repeated. Otherwise the entire processing pipeline is slowed down to supply images at the correct rate.

Config

title

str

Window title.

expand

int

Image up-conversion factor.

shrink

int

Image down-conversion factor.

framerate

int

Target frame rate.

repeat

bool

Repeat frames until next one arrives.

sync

bool

Synchronise to video card frame rate.

stats

bool

Show actual frame rate statistics.

event_loop

alias of QtEventLoop


Comments or questions? Please email jim@jim-easterbrook.me.uk.