I am using OpenCv on Big Sur and I am unable to get the pop ups which show us the image

import cv2
import numpy as np

def tell(x):
pass
cv2.namedWindow(‘rackBarsWindow’)
cv2.createTrackbar(‘B’,’rackBarsWindow’,0,255,tell)

while (1):
img=cv2.imread(‘logo.png’)
img=cv2.resize(img,(512,512))

b=cv2.getTrackbarPos('B','rackBarsWindow')
b=str(b)
cv2.putText(img,b,(100,100),cv2.FONT_HERSHEY_SIMPLEX,1,(255,255,0),1,cv2.LINE_AA)



#print(b,g,r)

k=cv2.waitKey(1) & 0xFF
if k==ord('q'):
    break       

cv2.imshow('iam',img)   
#print(img)

cv2.destroyAllWindows()

please help me