ERROR

[error] AttributeError: module 'cv2.aruco' has no attribute 'Dictionary_get'

mle21 2023. 5. 28. 06:00
반응형

aruco marker를 사용하기 위해서 github에서 코드를 clone하여 실행하였더니 AttributeError: module 'cv2.aruco' has no attribute 'Dictionary_get' 에러가 발생하였다.


[발생 원인]

1. opencv-contrib-python 라이브러리 설치 안됨

2. opencv-contrib-python 라이브러리가 너무 신규 버전으로 설치됨

 

[해결 방안]

python -m pip install opencv-contrib-python==4.5.5.64

4.6대 버전은 테스트해보지 않았음

현재 opencv-contrib-python 최신 버전은 4.7.0.72

728x90