error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support

This solution seems to work for a majority of users, but not
all. If you are in this case, see the proposed answer by
Sachin Mohan.

I had the exact same error using yolov5, on Windows 10. Reinstalling the library by typing

pip uninstall opencv-python 

then

pip install opencv-python

worked for me.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)