git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/pwntcha/trunk@382 92316355-f0b4-4df1-b90c-862c8a59935fmaster
@@ -1,4 +1,4 @@ | |||||
PWNTCHA - Pretend We're Not a Turing Computer but a Human Antagonist | PWNTCHA - Pretend We're Not a Turing Computer but a Human Antagonist | ||||
This research software studies captchas. | |||||
This is research software. It comes with absolutely no warranty. | |||||
@@ -1,3 +1,13 @@ | |||||
/* | |||||
* commin.h: common stuff | |||||
* $Id$ | |||||
* | |||||
* Copyright: (c) 2004 Sam Hocevar <sam@zoy.org> | |||||
* This program is free software; you can redistribute it and/or | |||||
* modify it under the terms of the Do What The Fuck You Want To | |||||
* Public License as published by Banlu Kemiyatorn. See | |||||
* http://sam.zoy.org/projects/COPYING.WTFPL for more details. | |||||
*/ | |||||
/* image structure */ | /* image structure */ | ||||
struct image | struct image | ||||
@@ -1,3 +1,13 @@ | |||||
/* | |||||
* image.c: image I/O functions | |||||
* $Id$ | |||||
* | |||||
* Copyright: (c) 2004 Sam Hocevar <sam@zoy.org> | |||||
* This program is free software; you can redistribute it and/or | |||||
* modify it under the terms of the Do What The Fuck You Want To | |||||
* Public License as published by Banlu Kemiyatorn. See | |||||
* http://sam.zoy.org/projects/COPYING.WTFPL for more details. | |||||
*/ | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdint.h> | #include <stdint.h> | ||||
@@ -1,3 +1,13 @@ | |||||
/* | |||||
* main.c: main function | |||||
* $Id$ | |||||
* | |||||
* Copyright: (c) 2004 Sam Hocevar <sam@zoy.org> | |||||
* This program is free software; you can redistribute it and/or | |||||
* modify it under the terms of the Do What The Fuck You Want To | |||||
* Public License as published by Banlu Kemiyatorn. See | |||||
* http://sam.zoy.org/projects/COPYING.WTFPL for more details. | |||||
*/ | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdint.h> | #include <stdint.h> | ||||
@@ -1,7 +1,18 @@ | |||||
/* | |||||
* slashdot.c: decode Slashdot captchas | |||||
* $Id$ | |||||
* | |||||
* Copyright: (c) 2004 Sam Hocevar <sam@zoy.org> | |||||
* This program is free software; you can redistribute it and/or | |||||
* modify it under the terms of the Do What The Fuck You Want To | |||||
* Public License as published by Banlu Kemiyatorn. See | |||||
* http://sam.zoy.org/projects/COPYING.WTFPL for more details. | |||||
*/ | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdint.h> | #include <stdint.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <math.h> | |||||
#include "config.h" | #include "config.h" | ||||
#include "common.h" | #include "common.h" | ||||
@@ -608,7 +619,7 @@ char * slashdot_decode(char *image) | |||||
// display(tmp); | // display(tmp); | ||||
// dst = median(tmp); | // dst = median(tmp); | ||||
tmp = smooth(img); | |||||
//tmp = smooth(img); | |||||
tmp = fill_holes(img); | tmp = fill_holes(img); | ||||
tmp = median(tmp); | tmp = median(tmp); | ||||
//tmp = smooth(tmp); | //tmp = smooth(tmp); | ||||