Answer the question
In order to leave comments, you need to log in
How can image processing be improved?
I'm trying to read captcha with tesseract.
I process the image before sending it to tesseract.
U4E2\.
1
$image = new \Imagick('test.jpg');
$image->SharpenImage($radius = 5, $sigma = 1);
$image->gaussianBlurImage($radius = 2, $sigma = 1);
$brightness = 120;
$saturation = 100;
$hue = 60;
$image->modulateImage($brightness, $saturation, $hue);
whitelist
, thereby restricting Tesseract to only look for letters/numbers, not symbols. echo (new TesseractOCR('img.png'))
->whitelist(range('a', 'z'), range(0, 9))
->run();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question