From: Anjan <roc...@gm...> - 2008-12-26 06:45:10
|
Hi Bibek, the coding of adaboost is complete, and i think it's selecting features wisely. Now we should move on to creating the cascade. We need to discuss on how we save the overall cascade in the disk. Here is what i have in mind. * in one file, save the number of stages in the cascade. ( eg. stagecount.xml) * in other file, the threshold of each stage will be saved ( eg. cvMat* stagethreshold = cvCreateMat( no. of stages, 1, CV_32FC1) * in other files, the classifiers of one stage will be saved (eg. stage_1.xml stage2.xml etc) So, during detection this is what we will do * first load stagecount.xml * read threshold file * create array of the matrices of size no. of stages and load all the stages in this array. I think for continuing the cascade generation also, this will be ok. We'll include a flag (continue = 0/1) to cascadegeneration() function and if continue=1, we continue the cascade generation process by loading the stagecount.xml, thresholds, stages and then creating new nonfaces and continuing. Reply soon. -- Anjan Nepal GPO Box 11458 Registered Linux User #395963 |