I had installed OpenCV following these steps (). After trying to compile one examples,i got this error :
OpenCV Error: Unspecified error (The function is no
In case what they mentioned above doesn't work, try:
pip install opencv-python
for python2, or
pip3 install opencv-python
for python3
for windows just uninstall the OpenCV pip uninstall opencv-python and reinstall pip install opencv-python