Commit 86d59e03 authored by Dr. Michael Petter's avatar Dr. Michael Petter

added OCR to postprocessing

parent bdba3bb1
......@@ -135,8 +135,10 @@ public class ScriptCreator {
} else {
System.out.print(arg + "\t");
Recording recording = new Recording(arg, false);
recording.createScript(HTML_SCRIPT | OCR_OPTIMIZED | PDF_SCRIPT);
// recording.store();
int mode = HTML_SCRIPT | PDF_SCRIPT;
if (recording.index.searchbaseFormatStored==recording.index.NO_SEARCHBASE) mode = mode | OCR_OPTIMIZED;
recording.createScript(mode);
if (recording.index.getSearchbaseFormat()!=recording.index.searchbaseFormatStored) recording.store();
}
}
System.exit(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment