Views
No views yet
| File | Architecture | Task |
|---|---|---|
board_detector.pt | YOLOv11n | Locate the chessboard bounding box |
piece_detector.pt | YOLOv11s | Identify all 12 piece types on a 512×512 rectified board |
1from src.pipeline import run_pipeline
2import cv2
3
4image = cv2.imread("photo.jpg")
5fen, annotated = run_pipeline(
6 image,
7 board_model_path="board_detector.pt",
8 piece_model_path="piece_detector.pt",
9)
10print(fen)