Instructions to use mustafakemal0146/playing-cards-yolov8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use mustafakemal0146/playing-cards-yolov8 with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("mustafakemal0146/playing-cards-yolov8", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
🃏 Playing Cards Recognition Model - YOLOv8
YOLOv8 ile eğitilmiş iskambil kartı tanıma modeli.
📊 Model Bilgileri
- Model Tipi: YOLOv8n (nano)
- Eğitim: Google Colab (T4 GPU)
- Dataset: Roboflow Playing Cards Dataset
- Epoch: 50
- Eğitim Süresi: ~4.5 saat
- Format: PyTorch (.pt)
- Framework: Ultralytics YOLOv8
🚀 Kullanım
from ultralytics import YOLO
# Modeli yükle
model = YOLO('mustafakemal0146/playing-cards-yolov8')
# Tahmin yap
results = model('path/to/image.jpg')
# Sonuçları görselleştir
results[0].show()
# Sonuçları yazdır
for result in results:
boxes = result.boxes
for box in boxes:
class_id = int(box.cls[0])
confidence = float(box.conf[0])
class_name = model.names[class_id]
print(f"Kart: {class_name}, Güven: {confidence:.2f}")
📸 Örnek Görüntüler
📸 Örnek Görüntü 1 |
📸 Örnek Görüntü 2 |
📸 Örnek Görüntü 3 |
|
📝 Detaylar
Model, Roboflow platformundaki Playing Cards dataset'i kullanılarak 50 epoch boyunca eğitilmiştir. Standart 52 kartlık iskambil destesindeki tüm kartları tanıyabilir.
Eğitim Parametreleri
- Image Size: 640x640
- Batch Size: 16
- Optimizer: AdamW
- Learning Rate: 0.01
- Patience: 10
🔗 İlgili Proje
Flask web uygulaması: https://github.com/MustafaKemal0146/kart-tanima
📄 Lisans
MIT License
🙏 Teşekkürler
- Ultralytics - YOLOv8 için
- Roboflow - Dataset platformu için
- Downloads last month
- 274