UppuluriKalyani / ML-Nexus

ML Nexus is an open-source collection of machine learning projects, covering topics like neural networks, computer vision, and NLP. Whether you're a beginner or expert, contribute, collaborate, and grow together in the world of AI. Join us to shape the future of machine learning!
https://ml-nexus.vercel.app/
MIT License
67 stars 123 forks source link

Feature request: AI Sudoku Solver #517

Closed Tusharb331 closed 3 weeks ago

Tusharb331 commented 3 weeks ago

Is your feature request related to a problem? Please describe.

The current implementation lacks 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.

Describe the solution you'd like

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

Describe alternatives you've considered

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.

github-actions[bot] commented 3 weeks ago

Thanks for creating the issue in ML-Nexus!🎉 Before you start working on your PR, please make sure to:

github-actions[bot] commented 3 weeks ago

Thanks for raising this issue! However, we believe a similar issue already exists. Kindly go through all the open issues and ask to be assigned to that issue.

github-actions[bot] commented 3 weeks ago

Hello @Tusharb331! Your issue #517 has been closed. Thank you for your contribution!