Skip to content

add ai sudoku | issue #796 #811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

Tusharb331
Copy link
Contributor

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

  • I have provided the issue title.

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.

  • I have described the aim of the project.

Name

Please mention your name.
Tushar Bansal

  • I have provided my name.

GitHub ID

Please mention your GitHub ID.
tusharb331

  • I have provided my GitHub ID.

Email ID

Please mention your email ID for further communication.
[email protected]

  • I have provided my email ID.

Identify Yourself

Mention in which program you are contributing (e.g., WoB, GSSOC, SSOC, SWOC).
GSSOC-EXT, hacktoberfest

  • I have mentioned my participant role.

Closes

Enter the issue number that will be closed through this PR.
Closes: #796 ['Feature Addition']

  • I have provided the issue number.

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:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

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, and matplotlib.

  • 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.

  • I have added 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.

  • I have described my testing process.

Checklist

Please confirm the following:

  • My code follows the guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly wherever it was hard to understand.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added things that prove my fix is effective or that my feature works.
  • Any dependent changes have been merged and published in downstream modules.

Copy link

👋 Thank you for opening this pull request! We're excited to review your contribution. Please give us a moment, and we'll get back to you shortly!

Feel free to join our community on Discord to discuss more!

@UTSAVS26 UTSAVS26 added Contributor Denotes issues or PRs submitted by contributors to acknowledge their participation. Status: Review Ongoing 🔄 PR is currently under review and awaiting feedback from reviewers. level1 gssoc-ext hacktoberfest labels Oct 23, 2024
@github-actions github-actions bot force-pushed the main branch 2 times, most recently from 6a1fc16 to 331cbb0 Compare October 25, 2024 02:44
@Tusharb331
Copy link
Contributor Author

@UTSAVS26 please merge it

@UTSAVS26
Copy link
Owner

@Tusharb331 add the project in the particular folder not in the one repo.

@github-actions github-actions bot force-pushed the main branch 3 times, most recently from 774a759 to f014edc Compare October 31, 2024 02:44
@github-actions github-actions bot force-pushed the main branch 2 times, most recently from 609b090 to c1dc75e Compare November 7, 2024 02:42
Copy link

@ruhi47 ruhi47 Nov 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Tusharb331 ,
While the project is impressive, try not having .hdf5 files directly on the push. These are big files and grow with time and as more clones are made. I suggest you use Git LFS for such projects especially for AI/ML/Deep Learning. Here is a link for your reference: https://medium.com/@grof.attila9/git-large-file-storage-for-ml-dl-projects-df5e85995775
If you need any help you can reach out to me here or on Linkedin.

Also add it under a dedicated folder like Advanced-Projects or relevant ones. It should not be outside of them.
Update this and I will review the PR.
Thank you!

@ruhi47 ruhi47 added the Status: Requested Changes⚙️ Indicates that a reviewer has requested changes to a PR before it can be approved. label Nov 8, 2024
@UTSAVS26 UTSAVS26 closed this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contributor Denotes issues or PRs submitted by contributors to acknowledge their participation. gssoc-ext hacktoberfest level1 Status: Requested Changes⚙️ Indicates that a reviewer has requested changes to a PR before it can be approved. Status: Review Ongoing 🔄 PR is currently under review and awaiting feedback from reviewers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Code Addition Request]: AI SUDOKU SOLVER using cv2 and Tensorflow
3 participants