Closed Mononofu closed 11 years ago
Same exact problem here. Also OpenMDAO is such a chore to install and uses quirky ways to install itself. I strongly recommend that you consider an alternative to it.
Actualy, OpenMDAO was pretty easy to install for me on Ubuntu 12.10 x64 - what are you using?
One apt-get install
for the dependencies, python go-openmdao.py
and I was done.
Well... you are right, it's not exactly a chore. It's just the way it installs itself is particularly weird and bloated. Self contained, but non-modular. I would've expected for example (given that it is such a large framework) that it would make itself available through PyPi so all it takes is pip install openmdao
or pip install -U openmdao
to update it.
Lack of comments may be the other reason, why it is hard to fix the code.
Also, consider using PEP8.
did you guys run apt-get install python-opencv
to get cv2? Looks like this project uses opencv2.3+
versions of polylines and moveWindow (apt-get installs 2.1)
i googled up some instructions:P http://stackoverflow.com/questions/7664803/setup-opencv-2-3-w-python-bindings-in-ubuntu
That's probably it, The installed version (for openCV and the cv2 bindings) on my Ubuntu box is 2.4.4
If someone wants to write a more reliable real-time plotter (using matplotlib or something) and issue a pull request, I'd be all for it.
Ah, that makes sense. However, now it apparently doesn't recognize my webcam anymore and just crashes when I run get_pulse.py
I'm not yet sure why that is - do I need a specific video I/O plugin for OpenCV?
Latest push should fix this bug
test_webcam.py
still crashes for me:
OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /home/mononofu/Downloads/opencv-2.4.5/modules/core/src/array.cpp, line 2482
Traceback (most recent call last):
File "test_webcam.py", line 23, in <module>
cv2.imshow("Camera", img)
cv2.error: /home/mononofu/Downloads/opencv-2.4.5/modules/core/src/array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat
Your project looks awesome and I'm dying to try it, but unfortunately it crashes for me when I press
D
to show the gathered data.I get this stack trace:
The parameter P passed to polylines looks like this when the crash happens: (I assume z, the image, can't have any effect)