Skip to content

OpenCV(4.2.0) /io/opencv/modules/highgui/src/window.cpp:634: error: (-2:Unspecified error) The function is not implemented #323

@jaindamini1111

Description

@jaindamini1111

System information (version)

OpenCV => 4.2.0
Operating System / Platform => Windows 10
Compiler => Juypter Hub

I am getting an error while running this code:

img = cv2.imread("Screenshot.png")
cv2.imshow(" ", img)

Error: OpenCV(4.2.0) /io/opencv/modules/highgui/src/window.cpp:634: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvNamedWindow'

Installation process was:
pip install opencv-python-headless

By going through this issue it seems that I cannot use cv2.imshow() on a remotely hosted jupyter. Is there any workaround except for switching compiler?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions