Vi

Visual Sudoku solver in the browser

Hacker News

Visual Sudoku solver in the browser

Hello! I recently wanted to learn a bit about computer vision. Initially, I wanted to build something which could solve a jigsaw puzzle, but figured I should start with something (much) simpler, so I've built this instead. This is a visual Sudoku solver which runs in the browser. It works by using OpenCV to identify and process the Sudoku grid, passing this to a simple ML model to identify the digits, and then solving the puzzle with a backtracking algorithm. The ML model was trained on the TMNIST data set using a model built with Keras, also a completely new area to me. It's far from perfect, and doesn't like non perfectly lit or overly warped puzzles, but the main goal here was learning, which I did, a lot. As this was primarily a learning project, I've tried to document my approach as much as possible, which can be found in this Python notebook: https://github.com/Taiters/sudoku-solver/blob/main/notebooks... I used Python while exploring OpenCV and training the models etc, and eventually ported this over to web (OpenCV.js + Tensorflow.js) to get something I could actually share with people. Feel free to have a dig around the source or play around with the solver! Github: https://github.com/Taiters/sudoku-solver

Share card

Actual performance

63points
16comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: model, computer, new · Missing: mac, agents, macos
79%79% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
73%73% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
61%61% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRFits verified-revenue profile · Missing: mobile apps, ios, personal
55%55% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
47%47% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: training · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Bo
Bookmarklet to Open Sudoku solver50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Bookmarklet to Open Sudoku solver

Hacker News1
A
A Quick Sudoku Solver24%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Quick Sudoku Solver

Hacker News5
A
A sudoku solver in pure Nix27%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A sudoku solver in pure Nix

Hacker News3
A
A recursive Sudoku solver in JavaScript33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A recursive Sudoku solver in JavaScript

Hacker News1
I
I built an image-based logical Sudoku Solver38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I built an image-based logical Sudoku Solver

Hacker News3
Br
Browser-Based Augmented Reality Sudoku Solver33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Browser-Based Augmented Reality Sudoku Solver

Hacker News1
OC
OCR Sudoku Solver for Android35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

OCR Sudoku Solver for Android

Hacker News2
OC
OCR Sudoku Solver for Android35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

OCR Sudoku Solver for Android

Hacker News2
A
A Sudoku solver in TypeScript's type system45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Sudoku solver in TypeScript's type system

Hacker News3
A
A light-weight sudoku solver application34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A light-weight sudoku solver application

Hacker News1