I have a lot of Magic: the Gathering cards. A LOT. Okay, so I exaggerate, but it’s more than I care to manually catalog myself.
So, on a recent 10-hour trip back home from vacation, I brainstormed on how I can accomplish this without painstakingly pawing through each card.
I came up with some requirements:
- The machine would have to be somewhat autonomous with very little human intervention
- It needed to be able to somehow ascertain the card’s name and expansion set
- Once the card is scanned, it needs to be added to an inventory (possibly with the card’s image)
- When cataloging the cards, the machine needs to do little (or no) damage to the card’s condition
Here’s my Idea:
- Using LEGO Mindstorms and a camera, create a simple machine that:
- Takes a stack of M:tG cards
- Goes through them one by one
- Takes a picture of each and parses the image for pertinent information
- If the machine is able to figure out what card it is, then the card goes into a pile
- If the machine IS NOT able to figure out what card it is, then the card goes into a seperate pile
Here’s my Solution!
Code found at GitHub (in C#): https://github.com/starryknight64/Magic-Vision/tree/mindstorms
It doesn’t quite do the inventorying and neither does it put the cards it doesn’t recognize into a separate pile, but it’s all there and ready to go, just gotta go in and do it.