sephirot_5
November 26th, 2009, 05:16 AM
Well, I have a very important school project in wich I must implement some pattern recognition on maps. I chose opencv + python to do it.
I wanted to start testing algorithms for this purpouse, so I installed all opencv bin and dev packages i found in the repos (including the python ones).
I was testing if modules were loading correctly, and by running this simple python script
import sys
from opencv import *
if __name__=='__main__':
img = highgui.cvLoadImage(argv[1])
I got this error:
NameError: name 'highgui' is not defined
File "/home/fabrizio/Projects/pyopencv/prueba.py", line 9, in <module>
img = highgui.cvLoadImage(argv[1])
As you can see, opencv module is loading ok, but i have no luck with thehighgui one.
This project is very important, and I REALLY don't want to code on Windows just because this little error. Please help me oh Benevolent Ubuntu wizards... (:
I wanted to start testing algorithms for this purpouse, so I installed all opencv bin and dev packages i found in the repos (including the python ones).
I was testing if modules were loading correctly, and by running this simple python script
import sys
from opencv import *
if __name__=='__main__':
img = highgui.cvLoadImage(argv[1])
I got this error:
NameError: name 'highgui' is not defined
File "/home/fabrizio/Projects/pyopencv/prueba.py", line 9, in <module>
img = highgui.cvLoadImage(argv[1])
As you can see, opencv module is loading ok, but i have no luck with thehighgui one.
This project is very important, and I REALLY don't want to code on Windows just because this little error. Please help me oh Benevolent Ubuntu wizards... (: