From 32dd89caead0dff1c8f23c3535cd357f814bb9a9 Mon Sep 17 00:00:00 2001
From: Constantin Wenger <constantin.wenger@googlemail.com>
Date: Thu, 13 Jun 2019 11:12:44 +0000
Subject: [PATCH] fixed some things and made hash generation and image download parallel also added set icon download (it needs the sets.json from scryfall in data dir)
---
resize_images.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/resize_images.py b/resize_images.py
index f827323..7907056 100644
--- a/resize_images.py
+++ b/resize_images.py
@@ -1,11 +1,12 @@
-from transform_data import data_dir
-from glob import glob
import cv2
+from glob import glob
import os
+from config import Config
+
card_size = (63, 88)
-for subdir in glob(data_dir + "/card_img/png/*"):
+for subdir in glob(Config.data_dir + "/card_img/png/*"):
split = subdir.split('/')
split[-2] = 'tiny'
dir_out = '/'.join(split)
--
Gitblit v1.10.0