---
comments: true
status: new
---

# Masks Utils

<div class="md-typeset">
  <h2><a href="#supervision.detection.utils.masks.mask_to_roi">mask_to_roi</a></h2>
</div>

:::supervision.detection.utils.masks.mask_to_roi

<div class="md-typeset">
  <h2><a href="#supervision.detection.utils.masks.move_masks">move_masks</a></h2>
</div>

:::supervision.detection.utils.masks.move_masks

<div class="md-typeset">
  <h2><a href="#supervision.detection.utils.masks.contains_holes">contains_holes</a></h2>
</div>

:::supervision.detection.utils.masks.contains_holes

<div class="md-typeset">
  <h2><a href="#supervision.detection.utils.masks.contains_multiple_segments">contains_multiple_segments</a></h2>
</div>

:::supervision.detection.utils.masks.contains_multiple_segments

<div class="md-typeset">
  <h2><a href="#supervision.detection.utils.masks.filter_segments_by_distance">filter_segments_by_distance</a></h2>
</div>

:::supervision.detection.utils.masks.filter_segments_by_distance

<div class="md-typeset">
  <h2><a href="#supervision.detection.utils.masks.calculate_masks_centroids">calculate_masks_centroids</a></h2>
</div>

:::supervision.detection.utils.masks.calculate_masks_centroids
