We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Zoom in (Read 412 times)
Zoom in
Jul 3rd, 2008, 1:07am
 
I have a little problem in here,i using a trackColor(blue),and  im controling with webcam a object with processing,but the object its a reference to a menu(need to click with mouse),theres any way to do zoom(like aproaching to camera), and enter in the menu like was a mouse click?
Tks for your help
Re: Zoom in
Reply #1 - Jul 3rd, 2008, 4:14pm
 
If you are using JMyron, you could probably do something with the bounding box of the detected glob:

You could use globBoxes() to return the bounding boxes for the detected globs and calculate the area of the box. That way, when something moves closer to the camera, the area of the box will increase.

I'm not sure how reliably this will work, but it is worth a go.
Page Index Toggle Pages: 1