Git Product home page Git Product logo

imago's Introduction

Imago Go Image Recognition

Build Status Documentation Status

http://tomasm.cz/imago

There is also an experimantal Haskell version of Imago.

Requirements

  • Python 2.7 (including dev)
  • PIL >= 3.0
  • pygame
  • matplotlib (for generating debug images)
  • openCV (if you want to use a camera, otherwise not needed)
  • for documentation:
    • sphinx
    • sphinx-argparse

Installation

Run make in this directory.

Usage

Run ./imago image.jpg to extract game position from image.jpg. Run ./imago -m image.jpg to manually select grid position. Run ./imago image000.jpg image001.jpg image002.jpg ... to produce a game record from a sequence of images, one for every move. Use -S option to select SGF output. Run ./imago --help for help and list of all options.

Tests

The imago test suite lives in the imago-tests repository, which is a submodule of this repository. Run git submodule init; git submodule update (or clone this repository with git clone --recursive) to get the test data.

To run the tests, build imago and run ./runtests from the root of the working directory.

The runtests program runs imago on each input image and compares the output to the expected. Any discrepancy is a test failure.

Failing tests can be disabled by moving them into a directory named "skip". "skip" directories are by default ignored by the runtests program. Run ./runtests --all to include tests marked "skip".

Contributors

  • Tomáš Musil (@tomasmcz)
  • Sebastian Kuzminsky (@SebKuzminsky)
  • Nicolas Rochette

imago's People

Contributors

sebkuzminsky avatar tomasmcz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

imago's Issues

'make' failing on mac os 10.14.3

cd imago
make

outputs

gcc -Ofast -fPIC -shared -I/usr/include/python2.7/ pcf.c -lpython2.7 -o src/pcf.so
pcf.c:1:10: fatal error: 'Python.h' file not found
#include <Python.h>
         ^~~~~~~~~~
1 error generated.
make: *** [src/pcf.so] Error 1

I have python installed with homebrew in addition to the system python (if that matters)

ImportError: No module named pcf

I get an import error, how to install pcf?

$ ./imago
Traceback (most recent call last):
  File "./imago", line 5, in <module>
    from src import imago
  File "$/workspace/imago/src/imago.py", line 17, in <module>
    import linef
  File "$/workspace/imago/src/linef.py", line 13, in <module>
    import filters
  File "$/workspace/imago/src/filters.py", line 10, in <module>
    import pcf
ImportError: No module named pcf

modify to 13*13 board

Hi,if I want to modify this program from 19x19 to 13x13, which module do I modify?

(I'm from Taiwan,my English isn’t very good. Sorry!)

Intersection detection takes a lot of time

Do you have any ideas on how to speed up intersections detection? Why does it take so long (more than 10 seconds on my Mac)? Is it a problem of Hough transform or RANSAC?

Excuse,I have a problem in running source code of imago

Hello,I run the source code on windows system.I intstall python 2.7 and pillow ,numpy, matplotlib and opencv, I run on PyCharm software ,but it has a problem:No module named pcf(because in filter.by and hough.py import pcf)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.