|
|
--- |
|
|
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 |
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
--- |
|
|
|
|
|
### π§ 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) |
|
|
``` |