neural_network
1.0.0
./train train_single A.bmp
./train train_single B.bmp
./train train_single C.bmp
... et ainsi de suite pour toutes les lettresRepeat the training step several times for each letter in order to improve precision.
Then, once all the letters are recognized:
./train train dossier_lettres/./train recognize test_image.bmpThe network automatically saves its condition after each training in "Network_Data.bin" and for the singles in "Train_Data.bin".
generator.py code with the right fact.letters/generator.py .generator.py . python3 auto_train.py # exécution une seule fois la première fois... and wait for the end of training.
python3 verify_train.pyor for a single letter:
./train recognize test_image.bmpAnd if the detected letter is not the right one:
python3 manual_train.py... then enter the expected letter (ex: U).
Then, to harmonize the network of neurons and save it:
./train train dossier_lettres/... and so on for all badly detected letters (start the 2 processes again).
The network automatically saves its condition after each training in "Network_Data.bin" and for the singles in "Train_Data.bin".
backup_data contains backups of old training sessions.python3 manual_train.py allows you to train a single letter.python3 auto_train.py is used to train all the letters in a file for the first time.python3 verify_train.py is used to check if the letters are well detected.train is the version used by the user ( train.c ).*.bin contains training data.letters/ contains the letters with generator.py .checksum.sh is used to save *.bin files. gcc train.c -o train -lm ` pkg-config --cflags --libs sdl2 SDL2_image ` libsdl2-image-dev (for reading images in C).PIL (generate letters from Python font). bash checksum.sh