I am using detecnet.py and also using RTP. So I am starting the application from ssh terminal and I can see the video inferencing on VLC. Everything seems to work fine.
When closing the application on ssh terminal, it says stopped but I can see the camera is still on, so the application is not stopped. What changes we can make to the python program to safely close the camera and release all other resources.