Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polygon interior points (polygon belongs to certain class) #31

Closed
petoor opened this issue Mar 19, 2020 · 1 comment
Closed

Polygon interior points (polygon belongs to certain class) #31

petoor opened this issue Mar 19, 2020 · 1 comment

Comments

@petoor
Copy link

petoor commented Mar 19, 2020

Hi.

Given an image like the following.

test_img

imantics.Mask(img).polygons() generates the resulting 7 polygons. However, is there a way to also denote which class the polygons belong to? That is, if the border of the polygon goes from black to white, let the class be 0, if the border goes from white to black, let the class be 1, or something along those lines.

Best regards.

@petoor
Copy link
Author

petoor commented Mar 20, 2020

Turns out cv does exactly that : https://docs.opencv.org/4.2.0/d9/d8b/tutorial_py_contours_hierarchy.html

@petoor petoor closed this as completed Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant