How to use the Zed camera to track a Ping-Pong Ball

Hi I am trying to use the Zed 2i camera for tracking an orange ping-pong ball. I want to use the Zed python API because it can provide velocity and position. I’m having trouble figuring out how to use the API in order to accomplish this. There aren’t many tutorials and I am not the best at coding. I am currently trying to use OpenCV in conjunction with the Zed API but I am not sure this is the best path.

I guess my question is: What is the best path to go down in order to track a ping-pong ball using the Zed Camera? If there is a best direction, how would I go about doing it?

Literally any help in the right direction would be appreciated.

@PattyCakes you can use the Custom Object Tracking feature to inject the bounding box of the detected ball in the ZED SDK pipeline:
DOC: Using the Object Detection API with a Custom Detector | Stereolabs
Example: zed-examples/object detection/custom detector at master · stereolabs/zed-examples · GitHub

In the example you must replace the “YOLOv5” part with the code of your custom detector.