File Exchange

## Video Sudoku Solver

version 1.7.0.1 (192 KB) by Teja Muppirala

### Teja Muppirala (view profile)

Solves a sudoku with a web camera and then displays it while tracking the original video feed.

Updated 01 Sep 2016

Editor's Note: This file was selected as MATLAB Central Pick of the Week

English:
This demo attempts to identify the numbers in a sudoku puzzle using video input, and then solves the solution.
The solution can then be overlayed on the original video feed, which it tracks in real time.
”SUDOKU” is a registered trademark of NIKOLI Co., Ltd. (Japan)

Japanese:
このデモは、カメラの入力により、数独パズルの動画を読み込みます。読み込んだ映像から、数値を読み取って、パズルの解答を求めます。最後に、その回答を、元のビデオの上に、リアルタイムにトラッキングしながら、重ねて表示します。

「数独(SUDOKU)」は二コリの日本における登録商標です。

Long Gao

### Long Gao (view profile)

すごい！太牛了，看知乎过来的，虽然不太会用。再研究一下。Nice!

P V K Chaitanya

### P V K Chaitanya (view profile)

Sir,
what is templatedata.mat

Good job!

zong chen

chong zhou

Hemant Pandey

Sanshi Wu

Sachin Kashnyal

Chi Chang

tom zhuo

### tom zhuo (view profile)

Very nice work.
But I can't download this Zip with error hint "Bad Server Connect". If there has any other way to get it?

Cheng Shen

Zh Hacker

vikram

### vikram (view profile)

my web cam shows mirrored numbers how to fix dat sir

Geethanjali Jeevanatham

ümit Kisa

Sandy Warshaw

### Sandy Warshaw (view profile)

Very nice work.
Character recognition might be somewhat more robust if a thinning operation, than look for line segments and relative angles/breaks (that's how people recognize numbers).

Fyraj Fyraj

apc2

### apc2 (view profile)

hariharan mahalingam

### hariharan mahalingam (view profile)

great work !!!!!!!!!!!

Abhilash G

Asri Khalid

### Asri Khalid (view profile)

great, nice, wonderful

Vijay

hakan

### hakan (view profile)

just how intelligent guys u are ?

Carlos de Torre

igor kolupaev

### igor kolupaev (view profile)

Significant work!

すごい!!

Suleman Shafqat

ali

very interesting

Arash

Good Job!

Kosai

very nice work

ke

### ke (view profile)

impressive, i have learned a lot from it.

Mr Smart

Peng-Jen Lai

impressive

Assured

FRN De La torre

### FRN De La torre (view profile)

Congrats!!! Really good work

Nikolay Chumerin

### Nikolay Chumerin (view profile)

Amazing! Nice work!

Arvydas

### Arvydas (view profile)

Dear Teja,
could you tell me how can I change all this to be able to recognise numbers on a playing cards?
I can see you got a data template for the digits. How could I tell it to scan a number and tell me which is it just on a screen? Is it difficult?

Arvydas

### Arvydas (view profile)

Brilliant work! One of the best!

Arvydas

Saint Alpha

### Saint Alpha (view profile)

Incredible! I like that!

James

Wu

Vibhuti

### Vibhuti (view profile)

really awesome !!

Andres Hoyos

### Andres Hoyos (view profile)

I can't imagina, that company pays you for do that work, it's so fun.

Nikesh Bajaj

Great....

Vital

### Vital (view profile)

Nice work, nxt step to mechanically automate the process? http://www.youtube.com/watch?v=ReRSCSrtr58

 1 Sep 2016 1.7.0.1 Updated license 10 Apr 2012 1.7.0.0 Due to a few changes regarding MATLAB math in R2012a, this demo needed some updating. Namely, since MEDIAN now errors with UINT8 input, a small fix we needed to correct this. This updated file should now work with R2012a. 3 Mar 2011 1.5.0.0 Added a missing file (TEMPLATEDATA) 28 Feb 2011 1.4.0.0 Added a notice in the description regarding the fact that "Sudoku" is a trademark in Japan. 24 Feb 2011 1.3.0.0 There was an insidious bug in sudoku_solver.m That is now fixed.
##### MATLAB Release Compatibility
Created with R2010b
Compatible with any release
##### Platform Compatibility
Windows macOS Linux
##### Acknowledgements

Inspired: Sudoku Solver with Computer Voice

### Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor