Detekce kartiček a sledování stavu hry BANG!
Loading...
Date
Authors
Šídlo, Zbyněk
Advisor
Referee
Mark
A
Journal Title
Journal ISSN
Volume Title
Publisher
Vysoké učení technické v Brně. Fakulta informačních technologií
ORCID
Abstract
Cílem této práce bylo vytvořit program sledující průběh karetní hry BANG! přes webkameru, jenž má za cíl kontrolovat dodržování pravidel. Za tímto účelem byl dotrénován detekční model YOLO11, na nově vytvořené datové sadě obsahující jednotlivé karty a další herní prvky, který na testovací sadě dosáhl přesnosti 95.1 % dle metriky mAP50–95 u herních karet. Program analyzuje informace získané z detekčního modelu, provádí kontrolu tahů a aktuální stav taktéž virtuálně vizualizuje. Při testování přesnosti sledování herních kroků dosáhl úspěšnosti 79.41 %, kde chyby byly zapříčiněny detekčním modelem. Řešení je možné nadále rozšiřovat o nové funkce, které mohou hru vytvořit ještě zajímavější.
The goal of this thesis was to create a program which will monitor ongoing BANG! card game through the webcam and watch for breaking the rules of the game. For this purpose, object detection model YOLO11 was trained on custom dataset containing cards and other game elements and got the result of 95.1 % accuracy by metric mAP50–95 for cards. The program obtains incoming detections from the detection model, analyzes game moves and virtually visualises current state. While testing game moves detection accuracy, it got a success rate of 79.41 %, where errors were caused mainly by wrong model detections. Program can be further expanded with new functions which could make the game even more fun to play.
The goal of this thesis was to create a program which will monitor ongoing BANG! card game through the webcam and watch for breaking the rules of the game. For this purpose, object detection model YOLO11 was trained on custom dataset containing cards and other game elements and got the result of 95.1 % accuracy by metric mAP50–95 for cards. The program obtains incoming detections from the detection model, analyzes game moves and virtually visualises current state. While testing game moves detection accuracy, it got a success rate of 79.41 %, where errors were caused mainly by wrong model detections. Program can be further expanded with new functions which could make the game even more fun to play.
Description
Keywords
BANG! , karetní hra , počítačové vidění , detekce objektů , datová sada , YOLO , Python , OpenCV , BANG! , card game , computer vision , object detection , dataset , YOLO , Python , OpenCV
Citation
ŠÍDLO, Z. Detekce kartiček a sledování stavu hry BANG! [online]. Brno: Vysoké učení technické v Brně. Fakulta informačních technologií. 2025.
Document type
Document version
Date of access to the full text
Language of document
cs
Study field
Informační technologie
Comittee
doc. RNDr. Pavel Smrž, Ph.D. (předseda)
Ing. Michal Hradiš, Ph.D. (člen)
RNDr. Marek Rychlý, Ph.D. (člen)
Ing. Tomáš Goldmann, Ph.D. (člen)
Ing. Martin Žádník, Ph.D. (člen)
Date of acceptance
2025-06-17
Defence
Student nejprve prezentoval výsledky, kterých dosáhl v rámci své práce. Komise se poté seznámila s hodnocením vedoucího a posudkem oponenta práce. Student následně odpověděl na otázky oponenta a na další otázky přítomných. Komise se na základě posudku oponenta, hodnocení vedoucího, přednesené prezentace a odpovědí studenta na položené otázky rozhodla práci hodnotit stupněm A.
Result of defence
práce byla úspěšně obhájena
