NvDsOpticalFlowMeta not defined in pyds (python bindings)?

Please provide complete information as applicable to your setup.

• Hardware Platform (GPU)
• DeepStream Version 5.0
• NVIDIA GPU Driver Version ( 44.64.00, CUDA 10.2)


I am unable to find the NvDsOpticalFlowMeta and the runtime error is:

ofmeta = pyds.NvDsOpticalFlowMeta.cast(of_user_meta.user_meta_data)
AttributeError: module ‘pyds’ has no attribute ‘NvDsOpticalFlowMeta’

And using it without cast results in:
print("OF Meta Size: ", ofmeta.mv_size)
AttributeError: ‘PyCapsule’ object has no attribute ‘mv_size’

The Python API doesn’t have any reference to Optical Flow Meta Data:

Any suggestions about how to access the Optical Flow metadata in Python?


Hi !

Is NvDsOpticalFlowMeta missing in DeepStream 5.0 Python bindings?
Is there any plan to support this in DeepStream 5.0?
OR am I missing something?
Any inputs or suggestions on how to access NvDsOpticalFlowMeta in Python?


I was hoping to get some response from NVIDIA support … !

Hi @deepak,
Sorry! It’s not supported for now, right, will add in future release.


Any update on this? I’m running the docker image nvcr.io/nvidia/deepstream:5.0.1-20.09-devel
It seems like there is still not support for NvDsOpticalFlowMeta:
AttributeError: module ‘pyds’ has no attribute ‘NvDsOpticalFlowMeta’