File size: 796 Bytes
53b9f74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
license: mit
tags:
  - computer-vision
  - object-detection
  - chess
  - yolov11
  - ultralytics
---

# ChessBoardDetector

Two-model YOLOv11 pipeline that converts a chessboard photograph into a FEN string.

## Models

| 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 |

## Usage

```python
from src.pipeline import run_pipeline
import cv2

image = cv2.imread("photo.jpg")
fen, annotated = run_pipeline(
    image,
    board_model_path="board_detector.pt",
    piece_model_path="piece_detector.pt",
)
print(fen)
```

## Source

[GitHub — honi05/ChessBoardDetector](https://github.com/Honi05/ChessBoardDetector)