This repository seems to be exactly what you are asking for. It's YOLO analysis of video frames passed in through Real Time Streaming Protocol.
I thought that this topic yolo object recognition would have much more following, instead there are really only a few projects.
https://github.com/search?q=yolo+rtsp&type=repositories&s=fo...