It is currently Thu Mar 28, 2024 3:47 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
Offline
 Post subject: Diagram image to SGF: experimental software
Post #1 Posted: Sun Mar 29, 2020 3:47 am 
Lives in gote

Posts: 580
Location: Adelaide, South Australia
Liked others: 207
Was liked: 264
Rank: Australian 2 dan
GD Posts: 200
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!


This post by xela was liked by: Ferran
Top
 Profile  
 
Offline
 Post subject: Re: Diagram image to SGF: experimental software
Post #2 Posted: Fri Apr 03, 2020 9:39 am 
Lives in gote

Posts: 617
Liked others: 154
Was liked: 118
Rank: OGS ddk
KGS: Ferran
IGS: Ferran
OGS: Ferran
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.

_________________
一碁一会

Top
 Profile  
 
Offline
 Post subject: Re: Diagram image to SGF: experimental software
Post #3 Posted: Fri Apr 03, 2020 3:53 pm 
Lives in gote

Posts: 580
Location: Adelaide, South Australia
Liked others: 207
Was liked: 264
Rank: Australian 2 dan
GD Posts: 200
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.

Top
 Profile  
 
Offline
 Post subject: Re: Diagram image to SGF: experimental software
Post #4 Posted: Tue Apr 07, 2020 5:16 pm 
Lives in gote

Posts: 617
Liked others: 154
Was liked: 118
Rank: OGS ddk
KGS: Ferran
IGS: Ferran
OGS: Ferran
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.

_________________
一碁一会

Top
 Profile  
 
Offline
 Post subject: Re: Diagram image to SGF: experimental software
Post #5 Posted: Wed Mar 24, 2021 10:58 pm 
Beginner

Posts: 1
Liked others: 0
Was liked: 0
Rank: 2 dan
Great, thanks a lot

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group