A learner found a fix for this error when using the Anaconda prompt on Windows. Posting it here in case it is useful for other learners:
Another way to solve this problem is to install cv2 using the following command in jupyter notebook.
!pip install opencv-python
2 Likes
This worked for me thank you