Search code examples
androidopencvchess

2-d chess board recognition


I'm trying to develop an Android app that reads a 2-d chess image and recognize the position (rows are numbered by 1 to 8 and columns a to h ) then:

  1. Which square the piece occupied?
  2. What piece it is (king or queen or knight etc)
  3. Color of piece (black or white)

Need some ideas using openCV or any.


Solution

  • There is a part about camera calibration in the book Opencv 2 Computer Vision Application Programming Cookbook. There they use a chess board. Maybe it can help you, solving your problem.

    http://www.bol.com/nl/p/opencv-2-computer-vision-application-programming-cookbook/1001004011498107/