how to grab one frame coming from a webcam?

Jul 3, 2006 at 3:12pm

how to grab one frame coming from a webcam?

Hi jitter forum,

I’m trying to grab one frame coming from a webcam and send it to another matrix in a real time. Is it possible to do it with jitter? I want this frame was shown in a jit.pwindow continuously.

If anyone could help me with this it would be greatly appreciated. Thanks.

amy

#26674
Jul 23, 2006 at 12:16pm

try this patch

max v2;
#N vpatcher 433 223 1033 623;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 126 114 24 9109513 t b;
#P user jit.pwindow 236 291 82 62 0 1 0 0 1 0;
#P newex 335 135 88 9109513 t 0 b l;
#P newex 238 138 48 9109513 gate 1;
#P outlet 192 291 15 0;
#P newex 237 65 40 9109513 t 1 b;
#N comlet bang to grab;
#P inlet 236 41 15 0;
#N comlet video input;
#P inlet 128 53 15 0;
#P message 374 177 42 9109513 index 1;
#P message 127 143 75 9109513 outputmatrix 0;
#P message 304 176 42 9109513 index 0;
#P newex 203 236 130 9109513 jit.matrixset 2 4 char 320 240;
#P connect 4 0 11 0;
#P connect 11 0 2 0;
#P connect 0 0 7 0;
#P connect 2 0 0 0;
#P connect 1 0 0 0;
#P connect 3 0 0 0;
#P fasten 9 2 0 0 418 174 208 174;
#P connect 5 0 6 0;
#P connect 0 0 10 0;
#P connect 9 0 8 0;
#P hidden connect 6 0 8 0;
#P fasten 4 0 8 1 133 103 281 103;
#P fasten 6 1 1 0 272 130 309 130;
#P connect 8 0 9 0;
#P connect 9 1 3 0;
#P pop;

#80045

You must be logged in to reply to this topic.