From 6227a8da1770de3eb09e220d3330c21c00dd97ba Mon Sep 17 00:00:00 2001
From: Constantin Wenger <constantin.wenger@googlemail.com>
Date: Tue, 13 Aug 2019 20:41:25 +0000
Subject: [PATCH] work a round for "con" being a forbidden filename on windows

---
 card_detector.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/card_detector.py b/card_detector.py
index b43b8fa..5b8bd81 100644
--- a/card_detector.py
+++ b/card_detector.py
@@ -1,9 +1,18 @@
 import cv2
 import numpy as np
-import pandas as pd
 import math
 from screeninfo import get_monitors
 
+"""
+This is the first attempt of identifying MTG cards using only classical computer vision technique.
+Most of the processes are similar to the process used in opencv_dnn.py, but it instead tries to use 
+Hough transformation to identify straight edges of the card.
+However, there were difficulties trying to associate multiple edges into a rectangle, as some of them 
+either didn't show up or was too short to intersect.
+There were also no method to dynamically adjust various threshold, even finding all the edges were
+very conditional.
+"""
+
 def detect_a_card(img, thresh_val=80, blur_radius=None, dilate_radius=None, min_hyst=80, max_hyst=200,
                   min_line_length=None, max_line_gap=None, debug=False):
     dim_img = (len(img[0]), len(img)) # (width, height)

--
Gitblit v1.10.0