Giter VIP home page Giter VIP logo

sudoku-detector's Introduction

aishack

Source code for aishack.in

sudoku-detector's People

Contributors

liquidmetal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sudoku-detector's Issues

Linux Portability :)

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

!/bin/bash

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 :)

Program Not Calculating Digits from Image, Hanging in the Process

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("  ");
        }

digitrecognizer.cpp

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.