[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ocrad] reading color images
From: |
Erik Auerswald |
Subject: |
Re: [Bug-ocrad] reading color images |
Date: |
Fri, 17 Feb 2006 19:11:31 +0100 |
User-agent: |
Mutt/1.5.11 |
Hi,
On Fri, Feb 17, 2006 at 05:40:27PM +0100, Antonio Diaz Diaz wrote:
> >I've noticed that GNU Ocrad 0.14 implements reading of color images and
> >looked at the code (without testing it). You seem to use the formula
> >
> >greyvalue = min(red, green, blue)
> >
> >which does not at all work like the human eye.
>
> You are right in that it does not at all work like the human eye, but I
> tried several formulas and this gave the best results for detecting
> color letters on a white background. Your formulas seem to give better
> results for images of real objects.
I did not test it, but I am quite sure that your formula performs poorly
when having colored text on a colored background. On a white background
your formula is indeed the best choice.
Do as you like, I just wanted to make sure this was not done by
accident. :-)
Erik