Skip to content

Conversation

Tobias-Fischer
Copy link
Contributor

At the moment, there is an issue where self.data and contours do not have the same number of list elements, leading to a crash:

# TODO: this should recurse all the way down
M = blob.moments
for child in blob.children:
# subtract moments of the child
M = {key: M[key] - self.data[child].moments[key] for key in M}

We previously tried to address this in #5, but this was an incomplete fix. Here, we go through the TODO and properly set all the moments where OpenCV returns nonsense.

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.

1 participant