Use Camera
process image
Please input the N x M board as rows separated by spaces. For qu tile just put q.
Solve