Comments (6)
CPU is fine, just slower
from chessvisionbot.
Hey Peter, the pieces for the screenshot are in the folder 'pieces'. But I don't use these for detection but only for visualization of the detected position. For the detection I use a trained CNN so it works with basically every set of chess pieces as long as they are at least similar to the more standard ones. The detection is done in bord_basics.py At the moment there is a lot of code in these because I'm playing around with caching the detections, so I don't have to redetect the same piece that hasn't moved since the last detection.
There are two variations of detection. One is the Binary-Detection model, which just evaluates if a square is empty or not. I use that model to update the position when I already detected the position completely. Then there is the Class-Detection model, this model can distinguish between all the pieces and colors to build the initial position. You can find the models in their respective folders. They are first initialized when you start the application in ml_model.py
from chessvisionbot.
That is really interesting. I tried the pyautogui.locateOnScreen but i fould it unreliable. A CNN is probably a solution. Is your classifying CNN able to run on CPU or do you need a proper graphics card?
from chessvisionbot.
Also, I am just curious, is there a source code of this tensorflow model in this repository? I am working on a similar program to yours and I want to be able to really look under the hood.
Regards.
Peter
from chessvisionbot.
As I said the models are in their respective folders. I even put an image of their structure into the folder. If you want to examine them further feel free to load them into keras and analyze them
from chessvisionbot.
Oh. I am really sorry. Thanks for the help!
from chessvisionbot.
Related Issues (15)
- Porting this to Windows
- Yesterday update
- Solving environment fails on windows HOT 5
- Failing to identify chess boards HOT 5
- No Sessions in Tensorflow 2.x
- new update when?
- Project Isn't Running in VS Code on Mac HOT 2
- Unable to load model
- Absolute paths HOT 2
- How to install HOT 5
- Tensorflow SavedModel loading error HOT 4
- Windows Stockfish load error HOT 1
- ValueError: not enough values to unpack (expected 3, got 2) HOT 6
- Loading file issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chessvisionbot.