jfahrenkrug/VertexHelper

Consider using computer vision to automate this.

fictorial opened this issue · 1 comments

Nice idea.

You can automate this with a few easy computer vision algorithms given that sub-images (individual sprites) have a transparent background.

For each sub-image or cell:

  • threshold the sub-image to obtain a binary image (black and white) with white as the "object" and black as the "background"
  • run an edge detection algorithm to obtain lines (not segments) corresponding to edges
  • find the intersections of the lines
  • add a vertex at each intersection point

You can use Intel's OpenCV or some other computer vision toolkit that include implementations of these algorithms.

Cheers.

That's a great idea and I have looked into OpenCV for this already. I just need time to do it :)