Category: Programming

  • A Useful Bash Command Prompt

    The default bash command prompt is an untapped space for information provision. I prefer something that gives some important information; user, host, current directory, and current git branch. This was generated courtesy of Bash Prompt Generator.

  • MTG OCR – Identifying the Card in the Space

    One of the potential refinements to the OCR process is to adjust and crop the image to only display the card. This should help focus Tesseract on looking at only the text on the card, and not at any of the background elements. My first step towards this, kindly suggested by Chris Turton at a…

  • MTG OCR – Some Refinements

    At this point, the project rested for a few months; other things piqued my interests, and I had to focus on other areas of life. However, a few months later, around Christmas 2023, I had some time to pick it up again. I found an old picture frame in a charity shop, which I cannibalised…

  • MTG OCR – Initial Attempts at Reading Text

    Now that my jank-ass setup was able to take pictures of the cards, I was able to point some OCR code at them. In order to make the OCR happen, I decided to use an existing open-source OCR engine; while this project is a good excuse to learn about a lot of things, re-inventing the…

  • MTG OCR – Initial Hardware

    The first problem I decided to solve with regards to the OCR project was getting pictures of the cards. If this was to work as an automated process, it’s going to have to have some kind of structure to be built around, and some kind of lightweight computer which can take a picture and process…

  • MTG OCR – Introduction

    Using OCR to identify and manage Magic: the Gathering cards is not a new idea. There are many, many applications of it throughout time and space. However, for me, it is a good excuse to learn some python, learn some image editing, learn some OCR, basically just learn a bunch. OCR, Optical Character Recognition in…