Camera access needed

This solver reads a Sudoku puzzle through your camera. Your video is processed only to detect and solve the puzzle — nothing is stored.

Hold a printed Sudoku puzzle flat and steady in the frame.

How It Works

  1. 01

    Capture

    Your webcam streams to the browser. A few frames per second are sampled and sent to the solver — nothing is stored.

  2. 02

    Detect

    OpenCV locates the puzzle's grid by its largest square contour, then warps the perspective into a flat, top-down view.

  3. 03

    Recognize

    The grid is split into 81 cells. A convolutional neural network reads each digit and reports a confidence score.

  4. 04

    Solve

    Once recognition confidence clears 99%, a backtracking algorithm solves the board and the answer is projected back onto your puzzle.

Built With

Computer Vision

OpenCV Contour Detection Perspective Transform Adaptive Thresholding

Machine Learning

TensorFlow Keras CNN Classifier NumPy

Algorithms

Backtracking Solver Constraint Checking

Backend

Python FastAPI Uvicorn

Frontend

JavaScript WebRTC / getUserMedia Canvas API HTML5 CSS3