www.homeseer.com    
 

Go Back   HomeSeer Message Board > Gaming Related Plug-ins > Gaming Related Discussion > Kinect (3P)

Kinect (3P) Discussions related to the Kinect plugin for HS3.

Reply
 
Thread Tools Display Modes
  #1  
Old May 30th, 2016, 11:32 AM
cgott42 cgott42 is offline
Seer
 
Join Date: May 2016
Location: NY
Posts: 25
Need help getting started

Hi:
I'm demoing (trial) Homeseer, and very interested in the Kinect plugin.
installed the plug in and it went fine.
I set up 2 kinect events and neither worked (one was to take a kinect pic every 20 sec, the other was to play an audio file when kinect voice recognition was triggered by "Jarvis lights" (Jarvis was set as the trigger phrase in Kinect confir)

The log shows the following error messages - any ideas? thx
11:36:38 AM Event Event Trigger "Kinect Test" May-30 11:36:18 AM Kinect ERROR Object reference not set to an instance of an object. May-30 11:36:18 AM Event Event Kinect Test, Action of Kinect Action could not be carried out because its configuration is not complete. May-30 11:36:18 AM Event Event Trigger "Kinect Test" May-30 11:35:58 AM Warning In ProcessEventItem, Cannot process event Test, there are no actions. May-30 11:34:27 AM Kinect ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_KINECT.SnapshotServer.Start(KinectSensor kinectSensor) May-30 11:20:53 AM Warning Device ?Unknown ?Unknown New Device Not all voice recognition commands for this device will be active. May-30 11:20:53 AM Warning Device ?Unknown ?Unknown New Device name/location variations form duplicate voice recognition phrases with another device.
Reply With Quote
  #2  
Old May 30th, 2016, 11:58 AM
spud's Avatar
spud spud is offline
Moderator
 
Join Date: Jan 2012
Location: Canada
Posts: 4,410
could you set the log level to trace from the Kinect config page, and post your logs when you start the plug-in and when you try to run your events.

For the event that takes a pic, it looks like the Kinect action is not configured properly. If you can't figure out what's wrong could you post a screenshot of your event.
Thanks
Reply With Quote
  #3  
Old May 30th, 2016, 12:22 PM
cgott42 cgott42 is offline
Seer
 
Join Date: May 2016
Location: NY
Posts: 25
Sure:
here's the log after disabling, enabling the kinect plug in
May-30 12:29:13 PM Plug-In Finished initializing plug-in Kinect
May-30 12:29:13 PM Kinect DEBUG End Init
May-30 12:29:13 PM Kinect DEBUG Web Pages Registered
May-30 12:29:13 PM Kinect DEBUG Visual Recognition Initialized
May-30 12:29:13 PM Kinect DEBUG Writing image file Kinect/zones/zones1.jpg
May-30 12:29:13 PM Kinect DEBUG Deleting image file Kinect/zones/zones0.jpg
May-30 12:29:13 PM Kinect DEBUG Drawing Zones File
May-30 12:29:13 PM Kinect DEBUG Voice Recognition Initialized
May-30 12:29:13 PM Kinect DEBUG USB\VID_0409&PID_005A\7&27D9664A&0&4 status=DeviceNotSupported
May-30 12:29:13 PM Kinect INFO Kinect version 3.0.0.44
May-30 12:29:13 PM Kinect DEBUG Logger Initialized
May-30 12:29:12 PM Info Plugin Kinect has connected. IP:127.0.0.1:57535
May-30 12:29:12 PM Plug-In Interface Kinect is running as a trial, 23 days remaining.
May-30 12:29:08 PM Info Plugin Kinect with instance: has disconnected
May-30 12:29:07 PM Kinect DEBUG Stopping Speech Recognition
May-30 12:29:07 PM Plug-In Shutting down Plug-In: Kinect

And here's the log after running the event:
May-30 12:31:04 PM Kinect DEBUG at HSPI_KINECT.KinectApp.TakePicture(String filePath, ColorImageFormat format)
May-30 12:31:04 PM Kinect ERROR Object reference not set to an instance of an object.
May-30 12:31:04 PM Event Event Trigger "Kinect Test"
May-30 12:30:44 PM Kinect DEBUG at HSPI_KINECT.KinectApp.TakePicture(String filePath, ColorImageFormat format)
May-30 12:30:44 PM Kinect ERROR Object reference not set to an instance of an object.
May-30 12:30:44 PM Event Event Trigger "Kinect Test"

Here's a screen shot of the event:
attached
Attached Images
 
Reply With Quote
  #4  
Old May 30th, 2016, 01:02 PM
spud's Avatar
spud spud is offline
Moderator
 
Join Date: Jan 2012
Location: Canada
Posts: 4,410
The log says: "DeviceNotSupported"
What kind of Kinect sensor is it? v1 (for Xbox 360) or v2 (for Xbox One) ? The v2 is not supported yet.
Reply With Quote
  #5  
Old May 30th, 2016, 03:11 PM
cgott42 cgott42 is offline
Seer
 
Join Date: May 2016
Location: NY
Posts: 25
V1
Reply With Quote
  #6  
Old May 30th, 2016, 03:22 PM
spud's Avatar
spud spud is offline
Moderator
 
Join Date: Jan 2012
Location: Canada
Posts: 4,410
Which drivers have you installed? Runtime or SDK?
If you have a kinect for Xbox 360 you need to install the SDK: http://board.homeseer.com/showthread.php?t=162315
Reply With Quote
  #7  
Old May 30th, 2016, 04:02 PM
cgott42 cgott42 is offline
Seer
 
Join Date: May 2016
Location: NY
Posts: 25
Thanks, getting really close - I just installed the SDK, and now HS shows something in the field showing that I have a kinect. However the event still doesn't work, and gives the following message:

May-30 4:08:50 PM Kinect DEBUG at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) at HSPI_KINECT.ImageExtensions.SaveJpeg(Image img, String filePath, Int64 quality) at HSPI_KINECT.KinectApp.TakePicture(String filePath, ColorImageFormat format) May-30 4:08:50 PM Kinect ERROR A generic error occurred in GDI+. May-30 4:08:50 PM Event Event Trigger "Kinect Test" May-30 4:08:42 PM Kinect DEBUG Speech Recognition Started May-30 4:08:42 PM Kinect DEBUG Rule (Devices) set [the] [Unknown] [Unknown] X10 lights to On May-30 4:08:42 PM Kinect DEBUG Rule (Devices) set [the] [basement] X10 lights to Off May-30 4:08:42 PM Kinect DEBUG Building Grammars May-30 4:08:41 PM Plug-In Finished initializing plug-in Kinect May-30 4:08:41 PM Kinect DEBUG End Init May-30 4:08:41 PM Kinect INFO Kinect initialized May-30 4:08:41 PM Kinect DEBUG Snapshot server started: http://*:8078/kinectsnapshot/ May-30 4:08:41 PM Kinect DEBUG Starting Speech Recognition May-30 4:08:40 PM Kinect DEBUG Web Pages Registered May-30 4:08:40 PM Kinect DEBUG Visual Recognition Initialized May-30 4:08:40 PM Kinect DEBUG Writing image file Kinect/zones/zones1.jpg May-30 4:08:40 PM Kinect DEBUG Deleting image file Kinect/zones/zones0.jpg May-30 4:08:40 PM Kinect DEBUG Drawing Zones File May-30 4:08:40 PM Kinect DEBUG Voice Recognition Initialized May-30 4:08:40 PM Kinect DEBUG USB\VID_0409&PID_005A\7&27D9664A&0&4 status=Connected May-30 4:08:40 PM Kinect INFO Kinect version 3.0.0.44 May-30 4:08:40 PM Kinect DEBUG Logger Initialized May-30 4:08:39 PM Info Plugin Kinect has connected. IP:127.0.0.1:63805 May-30 4:08:39 PM Plug-In Interface Kinect is running as a trial, 23 days remaining. May-30 4:08:35 PM Info Plugin Kinect with instance: has disconnected May-30 4:08:35 PM Kinect DEBUG Stopping Speech Recognition
Reply With Quote
  #8  
Old May 30th, 2016, 04:08 PM
spud's Avatar
spud spud is offline
Moderator
 
Join Date: Jan 2012
Location: Canada
Posts: 4,410
this error usually means the plug-in can't write the jpg file to the path you provided.
You need to make sure the path exists on the machine where the Kinect plug-in is running.
Reply With Quote
  #9  
Old May 30th, 2016, 10:05 PM
cgott42 cgott42 is offline
Seer
 
Join Date: May 2016
Location: NY
Posts: 25
Yep, I double checked that the path exists and nothing is in there, and that the drive has plenty of free space. (D:\kinect)
BTw - the kinect voice works - I set an event and was able to trigger it with a voice command !
Also on the kinect confic | camera page it has 3 addresses listed under "snapshot URL":
http://192.168.1.6:8078/kinectsnapshot/
http://10.40.1.4:8078/kinectsnapshot/
http://25.163.26.24:8078/kinectsnapshot/

when I click them a picture taken from my kinect comes up
Reply With Quote
  #10  
Old May 31st, 2016, 07:07 AM
spud's Avatar
spud spud is offline
Moderator
 
Join Date: Jan 2012
Location: Canada
Posts: 4,410
in the "Take Picture" action you need to provide the full path of the jpg file, including its name, something like: D:\kinect\test.jpg
Reply With Quote
  #11  
Old May 31st, 2016, 08:39 AM
cgott42 cgott42 is offline
Seer
 
Join Date: May 2016
Location: NY
Posts: 25
Bingo! thx
anyway to have it store more than 1 pic? - e.g. I have it set to take a pict every x seconds
Reply With Quote
  #12  
Old May 31st, 2016, 09:02 AM
spud's Avatar
spud spud is offline
Moderator
 
Join Date: Jan 2012
Location: Canada
Posts: 4,410
Quote:
Originally Posted by cgott42 View Post
Bingo! thx
anyway to have it store more than 1 pic? - e.g. I have it set to take a pict every x seconds
not right now but it is something I want to add, i.e add an option to add a timestamp suffix to the file
Reply With Quote
  #13  
Old May 31st, 2016, 09:34 AM
cgott42 cgott42 is offline
Seer
 
Join Date: May 2016
Location: NY
Posts: 25
thanks!
Reply With Quote
  #14  
Old June 7th, 2016, 03:56 PM
spud's Avatar
spud spud is offline
Moderator
 
Join Date: Jan 2012
Location: Canada
Posts: 4,410
in version 3.0.0.45 available here, I have added a "Add timestamp suffix" option to the "Take Picture" action:

For example the following action will produce files like kinect_20160607154813.jpg:

Name:  timestampsuffix.png
Views: 109
Size:  7.6 KB
Reply With Quote
  #15  
Old June 7th, 2016, 04:14 PM
cgott42 cgott42 is offline
Seer
 
Join Date: May 2016
Location: NY
Posts: 25
Awesome - thanks!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started Austin2406 HAControl 1 June 17th, 2010 07:34 PM
Getting Started iiidmaxer Bitwise Controls BC4 2 May 3rd, 2009 07:24 PM
PLC Started to Lag? airodas Insteon Plug-in (Mark Sandler) 1 February 6th, 2007 08:30 PM
How to get started in XAP cadillackid xAP Discussions 14 July 10th, 2005 08:34 PM
Getting Started litho HomeSeer General Discussion Area 4 December 22nd, 2004 12:25 PM


All times are GMT -4. The time now is 01:44 AM.


Copyright HomeSeer Technologies, LLC