Font Size: a A A

Research And Implementation Of Chinese Chess Man-machine Game System

Posted on:2021-04-20Degree:MasterType:Thesis
Country:ChinaCandidate:D S KongFull Text:PDF
GTID:2430330611494359Subject:Control engineering
Abstract/Summary:PDF Full Text Request
With the improvement of people's living standards,more and more entertainment robots appear in people's lives.In this paper,through the research on the related theories of machine vision and human-machine games,a design of a Chinese chess human-machine game robot system is realized.And this paper mainly introduces the implementation process of the design from the following three aspects:First,The Image Recognition Algorithm of Chinese chessboard and chess pieces.This paper proposes to use image clipping method and template matching method based on Log-polar coordinate & Fourier transformation to achieve the positioning and and identification of the pieces in the chessboard,It has well eliminated the influence of the arbitrary rotation on chess piece recognition during chess piece placement.Second,the man-machine game algorithm of Chinese chess adopts the Alpha-Beta?HH search algorithm combined with historical revelation and Alpha-Beta,which makes the search speed faster and the system reaction time greatly reduced.Third,the Kinetic analysis of the robotic arm,The D-H matrix homogeneous coordinate transformation method is used to establish the kinematics model of the robotic arm.Through the solution of the forward and inverse solutions of the position of the robot arm,the angles at which the joints of the robot arm should run can be obtained to guide the robot to move.This paper finally builds a Chinese chess robot hardware platform,completes the interface design of the upper computer,the control of each module of the lower computer and the communication between the upper computer and the lower computer,and integrates the entire module.After the game starts,the system monitors the status of the chessboard through the camera.After the human moves,the chessboard image is collected,and then the image is transferred to the computer.At the same time,the computer locates and recognizes each chess piece through the the Image Recognition Algorithm of chessboard and chess pieces,and generates the chessboard state matrix.Then through the Chinese chess man-machine game algorithm to achieve the next move,and get the angle that each joint should run through the forward and reverse solutions of the robot arm.Then the computer transfers the angle information to the lower-level single-chip microcomputer through the serial port,and the single-chip microcomputer controls the robot arm to realize the movement of the chess pieces,and completes the game process with people.After testing,the system can complete basic functions and has good stability.
Keywords/Search Tags:machine vision, human-machine game, Polar coordinate transformation, Fourier transformation
PDF Full Text Request
Related items