#include "common.h"#include "locator.h"#include <dirent.h>#include <stdlib.h>#include <math.h>#include <time.h>Functions | |
| void | getNNinputData (GrayImage &image, int x, int y, double *input_pixels) |
| bool | training_done (annie::TrainingSet &ts, annie::TwoLayerNetwork &other_net) |
| void | newTrain (annie::TrainingSet &ts, unsigned int hidden) |
| void | trainNN (string NonFaceDir, annie::TrainingSet &all, annie::TrainingSet &ts, string fileName, int hidden) |
| bool | training_set_guess (string FaceDir, string NonFaceDir, string fileName, int num_images) |
| bool | add_non_training_set (string NonFaceDir, annie::TrainingSet &T) |
| annie::TrainingSet * | make_face_training_set (string FaceDir, string fileName) |
Variables | |
| unsigned int | start_stop [INPUT_HEIGHT *2] |
|
||||||||||||
|
|
|
||||||||||||||||||||
|
this is a special function that will do all of the nessisary image preprocessing for the neural network face locator.
|
|
||||||||||||
|
the first step in training the network is to compile all of the faces into a training set to train the network with
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
the first step in training the network is to compile all of the images into a training set to train the network with, this is a tool that will guess at a subset of the complete set to start training with
|
|
||||||||||||||||||||||||
|
train the network in an interesting way |
|
|
Initial value:
{8,10
,5,13
,4,14
,3,15
,2,16
,2,16
,1,17
,1,17
,0,18
,0,18
,0,18
,0,18
,0,18
,0,18
,0,18
,1,17
,1,17
,1,17
,2,16
,2,16
,3,15
,4,14
,6,12} |
1.2.14 written by Dimitri van Heesch,
© 1997-2002