I introduce YOLOv5s model with PlayingCards dataset. This model could be used to detect different hand in Vietnamese card game such as Thirteen, Baccarat and Blackjack
PLEASE WAITING FOR VIDEO LOADING
| Model | Size (pixels) | mAPval 50-95 | mAPval 50 | Parameters (M) |
|---|---|---|---|---|
| YOLOv5s | 640 | 0.78 | 0.995 | 7.2 |
Firstly, you need to clone this repository
- Open terminal
- Creat new folder:
mkdir cards_yolov5 - Move to folder:
cd cards_yolov5 - Clone repository:
git clone https://github.com/khoitran2003/Vietnamese-card-game
Secondly, you need to creat Python virtual environment to try this model
- Open terminal in cards_yolov5 folder
Ubuntu
- Create venv:
python3 -m venv cards_yolov5 - Activate venv:
source cards_yolov5/bin/activate
Window
- Create venv:
python -m venv cards_yolov5 - Activate venv:
cards_yolov5\Scripts\activate
Mac
- Create venv:
python3 -m venv cards_yolov5 - Activate venv:
source cards_yolov5/bin/activate
Thirdly, you need to install requirement packages
pip/pip3 install -r requirements.txt
Finally, run detect.py in terminal and enjoy! (source 0: camera)
python/python3 detect.py --weights small_best.pt --kind "Tien Len" --source 0
"Ba Cao"
"Xi Dach"THANK YOU SO MUCH




