maybe I am stupid or just blind, hopefully you can help.
I loaded a multipage tiff into an ImageCollection. On each page / image of the collection I am doing some OCR to split the document based on the results of the OCR operation. I.e. OCR was successful on page 2 pages 0 and 1 will be put into another ImageCollection and saved. Page 2 to next matchingpage-1 will be saved into another file and so on.
However I have the following issue:
When doing OCR on the original document it gets a value. But when executing OCR on the resulting files of saving the other ImageCollection(s) I do not get any results. My assumption is that there might be a difference between the original tiff and the new tiff. But I cannot see it. RenderingSettings of both ImageCollections are the same. I applied the following method on each (filled) ImageCollection.
Code: Select all
internal static void SetRenderingSettings(ref ImageCollection imageCollection)
{
if (imageCollection == null)
return;
imageCollection.SetRenderingSettings(new RenderingSettings(300, 300, InterpolationMode.Default, SmoothingMode.Default));
}
Is there a way to save the new files with exactly the same settings, format definition etc. the original ImageCollection has?
(In this case I am not allowed to send sample files due to data protection policy and costumer security policy.)
Best,
Sebastian