OCR / main.c
main.c
Raw
#include "main.h"



void help()
{
    printf("Commands:\n");
    printf("   --help  To picture commands\n");
    printf("   --OCR  To show the neural network for OCR\n");
    printf("   (No args)  Launch GUI\n");
}

int main(int argc, char *argv[])
{
    //Argument gesture
    if(argc>1)
    {
        if(strcmp(argv[1], "--help") == 0)
        {
            help();
        }
        if(strcmp(argv[1], "--OCR") == 0)
        {
            trainNN();
        }
    }
    else
    {
      //Create GTK window
      create_window(argc,argv);
    }
    return(EXIT_SUCCESS);
}