Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove all non black pixels from image
Message
De
27/12/2013 15:31:28
 
 
À
27/12/2013 06:06:40
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01590997
Message ID:
01591026
Vues:
62
>Hi Al.
>I'm using an OCR DLL to extract the text from an images.
>The text in these images are always black. The black color is only used in the text part.
>So, to improve the OCR results, I need to remove all non black pixels or change them to white, and save this "new image".

Hmm, I think I agree with Dragan on this, that current OCR software may actually work better with grayscale than 1-bit black/white.

Have you tested yet? It would be fairly quick to do. You could start with a test image that only contains text, at the original colour depth. Then save it again as 1-bit black/white. See which gives the best results in OCR.

If you're starting with colour images, another thing to try might be to save as 8-bit grayscale.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform