TypeError: Image data of dtype object cannot be converted to float
import cv2 as cv
from matplotlib import pyplot as plt
import pytesseract
from resizeimage import resizeimagen bn
img = cv.imread("D:\TemplateMatch\\fitting.png") ------>"THIS IS THE WRONG USAGE"
#cv.rectangle(img,(29,2496),(604,2992),(255,0,0),5)
plt.imshow(img)