Skip to content

Cat-Programmer3/Python-Sudoku-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Sudoku Solver

Python Sudoku Solver using Yolo v8 Object Detection, it uses Ultralytics object detection for number recognition then brute forces the puzzle to print a result.

Packages

Uses Ultralytics & Pytorch

Ultralytics Installation:

Via pip:

pip install ultralytics

Via Conda:

conda install -c conda-forge ultralytics

Pytorch Installation:

You will want to follow the instructions on the website: pytorch.org for installation.

Usage

Download the repository and extract into your directory. Run solver.py in terminal or IDE. Input file path of the (Cropped) image of the Sudoku puzzle; Ex. Examples/Hard-Puzzle-1.jpg

Pretrained Models

There are different sizes of pretrained models from s to x. The Smallest one is nano (n) and the largest is xl. The pretrained model load currently is medium. (Pretrained-M.pt)

About

Python Soduku Solver using Yolo v8 Object Detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages