Forums > Jitter

basic reading / displaying from iSight

September 29, 2006 | 3:04 pm

hey, I’m completely new to jitter. I’m vaguely familiar with max/msp and I’m making a patch that I hope to incorporate my macbook’s iSight camera to control audio.
I have a gig coming up,and I’d love to try using it, do if anyone could help me out, I’d be very grateful.
I’ve been through some of the very early tutorials- what I’m after is a patch that reads from the iSight only greyscale (becuase I understand that the less ‘planes’ the less information is processed, and being a controller, it only need be b/w) and outputs the incoming video signal in a window, and if possible outputs a number based on how many white (or ligter pixels there are)- if anyone can help me out that be amazing. Even if someone can just point me in the direction of appropriate objects to use!
I know its a lot to ask, but I’ll be so happy if I can get this idea ready to gig!
thanks very much
tom


October 1, 2006 | 3:07 am

> hey, I’m completely new to jitter. I’m vaguely familiar with max/msp and I’m making a patch that I hope to incorporate my macbook’s iSight camera to control audio.

Start with jit.qt.grab for the camera input, and then jit.rgb2luma to get greyscale. Then look at [jit.op @op > n] to set a threshold.

I’ve been using cv.jit.sum to get the total of white pixels at this point. You can find it here:

http://www.iamas.ac.jp/~jovan02/cv/

The bad news is, there’s no Universal Binary version (afaik). Maybe somebody can suggest a UB alternative.

mzed


October 1, 2006 | 3:18 am

> I’ve been using cv.jit.sum to get the total of white pixels at this point. You can find it here:

jit.3m -> take the mean * width * height

>
> http://www.iamas.ac.jp/~jovan02/cv/
>
> The bad news is, there’s no Universal Binary version (afaik). Maybe somebody can suggest a UB alternative.

I’ve posted some examples of how to wrap OpenCV functions, which from
what I gather is what cv.jit is doing. If you’re into computer
vision, this is the best route to go, but you need to know C.

wes


October 2, 2006 | 6:38 am

Bonjour,

> I’ve been using cv.jit.sum to get the total of white pixels at this
> point. You can find it here:

> The bad news is, there’s no Universal Binary version (afaik).
> Maybe somebody can suggest a UB alternative.

jmod.sum% (http://www.jamoma.org) does this, although only for 1-
plane matrices at the moment.

Cheers,
Alexander


Viewing 4 posts - 1 through 4 (of 4 total)