해당 에러가 발생했을 때 취할 수 있는 2가지 경우
!pip uninstall opencv-python-headless==4.5.5.62
!pip install opencv-python-headless==4.5.2.52
!pip uninstall opencv-python
!pip install opencv-python
!!python -m pip install --upgrade opencv-contrib-python
1번 방법이 더 잘 됨. 2번 방법은 선택적으로 되기도 하고 안 되기도 함.
https://stackoverflow.com/questions/70537488/cannot-import-name-registermattype-from-cv2-cv2
cannot import name '_registerMatType' from 'cv2.cv2'
I got below error message when I run model_main_tf2.py on Object Detection API: Traceback (most recent call last): File "/content/models/research/object_detection/model_main_tf2.py", li...
stackoverflow.com