How to Connect Real-time detection while recording Video?

hi guys can you help me for my project. one of the features of our project is to detect object real time while saving video what is the code for that ?

You can use Python and Opencv, you can read frames from IP camera (I suppose), do inference and save video always using OpenCV.

Please refer to Nvidia documentation about how to use encode/decode video hardware acceleration:
https://developer.download.nvidia.com/embedded/L4T/r32_Release_v1.0/Docs/Accelerated_GStreamer_User_Guide.pdf?S1Eyn71Q4Hxw3PT-sf7ZDqPZRAJuB2X1oGr7AHafBEgJ4SuPxd6fCRWVEWymJ4ktFDPc_hL32h8pvmmbw-Zm3grrPf–08i6znMhZU9JC6Q7Utqawxk8yuClTbI8AN4fjUBeVi18zGws7YWfqexnwPKC88-Y7rgTPCqBM69JN4mMiTby-ew