How do you do object detection in real time?

I have seen the uber example but it does not run in real time. How do I get it to run object detection like YOLOv3 or YOLOv4 in real time?

Regards
Ritesh