[Python] How can I resize an image of a sudoku board into a perfect square using python?

Discussão em 'Python' iniciado por Stack, Fevereiro 18, 2025.

  1. Stack

    Stack Membro Participativo

    I want to create a sudoku solver using python. For this, I want to read the sudoku board from an image using an OCR. I think the best way is to split a perfectly square image of a sudoku board into 81 small images, each containing a cell of the sudoku board. I don't know how to transform an image of a sudoku board into a perfectly square image. [​IMG]

    This image has to contain the full sudoku board an be perfectly squared. Right now this image isn't perfectly squared, so I can't divide it into 81 perfect square piece. Thank you for any help or tips.

    Continue reading...

Compartilhe esta Página