server | index c:\users\sarah\projects\ihart\server\src\server.py |
The iHart server uses the library openCV to detect motion and faces in a video feed.
It then edits the data, combining the motion ares to make them more representative of
the actual motion (without this, motion causes many small blobs around the edges), and
testing the found items for presence within areas of interest. The program the sends an
encoded string to give the coordinates of the blobs within each area of interest, using
using sockets, to communicate with client programs which decode the data and push events
at listening programs.
Part of the intention behind the project is to allow relatively inexperienced programmers
to create interactive programs that utilize computer vision.
When starting the program, a prompt appears with the option to choose a camera index.
Unless the computer has access to multiple cameras (and you wish to use one of them),
choose 0. Then drag the start trackbar to 1, starting the rest of the program. Three
windows will appear: if not all are visible, drag the top one(s) out of the way.
To draw an area of interest, click on the video feed window and drag: if unsatisfied with
the starting location, simply make it smaller until it turns red and release the mouse; it
will not be saved. Edit settings through thr trackbar window. To reset areas of interest,
simply change the position of the trackbar.
@author Kim Faughnan, 2013
Drawing on work done by Cleo Schneider and Audrey St. John.
Modules | ||||||
|
Classes | ||||||||||
|