Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: BMP: Drawing or photograph?

by tospo (Hermit)
on Oct 29, 2012 at 11:11 UTC ( #1001343=note: print w/ replies, xml ) Need Help??

in reply to BMP: Drawing or photograph?

I guess the main reason for doing this would be to deal with images that have text in them which you probably want to convert to PNG rather than JPEG, right? If that's the case then how about feeding the image into some sort of OCR software to figure out if there is any recognizable text in there? I have no idea if that's practical or not, just an idea.

Comment on Re: BMP: Drawing or photograph?
Replies are listed 'Best First'.
Re^2: BMP: Drawing or photograph?
by zentara (Archbishop) on Oct 29, 2012 at 11:32 UTC
    OCR is notorious for not working right, unless you know the fonts being used before hand. Also throw on top of that the Text is on an image, that further screws up software detection.

    What I might do is just try a few, and look at both the png and jpg versions and see which is more pleasant when trying read the text. Maybe the fonts are big enough that it dosn't matter much. Jpgs are definitely smaller, and even simple pngs can be quite large. Its a size versus clarity tradeoff.

    If you have the time and inclination, you might approach this scientifically, and convert a series of bmp images to corresponding jpg's and png's. Then use your edge detection software to compare their overlays. That ought to be proof enough of the exact differences. Doing it with PDL might be the easiest way to do that comparison.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001343]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-11-27 15:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls