Browse Source

* proper headers.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/pwntcha/trunk@382 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 20 years ago
parent
commit
2b727d9e7b
5 changed files with 43 additions and 2 deletions
  1. +1
    -1
      README
  2. +10
    -0
      src/common.h
  3. +10
    -0
      src/image.c
  4. +10
    -0
      src/main.c
  5. +12
    -1
      src/slashdot.c

+ 1
- 1
README View File

@@ -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.



+ 10
- 0
src/common.h View File

@@ -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


+ 10
- 0
src/image.c View File

@@ -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>


+ 10
- 0
src/main.c View File

@@ -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>


+ 12
- 1
src/slashdot.c View File

@@ -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);


Loading…
Cancel
Save