/image2sgf

recongnize go game status from a image, output to a sgf file

Primary LanguagePython

Dependencies

python >= 3.6

PyTorch

torchvision

cv2

numpy

matplotlib

pillow

sgfmill

pyautogui

for GUI wxPython

Usage:

Download and extract pth files from https://github.com/noword/image2sgf/releases

usage: img2sgf.py [-h] [--sgf_name SGF_NAME] [--capture] [--save_images] [image_name]

positional arguments:
  image_name           input image file name

optional arguments:
  -h, --help           show this help message and exit
  --sgf_name SGF_NAME  output sgf file name
  --capture            capture the screenshot
  --save_images        save grid images

Examples:

img2sgf.py examples\goban.png

GUI

img2sgf_gui.pyw