#####-------------------------------------JAC-Script------------------------------------#####
##### Dieses Script beinhaltet alle Parameter und Funktioenen die für die captcha #####
##### erkennung nötig sind #####
#####################################---rapidshare.de---####################################
##############Set parameter
param.simplifyFaktor = 1;
param.borderVarianceX=8;
param.borderVarianceY=8;
param.scanVarianceX=0;
param.scanVarianceY=0;
param.trainOnlyUnknown=true;
param.colorType = RGB;
param.relativecontrast=0.90;
param.gaps={30,60,89};
param.usepeakgapdetection=false;
param.useaveragegapdetection=false;
param.LetterSearchLimitPerfectPercent=-1;
param.backgroundsamplecleancontrast=0.15;

param.alignAngleSteps=2;
param.intersectionDimensionWeight=0.2;
param.minCleftSize=4;
param.overlayNoiseSize=2;
param.scanAngleLeft=-10;
param.scanAngleRight=10;
param.scanAngleSteps=2;
param.errorAWeight=4;
param.errorBWeight=4;
param.coverageFaktorAWeight=3;
param.coverageFaktorBWeight=1.3;
param.cleftFaktor=0.3;
param.quickScanReliabilityLimit=3.0;
param.quickScanValityLimit=30.0;
param.splitPixelObjectsOverlap=4;
param.preScanFilter=70;
param.preScanFaktor=4;

param.objectColorContrast = 0.1; 
param.objectDetectionContrast = 0.99999;
param.useObjectDetection = true;
param.minimumObjectArea = 100;
param.splitGapsOverlap=6;

##################Prepare captcha

param.useSpecialGetLetters=ColorObjects.getLetters;

#captcha.normalize();

#captcha.prepare.reduceWhiteNoise(4,0.2);
#captcha.prepare.toBlackAndWhite(0.4);



##################Prepare letter

#letter.prepare.removeSmallObjects(0.3,0.5,30);
#letter.prepare.toBlackAndWhite();
#letter.prepare.clean();
#letter.prepare.align(-10,10);