I'm trying to convert the attached image using the pytesseract and opencv libraries in python, but the conversion is not satisfactory, since many characters are converted incorrectly. Does anyone have a solution to this problem? I would like the conversion to be done exactly as shown in the image. Attached is the image I am trying to convert. Below is the code I am using.
import pytesseract
import cv2
# Carregar a imagem
imagem = cv2.imread("imagem.png")
# Extrair o texto da imagem pré-processada
texto = pytesseract.image_to_string(imagem)
print(texto)
The result that python returns to me is this.
16x 16.86x 3.20x 4.35x 11.74x 1.24 44.33x 20.48x 1.48x 4.10x 134.28x 103K 2.04x 113x 115K 1.46x 1.81x
11.30x 14.31 133x 1.00x 185x 34.26x 16.41x 2.58x 3.34x 179x 789x 102K 1.96x 1.61x 2.07x 17.56x 2.44x
131K 145x 9.73x 11.74x 2.38x 437K 4.67x 2.35x 108K 6.05x 3.90x 5.71x 29212x 4.50x 2.07x 1.00x 3.42x
1004x 3.02x 1.22x 1.00x 2.37x 152x 5.27x 32.68x 1.52x
I hope to get a solution to my problem.