Coder Social home page Coder Social logo

mtg-arena-code-extractor-redeemer's Introduction

MTG Arena Code Extractor & Redeemer

This project contains two Python scripts that can be used to extract codes from images of Magic: The Gathering trading cards and input the extracted codes into the Magic: The Gathering Arena application.

Prerequisites

  1. Install Python 3.7 or higher.

  2. Install the required Python packages using the following command:

    pip install -r requirements.txt

Usage

  1. Place your card images in a folder.

  2. Run the first script to extract codes from the images:

    python just_use_textract.py <image_folder>

    Replace <image_folder> with the path to the folder containing your card images. The script will generate a codes.txt file containing the extracted codes.

  3. Run the second script to input the codes into Magic: The Gathering Arena:

    python mtg_arena_code_redeemer.py

    This script will attempt to launch the MTG Arena application and input the codes from codes.txt. If the application is already running, it will connect to the existing instance.

Troubleshooting

If you encounter issues with coordinates, you can use the --use-coordinates or -u command-line option when running the second script. This will read the coordinates from a coordinates.json file instead of performing OCR on the image files:

python mtg_arena_code_redeemer.py --use-coordinates

License

This project is licensed under the MIT License - see the LICENSE file for details.

mtg-arena-code-extractor-redeemer's People

Contributors

trav55555 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.