如何在OpenCV中检测Sudoku网格

我正在做一个个人项目,想检测数独网格。

Original image:

I need this:

评论
蔓延2j
蔓延2j

If the image is always cropped and normalized like that you can just check for black pixels at a few locations in each square. Otherwise, you could try Template Matching to find the sudoku grid and crop out the inner squares, again checking for black pixels.

点赞
评论