Real-Time Sudoku Solver is an application that identifies and solves standard Sudoku puzzles in real-time using Image Processing and Machine Learning (CNN). The application captures video, detects the Sudoku board, computes the solution, and overlays the solved puzzle onto the original board.
- Real-Time Processing: Detects and solves Sudoku puzzles from a live camera feed.
- Computer Vision: Uses OpenCV to detect and process the Sudoku grid.
- Machine Learning (CNN): Recognizes digits using a Convolutional Neural Network trained on the MNIST dataset.
- Overlay Solution: Displays the computed solution on the detected board.
- Python & Deep Learning: Implements TensorFlow and Keras for digit recognition.
- Python: Primary programming language.
- OpenCV: Used for image processing and Sudoku board detection.
- TensorFlow & Keras: Used to train and deploy the Convolutional Neural Network (CNN) for digit recognition.
- MNIST Dataset: Provides training data for recognizing handwritten digits.
- NumPy & Matplotlib: Used for numerical operations and visualizing results.
- Clone the repository:
git clone https://github.com/Avnee29/Real-Time-Soduku-Solver.git cd Real-Time-Soduku-Solver - Install dependencies:
pip install -r requirements.txt
- Run the application:
python main.py
- Captures a video frame using OpenCV.
- Detects the Sudoku board and extracts the grid.
- Preprocesses the grid and recognizes digits using a trained CNN.
- Solves the Sudoku puzzle using Best-First Search.
- Overlays the solution back onto the original board in real time.
Feel free to contribute by submitting pull requests or reporting issues.
This project is licensed under the MIT License.
