The invention discloses a control method of a gobang
robot, and belongs to the technical field of
robot application. The control method comprises the steps that firstly, an industrial camera is used for shooting play chessboard image position information and obtaining coordinate information of various chess piece point positions on a chessboard; when man-
machine playing is started, the industrialcamera is used for shooting the current chessboard chess piece distribution information, and in the same direction, if five continuously-connected white chess pieces or black chess pieces exist, it istreated that the white chess pieces or black chess pieces win; and if no five continuously-connected white chess pieces or black chess pieces exist, playing continues, meanwhile, the chessboard chesspiece distribution information is obtained in real time, the above operation is repeatedly conducted till one side wins, the game is over, and resetting is conducted. In the method, the six-axis
industrial robot is adopted in the operation
machine side, and the chess playing operation is achieved in combination with corresponding algorithms. The industrial camera is utilized in the method for intelligent detection, and the technical beneficial effects that the detection speed is high, the
algorithm stability is high, and the recognition accuracy is high are achieved.