File size: 1,883 Bytes
32dc574
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35833d9
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
language:
  - ru
license: mit
tags:
  - ocr
  - easyocr
  - text-recognition
  - classification
  - lightgbm
  - russian
  - apex-legends
  - custom-trained
datasets:
  - custom
library_name: easyocr
model-index:
  - name: Cyrillic OCR Fine-Tuned (EasyOCR)
    results: []
  - name: Player Tier Classifier (LightGBM)
    results: []
---

# πŸ›  Models for Apex-Stat-Detector-Discord-Bot

This repository contains **two custom-trained models** developed specifically for the [AI-Apex-Stat-Detector-Discord-Bot](https://github.com/PSImera/AI-Apex-Stat-Detector-Discord-Bot.git):

1. πŸ“„ **OCR Model (EasyOCR)** β€” for extracting Cyrillic stats text from Apex Legends profile screenshots  
2. 🧠 **Tier Classifier (LightGBM)** β€” for evaluating player skill level based on recognized stats

---

## πŸ”€ OCR Model – Cyrillic Text Recognition (EasyOCR)

This model is based on `cyrillic_g2.pth`, fine-tuned to recognize the font used in the Apex Legends in-game statistics page, which contains both **Cyrillic** and **Latin** characters.

It is designed to extract information such as **damage**, **K/D**, **win rate**, and other numeric indicators from game profile screenshots.

### πŸ–Ό Sample Inputs

![damage](images/damage-annot.png)
![kd](images/kd-annot.png)

---

### πŸ”§ OCR Model Info

- **Framework**: EasyOCR  
- **Base**: `cyrillic_g2.pth`  
- **Character Set**: Cyrillic + Latin
- **Format**: `.pth`  
- **Trained on**: Custom annotated dataset 
- **Purpose**: Enhanced recognition of Cyrillic text in low-resolution images with stylized fonts.

---

### πŸš€ OCR Usage Example

```python
import easyocr

reader = easyocr.Reader(
    ["en", "ru"],
    model_storage_directory="models/EasyOCR_model",
    user_network_directory="models/EasyOCR_user_network",
    recog_network="apex_stats_detector",
)

results = reader.readtext("image.jpg")
print(results)
```