Instance segmentation with YOLOv8


As I said in this post (thanks for the question, it was indeed not clear), the custom detector is able to output segmentation, but you can only input bounding boxes to it. So it’s not that it’s not capable of segmentation, just not capable of ingesting it.

In the sample you’re using, if you comment out the predict and for loop, does the code run? If yes, sorry but that’s not a ZED SDK issue and I won’t be able to help, you would have more luck looking for YOLO samples probably.

However, you may be able to achieve what you want by adding an overlay to the image using the ObjectData.mask data if you enable the segmentation in the custom OD sample.