# YOLOv5 2D mask only present rectangle shape

**URL:** <https://community.stereolabs.com/t/yolov5-2d-mask-only-present-rectangle-shape/2143>\
**Category:** Python\
**Tags:** yolo, python\
**Created:** [February 20, 2023, 2:48am UTC](https://community.stereolabs.com/t/yolov5-2d-mask-only-present-rectangle-shape/2143 "2023-02-20T02:48:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenny](https://community.stereolabs.com/user_avatar/community.stereolabs.com/kenny/32/1033_2.png) [@Kenny](https://community.stereolabs.com/u/Kenny)\
**Post date:** [February 20, 2023, 2:48am UTC](https://community.stereolabs.com/t/yolov5-2d-mask-only-present-rectangle-shape/2143/1 "2023-02-20T02:48:43Z")

</div>

Hello Everyone! I refer to ([Object Detection example drawing 2D mask over image](https://community.stereolabs.com/t/object-detection-example-drawing-2d-mask-over-image/673)) ZED\_Mask.py to implement on YOLOv5, But I founded the issuie which is the 2D Mask’s shape only present like rectangle!I’m very gratitude if someone can hepl me!

---

<div class="post-metadata">

**Author:** ![alassagne](https://community.stereolabs.com/user_avatar/community.stereolabs.com/alassagne/32/2428_2.png) [@alassagne](https://community.stereolabs.com/u/alassagne)\
**Post date:** [February 20, 2023, 4:27pm UTC](https://community.stereolabs.com/t/yolov5-2d-mask-only-present-rectangle-shape/2143/2 "2023-02-20T16:27:46Z")

</div>

Hello and thank you for contacting us,

Indeed, the mask is only a bounding box. It’s designed like that. What do you want to achieve ?

Antoine

---

<div class="post-metadata">

**Author:** ![Kenny](https://community.stereolabs.com/user_avatar/community.stereolabs.com/kenny/32/1033_2.png) [@Kenny](https://community.stereolabs.com/u/Kenny)\
**Post date:** [February 21, 2023, 6:05am UTC](https://community.stereolabs.com/t/yolov5-2d-mask-only-present-rectangle-shape/2143/3 "2023-02-21T06:05:48Z")

</div>

I got it.Beacuse yolo’s object detection only shape is retangle, now I’m try to use yolact.  
Does the zed has zed camera pairing yolact program?

---

<div class="post-metadata">

**Author:** ![alassagne](https://community.stereolabs.com/user_avatar/community.stereolabs.com/alassagne/32/2428_2.png) [@alassagne](https://community.stereolabs.com/u/alassagne)\
**Post date:** [February 21, 2023, 1:25pm UTC](https://community.stereolabs.com/t/yolov5-2d-mask-only-present-rectangle-shape/2143/4 "2023-02-21T13:25:05Z")

</div>

Hi,

I don’t know about any sample that already exists about using ZED SDK in pair with yolact. Feel free to create it 🙂

Antoine
