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

Fixes for dataset path verification script #10

Closed
wants to merge 2 commits into from
Closed

Fixes for dataset path verification script #10

wants to merge 2 commits into from

Conversation

jmsteitz
Copy link

@jmsteitz jmsteitz commented Jun 7, 2020

Check if polygon is degenerate, i.e. all vertices are on a horizontal line. In that case, use ImageDraw.Draw.line instead.

Generalize type assertions by checking for subtype of np.integer instead of using a list of some integer types.

Check if polygon is degenerate, i.e. all vertices are on a horizontal line. In that case, use ImageDraw.Draw.line instead.
Change type assertion from list of integer types to check for subtype of np.integer
@jmsteitz jmsteitz changed the title Workaround for ImageDraw.Draw.polygon bug Fixes for dataset path verification script Jun 9, 2020
@johnwlambert
Copy link
Collaborator

Thanks for this PR. I will add a few more unit tests for this early next week. Still uploading a lot of other code from the project so it's taking me a while to look through this, thanks for your patience. It seems like your bug report was hopefully incorporated into the latest version of Pillow (or will be) -- thanks for filing that with Pillow staff.

@johnwlambert
Copy link
Collaborator

Closing for now since I merged in the suggested fixes in the following separate PRs:

https://github.com/mseg-dataset/mseg-api/pull/12/files#diff-9f5e240921651cf52ca54f1feed0cb5eR982
https://github.com/mseg-dataset/mseg-api/pull/13/files

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

Successfully merging this pull request may close these issues.

None yet

2 participants