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.
IndexProgramming Questions & HelpSyntax Questions › using sensors and video
Page Index Toggle Pages: 1
using sensors and video (Read 664 times)
using sensors and video
Dec 15th, 2009, 1:15am
 
I am new to processing and was curious if it is possible to play with sensors and video.

for example, a piece of video runs when something is in front of the sensor and when nothing is in front, the video stops.

In order to start a project such as this one, where would the best place to begin be? What would i look for?

Thank in advance.
Re: using sensors and video
Reply #1 - Dec 15th, 2009, 2:12am
 
its actually a combination of 2 questions i answered yesterday.
The first one was, how to play a movie :
http://processing.org/discourse/yabb2/num_1260812402.html#3

and the other one was, "keypress" where he wants to turn things on and off by pressing a key. i did that by setting a boolean variable true/false.
thats actually what you need to do but with your sensors.
http://processing.org/discourse/yabb2/num_1260814208_11.html#11

but you can first try to make it work with they key press. if the video plays and you can stop and play it, you are almost done. next step would be to add the sensors.
Re: using sensors and video
Reply #2 - Dec 15th, 2009, 8:17am
 
Cedric is totally right. Make your program work with a key press. Then try a sensor. These two are perfectly separable. For seneors, you may check out the electronics board
http://processing.org/discourse/yabb2/board_Electronics.html

Or else I suggest you check out arduino.cc and its forum. Have in mind that you can do anything with processing. But your background may limit you. If you've never done any circuit (resistors or switchs), you're better off not messing around it alone. Find someone willing to help.

An alternative is to use a webcam to detect some movement. the video board may have something for you.
Re: using sensors and video
Reply #3 - Dec 15th, 2009, 8:42am
 
thats a good idea. video tracking is a great way to create some kind of movement sensor without actually dealing with hardware sensors.  there are some libraries arround that do the job.
Re: using sensors and video
Reply #4 - Dec 17th, 2009, 12:56am
 
Wow that was all so helpful. Thank you so much for everything. it's time to give it a try.
Page Index Toggle Pages: 1