MTG_Card_Identifier is a python based program to identify Magic: The Gathering cards based on the Card name in the image that the user uploads.
__ ___ ______ ______ ______ __
/ |/ / /_ __/ / ____/ / ____/ ____ _ _____ ____/ /
/ /|_/ / / / / / __ / / / __ `/ / ___/ / __ /
/ / / / / / / /_/ / / /___ / /_/ / / / / /_/ /
/_/ /_/ /_/ \____/ \____/ \__,_/ /_/ \__,_/
____ __ __ _ ____ _
/ _/ ____/ / ___ ____ / /_ (_) / __/ (_) ___ _____
/ / / __ / / _ \ / __ \ / __/ / / / /_ / / / _ \ / ___/
_/ / / /_/ / / __/ / / / // /_ / / / __/ / / / __/ / /
/___/ \__,_/ \___/ /_/ /_/ \__/ /_/ /_/ /_/ \___/ /_/
_____ _ __ __
/ ___/ _____ _____ (_) ____ / /_ / /
\__ \ / ___/ / ___/ / / / __ \ / __/ / /
___/ / / /__ / / / / / /_/ // /_ /_/
/____/ \___/ /_/ /_/ / .___/ \__/ (_)
/_/
# Run the install.sh script
$ sudo sh install.sh
- Run:
> pip3 install -r requirements.txt
- May have to install Tesseract from here
pip install MTG-Card-Identifier
# change into the script directory
cd MTG_Card_Identifier
$ python3 main.py -img IMAGE [-url URL] [-dir DIR] [-batchFile BATCHFILE] [-p PERCENT] [-ci CI] [-show SHOW]
MTG_Card_Identifier: Find magic cards based on the Name on the card.
optional arguments:
-h, --help show this help message and exit
-url URL, --URL URL Tell the script that the -img is a url. Usage [ -url y ]
-dir DIR, --DIR DIR Batch directory check the script that the -dir is a directory. Usage [-dir y]
-batchFile BATCHFILE, --BatchFile BATCHFILE
Batch File will process the contents. The args tell us if its local or remote.
-p PERCENT, --Percent PERCENT
Enter the percent you want the comparison to be [whole numbers].
-ci CI, --CI CI Print out more information about a card if the script is 100 percent a match.
[y or n]
-show SHOW, --Show SHOW
Show guessed image. [y or n]
required named arguments:
-img IMAGE, --Image IMAGE
Insert path to the Image here.
Just links for either local paths or URLs.
https://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=916&type=card
A header line then just links for either local paths or URLs.
header
https://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=916&type=card
NOTE: All images belong to Magic: The Gathering and Wizards of the Coast respectively