Skip to content
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

[Code Addition Request]: AI SUDOKU SOLVER using cv2 and Tensorflow #796

Open
2 of 3 tasks
Tusharb331 opened this issue Oct 22, 2024 · 1 comment · May be fixed by #811
Open
2 of 3 tasks

[Code Addition Request]: AI SUDOKU SOLVER using cv2 and Tensorflow #796

Tusharb331 opened this issue Oct 22, 2024 · 1 comment · May be fixed by #811
Assignees
Labels
Contributor Denotes issues or PRs submitted by contributors to acknowledge their participation. gssoc-ext hacktoberfest level1 Status: Assigned Indicates an issue has been assigned to a contributor.

Comments

@Tusharb331
Copy link
Contributor

Tusharb331 commented Oct 22, 2024

Have you completed your first issue?

  • I have completed my first issue

Guidelines

  • I have read the guidelines
  • I have the link to my latest merged PR

Latest Merged PR Link

NA / Review ongoing for #722

Project Description

Feature

Implement a computer vision module that can automatically extract Sudoku puzzles from images and preprocess them for solving. This feature would enhance the usability of the solver by allowing users to input images of Sudoku puzzles directly.

Solution

I propose adding a computer vision module using OpenCV and TensorFlow. This module will:

  • Detect and extract the Sudoku grid from an input image.
  • Use the pre-trained TensorFlow model for digit recognition.
  • Preprocess the extracted grid, identifying each cell and recognizing digits using the model.
  • Output a structured Sudoku grid ready for solving with the existing AI solver.

Approach to be followed (optional)

  1. Image Preprocessing: Use OpenCV to convert the image to grayscale, apply Gaussian blurring, and use edge detection to find the Sudoku grid.
  2. Perspective Transformation: Correct any distortion using perspective transformation to isolate the grid.
  3. Digit Recognition: Use the TensorFlow model to recognize digits in each cell.
  4. Integration: Pass the recognized digits into the solver for further processing.
  5. Testing: Test the module with various images to ensure robust performance across different lighting and angles.
  6. Documentation: Update the README with instructions on how to use the image-based input feature.

Additional context

This feature will require libraries like OpenCV for image processing and TensorFlow for digit recognition. The existing dependencies such as numpy, Pillow, and h5py will also support this implementation. By leveraging these tools, users can solve Sudoku puzzles directly from photographs, making the solver more versatile and accessible.

Full Name

Tushar Bansal

Participant Role

Gssoc-ext, hacktobrefest

Copy link

🙌 Thank you for bringing this issue to our attention! We appreciate your input and will investigate it as soon as possible.

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: Assigned Indicates an issue has been assigned to a contributor. level1 gssoc-ext hacktoberfest labels Oct 23, 2024
@Tusharb331 Tusharb331 linked a pull request Oct 23, 2024 that will close this issue
24 tasks
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: Assigned Indicates an issue has been assigned to a contributor.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants