Research Article

Mahjong detection based on YOLOv5

Jiawei Zhang1, Ran Zhi2, Ji Zhou2,*
1. Changchun College Of Electronic Technology
2. SHENZHEN MSU-BIT University

* Corresponding author: [email protected]

Abstract

Mahjong is a captivating game that enjoys popularity in China, Japan, and various other Asian nations. The rapid progress of artificial intelligence technology has spurred significant research attention towards achieving automated mahjong matches. Central to this effort, the precision of mahjong card recognition plays a pivotal role in determining the effectiveness of subsequent tasks.The traditional image recognition method mainly relies on the similarity measurement between the target and the template, whose accuracy and stability cannot meet the needs of the application due to changes in external factors such as the angle and lighting of the mahjong image acquisition in the actual game. In this article, a mahjong intelligent recognition method based on YOLOv5 is proposed. Specifically, this article applies image recognition technology to the AI training of national standard mahjong, and quantitatively analyzes the impact of mahjong image quality (such as shooting angle, mahjong size) on model prediction results. The results show that the proposed method based on YOLOv5 can achieve robust recognition of mahjong, which can bring some new insights to the field AI games.

Keywords: Mahjong; Object Detection; YOLOv5; deep learning
Published: March 19, 2024
DOI: 10.54254/2755-2721/48/20241580
Volume: ACE Vol.48
pp. 248-254
Download PDF

References

  1. Ding Wei. Mahjong Fate Record [ J ]. Wen Shi Tian Di, 2022 ( 12 ) : 71-74.
  2. Junjie Li, Sotetsu Koyamada, QiweiYe, Guoqing Liu, Chao Wang, Ruihan Yang, Li Zhao, Tao Qin, Tie-Yan Liu, Hsiao-Wuen Hon. Suphx: Mastering Mahjong with Deep. Reinforcement Learning[m], 2003, 1-2
  3. Cheng Zehua, Han Junying. Lightweight Improvement of YOLOv5 Mask Wearing Detection Algorithm.Software Guide:1-6 [2023-11-08].
  4. Zhifang Wu, Jiuqiang Han, Erhu Liu, and Hongqiang Lyu. 2021. A Human-Robot Interactive Mahjong Playing System Based on Visual Recognition Using a Convolutional Neural Network. In Proceedings of the 5th International Conference on Computer Science and Application Engineering (CSAE '21). Association for Computing Machinery, New York, NY, USA, Article 63, 1-8.
  5. LUO Hao, JIANG Wei, FAN Xing and ZHANG Si-Peng. A Survey on Deep Learning Based Person Re-identification. ACTA AUTOMATICA SINICA, Vol. 45, pp: 2032-2049,2019.
  6. Bin Yan, Pan Fan, Xiaoyan Lei, Zhijie Liu and Fuzeng Yang. A Real-Time Apple Targets Detection Method for Picking Robot Based on Improved YOLOv5. Remote Sensing, vol. 13(9) ,2021.
  7. Zhaoyi Chen , Ruhui Wu , Yiyan Lin , Chuyu Li , Siyu Chen , Zhineng Yuan , Shiwei Chen and Xiangjun Zou. Plant Disease Recognition Model Based on Improved YOLOv5. Agronomy, Vol. 12(2),2022.
  8. Zhifang Wu, Jiuqiang Han, Erhu Liu and Hongqiang Lyu. A Human-Robot Interactive Mahjong playing System Based on Visual Recongnition Using a Convolutional Neural Network. Proceedings of the 5th International Conference on Computer Science and Application Engineering, Vol. 63, pp:1-8,2021.
  9. YangHongyun, WanYing, WangYinglong and LuoJianjun. Identification of Rice Diseases Based on Batch Normalization and AlexNet Network. Progress in Laser and Optoelectronics, Vol.58, No.6,2021.
  10. Zhou Ailing, Tan Guangxing. Traffic light detection algorithm based on YOLOv5s [J]. Journal of Guangxi University of Science and Technology,2023,34(04):69-76.