lunes, 24 de agosto de 2009

Geochallenge AI bot 1.0 released

(Spanish version here)

This bot employs computer vision techniques, optical character recognition (OCR) and reinforcement learning to autonomously learn playing Geochallenge (one of the most popular Facebook flash games).




This program has been developed in standard C++, it is OpenSource (GPL3) and of course, it can be downloaded for free:


The program uses three data directories:

  • learndata: All the bot learns is stored here. This directory is NOT included in the downloads, thus the first few times you use the bot, it will fail a lot, but eventually it will learn and improve. If the game language is changed ("English" is recommended to avoid problems with the OCR), this directory must be deleted to allow it to start from scratch.
  • tessdata: Files used by tessract, the OCR engine.
  • data: Miscelaneous images needed by the bot.





Those who are starting using OpenCV, or in general to play with computer vision techniques, I strongly encorauge them to glance the sources since there are examples of image correlation, finding patterns, thresholding, channel separation, image scaling, etc...


Enjoy!

10 comentarios:

  1. not working..help us =D

    1) requirement to run this tool?
    2) firefox version?
    3) flash version?

    tqvm in advance

    ResponderEliminar
  2. It works with any browser.
    What is the exact problem?
    Take care of leaving the complete square of the game clean of windows on it, and also follow carefully the instructions shown when you start the game.

    ResponderEliminar
  3. not working here too :s ... the bot don't detect that the games has started and still waiting for it :s .... i follow all the instructions ...
    do I Have tu install tessract, ???
    please help

    ResponderEliminar
  4. Bot crashes on startup. Does nothing.

    ResponderEliminar
  5. @Alpha: Try repeating the error, then:
    MyPC, right click -> Admin -> Event viewer -> Look for some clarifying error message, if any.

    ResponderEliminar
  6. it doesn't work for me either... all it does is wait for the main screen if GeoChallenge.

    pls help if you can...

    ResponderEliminar
  7. Jose luis, el bot es excelente, sin embargo en los ultimos 5 segundos del 4º nivel se cae y no sigue reconociendo imagenes.
    ¿que sucederá?

    ResponderEliminar
  8. For me, when it detects the geo window, the grey window freezes and nothing happens.
    I got a 3.1 Ghz dual core and 4Go DDR so I assume this is not due to lack of power.

    Any idea?

    ResponderEliminar
  9. For Level 2, You should make the program able to learn different names per shape, because the names are read differently when they are on different positions.
    For Example
    A France looks different than
    C France

    ResponderEliminar
  10. I like your bot and I try to download and complie the source code, just to try to improve it with some ideas. But I have problem compiling it. The problem seems to be linked to openCV as the compiler doesn't recognize cvImage as a rightful identifier in 'utils.h'. Any clue on that ?

    ResponderEliminar