cutcutcodec.core.analysis.video.metric.uvq
- cutcutcodec.core.analysis.video.metric.uvq(dis: Tensor, _model=None) Tensor[source]
Compute the Perceptual Video Quality.
Parameters
- disarraylike
The frames to be evaluated, of shape ([*batch], fps=5, height, width, channels=3). The framerate is assumed to be 5 Hz. The frames are assumed to be in RGB in range [0, 1]. Gamut and EOTF must be standard rgb.
Returns
- uvqarraylike
The perceptual video quality measure for each group of 5 images.
Examples
>>> import numpy as np >>> from cutcutcodec.core.analysis.video.metric import uvq >>> np.random.seed(0) >>> dis = np.random.random((5, 720, 1080, 3)) # It could also be a torch array list... >>> uvq(dis).round(1) np.float32(3.3) >>>