Hello

When scanning with ABBY SDK 9 in c#, it scans docs and creates tmp files which are 0 bytes size into target folder. But after scanning has finished, it show an error which says "unknown image format: (compression in memory)". I could not find any sample code or description about how to set scanned image format as JPEG. Thanks

asked 09 Oct '13, 16:40

tufan's gravatar image

tufan
1112


In order to avoid the "Unknown image format: (Compression in memory)" message in ABBYY FineReader Engine 9 the only way is to switch off the compression during scanning of black and white images in driver of your scanner. If there is no possibility to switch off the compression in scanner settings please contact the developers of your scanner driver.

The image files created by ScanManager::Scan method after scanning are saved in one of the formats which is supported both by the scanner and ABBYY FineReader Engine (commonly it is BMP format). In order to create a JPEG format after scanning please do the following:

  1. scan paper documents;
  2. save the images to the ScanFolder folder and save the full path to the image files to the StringsCollection object by using the Scan method of the ScanManager object;
  3. get the image file names from this StringsCollection object and open the files as usual image files by using the methods of the Engine object, for example, OpenImage;
  4. write the image of the current image plane into an image file by means of ImageDocument::Image::WriteToFile method with ImageFileFormatEnum=IFF_JpegColorJfif parameter.
link

answered 11 Oct '13, 13:27

SDK_support's gravatar image

SDK_support ♦♦
2763

Hello

I have spent two days to solve this problem, but after your message, problem is solved. Lots of thanks for your support.

I have written a simple c# library and an c# app, which uses that library, scans docs to disk, converts them to jpeg files and makes OCR.

link

answered 11 Oct '13, 18:15

tufan's gravatar image

tufan
1112

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×36
×8
×7
×4
×2

Asked: 09 Oct '13, 16:40

Seen: 3,004 times

Last updated: 11 Oct '13, 18:15

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal