Life In 19x19
http://lifein19x19.com/

Diagram image to SGF: experimental software
http://lifein19x19.com/viewtopic.php?f=18&t=17355
Page 1 of 1

Author:  xela [ Sun Mar 29, 2020 3:47 am ]
Post subject:  Diagram image to SGF: experimental software

I made this largely for my own amusement/education, but others may find it useful:

https://github.com/hanysz/img2sgf

It's specifically for converting diagrams to SGF so that I can scan pages from printed books on my shelf and load them up into Lizzie+KataGo more quickly than I can input all the moves by hand. It's not great with photos (can't handle perspective distortion) or coloured images, although I've found that it can handle screenshots from some YouTube videos. I wanted something that's not put off by stone numbers or labels on the diagrams, which Imago seems to have trouble with.

Sorry that installing it is such a hassle. I don't have the chance to try it out on a range of computers. So if you manage to make it work, and find it useful, please post your tips here!

Author:  Ferran [ Fri Apr 03, 2020 9:39 am ]
Post subject:  Re: Diagram image to SGF: experimental software

xela wrote:
It's specifically for converting diagrams to SGF so that I can scan pages from printed books on my shelf and load them up[...]


Great! And thanks a lot. I'll try it. Have you considered (or tried) against old Chinese numbering? There are lots of games that would become available. But I imagine it might be "a tad" harder.

Take care.

Author:  xela [ Fri Apr 03, 2020 3:53 pm ]
Post subject:  Re: Diagram image to SGF: experimental software

At this stage I'm ignoring move numbers. The output is just a static board position. You get the final position of the diagram, not the sequence of moves.

The reason is that I can tell the difference between black and white stones using "old school" image recognition technology. But to recognise numbers, I'd have to train a neural net, which means I need to collect and label a bunch of training data. Technically speaking, it's shouldn't be that hard, but it would eat up more time than I want to put into it. Chinese numbers shouldn't be any harder than Arabic numbers.

Author:  Ferran [ Tue Apr 07, 2020 5:16 pm ]
Post subject:  Re: Diagram image to SGF: experimental software

xela wrote:
Chinese numbers shouldn't be any harder than Arabic numbers.


Well, the ones I've found are in older books, ie. not as easy to read or clearly printed.

Take care. Thanks for the effort.

Author:  ebaoe [ Wed Mar 24, 2021 10:58 pm ]
Post subject:  Re: Diagram image to SGF: experimental software

Great, thanks a lot

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/