Thread:Project:Forum/Mediawiki OCR Plugin/reply

Extension:FileIndexer claims to be able to do what you want. I've never used it so no idea if it works well, but you might want to check it out.