Kinect sensor "isOpen" but not "isAvailable"

Hey there, I'm new to Kinect programming, and right now I'm trying to write a real simple Kinect app in C# to initialize a sensor and write the hair color of a target person to the console. So I've initialized my sensor my calling GetDefault() and Open(),
which according to the definition in the API, should mean that the sensor is also Available to receive frames. But, it's returning '0' for my hair color, and calling "isOpen" and "isAvailable" has revealed that, while my sensor is indeed
open, it is not available to receive frames, and isn't actually gathering data when asked to. Any suggestions about why this might be?

Hi Steve,
For an hair color sample see this
article on Skin and Hair color.
To get frames of data, you have to setup event handlers to listen for specific frame arrived events. At which point you can retrieve the data you're looking for.
Sr. Enterprise Architect | Trainer | Consultant | MCT | MCSD | MCPD | SharePoint TS | MS Virtual TS |Windows 8 App Store Developer | Linux Gentoo Geek | Raspberry Pi Owner | Micro .Net Developer | Kinect For Windows Device Developer |blog: http://dgoins.wordpress.com

Similar Messages

  • Find the depth of head from the kinect sensor

    Hi,
    I'm trying to get the actual depth of head from the Kinect sensor positioned at 82 inches from the floor and tilted to 40 deg angle.  I used Skeleton Joints head point and right angled triangle trigonometry but unable to get the accurate measurement.
     I considered Joint[JointType.Head].Position.Z as distance but when manually measured the value is not accurate, why it is different from the manual measurement.
    Any help would be appreciated!
    Mani

    Body tracking provide estimates based on body tracking algorithms. These take into account the some offset into the head to represent but based on angles and noise and tracking state of the joint you may need to average it out. Also, you can take the point
    as a starting point and then analyze the actual depth data and calculate your own if you need better accuracy.
    Carmine Sirignano - MSFT

  • How to distinct real Kinect sensor and .xef playback source

    Hi there, 
    I’m making an application which compare a live motion(f.e. body frame) captured by the Kinect sensor and a playback xef file recorded by KStudio, I
    wanted that they display in two different canvas, but my difficulty is that how to know the frames come from the sensor or the xef file, now all frames display on all the canvas simultaneously.
    Thanks in advance for your help.
    Haishan

    hi jmmroldan,
    Thanks for your reply and ideas.
    The StartRelativeTime is readonly, so I can't put personal information in it.
    Actually, my application is a dance comparaison, uses can learn and imitate from a pre recorded video(color and body frame).
    The scenario is quite simple
     - Record the "teacher" 's frames to xef file by using the KStudio of Microsoft.Kinect.Tools.
     - Play this xef file in a litte windows
     - Display the live captured data in the main windows.
    for this, I create two FrameReader to listen the FrameArrived event.
    I noticed that inside the KStudioPlayback or KStudioRecording class, there is a method called "GetMetadataForStream", but I don't know how to create then use it, and I'm not sure I can retrieve it from
    the captured data by Kinect Runtime.

  • Why does the counter work in MAX, but not Labview?

    Please help, I have been away from Labview for over 3 months, and I am quite rusty....
    Last year, I successfully configured NI9401 to measure period (seconds) by counting the rising edges of my sensor signal.  Since then, I have aquired a new PC, and loaded all my software into it, including the Labview VI's that successfully worked on the old computer.
    I can see the digital signal using MAX and the test panel for the NI9401, so, I know my wiring and my TTL signal is OK, but, when I try to run the attached VI, nothing happens except the error below..  How do I tell this VI to look for the signal on MOD3/CTR0 and channel 14?
    Thanks. I am sure it is a small adjustment...this worked fine a few months ago...not sure what is wrong now.
    Thanks,
    Dave
    Solved!
    Go to Solution.
    Attachments:
    continuously measure period buffered_singlechannel_forum_feb_23_2012.vi ‏20 KB

    OK, now.  Resolved the issue. The vi is fine, but, some shaky wires were identified...worked in MAX but not in the vi.  Now that the connections have been tightened up, it works for both.  Sorry for the inconvenience.
    Dave

  • For iPhone 5 why is there a third opening next to the ear speaker on the white phone but not on the black phone.

    why is there a third opening next to the phone speaker (besides the camera) on the white iPhone 5 but not on the black version

    That's probably the ambient light sensor. It's on the black iPhone too, it's just not as visible.

  • TS2662 My wireless Apple mouse wont scroll up or down. Does side to side just fine, but not up and down. Button is checked in Preferences AOK etc. What next? Thank you

    My wireless Apple mouse, paired with my MacBook Pro, wont scroll up or down. Does side to side just fine, but not up and down. Relevant button is checked in Preferences AOK etc. What next? Thank you

    Try cleaning the sensor with a damp (but not wet) cotton bud.
    How to clean Apple products

  • K7 GTX receive ok but not stable (pattern sensitive)

    Hi,
    I made a sensor with 8b10b TX fit Xilinx K7 GTX,
    The data transfer is ok now, but not stable,
    some special code (pattern) have higher error possibility.
    Is there any part can be tuned to decrease the error rate?
    or any document can be refer to? Thanks !!
     

    Dear Austin,
    Thanks for the reply,
    I use same speed, cable, connnectors, and protocol, for both my TX IC & Xilinx K7 TX,
    Xilinx K7 is ok, signal swing 800mV diff p-p,  my TX IC can only 400mV diff p-p, (in spec)
    my TX IC eye diagram jitter is larger than K7, but should be in spec (0.35UI, if I understand correctly).
    improve my TX refernce clock source quality, TXPLL loop bandwidth, and K7 GTX RXEQ (from DFE-->LPM) can help,
    but still has annoying specific symbol error,
    the AC couple cap is 0.1uF, for 1.25Gbps & 2.5Gbps 8b10b,
    Is there any spec for comma usage ? comma-to-comma maximum spacing or better comma type ?
    since DFE-->LPM RXEQ improve a lot, how can I tune RXEQ parameters ?
    Thanks and Best Regards,
     

  • Can i use nike+ipod (sensor kit or not) with my 1st gen ipod touch?

    okay. so i just bought an ipod touch about a month ago because i had an ipod classic but wanted to use nike+. Well i was cruisin the apple website looking to buy nike+ and realized that it says that it only works with 2nd generation touchs. I was about to bust a nut. I did not just spend 250 dollars on a touch and now i cant even use nike+
    I bought the 2.2 software upgrade a bit before that, and im wondering if with this upgrade i can use nike+? I understand that the 2nd gen touch has a built in thingy majigger, but if i bought the sports kit (both the sensor fo rhte ipod nad the reciever for the shoe) can i still use it?
    thanks in advance.
    Message was edited by: unlamo14

    Nope... no external volume controls.
    So now I have to return a Christmas gift -- one I was really looking forward to using! Thanks a lot, Apple.
    And here I thought I was buying a reasonably up-to-date product six months ago, when I got my Touch.
    Is there some really compelling reason why the plug-in receiver will work with Nanos of all kinds... but not Touchs?

  • Mac mini appears to be shutting down due to overheating fan is running, but not strongly

    late 2012 mac mini shuts down after running several minutes in a streaming task environment.  Fan is running, but not very forceful.  wondering if the fan itself has a temperature sensor that causes the fan to engage in higher rpms or if that sensor/command comes from somewhere else in the computer

    Install a temperature/fan speed app.. I use the free Macs Fan Control app downloaded from the internet. Yes, there are temperature sensors that contorl fan speed
    http://www.crystalidea.com/macs-fan-control

  • I want camera ,apps and wifi but not the phone. Can I do that?

    I want camera ,apps and wifi but not the phone. Can I do that?
    I'm sure this is a common Q but I've spent more time then needed already to find the answer with no luck.
    It's a free star to a polite answer

    This rings very true. The iPhone is subsidized by AT&T by a significant amount. This is corporate line fact.
    AT&T's subsidized price for the iPhone is as follows:
    3G - $99 for the 8GB & $149 for the 16GB.
    3GS - $199 for the 16GB & $299 for the 32GB.
    These prices require signing a two year contract with AT&T.
    Apple and AT&T's non-subsidized/no-committment/full retail sales price for the iPhone is as follows:
    3G - $499 for the 8GB & $549 for the 16GB.
    3GS - $599 for the 16GB & $699 for the 32GB.
    The iPhone is an iPod Touch with a phone that also includes a GPS receiver, bluetooth, and a camera. It also includes proximity sensors to turn the iPhone's screen off when holding the iPhone up to your ear and face during a call.

  • Can you check for data in one table or another but not both in one query?

    I have a situation where I need to link two tables together but the data may be in another (archive) table or different records are in both but I want the latest record from either table:
    ACCOUNT
    AccountID     Name   
    123               John Doe
    124               Jane Donaldson           
    125               Harold Douglas    
    MARKETER_ACCOUNT
    Key     AccountID     Marketer    StartDate     EndDate
    1001     123               10526          8/3/2008     9/27/2009
    1017     123               10987          9/28/2009     12/31/4712    (high date ~ which means currently with this marketer)
    1023     124               10541          12/03/2010     12/31/4712
    ARCHIVE
    Key     AccountID     Marketer    StartDate     EndDate
    1015     124               10526          8/3/2008     12/02/2010
    1033     125               10987         01/01/2011     01/31/2012  
    So my query needs to return the following:
    123     John Doe                        10526     8/3/2008     9/27/2009
    124     Jane Donaldson             10541     12/03/2010     12/31/4712     (this is the later of the two records for this account between archive and marketer_account tables)
    125     Harold Douglas               10987          01/01/2011     01/31/2012     (he is only in archive, so get this record)
    I'm unsure how to proceed in one query.  Note that I am reading in possibly multiple accounts at a time and returning a collection back to .net
    open CURSOR_ACCT
              select AccountID
              from
                     ACCOUNT A,
                     MARKETER_ACCOUNT M,
                     ARCHIVE R
               where A.AccountID = nvl((select max(M.EndDate) from Marketer_account M2
                                                    where M2.AccountID = A.AccountID),
                                                      (select max(R.EndDate) from Archive R2
                                                    where R2.AccountID = A.AccountID)
                   and upper(A.Name) like parameter || '%'
    <can you do a NVL like this?   probably not...   I want to be able to get the MAX record for that account off the MarketerACcount table OR the max record for that account off the Archive table, but not both>
    (parameter could be "DO", so I return all names starting with DO...)

    if I understand your description I would assume that for John Dow we would expect the second row from marketer_account  ("high date ~ which means currently with this marketer"). Here is a solution with analytic functions:
    drop table account;
    drop table marketer_account;
    drop table marketer_account_archive;
    create table account (
        id number
      , name varchar2(20)
    insert into account values (123, 'John Doe');
    insert into account values (124, 'Jane Donaldson');
    insert into account values (125, 'Harold Douglas');
    create table marketer_account (
        key number
      , AccountId number
      , MktKey number
      , FromDt date
      , ToDate date
    insert into marketer_account values (1001, 123, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('27.09.2009', 'dd.mm.yyyy'));
    insert into marketer_account values (1017, 123, 10987, to_date('28.09.2009', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
    insert into marketer_account values (1023, 124, 10541, to_date('03.12.2010', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
    create table marketer_account_archive (
        key number
      , AccountId number
      , MktKey number
      , FromDt date
      , ToDate date
    insert into marketer_account_archive values (1015, 124, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('02.12.2010', 'dd.mm.yyyy'));
    insert into marketer_account_archive values (1033, 125, 10987, to_date('01.01.2011', 'dd.mm.yyyy'), to_date('31.01.2012', 'dd.mm.yyyy'));
    select key, AccountId, MktKey, FromDt, ToDate
         , max(FromDt) over(partition by AccountId) max_FromDt
      from marketer_account
    union all
    select key, AccountId, MktKey, FromDt, ToDate
         , max(FromDt) over(partition by AccountId) max_FromDt
      from marketer_account_archive;
    with
    basedata as (
    select key, AccountId, MktKey, FromDt, ToDate
      from marketer_account
    union all
    select key, AccountId, MktKey, FromDt, ToDate
      from marketer_account_archive
    basedata_with_max_intervals as (
    select key, AccountId, MktKey, FromDt, ToDate
         , row_number() over(partition by AccountId order by FromDt desc) FromDt_Rank
      from basedata
    filtered_basedata as (
    select key, AccountId, MktKey, FromDt, ToDate from basedata_with_max_intervals where FromDt_Rank = 1
    select a.id
         , a.name
         , b.MktKey
         , b.FromDt
         , b.ToDate
      from account a
      join filtered_basedata b
        on (a.id = b.AccountId)
    ID NAME                     MKTKEY FROMDT     TODATE
    123 John Doe                  10987 28.09.2009 31.12.4712
    124 Jane Donaldson            10541 03.12.2010 31.12.4712
    125 Harold Douglas            10987 01.01.2011 31.01.2012
    If your tables are big it could be necessary to do the filtering (according to your condition) in an early step (the first CTE).
    Regards
    Martin

  • HT1386 I have synced the items from itunes to an iphone 4 without problem, except the two albums I just purchased did not sync.  They show up on the itunes on my desktop and on my ipod, but not on the new iphone.  What do I need to do?

    I have an itunes account and an ipod, and when I purchased 2 albums on the computer they synced straight to the ipod.  I bought an iphone and used the usb cord from the computer to it to sync the itunes albums to the new phone.  Everything transfered, and those were albums I had uploaded (not purchased from the itunes store), except the two albmus I just purchased from the itunes store.  They appear on my itunes on the computer and ipod, but not on the iphone.  What did I fail to do or did I do incorrectly?

    This might sound weird, but here's an idea which worked for me re music that was newly added to itunes and showed up in my ipod but wouldn't play - I simply played the tracks in itunes first, just a second of time or so will do it, not the whole track, then connect the ipod and sync again and this time they played - hope this helps.

  • Sharepoint Foundation - search working for some users (or computers), but not others

    Hi all,
    We have doozy of a search problem with SharePoint Foundation 2010 that I'm hoping someone can help with.
    We have an application that is listening on port 14197 and search is working just fine, but only for one or two users.
    If I do a search while logged in using the account we set the application up with then the search works fine and it returns records as expected.
    If I use a different account - one that has full control over the app, then the exact same search fails with the following message:
    We did not find any results for 06BSL.
    Suggestions:
    Ensure words are spelled correctly.
    Try using synonyms or related searches.
    Try broadening your search by searching from a different site.
    Additional resources:
    Get additional search tips by visiting Search Help
    If you cannot find a page that you know exists, contact your administrator.
    We've done everything we can think of, including several procedures to create new search accounts, replace databases, etc.
    Nothing has helped and all of the info we can find online is in relation to getting search working when it doesn't work at all.  In our case it is working, but only for some users.  We thought it might have been a permissions issue, but not matter
    what permissions we seem to give to test accounts they still don't work.  We've set up a test account, for example, that is a member of the 'application owners' group, but cannot produce any search results with it.
    The SharePoint Foundation server is running on Windows 2008 Server Foundation, with a separate SBS 2003 DC.  
    Any help most appreciated.

    Hi Alex, thanks for your response and apologies about the late reply - didn't realise someone had responded until now!
    Agreed that this looks like a permissions issue, but we're stumped as to what it could be.  The 'test' account displays this problem - if we try and search on 06BSL
    we get no results, but it does appear that this account has full control over this document (see below).
    Note that the 'Manage Permissions' page presents a comment 'This list item inherits permissions from its parent. (Customer QA & Product Management)' which is what we're
    expecting.
    The indexing schedule is set to 5 minutes. 
    Appreciate your help with this, as we've spent a huge amount of time on this problem but don't seem to be any closer to a resolution.
    Cheers,
    Damian
    Check permissions result (this result is the same for the list or for the document itself):
    Permission levels given to test (DOMAIN\test)
    Full Control
    Given through the "QA Application Owners" group.
    Design, Contribute, Read
    Given through the "QA Application Members" group. 

  • Why does GarageBand audio work for guest user but not my account?

    Hello, I have a 15-inch MacBook Pro (2.2 GHz Intel Core i7, 4GB 1333 MHz DDR3) from late 2011 that I bought brand new in 2012. I'm running OS X Mavericks 10.9.4 and my MacBook has 500 GB of storage.
    About a month or two ago I tried to download the new GarageBand (10.0.2) but I had trouble completing the loops download. The download would stop halfway through because of a network error. So last week I decided to try to download it again, and I was able to do so after reading some discussions about the issue. I successfully completed the download in safety mode and then I restarted my MacBook. At this point I was able to open GarageBand 10.0.2 and create a new project. Unfortunately, there was no audio coming through the output and sound bar for the various audio components in GarageBand. I had no audio when previewing the loops or playing it back in an audio track. I didn't really test anything else out because I figured I needed to fix this problem first. I have read many discussion boards about audio problems with GarageBand. I have already made sure everything is set properly in the GarageBand preferences and the audio preferences in system preferences. I've tried restarting GarageBand and restarting the computer.
    This evening I found a discussion from the username icewhatice and they seemed to have had my exact problem. I'm not sure that I found the answer on this discussion though. For reference, this is what icewhatice posted: "I have no audio coming from Garageband 10.0.2. Downloaded it on Saturday and have spent the last two days trying to figure out why it won't work. I'm using a macbook pro with an Alesis QX49. GB registers keyboard when I plug it in but no sound whatsoever, not even from the onscreen keyboard. It seems to read the keyboard as if I play a C chord, it appears in the display. I've done all the obvious stuff like check preferences, restart, I've deleted and downloaded new GB several times and always with same result. Actually, it took me about four attempts to download it in the first place as I was getting an internet connection error message right at the end of the download, and I see others have had that problem. Managed to solve that by downloading in safe mode but now the no sound thing is driving me absolutely crazy because I can't play my keyboard!!!!! Also, worth noting that there is no audio level being read anywhere, I believe in the new version this appears in the volume control at the top. I've also looked into it potentially being a problem with my keyboard and it possibly needing an update but can't find any difinitive answer for that anywhere. I've stopped looking into that because the on screen keyboard doesn't even work - if that worked then I would know at least GB works and it's something to do with the keyboard. So, I am at a complete loss. If anyone has any ideas about why this is happening or what I could do to solve then I would be very grateful."
    After reading this, I realized that I am unable to create new tracks, and I realized that I have the same problems with old projects saved from the last version of GarageBand I had. I have not tried to download GarageBand again since it did not work for icewhatice. léonie ended this post by saying: "Something is certainly wrong - either the current project, some settings in your user account, or the downloaded GarageBand version. Or incompatible software may be interfering. If a new project does not work, try to test by logging into a different user account, for example the "Guest User" account. Create a new project using this account. Does GarageBand work better from this account?  Then we will need to troubleshoot your preferences."
    I have tried this and started a new GarageBand project in the "Guest User" account. GarageBand was working fine in the "Guest User" account and all of the audio was working properly. Does anyone know how I should troubleshoot my preferences?

    If an application is working in a different account, but not in your regular account,try t find out, what you configured differently in your own account, for example start-up items or preference panes you are using, applications and other helper tools, that are only installed for your regular account. As a first guess, remove GarageBands preference files from the user library in your Home folder.
    But you will have to reset all settings you did in the GarageBand preferences dialog. And GarageBand will not remember the last project. You'll have to find the file manually.
    Remove these files from your User Library to a folder on your Desktop:
    ~/Library/Containers/com.apple.garageband10/
    ~/Library/Preferences/com.apple.garageband.plist
    ~/Library/Caches/garageband
    Quit GarageBand, then remove the files to a folder on the Desktop and restart the computer, before trying again to open GarageBand.
    You user library may still be hidden, as is the default in Mavericks: To open your hidden user library:
    Select the "Home" folder icon (the little house)  in the Finder's sidebar and press the key combination ⌘J to open the "view options".
    Enable "Show Library Folder".
    Then open the Home folder and open the Library folder inside and navigate to the Preferences, Caches, or Containers folder. Remove these folders completely - don't leave anything inside:  ~/Library/Containers/com.apple.garageband10/,
    ~/Library/Caches/garageband  .

  • I can't open firefox the running but not responding window opens and says to close the existing window. I can't do that shutting down the computer doesn't do anything to help. I've done all the suggestions here. I've uninstalled and reinstalled firefox

    Firefox will not open. I get the firefox is already running but not responding window... I have tried rebooting with no help. I have tried to end the process via cntrl+shift+esc and nothing firefox is listed to end. I have tried find the app data via the run icon in the start up window, I have no run icon on this system (Acer with windows vista(?)
    == This happened ==
    Every time Firefox opened
    == The computer was hard shut down and did a improper shut down scan when it was restarted ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)

    I am having a similar problem. Running Xp.
    Latest revision of firefox.
    After using firefox for a while if I exit, parent.lock is locked and i have to reboot to reload firefox.
    I have killed all firefox applications from task manager (usually there are none). and I have tried 3 different "file unlock" programs including unlocker to no avail.
    I also recently installed a program that shows -all- open files, and parent.lock is not listed, and thus not closable/unlockable from there.

Maybe you are looking for