Open riteshpradhan opened 8 years ago
Hmmm... it seems like a problem with the way OpenCV was built for your system:
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file -------src-dir-------/opencv-2.4.10/modules/highgui/src/window.cpp, line 483
In particular, it looks like it was built without support for the cv2.namedWindow
function. Can you try this to see if it works?
$ python
>>> import numpy as np
>>> import cv2
>>> im = np.random.randint(0, 255, (128, 128, 3)).astype('uint8')
>>> cv2.namedWindow('foo')
>>> cv2.imshow('foo', im)
>>> cv2.waitKey(0)
If all is working, it should pop up a window with some random pixels.
Thanks for your reply.
I cannot get past cv2.namedWindow('..')
. It gives me same error. I have installed opencv with GTK ON. May be I need to reinstall opencv. Will let you know after that.
Actually, I am running these command in remote server by accessing it with ssh -X -Y server@ip
Is this due to the problem with X11 forwarding ?
The toolbox can be run via X11 forwarding, though I wouldn't recommend it generally, as it will be rather slow. I think reinstalling opencv such that the namedWindow
command works will be the best approach.
make runtest
passedmake pycaffe
(successful)./run_toolbox.py
running toolbox messages
cmake -D WITH_GTK=ON
But still I am unable to run the toolbox in centos-release-6-6.el6.centos.12.2.x86_64 .