/autoslice

Autoslice images based off of machine-identifiable features

Primary LanguageGoApache License 2.0Apache-2.0

Autoslice

Slice images based off of features in the image (black rectangles). Still very rough, if you run into problems please send test images!

test source image

Installing

go get -u github.com/kurrik/autoslice

Running

$ autoslice -dst=/path/to/dst/folder /path/to/source/image.png

Exporting regions:
  * image0001.png - (139,139)-(340,340)
  * image0002.png - (379,79)-(530,130)
Writing out.png.

The produced images look like:

image0001.png

test export 01

image0002.png

test export 02

out.png

test export out