Typeerror numpy. dtypemeta object is not subscriptable when import cv2

TypeError: 'numpy._DTypeMeta' object is not subscriptable

Your opencv version is too new.

Install pip install opencv-python=4.5.1.38 solve this on numpy==1.21.5.