Even though ‘jit.qt.grab’ is ready to start getting a video signal from the camera, we need the ‘jit.pwindow’ object to display the image. The second one passes incoming values that are greater than 0.1, while the third one does that same thing with values greater than 0.2. Second and third operations are basically the same with a slight difference. Therefore, I’m using the absolute difference which takes the number and drops the sign in front of it. Both differences are valid motion numbers. If the motion is from white to dark, we’ll get a negative difference. If there is motion from dark to white, we’ll get a positive difference. First operation is absolute difference (‘jit.op absdiff’), which takes the two frames sent by the trigger and substract them. These values will then go through a series of mathematical operations. The cross connection is because it renders the right one first. It takes what ‘jit.matrix’ sends out, and sends it twice. Next, I’m using the trigger object where ‘l’ stands for list. As you might have noticed, the patch cord between both objects look different since they both send different types of information. It converts signal to floating point matrix (data type from colour value to arithmetic). Next object (‘jit.rgb2luma’) converts RGB values to luminosity which is then sent to the ‘jit.matrix’ object. I use my laptop’s built-in camera, but since the patch incorporates an option that shows all available devices on your computer, an external camera can be used as well.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |