enter image description here

我试图在图像中检测到'tci',但效果不佳

我怎么解决这个问题?

import numpy as np
from PIL import Image
import pytesseract
import cv2

img = cv2.imread('5.jpg')
white = cv2.imread('white.jpg')
imgray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
ret,thresh = cv2.threshold(imgray,127,255,0)
cv2.imwrite('thresh.jpg', thresh)
thresh2=cv2.bitwise_not(thresh)
cv2.imwrite('thresh2.jpg', thresh2)
cv2.imshow('contours', thresh)
cv2.imshow('contours2', thresh2)
cv2.waitKey(0)
result=pytesseract.image_to_string(Image.open("thresh.jpg"))
result2=pytesseract.image_to_string(Image.open("thresh2.jpg"))
result.split(' ')
result2.split(' ')
print(result)
print(result2)
cv2.destroyAllWindows()

这是结果

CsHs BrFN

CAS 367-24-8  >98,0%

Store under Ar, Air sensibve.

th Risks of this t beer A
Ks compound have not beet
OF laboratory Bee only, not for dU

EA

我也尝试过使用canny检测