Skip to main content

Reply to ""Train Detector" using Computer Vision for Block Occupancy"

pops3301 posted:

Hi, The pi (raspian) has a program you may be interested in called motion.

Type <apt-get install motion> to install it. The author has a Web site found in the documentation. You can use the pictures the program takes to overlay a masked picture. When the program triggers a hit (motion) it can call a script file or executable program (and more). You do this all in the configuration files. You can have up to 4 camera's that I know of, each camera would have it's own config file. So your masked part of the picture you overlay the real-time picture with to detect motion could be quite small (or big).

<man motion> will give the quick documentation or  <motion  --help>

There is another very powerful program called <pigpio>  (search the web).  With that you can control the gpio's either a scrip file, c code, c++ or python.

WiringPi is a great tool! pigpio is the best I've found so far. If you Run pigpiod (which is a daemon running in the background) you can access the pi through an open socket(network) just as if typing at the keyboard or running a program on the pi. So you compile pigpio on you 64 bit machine and run the program on your 64bit machine talking to the pi on it's open socket to access the pigpio daemon.

I've been wanting to experiment with your idea(s) and haven't had the time. Great work so far, very interesting.

That's also a pretty good way to do the interface also, by calling a script instead of having a single thread running all the time. Thanks for the suggestion, I ll check out these packages.

OGR Publishing, Inc., 1310 Eastside Centre Ct, Suite 6, Mountain Home, AR 72653
800-980-OGRR (6477)
www.ogaugerr.com

×
×
×
×
×