lichess.org
Donate

Record Live Games & Upload them to Lichess with ChessCam

Positional analysis is interesting so I would hope that the website would support (if it doesn't support at the moment) to record games from certain position on board.
This is truly impressive, thank you for making this available! Amidst other attempts over the years, this stands out as the most user-friendly solution.

After testing several games with the software, here are my observations:

- The software excels when accurately identifying the initial positioning of all pieces. However, if not, it still works but errors may occur. I often faced a situation where the bishop was recognized as a king or the rook was mistaken for a king, resulting in an incorrect move

- The optimal distance from the table to the camera is approximately 30 cm or 12 inches

- I encountered an issue with the upload function; it didn't work for me. The video stuttered significantly at all play speeds, both in 1080p and 720p (30 fps)

I used an iPhone 14 Pro with 0.5 zoom and DGT plastic chess pieces.

A valuable addition could be the ability to play a Lichess game not only from the standard position but also from a suggested (PGN) position. I'm uncertain about Lichess API support for this, but it would significantly enhance training possibilities.

Including a sound notification for an illegal move would indeed be a welcome addition, especially when playing with children ;)
First of all, thank you for creating this - it's a great idea. I tried it out by recording using my mobile phone but when I tried to upload the video it had problems with moves where a piece was taken. I was playing a Sicilian and it worked fine for the first couple of moves but when I reached 3...cxd4 the app couldn't work out what was happening. I tried this with two different recordings and both times the app couldn't get the move.
Additionally, as a piece of feedback, the instructions say that it works best if the camera is on the side of the board, which means if white is on the right hand side of the screen the corners work out as a1 in the bottom right, a8 bottom left, h8 top left and h1 top right but both times I used it, when I used the "Find Corners" button it wanted the board setup with h8 in the bottom right, h1 bottom left, a1 top left and a8 top right, i.e. so that the camera is setup from Black's end of the board. It might be better to set the default corners so they match a side on board?

UPDATE: I copied the recording from my phone onto my laptop and tried again and it worked perfectly, so I would second what another user previously said that this is the way to go rather than trying to upload games from a mobile phone. It also correctly identified the corners without me having to manually switch them. A couple of things I did notice were that it was quite slow and that it wasn't possible to do anything else whilst the game was being processed - it had to be in the foreground and the laptop needed to be left alone. Very promising and impressive on the whole though!
@LHommeBlaireau said in #43:
> First of all, thank you for creating this - it's a great idea. I tried it out by recording using my mobile phone but when I tried to upload the video it had problems with moves where a piece was taken. I was playing a Sicilian and it worked fine for the first couple of moves but when I reached 3...cxd4 the app couldn't work out what was happening. I tried this with two different recordings and both times the app couldn't get the move.
> Additionally, as a piece of feedback, the instructions say that it works best if the camera is on the side of the board, which means if white is on the right hand side of the screen the corners work out as a1 in the bottom right, a8 bottom left, h8 top left and h1 top right but both times I used it, when I used the "Find Corners" button it wanted the board setup with h8 in the bottom right, h1 bottom left, a1 top left and a8 top right, i.e. so that the camera is setup from Black's end of the board. It might be better to set the default corners so they match a side on board?
>
> UPDATE: I copied the recording from my phone onto my laptop and tried again and it worked perfectly, so I would second what another user previously said that this is the way to go rather than trying to upload games from a mobile phone. It also correctly identified the corners without me having to manually switch them. A couple of things I did notice were that it was quite slow and that it wasn't possible to do anything else whilst the game was being processed - it had to be in the foreground and the laptop needed to be left alone. Very promising and impressive on the whole though!

There was a bug on mobile that I only fixed a few days ago. It might work better for you now if you give it another go. (It was causing all the machine learning on the phone to go completely bonkers).

I want to switch to a "nano" model in the future, instead of "small", but it's not accurate enough for production yet. That should help speed up the program. Watch this space!

@TheKingRAJ said in #42:
> A valuable addition could be the ability to play a Lichess game not only from the standard position but also from a suggested (PGN) position. I'm uncertain about Lichess API support for this, but it would significantly enhance training possibilities.
> Including a sound notification for an illegal move would indeed be a welcome addition, especially when playing with children ;)

I've taken note of these requests and will get them implemented soon.
@NechIvVas said in #45:
> Do the shades of the pieces matter? It seems to me that the program does not distinguish between black and white on my set, judging by the color of the frames.
> imgur.com/a/dsJlGgN.jpg

Ooh that chess set is very tricky - I have no data for it - so the model will not stand a chance. ChessCam is best on a strictly black/white chess set if you can get your hands on one of them.
Another chess set and another try. The angle of view is not optimal but the pieces in the foreground are the worst recognized. Pawn h2 is not recognized, g2 and f2 are recognized as bishops. Black King is not recognized. imgur.com/a/JbG3TOr
When pieces are moving, frames stay stationary.
The issue is the chess board right? Chess pieces is OK? I need black & white board and bigger rectangles is better?
https://i.imgur.com/Qw1YHel.png

This topic is now closed.