run

Function run 

Source
pub fn run(opt: &Opt) -> Result<(), Error>
Expand description

Run OCR for opt.

ยงErrors

Will return Error::RayonThreadPool if build_global of the ThreadPool rayon failed. Will return Error::InvalidFileExtension if the file extension is not managed. Will return Error::NoFileExtension if the file have no extension. Will return Error::NotUtf8Extension if the file have an extension which is not utf8. Will return Error::WriteSrtFile of Error::WriteSrtStdout if failed to write subtitles as srt. Will forward error from ocr processing and check_subtitles if any.