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