Pbatch / CameraChessWeb

Record a chess game live and upload the PGN to Lichess
https://www.camerachess.com
GNU Affero General Public License v3.0
201 stars 17 forks source link

Basic Doubts #8

Closed cFlour closed 9 months ago

cFlour commented 10 months ago

Hello, I have some doubts which don't seem to be clarified in the blog post.

  1. The demo video shows when the video is taken live. How about when we upload a video, how does it (or will it) adjust the corners automatically?
  2. What if the starting position isn't the standard position?
  3. Does it handle variants?
Pbatch commented 10 months ago
  1. The video from the Lichess blog is an uploaded video (played at 2x speed). If the corners move during the game they are not updated automatically. I have done some research on tracking the corners as you go (https://www.youtube.com/watch?v=XV8EKqScaKs), but it's not quite good enough for production yet. For now it's best to keep the camera + board still :)

  2. I'll add this to the requested list of features. It's certainly possible; a few tweaks will be required.

  3. Variants are not handled, the Javascript chess library I'm using only knows the rules of regular chess. What sort of variants are you interested in?

cFlour commented 10 months ago
  1. The video from the Lichess blog is an uploaded video (played at 2x speed). If the corners move during the game they are not updated automatically. I have done some research on tracking the corners as you go (https://www.youtube.com/watch?v=XV8EKqScaKs), but it's not quite good enough for production yet. For now it's best to keep the camera + board still :)

ok noted. Just asking, if I upload a video of a game which has all the moves in a virtual board, will it still detect those to give the PGN?

  1. I'll add this to the requested list of features. It's certainly possible; a few tweaks will be required.

Okay!

  1. Variants are not handled, the Javascript chess library I'm using only knows the rules of regular chess. What sort of variants are you interested in?

Currently, only Antichess, but maybe all the lichess variants.

Pbatch commented 10 months ago

The app only works on real-life 3D chess boards, it can't do 2D. If you want something for that you should look into Chessvision.ai

I'll see if I can find a chess library somewhere that has the Antichess rules.