Sửa lỗi "DisabledFunctionError: cv2.imshow() is disabled in Colab, because it causes Jupyter sessionsto crash"

cv2.imshow() is disabled in colab. So, you can import this replacement function which addresses this problem.

First import the library: from google.colab.patches import cv2_imshow

And use cv2_imshow() instead of cv2.imshow() where needed.