basic reading / displaying from iSight

Sep 29, 2006 at 3:04pm

basic reading / displaying from iSight

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

#27879
Oct 1, 2006 at 3:07am

> 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

#84923
Oct 1, 2006 at 3:18am

> 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

#84924
Oct 2, 2006 at 6:38am

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

#84925

You must be logged in to reply to this topic.