Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for PyVerse 💡
Requesting to submit a pull request to the PyVerse repository.
Issue Title
Please enter the title of the issue related to your pull request.
[Code Addition Request]: AI SUDOKU SOLVER using cv2 and Tensorflow |#796
Info about the Related Issue
What's the goal of the project?
The goal of the project is to add an AI-powered Sudoku Solver that extracts and solves Sudoku puzzles from images using KNN or CNN-based recognition.
Name
Please mention your name.
Tushar Bansal
GitHub ID
Please mention your GitHub ID.
tusharb331
Email ID
Please mention your email ID for further communication.
tusharb331@gmail.com
Identify Yourself
Mention in which program you are contributing (e.g., WoB, GSSOC, SSOC, SWOC).
GSSOC-EXT, hacktoberfest
Closes
Enter the issue number that will be closed through this PR.
Closes: #796 ['Feature Addition']
Describe the Add-ons or Changes You've Made
Give a clear description of what you have added or modified.
This PR adds the AI_Sudoku project, which involves a GUI-based Smart Sudoku Solver using Python.
It attempts to extract and solve Sudoku puzzles from images using KNN or CNN-based recognition.
I have described my changes.
Type of Change
Select the type of change:
Proposed Changes
Added the entire AI_Sudoku project folder, including scripts for image preprocessing, recognition, and GUI.
Included a README file that provides detailed installation instructions, usage guide, and working explanation.
Added screenshots demonstrating various stages of the application, from image preprocessing to solution generation.
Updated the requirements.txt to include necessary dependencies like
cv2
,tensorflow
, andmatplotlib
.I have described my changes.
Additional Info
The KNN and CNN models are trained on the MNIST dataset for digit recognition.
Image preprocessing steps include Gaussian blurring, adaptive thresholding, and perspective warping.
Users can select images of Sudoku puzzles, and the application will process, recognize, and solve the puzzles.
I have provided additional info.
Screenshots
Please refer to the screenshots folder under AI_Sudoku for screenshots.
How Has This Been Tested?
Describe how your changes have been tested.
The solution was tested on various Sudoku images with different complexities, validating the output for accuracy and checking the robustness of the image preprocessing and recognition modules.
Checklist
Please confirm the following: