Tuesday, November 19, 2013

Supplies!: Bus error: 10

After having worked some weeks with OpenCv, today I launched behave app and got this nice error:
"Bus error: 10"



Similarly, when you try to import your opencv python lib:

Luiss-iMac:~ Luis$ python2.7-32
Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv
Bus error: 10

What has changed??: Update in Xcode yesterday, most likely.

So, for a mac  OS X 10.8.5 (12F45), how to fix?

No clue, investigating…

EDIT:
The solution to this was not to reinstall opencv as this later post said.

The problem was that I had forgotten to set DYLD_LIBRARY_PATH  in my .bash_profile, so the next time I tried to import cv o cv2, it went to another version of cv that I had installed before.

You can find how to do that in this post.







Tuesday, October 29, 2013

Behave

As I am writing this post, from time to time, a feminine robotic voice tells me: "I think your back is not straight, Luis!".

Immediately I straighten it and sit myself in a better way, I do this because if not, she will keep repeating and repeating the scolding, which is highly annoying.

This application is called Behave, it uses Python and OpenCV with face recognition, and is one day old.

At the moment it just checks that the face is within certain parameters but the idea is to use machine learning to teach the app what we want to control.

Uses: fight against nail biting, or scratching, or as a friend suggested: making sure that "you keep aerodynamic profile whilst training in stationary bicycle.

So, it's alive.
Hello, world.