Find magic cards based on the Name on the card.
Project description
MTG_Card_Identifier
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.
__ ___ ______ ______ ______ __
/ |/ / /_ __/ / ____/ / ____/ ____ _ _____ ____/ /
/ /|_/ / / / / / __ / / / __ `/ / ___/ / __ /
/ / / / / / / /_/ / / /___ / /_/ / / / / /_/ /
/_/ /_/ /_/ \____/ \____/ \__,_/ /_/ \__,_/
____ __ __ _ ____ _
/ _/ ____/ / ___ ____ / /_ (_) / __/ (_) ___ _____
/ / / __ / / _ \ / __ \ / __/ / / / /_ / / / _ \ / ___/
_/ / / /_/ / / __/ / / / // /_ / / / __/ / / / __/ / /
/___/ \__,_/ \___/ /_/ /_/ \__/ /_/ /_/ /_/ \___/ /_/
_____ _ __ __
/ ___/ _____ _____ (_) ____ / /_ / /
\__ \ / ___/ / ___/ / / / __ \ / __/ / /
___/ / / /__ / / / / / /_/ // /_ /_/
/____/ \___/ /_/ /_/ / .___/ \__/ (_)
/_/
Installation
Linux
# Run the install.sh script
$ sudo sh install.sh
Windows
- Run:
> pip3 install -r requirements.txt
- May have to install Tesseract from here
PIP
pip install MTG-Card-Identifier
Usage
# 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.
Batch File format
txt File
Just links for either local paths or URLs.
https://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=916&type=card
CSV Files
A header line then just links for either local paths or URLs.
header
https://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=916&type=card
Sets included:
NOTE: All images belong to Magic: The Gathering and Wizards of the Coast respectively
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for MTG_Card_Identifier-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed8ba7e324d441ea83e8268205a1ca6621d210c32f2f7a3ce8f3bd155f742149 |
|
MD5 | 2960da28f91e779408e3a6a9a2cf11f4 |
|
BLAKE2b-256 | 438d2786a76b947126cf7584abc26863a30a713014c6442f8458088513955081 |
Close
Hashes for MTG_Card_Identifier-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37e0b5bd37a342816332d912d10f880741a627efe700ec01566572a01e4e6051 |
|
MD5 | 6c93888d3bfeefc56aac29830bccb9ed |
|
BLAKE2b-256 | 6b60a2ae02372ee56d53dc0836b51b30a8f7e7b9fdab04d096571d7e4dfb87ce |