MS Kinect as occupancy sensor...

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
User avatar
Marci
Posts: 532
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

MS Kinect as occupancy sensor...

Post by Marci »

Am pondering...

I have 2x Kinect for xbox360, attached to macmini, running processing2. I use these for developing interactive stage shows & visuals via Isadora.

Shouldn't be too difficult to knock up a quick sketch utilising difference flobs (persistent blob tracking) where the point cloud returned from the depth camera has a learned baseline (the empty room + cat-sized tolerance, unless you also wanted to know how many cats were in the room), and any deviation from baseline = occupied, so trigger a value (the number of flobs) which represents number of occupants, pushed to a virtual sensor via http. Alternatively could bring OpenNI into the equation and use skeleton identification, but OpenNI now out of development so limited lifespan, and very CPU intensive. (See processing sketch at https://github.com/PatchworkBoy/isadora ... ng_Mac.pde which already does the bulk of the work - can expose skeleton count via OSC, and exposes video feeds to syphon - standard stuff)

Could simplify it to do basic occupancy rather than number of occupants by just using a depth-threshold against the depth image to reduce CPU usage if necessary - foundation work I've already done within https://m.youtube.com/watch?v=u7s_dlXzR_I

The RGB feed could also be exposed to use as lux meter for confirmation of light on/off.


Much interest / worth me putting effort into? Any pros / cons spring to mind?
Last edited by Marci on Sunday 07 February 2016 12:08, edited 4 times in total.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
User avatar
gizmocuz
Posts: 2712
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: MS Kinect as occupancy sensor...

Post by gizmocuz »

Or you could buy a PIR sensor (or make one yourself with mysensors.org), thats a lot simpler :mrgreen:
Quality outlives Quantity!
User avatar
Marci
Posts: 532
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

MS Kinect as occupancy sensor...

Post by Marci »

Heh... touché. Wood / Trees.

But... Thinking wider, this could give mic array, video feed, occupancy, distance, lux from a single £20 eBay purchase + download of a pre compiled sketch from GitHub...

??

I've arrived at home automation from a user interaction background - gesture recognition, motion, limb and face tracking via Kinect / leap motion... exploring the possibilities is proving amusing - turning lights on & off every three blinks within two seconds for instance. Expands Domoticz into a full accessibility control system :)
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
User avatar
gizmocuz
Posts: 2712
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: MS Kinect as occupancy sensor...

Post by gizmocuz »

hehe yes, thats true, but for me to complicated *g* (and the WAF)
Quality outlives Quantity!
jmleglise
Posts: 192
Joined: Monday 12 January 2015 23:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: FRANCE
Contact:

Re: MS Kinect as occupancy sensor...

Post by jmleglise »

Face recognition may be great and useful !!!
-For alarm more elaborated !
-To personnalise some informations. For example, my Domoticz speaks with vocal synthesis to announce some situation and information.

And this will enhance my waf ;-)
My script : https://github.com/jmleglise
RFXTRX433E: Blind Somfy RTS, Portal Somfy Evolvia, chacon IO, Oregon, PIR sensor PT2262
My Last project : Location de vacances a Ouistreham vue mer
KMTronic USB relay
Chinese Z-WAVE: Neo CoolCam
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest