Shortcuts

mmcv.video.flow_from_bytes

mmcv.video.flow_from_bytes(content: bytes)numpy.ndarray[源代码]

Read dense optical flow from bytes.

注解

This load optical flow function works for FlyingChairs, FlyingThings3D, Sintel, FlyingChairsOcc datasets, but cannot load the data from ChairsSDHom.

参数

content (bytes) – Optical flow bytes got from files or other streams.

返回

Loaded optical flow with the shape (H, W, 2).

返回类型

ndarray