Definitely do as Joojaa suggests and add the path to the open cv python extensions to your PYTHONPATH. Alternatively, you can put this in your scripts:
import sys
sys.path.append('')
import opencv.cv
Dunno if there is anything special about the build of Python 2.4 that ships with 8.5, but worse case is you would have to rebuild the opencv python bindings (the opencv distribution comes with makefiles and visual studio projects), and link against the python libs that ship with maya (if it ships with the libs, that is)
Nuther thing you could try short of rebuilding is the ctypes binding. No binary extension required. You will need the ctypes library, which isn't part of the python 2.4 distribution (it's part of the 2.5 standard library). You can get the ctypes binding here:
http://sourceforge.net/project/showfiles.p...lease\_id=509128
courtesy of this site:
http://wwwx.cs.unc.edu/~gb/wp/blog/2007/02...r-using-ctypes/
I use opencv a lot at work, and I've written a couple maya plug-ins using it (for instance, an optical-flow driven force field, and a couple other things). What are your plans for using opencv in maya?
Good luck!
Kevin Atkinson