TIKA-2357 added support for additional PSM (page segmentation modes) for Tesseract OCR, including mode 0, which is Orientation and script detection (OSD) only, meaning it does not perform OCR, just outputs orientation and script information.
An example usage of mode 0:
In this mode, the usual outfile.txt is not created. Instead, and similar to other modes that run OSD in addition to extraction, the result is an outfile.osd file, like so:
However, TesseractOCRParser#parse(...) is coded to only read the contents of outfile.txt (alternatively outfile.hocr) in all modes, so mode 0 outputs nothing regardless of input.
This is consistent with Tika's goal to output extracted text, but against the intention of the user expecting OSD output.