From 6b1d7a5daacfd3c8fa4eacd0d95af26c7ec851a0 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 9 May 2016 20:45:24 -0400 Subject: Starting working on captcha --- ws2a/gencaptcha.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ws2a/gencaptcha.c (limited to 'ws2a/gencaptcha.c') diff --git a/ws2a/gencaptcha.c b/ws2a/gencaptcha.c new file mode 100644 index 0000000..74a7e96 --- /dev/null +++ b/ws2a/gencaptcha.c @@ -0,0 +1,24 @@ +#include +#include +#include + +//convert label.png -virtual-pixel White -distort Arc 60 arctest.png + +//convert -background gray -fill cyan -pointsize 72 label:Alex label.png + +//convert label.png -virtual-pixel white -distort Barrel "0.2 0.0 0.0 1.0" barrel.png + +int main(){ + FILE* imgfile; + imgfile = fopen("../ws2a/testcaptcha.png","r"); + if(imgfile == NULL){ + return 1; + } + while(!feof(imgfile)){ + char c = fgetc(imgfile); + if(feof(imgfile)){ + return 0; + } + putchar(c); + } +} -- cgit v1.2.3-70-g09d2