Skip to content

For my second year project, I developed a Sudoku solver with my group using the C programming language. I worked on image processing, which involved implementing filters and automatic image correction, and I also developed the user interface.

License

Notifications You must be signed in to change notification settings

lucasduport/ocr-project

Repository files navigation

OCR Project | S3 Epita

Neural network is not working but you can try UI with ImageProcessing/Images folder

This is our third semester project at EPITA. You can find the subject here.

Getting Started

These instructions will give you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on deploying the project on a live system.

Prerequisites

Requirements for the software and other tools to build, and test:
- Clang
- Simple DirectMedia Layer library (SDL)
- The GIMP Toolkit (GTK)

Installing

A step by step series of examples that tell you how to get a development environment running

First, you have to install clang compiler

sudo apt install clang

Then, you have to install SDL2 library

sudo apt install libsdl2-dev

Now, you have to install SDL2 image library

sudo apt install libsdl2-image-dev

Now, you have to install GTK library

sudo apt-get install libgtk-3-dev
sudo apt-get install libgtk-3-dev

Finally, you have all the tools needed for the project.

Correct indentation and coding style:

clang-format --style=file:.clang-format -i *.c

Final/

Build

make

Run

./main

NeuralNetwork/

Build

Build for release

make

Build for debug

make debug

Clean build files

make clean

Clean build files and executable

make clear
  • Training:

    ./NeuralNetwork Train [Config file (*.cfg)] [Training data (.bin)] [Validation data (.bin)] [Number of attempt] [Transfer Network (.dnn)]
    

Examples:

Example of train with 1 attempt:

ex: ./NeuralNetwork Train TrainedNetwork/NN.cfg DataSets/hcd_784_135_validation.bin DataSets/hcd_784_135_validation.bin 1

ImageProcessing/

Build

Build for release

make

Run

Try --help or -h for more information

./main --help

Examples:

./main -d <ImagePath> # Demonstration
./main -r <ImagePath> <Angle> # Rotate image with angle

Solver/

Build

Build for release

make

Run

./solver <Textfile>

Example:

./solver <Textfile> # Solve sudoku which is in textfile

Authors

About

For my second year project, I developed a Sudoku solver with my group using the C programming language. I worked on image processing, which involved implementing filters and automatic image correction, and I also developed the user interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published