coco_polygon_to_mask | R Documentation |
Converts a COCO-style polygon annotation (list of coordinates) into a binary mask tensor.
coco_polygon_to_mask(segmentation, height, width)
segmentation |
A list of polygons from COCO annotations (e.g., |
height |
Height of the image |
width |
Width of the image |
A torch_bool() tensor of shape (height, width)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.