Try to get rid of all the noise/lines, you can use denoise before binarization or component analysis. Then remove the white border so all the fragments have the same size.
Try to do this with gimp and see if it helps before coding it.
Then try
psm=8
it means "single word" (this should fix the problem with the second image).
If you are using version 3.05 also use
whitelist to limit chars to uppercase letters. Also try to recognize the same images a few times in a loop: you should see accuracy increasing while the adaptive learning kicks in.