From 432ea936fbe094784efa0649d0a0003ccbdfc9b1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 27 Jul 2022 21:25:02 -0300 Subject: Add a helper to add units en-masse. Next is the SDK --- README | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'README') diff --git a/README b/README index 75a72a6..50abb68 100644 --- a/README +++ b/README @@ -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 -- cgit v1.2.3-70-g09d2