You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// #SKOTDOC.BLOCKDESC Test the preprocessing and segmentation setup on a test image and save the segmented parts to a folder.
523
+
// #SKOTDOC.TRAINONLY
505
524
case"TESTSEGMENT":
525
+
if(!training)
526
+
{
527
+
break;
528
+
}
529
+
506
530
stringtsimage=args.GetQuotedArg(1);
507
531
stringtsfolder=args.GetQuotedArg(2);
508
532
@@ -528,7 +552,13 @@ public string Execute()
528
552
// #SKOTDOC.BLOCKSTART TRAIN
529
553
// #SKOTDOC.BLOCKTYPE Working
530
554
// #SKOTDOC.BLOCKDESC Train the solver on the patterns acquired or loaded.
555
+
// #SKOTDOC.TRAINONLY
531
556
case"TRAIN":
557
+
if(!training)
558
+
{
559
+
break;
560
+
}
561
+
532
562
stringtfolder=args.GetQuotedArg(1);
533
563
inttiterations=args.GetArg(2).ToInt();
534
564
@@ -565,7 +595,13 @@ public string Execute()
565
595
// #SKOTDOC.BLOCKSTART TEST
566
596
// #SKOTDOC.BLOCKTYPE Working
567
597
// #SKOTDOC.BLOCKDESC Test the solver's ability to produce correct predictions on the patterns acquired or loaded. (Use patterns that were not used in training or you will get skewed results.)
598
+
// #SKOTDOC.TRAINONLY
568
599
case"TEST":
600
+
if(!training)
601
+
{
602
+
break;
603
+
}
604
+
569
605
stringtestfolder=args.GetQuotedArg(1);
570
606
571
607
switch(args.Count-1)
@@ -590,7 +626,13 @@ public string Execute()
590
626
// #SKOTDOC.BLOCKSTART FULLTEST
591
627
// #SKOTDOC.BLOCKTYPE Working
592
628
// #SKOTDOC.BLOCKDESC Perform a full test (completely solving a CAPTCHA) and give the actual percentage of CAPTCHAs that were completely and correctly solved.
629
+
// #SKOTDOC.TRAINONLY
593
630
case"FULLTEST":
631
+
if(!training)
632
+
{
633
+
break;
634
+
}
635
+
594
636
stringfullfolder=args.GetQuotedArg(1);
595
637
stringfullreport=args.GetQuotedArg(2);
596
638
stringfullext=args.GetQuotedArg(3);
@@ -672,7 +714,13 @@ public string Execute()
672
714
// #SKOTDOC.BLOCKSTART SAVE
673
715
// #SKOTDOC.BLOCKTYPE Working
674
716
// #SKOTDOC.BLOCKDESC Save the DataBase of trained patterns to a file so that it can be loaded later. The idea is to distribute the database file with your finished script (the finished script shouldn't do any training, only efficient solving).
717
+
// #SKOTDOC.TRAINONLY
675
718
case"SAVE":
719
+
if(!training)
720
+
{
721
+
break;
722
+
}
723
+
676
724
stringsaveLoc=args.GetQuotedArg(1);
677
725
678
726
switch(args.Count-1)
@@ -705,6 +753,12 @@ public string Execute()
705
753
// #SKOTDOC.BLOCKTYPE Working
706
754
// #SKOTDOC.BLOCKDESC Load a pattern database. The database you load needs to have been saved under the same setup conditions as the script is being loaded under.
0 commit comments