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:–08i6znMhZU9JC6Q7Utqawxk8yuClTbI8AN4fjUBeVi18zGws7YWfqexnwPKC88-Y7rgTPCqBM69JN4mMiTby-ew