![]() |
|
|
|
#1
|
|||
|
|||
|
In your script (or at the Vizard Python prompt) type:
import sys print sys.path That will tell you where it's looking for modules. |
|
#2
|
|||
|
|||
|
Never mind. I tried it myself and got the same error. When I copied the dlls into the site-packages/opencv directory it went away.
|
|
#3
|
|||
|
|||
|
Sweet! Thanks a lot. That did the trick. Now I can play with some of these OpenCV functions.
|
|
#4
|
|||
|
|||
|
I just got finished trying the capture-cam.py example and got a runtime error. When I ran it, it first prompted me to select a web camera and then when it tried to run it gave the following error:
Code:
Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\program files\WorldViz\Vizard31\bin\winviz.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Code:
# get size of the frame
frame_size = cv.cvGetSize (frame)
|
|
#5
|
|||
|
|||
|
It works for me in Vizard (with a Logitech QuickCam). A camera driver issue? What do you get if you print type(frame) just before the crash?
|
|
#6
|
|||
|
|||
|
:d
Thanks for the upload - really appreciate it & once I can work out how to use vizards window instead of highGUI's i'll be flying!
![]() Just one odd thing though, when I try to run the kalman example I get this error message: Traceback (most recent call last): File "<string>", line11, in ? File "kalman.py", line 35, in ? kalman.transition_matrix[:] = A; File "C:\Program Files\Worldviz\Vizard30\bin\lib\site-packages\opencv\cv.py", line 1944, in __setitem__ return _cv.CvMat__setitem__(*args) RuntimeError: openCV Error: Status=Sizes of input arguments do not match function name=cvConvertScale error message= file_name=C:\User\VP\opencv\cxcore\src\cxconvert.c pp line=1600 Any idea's because I'm fresh out of them? ![]() Thanks |
|
#7
|
|||
|
|||
|
Code:
return _cv.CvMat__setitem__(*args) RuntimeError: openCV Error: Status=Sizes of input arguments do not match Code:
for i in range(2):
for j in range(2):
transition_matrix[i][j] = A[i][j]
|
|
#8
|
|||
|
|||
|
Quote:
It would be nice if I could get the openCV camera frame capture stuff to work. I tried incorporating the Vizard (vizcapture) function into squares using the Vizard webcam capabilities and I have not found a means to convert the image from the vizcapture screen buffer into an IPLImage for openCV. I have tried a straight convert and also used adapter.py to try and convert the images, but apparantly there was an error in OpenCV 1.0 when moving from a PIL or other image type to IPLImage. I have grown tired of going the viz cam route and am back onto trying to get the OpenCV camera handler to work, so any ideas you have I will entertain. I'll try and play with drivers and stuff and let you know how it goes. I have more than one camera plugged in right now, I'll pull those and see if they're causing conflicts. |
|
#9
|
|||
|
|||
|
Thank you
Thanks you very much that worked perfectly.Now I, like the original poster, just need to sort a method for converting frame buffer images to IPLImage!! Came across this - http://www.depthfirstsearch.net/blog...cv-and-python/ - which seems to address this prob however I am unable to utilize this at the moment due to my severe lack of C or C++ know-how. Any windows/C++ wizards out there who could help? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Native WorldViz support for character animation | luakt | Vizard | 10 | 09-16-2008 12:39 AM |
| Incampatible CAL3D files | luakt | Vizard | 4 | 09-15-2008 12:28 AM |
| WorldViz support of callada | luakt | Vizard | 2 | 09-14-2008 11:59 PM |