typeerror-numpy dtypemeta-object-is-not-subscriptable-when-import-cv2

Published at 2024-01-15
Last update over 365 days ago Licensed under CC BY-NC-SA 4.0 langspythonopencv
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.