Jump to content

Gotta watch ep on servos and steppers that was informative


G+_Rud Dog
 Share

Recommended Posts

You could use opencv to monitor motion in the camera and have it center the motion to the camera's frame. Maby have a wide view camera and a close shot camera. One monitors motion location while the other looks to see what's moving.

 

I actually did something like this. I used opencv to look for a face. Once it found one, the computer would send commands to an arduino to move servos. These servos would move the camera. So it would track someones face as they walked by.

Link to comment
Share on other sites

Eh, I'm not in this forum that often so hopefully someone else will take over for me :p

 

But the first question is, what exactly are you trying to do? I mean, get that you want a motion sensor to move a camera to wherever it senses motion... But we need more details. Is this inside or outside? What type of motion (specifically how large and how fast... You'll probably need a different sensor if you're watching birds vs watching for intruders). You'll need some controller to communicate to the camera & sensor, I assume Raspberry-Pi (or something similar)?

Link to comment
Share on other sites

610bob Love this idea gonna have to take baby steps and the first step is getting the components on the show duplicate their ideas then jump forward to sensing motion. Hopefully can get the code and setups for suggested sensor configurations?

Link to comment
Share on other sites

Rud Dog Yea, I haven't seen the last episode. So I'm not too sure what they did, but you would basically need to build a gimble, get that gimple controllable through a computer (pi would probably be best here), and track motion with opencv.

 

If you do the one camera setup, you will have to set it up to jump to the location. So monitor movement, disable movement monitoring (or ignore), move, enable motion movement. Like John Mink said, motion will have to be slow within the frame of the camera. The two camera setup will take a lot of trig that is beyond me. :)

 

I'd give you my old code, but I did it when I was around 14, so that's long gone by now.

Link to comment
Share on other sites

John Mink If you were using two cameras, you knew the field of view for both cameras, and the location of the motion within the field of view of the stationary camera, you could calculate what position the moving camera would need for that motion to be centered frame.

 

Single camera would be trial and error. Move, mesure, move mesure.

Link to comment
Share on other sites

 Share

×
×
  • Create New...