Joined: 01 Nov 2007
|Posted: Sat Oct 27, 2012 1:33 pm Post subject: Python opencv missing 'highgui'
I'm learning python with a little project I have, I'm building a small cctv program with Gtk and opencv that fetches snapshots from two ip cameras and shows them in a window and also stores them in a AVI file. I got the Gtk part working quite easily... but I'm going crazy importing the opencv library (which should be the easiest part):
writer = cv.CreateVideoWriter("test1.avi", cv.CV_FOURCC('X','V','I','D'), 1, (640,480), True)
for counter in range(100):
img = cv.cvLoadImage('cam1_tmp.jpg', 1)
And it says: AttributeError: 'module' object has no attribute 'cvLoadImage'
It just doesn't find the cvLoadImage, cvWriteFrame and cvReleaseVideoWriter functions. I've read they are in the "highgui" library (part of opencv), but I haven't found a way to import it (and I've tried it).
Any ideas? Thanks in advance!