-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
Hi, Thanks for your work
How can I get polygon and points from an image? I use this but not working
import numpy as np
from imantics import Polygons, Mask
from PIL import Image
instance_path = r"test.png"
instance_image = Image.open(instance_path)
instance_array = np.array(instance_image)
polygons = Mask(instance_array).polygons()
print(polygons.points)
print(polygons.segmentation)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
