Source code for aishack.in
aishack / sudoku-detector Goto Github PK
View Code? Open in Web Editor NEWHome Page: www.aishack.in/2010/08/sudoku-grabber-with-opencv
Home Page: www.aishack.in/2010/08/sudoku-grabber-with-opencv
You can add a "typedef unsigned char BYTE;" in the digitrecognizer.cpp and remove #include <tchar.h> from stdafx.h
You can also add a custom bash make script
OpenCVStuff="pkg-config --cflags opencv
pkg-config --libs opencv
"
Optimizations="-O3 -fexpensive-optimizations"
CPU="-mfpmath=sse -mtune=core2 -msse -msse2 -msse3"
g++ $OpenCVStuff $Optimizations $CPU digitrecognizer.cpp stdafx.cpp "Sudoku Solver.cpp" -o sudoku_detector
exit 0
Running it the program is compiled without problems without visual studio provided the opencv libraries are installed ( sudo apt-get install libcv-dev )
Keep up the good work :)
Hello,
I am trying to get this program to run with Visual Studio 2010 and OpenCV 2.4. Everything seems to work, however once I reach this bit of code (starting on line 440 in Sudoku Solver.cpp), the for loops do not seem to terminate near the end of this cpp file. I put some debug statements in the loops, and it seems like the first loop doesn't even get to the second iteration (j = 0), and the second loop only gets to its third iteration (i = 2) and it seems to be quitting around the third iteration of the second for loop. It seems like it is not reaching the first part of the if statement here below, however the program just stops and pauses at some point. I have commented out all of the wait key stuff within these nested for loops. Do you have any advice for what I can do to get this working? Thanks.
if(area > currentCell.rows*currentCell.cols/5)
{
int number = dr->classify(currentCell);
printf("Classified as: %d\n", number);
printf("Shown\n");
printf("%d ", number);
/*imshow("test", currentCell);
waitKey(0);*/
}
else
{
printf(" ");
}
Hi
I tried to implement the digitrecognizer and i have some issues getting it correct with the Visual Studio 2019. The knn Train -> gets an error that i don't know how to correct. Furthermore, when it comes to the preprocessImage i get some issues aswell. I am not the best programmer to be honest so can someone help me out here? Thank you very much
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.