Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

nicolaskyejo/mtg_aws_iot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTG AWS IoT

project in action

A quick small project for detecting Magic the Gathering cards using Amazon's Textract service.

Requirements

  • Python 3.6+
  • An Amazon account - AWS free tier is enough
  • AWS CLI - for setting up auth credentials
  • Raspberry pi (tested on model 3B+)
  • Camera Module
  • A button switch - example

Steps

  • Set up the Raspberry pi roughly as shown setup use BCM pin numbers (pinout)
  • If you plan to control the pi in headless mode (e.g. VNC server), enable direct capture mode (instructions)
  • Install dependencies
git clone https://github.com/nicolaskyejo/mtg_aws_iot.git
cd mtg_aws_iot/project
pip install -r requirements.txt
  • Run mtg_card_recognition.py

Possible Improvements

  • Use gpiozero instead of RPi.GPIO for easier setup
  • Use asyncio for asynchronous features
  • Use sqlite instead of a text file to save card information
  • Use opencv to detect card and take a picture automatically instead of manually pushing the switch down