From 6943e6eea0eee1ccf3ee9034699b6a94f334b003 Mon Sep 17 00:00:00 2001
From: Constantin Wenger <constantin.wenger@googlemail.com>
Date: Tue, 01 Feb 2022 11:38:21 +0000
Subject: [PATCH] added option to load from streams added option to set crop x and crop y added option to set percentage a card must take up added ability to scroll detected cards list with o and p added ability to remove topmost shown detected card with u

---
 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