Problem in OpenCv - Working with Images-1 video

When I used my own pic in the code, I got an error in plt.imshow(img) function. However, when I used the same image which sir used in the video, I did not get any error. In both the cases, the code was same.

Please tell why is this error coming.

hey @abhaygarg2001 ,
can you please explain in brief what error did you get , so that i can understand the problem more properly.