7dpk / OpenCV-Chess-Bot

This project uses OpenCV, a popular computer vision library, to automate chess game play on a 2D screen. The software uses computer vision algorithms to detect the chessboard and individual pieces on the screen, and then makes moves based on a UCI chess engine.
https://user-images.githubusercontent.com/78639550/225330750-d877a4cf-8dda-4dcf-9b6c-3c035333fe6a.mp4
8 stars 0 forks source link

CHESS BOARD #1

Closed SALTA77 closed 1 year ago

SALTA77 commented 1 year ago

it worked on chess.com and all chess boards but i cant make it work at this board Screenshot_2 Screenshot_1

7dpk commented 1 year ago

Can you give me a some more details as of where and how this happened, did it errored at the start or during the gameplay. Which platform are you using Linux/Windows? Did the bot correctly recognize the board? Answering these questions will greatly help me to pinpoint the problem. Thanks for trying it out :)

SALTA77 commented 1 year ago

Can you give me a some more details as of where and how this happened, did it errored at the start or during the gameplay. Which platform are you using Linux/Windows? Did the bot correctly recognize the board? Answering these questions will greatly help me to pinpoint the problem. Thanks for trying it out :)

the problem is the bot didn't recognize the board but if i tried the bot on ches.com or lichess it work perfect i think its because the chess theme but the problem i cant change it u can try to open this image and start the bot i tried it with chess.com image and the bot started he will try to move the pieces in the image i am on win 10

7dpk commented 1 year ago

Can you share me a screenshot with the chessboard in it, I guess there might be some issue with the contrast, which might need some parameter tweaking.

SALTA77 commented 1 year ago

Can you share me a screenshot with the chessboard in it, I guess there might be some issue with the contrast, which might need some parameter tweaking.

sure here is it Screenshot_4