Giter VIP home page Giter VIP logo

rondinellimorais / chess_recognition Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 0.0 97.42 MB

This project uses computer vision techniques to detect objects on a chessboard. The data are converted into an 8x8 numpy matrix which is passed to the minimax algorithm to suggest a move.

License: MIT License

Python 0.40% Jupyter Notebook 99.60%
opencv darknet yolov4 minimax-alpha-beta-pruning python numpy data-au conda-env object-detection neural-networks

chess_recognition's People

Contributors

rondinellimorais avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chess_recognition's Issues

Could you help me?

Hello. Looking your videos in YouTube I have to say that your project is awesome!!! And it is exactly that I need for my own project (also connected with a chess).

However to be honest I am not really good at python and I didn't work with such projects before. I didn't have a practise with Conda and other environment things. That is why I am asking you to help me - explain in more details how to start up a project.

Some notes: I have tried to install an env using Conda. It is installed files:

absl-py 0.12.0  
attrs 21.2.0  
ca-certificates 2023.5.7  
cairocffi 1.2.0  
cairosvg 2.5.2  
cffi 1.14.5  
chess 1.5.0  
click 7.1.2  
cssselect2 0.4.1  
cycler 0.10.0  
decorator 4.4.2  
defusedxml 0.7.1  
imageio 2.31.0  
imutils 0.5.3  
kiwisolver 1.3.1  
lazy-loader 0.2  
libblas 3.9.0  
libcblas 3.9.0  
libcxx 16.0.5  
libgfortran 5.0.0  
libgfortran5 12.2.0  
liblapack 3.9.0  
libopenblas 0.3.23  
libsqlite 3.42.0  
libzlib 1.2.13  
llvm-openmp 16.0.5  
matplotlib 3.3.3  
ncurses 6.3  
networkx 3.1  
numpy 1.24.3  
opencv-contrib-python 4.7.0.72  
opencv-python 4.7.0.72  
opencv-python-headless 4.7.0.72  
openssl 1.1.1u  
packaging 23.1  
pillow 9.5.0  
pip 21.0.1  
protobuf 3.17.1  
pycparser 2.20  
pyparsing 2.4.7  
pyqt5-sip 12.9.0  
pyqtgraph 0.12.1  
python 3.9.2  
python-dateutil 2.8.1  
python-dotenv 0.17.1  
python_abi 3.9  
pywavelets 1.1.1  
readline 8.2  
scikit-image 0.21.0  
scipy 1.10.1  
setuptools 67.7.2  
shapely 2.0.1  
six 1.15.0  
sqlite 3.42.0  
tifffile 2021.3.17  
tinycss2 1.1.0  
tk 8.6.12  
tzdata 2023c  
webencodings 0.5.1  
wheel 0.40.0  
xz 5.2.6  
zlib 1.2.13  

Also trying to start a main.py I have this traceback: Traceback (most recent call last):
File "/Users/kirill_smychok/PycharmProjects/chess_recognition-master/src/main.py", line 3, in
from model import Game
File "/Users/kirill_smychok/PycharmProjects/chess_recognition-master/src/model/init.py", line 3, in
from .chessboard_calibration import ChessboardCalibration
File "/Users/kirill_smychok/PycharmProjects/chess_recognition-master/src/model/chessboard_calibration.py", line 19, in
from model.board import Board
File "/Users/kirill_smychok/PycharmProjects/chess_recognition-master/src/model/board.py", line 11, in
class Board:
File "/Users/kirill_smychok/PycharmProjects/chess_recognition-master/src/model/board.py", line 14, in Board
network: Darknet = Darknet.instance()
File "/Users/kirill_smychok/PycharmProjects/chess_recognition-master/src/model/darknet.py", line 33, in instance
cls.__instance = cls()
File "/Users/kirill_smychok/PycharmProjects/chess_recognition-master/src/model/darknet.py", line 17, in init
self.__net = readNetFromDarknet(config.get('CFG_FILE_PATH'), config.get('WEIGHTS_FILE_PATH'))
cv2.error: OpenCV(4.7.0) /Users/xperience/GHA-OCV-Python/_work/opencv-python/opencv-python/opencv/modules/dnn/src/darknet/darknet_importer.cpp:210: error: (-212:Parsing error) Failed to open NetParameter file: assets/dnn/yolov4.custom.cfg in function 'readNetFromDarknet'

I know that it is a little bit arrogant to ask you this. On the other hand I must say that I have been trying to find a solution for 3 days (that is a true). I will be really appreciate on your reply and, of course, will mention you as a main developer if I could start up my project

P.S. The brilliant idea if you film a video on YouTube how to start up a project however I can't ask you this, it is too unreasonable for only me

Good buy!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.