Research
python opencv 'cv2.cv2 has no attribute' error solution
Shakeratto
2018. 7. 31. 03:19
For examples,
AttributeError: module 'cv2.cv2' has no attribute 'TrackerCSRT_create'
AttributeError: module ‘cv2.cv2’ has no attribute ‘saliency’
...
Because the 'contrib' module is not installed.
1. run cmd or PowerShell as 'administrator'
2. activate <env>
3. pip install opencv-contrib-python
Try your code again