tool wanted for automatic creation of FEN from picture

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

chessica
Posts: 1062
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

tool wanted for automatic creation of FEN from picture

Post by chessica »

Hello, I have a question. Could you get from photos of
a chess create a fen notation? It should be possible.
Or does something like this already exist?
jefk
Posts: 1085
Joined: Sun Jul 25, 2010 10:07 pm
Location: the Netherlands
Full name: Jef Kaan

Re: tool wanted for automatic creation of FEN from picture

Post by jefk »

https://github.com/notnil/fenify-3D
(needs testing imo)

there exist several other, developments in this field, don't know
which one is the best, or most ahead

https://chessify.me/news/chess-scanner- ... fy-website
(they claim it works, but i suggest it would need testing)



https://www.williamhoff.tech/chess-recognition

https://tech.bakkenbaeck.com/post/chessvision

https://www.researchgate.net/figure/The ... _322686139
chessica
Posts: 1062
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: tool wanted for automatic creation of FEN from picture

Post by chessica »

Oh, I must have expressed myself incomprehensibly, I mean something different.
This one: a window string from the diagram here

[d]8/3P3k/n2K3p/2p3n1/1b4N1/2p1p1P1/8/3B4 w - - 0 1

From this diagram I want to create the Fen string: 8/3P3k/n2K3p/2p3n1/1b4N1/2p1p1P1/8/3B4 w - - 0 1
User avatar
a_node_uncut
Posts: 11
Joined: Sun Nov 10, 2024 9:58 am
Full name: Max Lewicki

Re: tool wanted for automatic creation of FEN from picture

Post by a_node_uncut »

chessica
Posts: 1062
Joined: Thu Aug 11, 2022 11:30 pm
Full name: Esmeralda Pinto

Re: tool wanted for automatic creation of FEN from picture

Post by chessica »

a_node_uncut wrote: Mon Nov 11, 2024 6:02 am I find https://chessvision.ai/ useful
very nice, :-)

8/3P3k/n2K3p/2p3n1/1b4N1/2p1p1P1/8/3B4 w - - 0 1

it works very well
jefk
Posts: 1085
Joined: Sun Jul 25, 2010 10:07 pm
Location: the Netherlands
Full name: Jef Kaan

Re: tool wanted for automatic creation of FEN from picture

Post by jefk »

yep you wrote 'photo's so i assumed 3D.

but for 2 D chessvision indeed works quite well nowadays, i have it
as plugin with Chrome, and use it sometimes ;
but for pdf's loaded in Chrome it doesn't seem to work.
Apparently there's (another?) plugin, i'll have a look lateron
https://ebook.chessvision.ai/

and then there's also this one
https://chesspdfbrowser.com:9443/chessP ... /web/index
and this one:
https://chessify.me/news/chess-pdf-scanner-and-reader

(there exist commercial 'Forward- chess' E-books where you can analyze positions in
chess books, but that apparently -usually- comes with a cost (of the E-book/app).
https://forwardchess.com/download-instructions
User avatar
towforce
Posts: 12919
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK
Full name: Graham Laight

Re: tool wanted for automatic creation of FEN from picture

Post by towforce »

A couple of failed experiments:

1. Astica (https://astica.ai/vision/describe-images) recognised that it was chess, and knew what a FEN was, but refused to attempt to build the FEN

2. Lens (https://lens.google.com/) has no way to ask about images - but, to my surprise, found a web page with that ACTUAL position on it - http://220v.gevo.cz/neobvykle-ulohy/ ("Tal's diabolical task - white wins")

3. Gemini Pro correctly described what a FEN is, and produced a FEN - but that FEN was not correct:

[d]8/1p2k3/2p2p2/3p1b2/B1P1nN2/2P3p1/5P1P/4R1K1 w - - 0 1
Human chess is partly about tactics and strategy, but mostly about memory
User avatar
towforce
Posts: 12919
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK
Full name: Graham Laight

Re: tool wanted for automatic creation of FEN from picture

Post by towforce »

towforce wrote: Tue Nov 12, 2024 1:31 pmLens (https://lens.google.com/) has no way to ask about images - but, to my surprise, found a web page with that ACTUAL position on it - http://220v.gevo.cz/neobvykle-ulohy/ ("Tal's diabolical task - white wins")

Now we know it's a "white to move and win" puzzle, someone can get Huntsman on the task! :)

I thought it looked easy - but when I tried the obvious solution (nf6+) in analysis mode at chess.com, I found it didn't work. :cry:
Human chess is partly about tactics and strategy, but mostly about memory
modolief
Posts: 45
Joined: Tue Apr 30, 2013 6:29 pm

Re: tool wanted for automatic creation of FEN from picture

Post by modolief »

a_node_uncut wrote: Mon Nov 11, 2024 6:02 am I find https://chessvision.ai/ useful
This looks pretty amazing, based on a perusal of their website. I didn't understand their business model so I asked ChatGPT, which told me:
Chessvision.ai uses a freemium business model, offering a free, limited version of its chess analysis software, along with a paid subscription that unlocks advanced features. The free version allows users to scan chess positions from images, books, and websites, which it then processes into a FEN (Forsyth-Edwards Notation) string or PGN (Portable Game Notation) for further analysis. This functionality is useful for casual players and learners, while the premium version expands on this by adding more robust scanning options, enhanced board depth, real-time position analysis, and integrations with chess websites and videos​

The platform primarily makes money through these premium subscriptions. The value of the paid features lies in how much deeper the tool can analyze positions and the added conveniences for those studying chess intensively, such as advanced game review options and educational tools useful for coaches and avid players​

In essence, Chessvision.ai sustains itself through offering valuable enhancements to casual and professional chess players alike, with additional learning resources and integrations beyond the basics.
User avatar
j.t.
Posts: 268
Joined: Wed Jun 16, 2021 2:08 am
Location: Berlin
Full name: Jost Triller

Re: tool wanted for automatic creation of FEN from picture

Post by j.t. »

chessica wrote: Sun Nov 10, 2024 12:46 pm Oh, I must have expressed myself incomprehensibly, I mean something different.
This one: a window string from the diagram here

[d]8/3P3k/n2K3p/2p3n1/1b4N1/2p1p1P1/8/3B4 w - - 0 1

From this diagram I want to create the Fen string: 8/3P3k/n2K3p/2p3n1/1b4N1/2p1p1P1/8/3B4 w - - 0 1
https://github.com/tsoj/Chess_diagram_to_FEN

It's free