ソースを参照

* proper headers.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/pwntcha/trunk@382 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 20年前
コミット
2b727d9e7b
5個のファイルの変更43行の追加2行の削除
  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 ファイルの表示

@@ -1,4 +1,4 @@
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 ファイルの表示

@@ -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 */
struct image


+ 10
- 0
src/image.c ファイルの表示

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


+ 10
- 0
src/main.c ファイルの表示

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


+ 12
- 1
src/slashdot.c ファイルの表示

@@ -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 <stdint.h>
#include <stdlib.h>
#include <math.h>

#include "config.h"
#include "common.h"
@@ -608,7 +619,7 @@ char * slashdot_decode(char *image)
// display(tmp);

// dst = median(tmp);
tmp = smooth(img);
//tmp = smooth(img);
tmp = fill_holes(img);
tmp = median(tmp);
//tmp = smooth(tmp);


読み込み中…
キャンセル
保存