Thursday, 5 December 2013

SeeingStars goes Fuzzy

A few days remain until I release SeeingStars: Real Time Odds for PokerStars on Mac OS X

Sign up here to be notified when we release AND get a 50% discount.

I’ve now added a little bit of fuzzy logic to SeeingStars. SeeingStars (partly) works as follows when determining the rank of the cards (eg. Ace, King, Queen…) displayed:

  1. Grab screenshot of poker table window.
  2. Convert screenshot to a two-colour image.
  3. Extract a sub-image where the card rank is displayed.
  4. Convert the sub-image into a string of bits.
  5. Check that string of bits against a dictionary I prepared in the lab.

However that process can be upset by the nature of automatic image manipulation. Occasionally SeeingStars can’t tell what the card rank is. But there is a solution: by adding some fuzziness to the process, I can get pretty close to 100% accuracy for detecting. Using a core Computer Science concept called the Levenshtein distance, SeeingStars can detect close matches. It makes me content to use and relearn concepts I learnt in university years ago. It allows me to answer the question: “does that screenshot sub-image sort-of, kind-of look like a particular rank?"

 

No comments:

Post a Comment