Want to edit the spatial mapping code to detect only an object

Currently, I am using the zed 2i camera and I am using the sample codes for my research purposes.
In spatial mapping sample code, I want to detect only an object which I already trained as a ‘.pt’ file. How can we do it? Is there any library or any other method to do it?

Thank you!

Hi @Chamodhieg,

Thanks for reaching out!

We have an extensive documentation on our “Custom Object Detection” module that can be found here: Using the Object Detection API with a Custom Detector - Stereolabs

We also provide samples in C++ and Python that you can integrate in the spatial mapping sample, you can find them here on our Github: zed-sdk/object detection/custom detector at master · stereolabs/zed-sdk · GitHub