Hi Karel,
Will has been very busy and he is the OpenCV expert so things have stalled a bit recently.
I have just spent the last couple of days playing around with Motion and so far have been pretty impressed. I have a Raspberry Pi with a camera module attached in my garage, a cheap Foscam FI8910W in my living room, and a Dahua HFW2100 over my front door. I have managed to get them all configured using Motion (the Dahua is detecting motion using snapshots since I can't work out the URL for a direct stream - other than RTSP).
Even in snapshot mode Motion seems pretty good at detecting motion. I have a mask for the entry cam to stop activity on the road/footpath tripping the detection algorithm and it seems to be working well.
I have configured some openHAB items to arm/disarm the camera motion detectors;
where '1' is the Motion thread.
Then I have a motion item;
Switch Camera_EntryMotion "Entry Motion"
Which is set/unset by Motion by hooking into the on_event_start/end events;
# Command to be executed when an event starts. (default: none)
# An event starts at first motion detected after a period of no motion defined by event_gap
# Command to be executed when an event ends after a period of no motion
# (default: none). The period of no motion is defined by option event_gap.
So now I can arm/disarm the cameras in openHAB rules, i.e. when I leave/arrive home. I can send notifications (via MQTT and mqttwarn) when the cameras are tripped. Motion automatically saves a short video and snapshots to a location of your choice when movement is detected, which you can configure to be sent as an email I believe.
The bit I have been working on tonight is integrating with XBMC, so that when motion is detected at the front door, the camera feed is displayed in a nice little popup on all my XBMC instances for 15s (
http://forum.xbmc.org/showthread.php?tid=182540). This is very cool!
I have managed to get a camera feed showing in my Android/iOS clients using the WebView widget, but as soon as I access openHAB remotely these streams don't work. Snapshot views using the Image widget work fine remotely.
Pretty happy with Motion so far - does just about everything I think I need currently. Definitely worth a try.