diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-07-27 21:25:02 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-07-27 21:25:02 -0300 |
commit | 432ea936fbe094784efa0649d0a0003ccbdfc9b1 (patch) | |
tree | 74f220ee0f362ce462022178c6b643f3a3bec946 /README | |
parent | 2d0cd31449095c7d9bcd2d35206604b976cd1f91 (diff) | |
download | updates-432ea936fbe094784efa0649d0a0003ccbdfc9b1.tar.gz updates-432ea936fbe094784efa0649d0a0003ccbdfc9b1.tar.bz2 updates-432ea936fbe094784efa0649d0a0003ccbdfc9b1.tar.xz updates-432ea936fbe094784efa0649d0a0003ccbdfc9b1.zip |
Add a helper to add units en-masse. Next is the SDK
Diffstat (limited to 'README')
-rw-r--r-- | README | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -50,5 +50,16 @@ pip3 install pillow opencv-python``` Image name should be the faction + monster ID. Model `FFMM`. So an imperial spearman is named `0001` and an arch wizard is named `0701`. Attribution template is sent to ATTR.txt for convenience - +* units.py + * Based in "ready-units" folder, using semi-qualified name (e.g. 1002 - 1 star, + unit 2; The "10" prefix and 0x suffix is not needed). Resizes image to 640x960 + and finds a face, which is then centered and a square is produced, then the + three image slices are made. Accepts PNG and JPG input, output is Webp. + If there is a image with same name but "sq_" prefix, it's used instead of face + detection tool. The output is saved in square/ and unit/ subfolder + * Structure: + ready-units/ + unit/ + square/ + base/ ← Save your images here |