Coverting JSON to mask with shape_type='mask' #1434
Unanswered
AmaiaGaste
asked this question in
Q&A / Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to use the labelme.utils.shape_to_mask function and I get the following error: AssertionError: Polygon must have points more than 2.
It seems there is an assert that checks if there is more than 2 points and my JSON only as 2 points and a mask. I want to convert the JSON into a PNG or JPG mask so that I can use the annotated image as ground truth. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions