summaryrefslogtreecommitdiffstats
path: root/bin/jdownloader/jd/captcha/methods/scrd/script.jas
diff options
context:
space:
mode:
Diffstat (limited to 'bin/jdownloader/jd/captcha/methods/scrd/script.jas')
-rw-r--r--bin/jdownloader/jd/captcha/methods/scrd/script.jas74
1 files changed, 74 insertions, 0 deletions
diff --git a/bin/jdownloader/jd/captcha/methods/scrd/script.jas b/bin/jdownloader/jd/captcha/methods/scrd/script.jas
new file mode 100644
index 0000000..28d7ddb
--- /dev/null
+++ b/bin/jdownloader/jd/captcha/methods/scrd/script.jas
@@ -0,0 +1,74 @@
+#####-------------------------------------JAC-Script------------------------------------#####
+##### Dieses Script beinhaltet alle Parameter und Funktioenen die für die captcha #####
+##### erkennung nötig sind #####
+#####################################---secured.in---####################################
+##############Set parameter
+param.simplifyFaktor = 1;
+param.trainOnlyUnknown=true;
+param.colorType = RGB;
+param.useLetterFilter=MultiThreadDetection.multiCore;
+
+############Scanner parameter
+param.borderVarianceX=9;
+param.borderVarianceY=9;
+param.scanVarianceX=2;
+param.scanVarianceY=2;
+param.overlayNoiseSize=0;
+param.intersectionDimensionWeight=2.0;
+param.minCleftSize=4;
+param.scanAngleLeft=-50;
+param.scanAngleRight=50;
+param.scanAngleSteps=6;
+param.errorAWeight=2;
+param.errorBWeight=4;
+param.coverageFaktorAWeight=3;
+param.coverageFaktorBWeight=1.3;
+param.cleftFaktor=0.6;
+############Parameter die einen Scan frühzeitig abbrechen können, bzw mögliche TReffer frühzeitig ausfiltern
+param.LetterSearchLimitPerfectPercent=20;
+param.quickScanReliabilityLimit=3.0;
+param.quickScanValityLimit=20.0;
+param.preScanFilter=50;
+param.preScanFaktor=3;
+
+############################
+
+############Parameter die die Freistellung beeinflussen
+param.objectColorContrast = 0.4;
+param.objectDetectionContrast = 0.85;
+param.useObjectDetection = true;
+param.relativecontrast=0.95;
+param.usepeakgapdetection=false;
+param.useaveragegapdetection=false;
+param.minimumObjectArea = 150;
+param.gaps={35,56,76,100};
+param.splitPixelObjectsOverlap=3;
+############Parameter die die Bildbearbeitung beeinflussen
+param.backgroundsamplecleancontrast=0.11;
+param.alignAngleSteps=2;
+
+
+##################Prepare captcha 22 29 35
+captcha.prepare.crop(10,5,10,5);
+#256:237
+#256^3 15398374
+#captcha.prepare.cleanBackgroundByColor(15398374);
+captcha.prepare.cleanBackgroundByHorizontalSampleLine(0,126,1,4);
+#captcha.prepare.blurIt(1);
+#captcha.prepare.normalize(0.3);
+#captcha.prepare.normalize();
+#captcha.prepare.invert();
+captcha.prepare.removeSmallObjects(0.4,0.95,40);
+#captcha.prepare.toBlackAndWhite(0.8);
+#captcha.prepare.cleanBackgroundBySample(12,35,3,3);
+#captcha.prepare.cleanBackgroundByColor(16777100);
+#letter.prepare.removeSmallObjects(0.5,0.95,40);
+#letter.prepare.turn(330);
+letter.prepare.removeSmallObjects(0.4,0.5,40);
+letter.prepare.toBlackAndWhite(0.8);
+#letter.prepare.align(-35,35);
+
+#letter.prepare.resizetoHeight(35,0.1);
+#letter.prepare.reduceWhiteNoise(2,0.6);
+#letter.prepare.reduceBlackNoise(3,0.6);
+#letter.prepare.blurIt(3);