Skip to content
Discussion options

You must be logged in to vote

If your vector graphics are made of drawing paths that are close enough to each other, the Page method cluster_drawings should deliver what you want.

Its parameters allow you some flexibility:

  • You can preprocess the get_drawings() output to build some desired subset, which you can hand into the method. Otherwise, this parameter is also useful for avoiding multiple vector graphic extractions.
  • You can control the "sensitivity" for regarding drawings to be "neighbours" by manipulating the tolerance values. The default is 3 points: two paths in get_drawings() are assumed to belong to the same cluster if their minimum distance is below 3.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JorjMcKie
Comment options

@JorjMcKie
Comment options

Answer selected by rafayaar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants