How do I install / use this script

Asked by JamieT

OK I have used bzr to get a local copy of this script and I have installed opencv based on instructions here: http://opencv.willowgarage.com/wiki/InstallGuide_Linux but I get errors when trying to run the service as follows:

:~/tmp/quiestla$ python quiestla.py
Traceback (most recent call last):
  File "quiestla.py", line 28, in <module>
    from quiestla.common.quiestlaservice import QuiEstLaService
  File "/home/jamie/tmp/quiestla/quiestla/common/quiestlaservice.py", line 34, in <module>
    from quiestla.common.quiestlaworker import QuiEstLaWorker
  File "/home/jamie/tmp/quiestla/quiestla/common/quiestlaworker.py", line 23, in <module>
    from quiestla.common.opencvclient import OpenCVClient
  File "/home/jamie/tmp/quiestla/quiestla/common/opencvclient.py", line 22, in <module>
    from opencv.cv import *
ImportError: No module named opencv.cv

I can run the client but it complains that no service is running?

Question information

Language:
English Edit question
Status:
Solved
For:
QuiEstLa Edit question
Assignee:
No assignee Edit question
Solved by:
JamieT
Solved:
Last query:
Last reply:
Revision history for this message
JamieT (jamie-tomlinson) said :
#1

OK - I read up on the internet that using "from opencv.cv import cv *" is the old way to import opencv. So I checked that the cv.so file was in the sys.path and then changed the two from opencv lines to be just import cv. This error has gone away but I now get a global NameError as follows:

NameError: global name 'cvCreateMemStorage' is not defined. I suspect that I am not importing everything I should be but think I am caught in between changes in opencv and how this python scripts imports this library.

Any ideas?

Jamie

Revision history for this message
JamieT (jamie-tomlinson) said :
#2

OK - I have fixed this issue. The problem seems to not be with the script but with the fact that I tried to install from the source using the instructions in the OP. I removed that install and just installed from the ubuntu repo (Lucid) and everything worked as expected (I must admit to being surprised to see it in the repo - not sure why!!). As a first start I am impressed just need to work on the UI and backend for recognition vs detection.