G+_Rud Dog Posted May 6, 2016 Share Posted May 6, 2016 Gotta watch ep on servos and steppers that was informative. Can't help wondering if a sensor could be setup to tell the camera hey point over here I sense motion? Off to watch it again start getting the parts I need. Link to comment Share on other sites More sharing options...
G+_John Mink Posted May 6, 2016 Share Posted May 6, 2016 Rud Dog? sure, as long as the motion is slow enough that the camera can turn in time! Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted May 6, 2016 Author Share Posted May 6, 2016 John Mink Want to start collecting the parts list for this build would you happen to have a setup and code for such a setup? Meanwhile have to gather the items from the show. Link to comment Share on other sites More sharing options...
G+_610GARAGE Posted May 6, 2016 Share Posted May 6, 2016 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 More sharing options...
G+_John Mink Posted May 6, 2016 Share Posted May 6, 2016 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 More sharing options...
G+_Rud Dog Posted May 6, 2016 Author Share Posted May 6, 2016 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 More sharing options...
G+_Rud Dog Posted May 6, 2016 Author Share Posted May 6, 2016 Ordered 5 motors...yay! Link to comment Share on other sites More sharing options...
G+_610GARAGE Posted May 6, 2016 Share Posted May 6, 2016 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 More sharing options...
G+_John Mink Posted May 6, 2016 Share Posted May 6, 2016 610bob? regardless of how good your trig is, the only reliable way to do this would be trial and errror. Link to comment Share on other sites More sharing options...
G+_610GARAGE Posted May 6, 2016 Share Posted May 6, 2016 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 More sharing options...
G+_John Mink Posted May 6, 2016 Share Posted May 6, 2016 610bob? true, with 2 cameras you could probably even find some object recognition software & aim for a specific object...I was thinking one camera & one motion sensor Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted May 6, 2016 Author Share Posted May 6, 2016 Wayne Hobbins Is this a snapshot camera or video camera? Link to comment Share on other sites More sharing options...
G+_610GARAGE Posted May 7, 2016 Share Posted May 7, 2016 Wayne Hobbins Motion detectors. Oh sure, do it the easy way. ;) Link to comment Share on other sites More sharing options...
Recommended Posts