docs: tambah model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- object-detection
|
| 5 |
+
- yolov8
|
| 6 |
+
- obb
|
| 7 |
+
- receipt
|
| 8 |
+
- ocr
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# NotePay — YOLOv8s OBB Receipt Region Detector
|
| 12 |
+
|
| 13 |
+
Model YOLOv8s dengan Oriented Bounding Box (OBB) untuk mendeteksi 4 region pada struk belanja.
|
| 14 |
+
|
| 15 |
+
## Classes
|
| 16 |
+
|
| 17 |
+
| ID | Label |
|
| 18 |
+
|---|---|
|
| 19 |
+
| 0 | nama_toko |
|
| 20 |
+
| 1 | line_item |
|
| 21 |
+
| 2 | tanggal_waktu |
|
| 22 |
+
| 3 | total_belanja |
|
| 23 |
+
|
| 24 |
+
## Usage
|
| 25 |
+
|
| 26 |
+
```python
|
| 27 |
+
from ultralytics import YOLO
|
| 28 |
+
from huggingface_hub import hf_hub_download
|
| 29 |
+
|
| 30 |
+
model_path = hf_hub_download(repo_id="NeoCode77/notepay-yolo-receipt", filename="best.pt")
|
| 31 |
+
model = YOLO(model_path)
|
| 32 |
+
|
| 33 |
+
results = model("struk.jpg", conf=0.3)
|
| 34 |
+
results[0].show()
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## Training
|
| 38 |
+
|
| 39 |
+
- **Base model:** YOLOv8s-OBB
|
| 40 |
+
- **Dataset:** Receipt images dengan anotasi OBB
|
| 41 |
+
- **Input size:** 640×640
|
| 42 |
+
- **Optimizer:** AdamW, lr=0.001
|