mmcv.video.flow_from_bytes¶
- mmcv.video.flow_from_bytes(content: bytes) → numpy.ndarray[source]¶
Read dense optical flow from bytes.
Note
This load optical flow function works for FlyingChairs, FlyingThings3D, Sintel, FlyingChairsOcc datasets, but cannot load the data from ChairsSDHom.
- Parameters
content (bytes) – Optical flow bytes got from files or other streams.
- Returns
Loaded optical flow with the shape (H, W, 2).
- Return type
ndarray