Autonomous driving project

Hello Hailo Community, I am an engineering student working on a autonomous driving vehicle project on raspberrypi5 with hailo AI kit for the “nxp cup”. I already have a C multithread app for a wifi-driven vehicle and the idea now is to add ai inference to be able to detect circuit lines for the race.
I already used gstreamer in C for capturing video from camera but i dont really know to use the stream for calculating deviation for example. I’ve seen that there is a gstreamer api for hailo tools like hailonet and hailofilter that can be used in C++ ?

If you have any ideas or advice feel free to share with me, THANKS!