Need suggestions for Real time object detection

Hello Everyone,
I have started learning and doing some projects on machine learning and deep learning. I need some suggestions and help regarding object detection on Real-time video processing. I was able to do some object detection with per-trained models on images. I got one git-hub project on real-time object detection with TensorFlow API, but it wasn’t helpful for me because that code is working only for USB cams, but raspberry pi has a CSI camera. Can anyone suggest me with how can I move forward with this? and give some help to do more on Real time object detection.