We have recently change the version of tesseract from 3.02 to 4.0 to improve the performance and the rapidity, but when we use the LTSM mode, firstly we have a warning about the dpi: "Invalid resolution 0 dpi. Using 70 instead". We know why this problem appears. I don't know if the problem of non spaces detection comes from this warning.
Look this example that is a french text:
We can see the warning and the transcribed text on the terminal without spaces. We expected:
"En votre aimable règlement,
Cordialement,"
This is how we use tesseract:
The image is a cv::Mat with 1 channel (8UC1).
Enzo Merotto