Page cover

Magic The Gathering Lookup

Magic The Gathering Card Price Fetcher (Half baked weekend project)

MTG Lookup GUI

Introduction

This Python application allows users to look up the value of Magic: The Gathering (MTG) cards. It uses the Scryfall API to fetch card details, including the card's name, price in USD, and an image of the card. Users can either manually enter the card name or use their camera to scan a card. The application employs Optical Character Recognition (OCR) with Tesseract to extract the card name from the captured image and then retrieves the card information accordingly. The GUI is built using Tkinter, and the application also integrates image processing techniques to enhance the captured image for better OCR accuracy.

The Code

OCR & Confession

A full disclosure: the OCR portion of the project is currently almost non-functional. Due to limitations with my inexpensive webcam, scanning card names proved to be challenging. I could only get it to recognize text accurately by typing the card names in 72pt font in Word (lol).

Last updated