i use perlmagick
this is the code for the inner loop of the drawing routine.
my $text = <some random text>;
my %tp = (font=>$font, 'pointsize'=>$size, x=>$x_ppem/2);
for (my $i = 0; $i < length($text); ++$i) {
$tp{text}=substr($text,$i,1);
my ($tx_ppem, $ty_ppem, $ascender, $descender, $tw, $th)
= $image->QueryFontMetrics(text=>$tp{text},
pointsize=>$size, font=>$font, strokewidth=>$spix);
my $tp = ranv($th+$th/2,.25); # random y position
$image->Annotate(%tp);
my $dx = ranv($tw,0.10);
$tp{x} += $dx; # advance the drawing pointer
}
then I scribble in some lines and circles and other blotches.....
then I blur it
works ok.... ocr programs don't work on it
- erik
On Sat, Jun 28, 2008 at 1:19 PM, howard chen <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Are there any example command which can generate Yahoo like captcha
> text image, or similar?
>
> E.g.
>
> http://libcaca.zoy.org/browser/pwntcha/testsuite/yahoo/yahoo_053.jpeg
>
> Howard
> _______________________________________________
> Magick-users mailing list
> [email protected]
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users