board_to_fen
v0.0.14
Package Python qui convertit l'image d'échecs numérique en notation de notation (FEN) de Forsyth-Edwards (FEN)
Board_To_Fen est disponible sur PYPI:
pip3 install board_to_fen
from board_to_fen . predict import get_fen_from_image_path
print ( get_fen_from_image_path ( PATH_TO_CHESSBOARD_IMAGE ))Ou, si vous le souhaitez, vous pouvez charger l'objet d'image par vous-même:
from PIL import Image
from board_to_fen . predict import get_fen_from_image
img = Image . open ( PATH_TO_CHESSBOARD_IMAGE )
print ( get_fen_from_image ( img ))Remarque: Le package utilise l'API TensorFlow + Keras. Ils sont assez lourds.
get_fen_from_image_path Takes a 3 arguments:
Disponible sur: https://board2fen.bieda.it
Pour la formation, vous voudriez probablement télécharger le code source en clonage le référentiel:
$ git clone https://github.com/mcdominik/board_to_fen.git
Téléchargez les données de formation depuis:
Je fournirai une URL pour les données à l'avenir
Dans le référentiel principal, exécuter
$ python3 ./board_to_fen/train_model.py
Janvier 2023
Février 2023 Version 0.1.0-0.1.1
https://www.kaggle.com/datasets/koryakinp/chess-positions