I am able to get word level confidence score using tesseract 4.0 through the command line. Interested to know if there is a way to get the character confidence too.
For word level confidence used the below command:
tesseract [Image name] outputbase --oem 1 -l eng --psm 8 tsv