Grab single image with jit.qt.grab – strange delay
I am very new to Max and Jitter and this is my first post here.
I am trying to grab still images with my webcam (built-in on macbook) and the jit.qt.grab object and have run into a strange problem I cannot get my head around:
The first two bangs I send to jit.qt.grab results in a black screen in my jit.pwindow. My third bang displays an image but it is the image grabbed on the second bang.
I have tried added print objects comming from both the jit.qt.grab and jit.pwindow objects and they show up in the max window so it looks like my flow is correct.
I am sure it it something simple but being a Jitter noob my debugging skills are not so good yet. Any help is appreciated.
----------begin_max5_patcher---------- 423.3ocwTsraCBCD7L7UX4yTDP3Yu0uipnHC3RcDXSwFEZix+dMFnjGEAIso 8hkY8xryN1ytWWCFyZvbH3Qvy.Ms85ZZpPsAz5+VCVfZRxQbUZv3ZgfQgFcG UhDIuRnYapvIhNXr8LsL5WcrFVAq6+CZcAgliEJzr6CRRUXyh29PP.bLSVs3 7T6BIduD2UNXLhlAAqaO8ftd6hwBaEJdmrhCkSfaTc.bKQX9lvLqBEC7cs.t gVC47BiJnnBUogOUQP4yJD9JIv1J3pUBamiKKm7gpr1NRf9NAxYJAR1OaJPh JRCz..uMop.y4nL7EZURNiiuI0IxZ7YxpH09voDGmKEmvqRal7wyuqZvJwza RLbOxyrJ3pEC++Swn0tTtiPSY6lepfUWKJ8AtQdgdRGgqk4p.6vvfE6K9xVv qRFKfD1V2lqbQZXOFrk3QtzYnP.lSnmOdT0bswOUS3r5pjA3FrufQhjh4BBE IHxgmiIcZNuRRSwpiGt4JHokLBUzygItfVJkZmsNKkr+a4T3cfRQQlxmVclJ G2g8+Ph5eGHpm6rDU9wA8OQeu5q8 -----------end_max5_patcher-----------
You are sending one bang to tell jit.qt.grab to grab a frame. The next bang grabs a new frame and outputs the old to the pwindow. So I guess you could try to image the frame sitting in jit.qt.grab, waiting to be pushed out by the next grabbed frame, or something like that…
Aha I see – thank you for the explanation. Will try to figure out what to do from here, follow up questions are very likely