Solved

Scanner: FileFormat.

Posted on 2000-02-24
9
205 Views
Last Modified: 2010-08-05
Hi all,
 
Does somebody know a bit what's the best format / compression to use when scanning mainly letters (black & white)?
Scanned documents are saved to disc (more pages in one document are possible), after that some will be OCR-ed.
 
I know that there's probably not one good answer, but I would like to start with something good (to test / demo), and perhaps to change afterwards.

Other advise / comments in this area are very welcome!

By the by, at the moment I'm developing with the ocx components I imported from Imaging for Windows.

I was thinking about using tiff, but there are some possible compression settings (Huff, packed, LWZ), are those all Tiff formats?

Thanks in advance,
 
0
Comment
Question by:florisb
  • 5
  • 3
9 Comments
 
LVL 5

Expert Comment

by:TheNeil
ID: 2553648
PCX would give you great compression and no loss in quality when dealing with B&W images (i.e. text). It's also easy to write your own load and save routines for it

The Neil
0
 
LVL 10

Expert Comment

by:Lischke
ID: 2553715
TIFF is the usual format when it comes to scanning and it has all you need I think. There are also many compression formats available, like:

- dump mode
- CCITT modified Huffman RLE
- CCITT Group 3 fax encoding
- CCITT Group 4 fax encoding
- Lempel-Ziv & Welch
- 6.0 JPEG
- JPEG DCT compression
- Next 2-bit RLE
- #1 w/ Word alignment
- Macintosh RLE
- ThunderScan RLE
- codes 32895-32898 are reserved for ANSI IT8 TIFF/IT <dkelly@etsinc.com)
- IT8 CT w/padding
- IT8 Linework RLE
- IT8 Monochrome picture
- IT8 Binary line art
- compression codes 32908-32911 are reserved for Pixar
- Pixar companded 10bit LZW
- Pixar companded 11bit ZIP
- Deflate compression
- compression code 32947 is reserved for Oceana Matrix <dev@oceana.com>
- Kodak DCS encoding
- ISO JBIG

Since you are going for OCR I think the FAX encoding is the best choice for you (black&white), but I don't know for sure if it is lossless.

Ciao, Mike
0
 
LVL 2

Author Comment

by:florisb
ID: 2554438
Thanks so far.
Mike, you don't happen to know whether the Imaging for Windows ocx components support the suggested Tiff compression?

Tiff? Check: http://www.libtiff.org/

Sincerely,
Floris.
0
 
LVL 10

Accepted Solution

by:
Lischke earned 35 total points
ID: 2554576
Yep, I just tested the Wang imaging with the sample images for the TIFF library. It does crash on various formats but it can handle G3 fax encoding.

Ciao, Mike
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Author Comment

by:florisb
ID: 2554699
Hi Mike,

Thanks, great. My only problem now is that I'm doing 25 things at the same time.

Would you mind to send me your (test?) project using Wangs ocx's? Would be great: florisb@satl.com

Neil, also thanks again. I'll stick with TIFF. I'm on this TWAIN maillist and have contact with some people that know a lot about TIFF.

By the by; three years ago I made an application that was placed after scanning and before OCR; it detected whether area's in a TIFF where placed horizontal. I not, it replaced this area in the TIFF to a 100% horizontal position. Was very complicated... ...you know what I mean if you know how a TIFF is build bitwise, all those 'bands'.
Well, never mind, social computer talk.

Good luck and please do post more info if you have! Or contact me in a few weeks if you like to know what I did with it.

Greetings,
Floris.
0
 
LVL 2

Author Comment

by:florisb
ID: 2554704
I hope you don't mind to post or send  the code.
0
 
LVL 10

Expert Comment

by:Lischke
ID: 2554761
I don't have a test project. There's an application (wangimg.exe) which uses the ocx and I have used the Imaging app to open all of those pictures.

Ciao, Mike
0
 
LVL 2

Author Comment

by:florisb
ID: 2555548
those components work together in a shitty way... but I'll manage.

Floris.
0
 
LVL 2

Author Comment

by:florisb
ID: 2555562
Was that a joke by the by...?
....let's hope Windows Imaging uses it's own components and it's own improved versions.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi : could not find program, '...exe' 2 145
Working with hours 3 46
LAN or WAN ? 11 81
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 56
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now