摘要
针对五子棋机器人的棋盘信息提取进行研究,提出基于LabVIEW的棋盘识别方法。采用USB摄像头,利用NI Vision实现图像实时采集,进行图像灰度转换,提高图像处理算法运行的速度,对图像进行水平旋转、分割、缩放,解决下棋时手臂对棋盘的影响,通过手动选取棋子模板方式识别棋子,提高棋子识别的准确率。测试结果表明,该棋子识别方法能快速准确地识别棋盘与棋子。
According to the chessboard information extraction for the gobang robot, a recognition method based on LabVIEW was proposed. A USB camera was used for the real-time image acquisition, the colorized image was transformed to gray using NI Vision, to improve the speed of image processing. The image was horizontally rotated, segmented and scaled to solve the impact of the arm on the board when playing chess. Through manually selecting the chess template recognition pieces, the accuracy of the recognition was improved. Results of tests show the chessboard and the chess pieces can be quickly and accurately identified.
出处
《计算机工程与设计》
北大核心
2017年第1期242-246,共5页
Computer Engineering and Design
基金
苏州市科技计划基金项目(SYG201504)