How can I use the camera as input to control the speed of a movie?

edited January 2017 in Library Questions

I want to use the camera as input (if there's a lot of frame by frame change the value will be ~1, if there's little frame by frame change the value will be ~0) to control the speed (ranging from x0.5 to x2) of a 10 second movie which will be constantly looping.

I couldn't manage to figure out how to do that. I'm probably using the video library wrong.

Would appreciate any help! <3

Tagged:

Answers

  • edited January 2017

    @sufi -- It sounds like you need to write two simple programs, then connect them.

    1. Write a program that changes the speed of a looping 10 second movie. E.g. when you type 1, 2, 3, 4, 5 the speed changes.
    2. Write a program that measures the frame-by-frame change value of a camera and prints a 0-1 number on the screen.

    Once you have written these, you can combine them. Have you gotten either of the two working? If not, where are you stuck? Feel free to share your code -- please format the code in your post before posting using CTRL-o. https://forum.processing.org/two/discussion/15473/readme-how-to-format-code-and-text#latest

Sign In or Register to comment.