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

void help()
{
    printf("Welcome to Kard \nHere is some commands : \n");
    printf("   --help  To picture commands\n");
    printf("   --XOR  To show the neural network for the XOR function\n");
    printf("   --OCR  To show the neural network for OCR\n");
    printf("   (No args)  Launch GUI\n");
}

int main(int argc, char *argv[])
{
	if (argc > 1)
	{
		if (strcmp(argv[1], "--help") == 0)
		{
			help();
		}
		if (strcmp(argv[1], "--XOR") == 0)
		{
			XOR();
		}
		if (strcmp(argv[1], "--OCR") == 0)
		{
			OCR();
		}

	}
	else
	{
		printf("#------------------#\n");
      	printf("| Welcome to KARD! |\n");
      	printf("#------------------#\n");
		//Create GTK window
		//create_window(argc, argv);;
	}
	return 0;
}