max v2; #N vpatcher 56 68 1142 989; #P origin 0 292; #P window setfont "Sans Serif" 9.; #P newex 504 389 45 196617 loadbang; #P message 132 449 46 196617 0.06; #P button 477 396 15 0; #P message 301 434 41 196617 0.12; #P message 383 434 20 196617 50; #P message 455 434 14 196617 0; #P flonum 455 455 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 383 455 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 301 456 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 455 477 70 196617 saturation \$1; #P message 383 477 62 196617 contrast \$1; #P message 301 477 71 196617 brightness \$1; #P newex 301 515 53 196617 jit.brcosa; #P window setfont "Sans Serif" 18.; #P comment 325 137 164 196626 Background Grab; #P toggle 29 242 15 0; #P window setfont "Sans Serif" 9.; #P newex 146 345 100 196617 s background_frame; #P user gswitch2 29 276 39 32 0 0; #P user jit.pwindow 145 244 121 87 0 1 0 0 1 0; #P newex 146 217 128 196617 jit.matrix 4 char 320 240; #P newex 146 193 93 196617 r background_grab; #P newex 29 446 100 196617 r background_frame; #P newex 29 331 93 196617 s background_grab; #P window setfont "Sans Serif" 18.; #P comment 345 -228 153 196626 Video Capture; #P window setfont "Sans Serif" 9.; #P user jit.fpsgui 29 849 60 196617 0; #P flonum 130 475 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 29 498 105 196617 jit.op @op > @val 0.2; #P newex 29 474 90 196617 jit.op @op absdiff; #P user jit.pwindow 28 551 383 284 0 1 0 0 1 0; #P comment 27 401 160 196617 absolute differece between frames received from the camera and the background frame grab.; #P comment 171 477 100 196617 threshold; #P window setfont "Sans Serif" 18.; #P comment 256 390 208 196626 Background Difference; #P window setfont "Fixedwidth Serif" 10.; #P newex 291 -37 50 1441802 t clear; #P message 229 -157 80 1441802 getinputlist; #P user jit.fpsgui 26 72 60 1441802 0; #P message 196 9 68 1441802 vdevice \$1; #P user ubumenu 196 -12 145 1441802 0 1 1 0; #X add "DVCPRO HD (1080i60)"; #X add "DVCPRO HD (720p60)"; #X add "DV Video"; #X add "IIDC FireWire Video"; #X prefix_set 0 0 0; #P newex 196 -37 92 1441802 prepend append; #P newex 196 -60 32 1441802 iter; #P message 153 -158 73 1441802 getvdevlist; #P newex 138 -91 152 1441802 route vdevlist inputlist; #P user jit.pwindow 25 -61 162 122 0 1 0 0 1 0; #P toggle 26 -177 15 0; #P newex 26 -157 50 1441802 metro 2; #P message 114 -157 38 1441802 close; #P message 79 -157 32 1441802 open; #P newex 26 -117 122 1441802 jit.qt.grab 320 240; #B color 5; #P user panel 0 382 554 524; #X brgb 97 159 183; #X frgb 0 0 0; #X border 1; #X rounded 0; #X shadow 0; #X done; #P window setfont "Sans Serif" 9.; #P comment 31 154 102 196617 1. click on to start background grab. 2. click off to select background frame.; #P comment 145 145 152 196617 stores background frame grabs \, send background frames to the background difference object.; #P comment 52 -203 225 196617 1. Click 'getdevlist' 2. Select video input from the dropdown menu. 3. Turn on metro. 4. Click 'Open' to open video feed.; #P user panel 0 -231 481 357; #X brgb 94 124 57; #X frgb 0 0 0; #X border 1; #X rounded 0; #X shadow 0; #X done; #P user panel 0 130 481 246; #X brgb 124 82 57; #X frgb 0 0 0; #X border 1; #X rounded 0; #X shadow 0; #X done; #P connect 10 0 9 0; #P fasten 19 0 6 0 234 -134 31 -134; #P connect 9 0 6 0; #P fasten 8 0 6 0 119 -134 31 -134; #P fasten 7 0 6 0 84 -134 31 -134; #P fasten 13 0 6 0 158 -134 31 -134; #P fasten 17 0 6 0 201 64 10 64 10 -121 31 -121; #P connect 6 0 11 0; #P connect 11 0 18 0; #P connect 37 0 35 0; #P connect 35 1 30 0; #P fasten 6 0 25 0 31 -107 19 -107 19 469 34 469; #P connect 25 0 26 0; #P fasten 39 0 24 0 306 543 34 543; #P connect 24 0 28 0; #P fasten 6 0 35 1 31 -110 19 -110 19 265 63 265; #P connect 31 0 25 1; #P fasten 27 0 26 1 135 490 129 490; #P connect 50 0 27 0; #P fasten 49 0 50 0 482 426 197 426 197 445 137 445; #P connect 6 1 12 0; #P connect 32 0 33 0; #P connect 33 0 34 0; #P connect 34 0 36 0; #P fasten 12 0 14 0 143 -67 201 -67; #P connect 14 0 15 0; #P fasten 20 0 16 0 296 -16 201 -16; #P connect 15 0 16 0; #P connect 16 0 17 0; #P fasten 12 0 20 0 143 -67 296 -67; #P fasten 49 0 48 0 482 425 306 425; #P connect 48 0 43 0; #P connect 43 0 40 0; #P connect 40 0 39 0; #P fasten 41 0 39 0 388 503 306 503; #P fasten 42 0 39 0 460 505 306 505; #P fasten 26 0 39 0 34 530 276 530 276 508 306 508; #P fasten 49 0 47 0 482 425 388 425; #P connect 47 0 44 0; #P connect 44 0 41 0; #P fasten 49 0 46 0 482 425 460 425; #P connect 46 0 45 0; #P connect 45 0 42 0; #P connect 51 0 49 0; #P pop;