How to get the latency from deepstream python apps

Yes. You can access NVDS_LATENCY_MEASUREMENT_META type user meta to get latency info if you don’t want to use nvds_measure_buffer_latency() API. The proper place of the probe function has been shown in DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums