Kinect 2 Depth frame - Body data

Hi,
I am new to Kinect 2; I would Like to develop body Measurement using kinect 2 sdk. I came across it requires the depth frame player data to get depth of the each pixel; based on this data i can mesure the body width and height, belly size;  Any one
know how to get player data from depth frame ? suggest me good idea.
Regards
Kumar
Hemakumar

couple things, because you are not releasing the frame that you were notified, the runtime is delaying when you get another frame since you are not respecting the contract. Add a minimum add the using statement so you are releasing the frame provided to
you.
using (ColorFrame colorFrame = e.FrameReference.AcquireFrame()) {}
If you want to use polling, don't subscribe to events and just keep requesting frames when you want them.
Carmine Sirignano - MSFT

Similar Messages

  • I want to know the exactly when the Kinect gives depth frame and color frame in a period of one frame

    Hi, I'm currently using Kinect for Windows v2 to get a blurry sequence of color frames as well as corresponding depth frames. 
    It seems to me that the depth frame is acquired after the exposure time of the color frame. I am using the sample in the CoordinateMappingBasic to acquire the depth frame and the color frame at the same time. 
    But as i've found out by the aligned depth map with color frame, i think Kinect gives depth frame at the end of the exposure time of color frame. I've tried to obtain timestamps by calling a function iColorFrame->get_relative_time, and for the same number
    the timestamps show that depth frame is acquired prior to color frame, which opposes what i said above.. 
    Is there some way that i can know the exact time the Kinect gives depth frame and color frame in a period of one frame.
    Thank you in advance.

    Depth is generated based on IR information so when you acquire the frame, that is when it was created. Using the Multisource Frame Reader(MSFR) this does a lot under the covers to align the color and depth frame. If you want to do your own synchronizing,
    you can use a polling thread to acquire depth on one and color on the other and do your own mechanism that is similar to MSFR. You will never get Color and Depth to align exactly on a particular timestamp. Since color is its own camera, the only thing
    you can be assured of is when the color frame is acquired, the runtime will give you the closest depth frame that will align to it.
    Carmine Sirignano - MSFT

  • Kinect Pb depth ans streams color (WDF KinectSensor Interface 0)

    My English is pretty poor, but I am going to try to explain my problem .
    I connected my kinect recognized well later I make the kinect v2 configuration verifier all the stages are validated except the last one:
    Verify kinect depth and color streams
    Detects depth and color stream latency
     results : No depth frames received from kinect
     FPS : 0
    And 2 black screens.
    Then in ring peripherals :
    WDF KinectSensor Interface 0 presents a problem at the level of the driver.
    There is a problem at the level of the driver of WDF KinectSensor Interface 0. The driver must be reinstalled.
    What I made but without result.
    Information on the ring peripheral :
    Nom:
    WDF KinectSensor Interface 0
    ID:
    USB\VID_045E&PID_02C4&MI_00\8&39E64BF3&2&0000
    Code d’erreur:
    10
    There is a problem at the level of the driver of WDF KinectSensor Interface 0. The reinstallation of the driver can solve this problem.
    Problem at the level of ring peripherals PnP
    There are problems at the level of certain ring peripherals PnP. Windows is going to take additional measures to solve these problems.
    In the administrator of ring peripheral, I have kinect sensor devices and down I have wdf kinectsensor interface 0 with a triangle and an exclamation mark,its properties and in etat of the ring
    peripheral I have:
    This ring peripheral cannot start. (Code 10) {The operation failed}
    The wanted operation was not able to be brought to a successful conclusion.
    Here is I tried everything, I uninstalled, reinstalled, updated all my drivers as well as Windows, nothing of walking(step).
    I specify that I have Windows 8.1 pro, I have a xeon firepro w8000, 2 e5 2620, a cardmother with usb 3.0 with the controller renesas.
    I connected well the kinect with the adapter Windows, it ignites in white on the other hand the kinect has no light of lit(switched on).
    Here is thank you for your help, the I do not understand too much what it takes place.

    You need to have a least an Intel or Renesas USB3 chipset that is internally connected to the PCI Express Gen 2.0 bus of the motherboard. If the device cannot load the driver you will get the issue you have described. See troubleshooting guide for
    some steps to resolve:
    https://social.msdn.microsoft.com/Forums/en-US/20dbadae-dcee-406a-b66f-a182d76cea3b/troubleshooting-and-common-issues-guide?forum=kinectv2sdk
    Carmine Sirignano - MSFT
    Thank you for having answered me, I have just seen your message, on the other hand I connect directly my kinect at the mothercard, with a controller Renesas, thus I should have no this problem,
    I verified my drivers, I have the last versions. If you have another idea

  • Manually mapping depth frame pixels to 3D values

    I need to be able to map pixels from a saved depth frame back to their 3D values and do this offline without the Kinect sensor (so I can't use the Coordinate Mapper). I have grabbed the camera intrinsics for my sensor and computing the basic transform is
    straight forward (given the CameraIntrinsics structure ci and a depth map pixel at [px, py] with value depth):
    z = depth / 1000.0
    x = (px - ci.PrincipalPointX) * z / ci.FocalLengthX
    y = (ci.PrincipalPointY - py) * z / ci.FocalLengthY
    However I cannot figure out exactly how to use the RadialDistortion*Order parameters in order to get the same answer that I get out of MapDepthPointToCameraSpace(). It is always close, but the radial distortion does not change things much.
    I found an equation for undistorting x and y to x' and y' like:
    x' = x * (1 + r^2 * k1 + r^4 * k2 + r^6 * k3)
    where k1, k2, and k3 are the parameters in the CameraIntrinsics and r is a radial value for the pixel. I am not sure if it is:
    r = sqrt(x*x + y*y)
    with x and y from above (so units in meters) or if there is some other unit for the distortion correction factor. Also, the factor seems to consistently shift points the wrong way from what I get out of the coordinate mapper, so maybe I need to divide by
    the factor instead. I have tried several different inputs, but none give quite the right answers. And being a 6-order equation, it is hard to tell exactly how I am off.

    Thanks for your ideas.
    I have already tried using fog. It reduces the problem all right, but to completely eliminate the problem, I have to add too much fog.
    The size of the texture does not matter. But the relationship between the size of the texture and the size of the area of the ground I map it too does. -As does (unfortunately) the cameras height above the ground. Changing this relationship also increases the mosaic looking effect on the part of the ground close to the camera.
    Filtering is a good idea. In fact, the idea of mapping one pixel on the screen to several pixels on the bitmap is a kind of filtering. I just need to find a way of filtering that gives similar results, but works faster. Using different prefiltered versions of the source image for different distances could help.
    A crazy idea would be to use fractal math in stead of a bitmap as the texture source. This could eliminate both the mosaic problem of the foreground and the noisy flickering of the background (?). Could that be possible to implement? -Any ideas on how? -Other ideas?

  • Which full frame body - EOS 6d or Mark III

    Hi 
    I am graduating as a cinematographer soon and considering a new camera kit. Since I am also a hard core still photography lover, I have thought of investing a full frame sensor body. 
    I will be using my new camera equally for both still and motion picture photography. 
    I would like to know the reviews on the Canon EOS 6D and how it compares to the EOS 5D MARK III. 
    I was thinking I should go for the cheaper full frame body ( EOS 6D) and invest on the lens range - where I'm thinking of investing in the L series IS USM category lenses. 
    I would like to know from users their honest opinion from experience. 

    This query has come up before and again, as  5D user, there is really no comparison with the two except price.
    The 5D is your choice if you can afford it.
    I have read, do not own, a 6D is not weather proof.  Despite what Canon may claim about it.
    The 5D Mk III and the "kit" lens 24-105mm f4 is a fantastic combo. Remember the old adage, buy the best and cry once.
    There is a reason the price is so different.
    EOS 1Ds Mk III, EOS 1D Mk IV EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 70-200mm f2.8 L IS II, Sigma 120-300mm f2.8 EX APO
    Photoshop CS6, ACR 8.7, Lightroom 5.7

  • Which full frame body? EOS 6D or 5D Mark III

    Hi 
    I am graduating as a cinematographer soon and considering a new camera kit. Since I am also a hard core still photography lover, I have thought of investing a full frame sensor body. 
    I will be using my new camera equally for both still and motion picture photography. 
    I would like to know the reviews on the Canon EOS 6D and how it compares to the EOS 5D MARK III. 
    I was thinking I should go for the cheaper full frame body ( EOS 6D) and invest on the lens range - where I'm thinking of investing in the L series IS USM category lenses. 
    I would like to know from users their honest opinion from experience. 

    "Since I am also a hard core still photography lover ..."
    To me this says it all. There is no choice except to get the 5D Mk III. The 5D is simply head and shoulders above the 6D, hence the lower model number. Don't kid yourself with the 6D is just as good. It is not.
    That is, of course, if the budget allows. You must consider the whole!
    EOS 1Ds Mk III, EOS 1D Mk IV EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 70-200mm f2.8 L IS II, Sigma 120-300mm f2.8 EX APO
    Photoshop CS6, ACR 8.7, Lightroom 5.7

  • Content frame body container template issue

    Dears,
    I use region template Content frame body container it's a parent region ,  and i use another child region hide and show template , and i have text item like item_1 , item_2 , the problem i want to make item_2 in grid layout  Start New Row = no
    but the item_2 item not be in the same row with item_1 ?
    why ? and how can solve this problem ?
    Thanks

    Anyone?

  • IMAQ AVI Read Frame vs. IMAQ AVI2 Read Frame, no data terminal

    Hi,
    I just noticed when dropping a IMAQ AVI2 Read Frame vi in place of an older IMAQ AVI Read Frame vi, there is no "data out" terminal.  I do make use of this feature to add data to the frames of the AVI.  Is there supposed to be an alternative way to store this frame data, using the imaq image custom info perhaps?  

    Hello David,
    You are correct in that the data out terminal is no longer available in the AVI2 functions. However you can use the IMAQ Read Custom Data and IMAQ Write Custom Data functions. These allow you to write and read custom data to the IMAQ images using specified keys. In this way you can add miscellaneous data to your images for later use.
    Earl C
    Applications Engineer
    National Instruments

  • Inconsistent placement of anchored text frame in data merge document

    Just writing up this bug so that anyone else who encounters it can find out what's going on with less head-scratching.
    It seems that InDesign's data merge feature gets confused when there are anchored objects in a text frame that's anchored inside another text frame, which can result in:
    exported PDFs that don't match the InDesign preview when viewed in Acrobat (so, nasty surprises on some pages after exporting)
    InDesign previews that - bizarrely - show differently depending on whether you navigated to the preview by hitting the arrow keys in the Data Merge box or by entering a number.
    (sadly I can't provide a file for confidentiality reasons - but the problem point had multi-line data merge entries, a text frame that was anchored in another text frame of equal width, and anchored images and text frames in this anchored text frame)
    There were certain entires where, if I navigate to them in the preview using the 'next' and 'previous' keys, there was 4mm less space between the nested text frame and the previous line than if I navigate to it by entering the number. Exporting as a PDF through data merge used the variant with more space.
    Re-working the area in question so that the nested text frame wasn't needed seems to have removed the problem (but loses the ability to vertically align these elements in a fixed size frame that is in the text flow).

    You didn't say what version of ID, or whter a single or multiple record per page merge, but the Preview is known to be buggy for multiple records since CS5 and might be for single records as well.
    I have an annual directory that is built by data merge with one section in each listing as an anchored frame, and I've never had a problem, but it's not as complex as your description, nor do I ever merge to PDF (though I've heard here from several users that it's more reliable).
    One thing you might want to try is merging without the preview step, but do it from a "fresh" file by copying and pasting your placeholders into a new document. If the problem is with the preview it seems that it "infects" the file and even merging without touching the preview button may not work.

  • How to export mail message body data detectors information, not address bok

    Is there anyway to export Apple mail's "data detectors" information within the message body other than to the address book? I don't want to export the other non detector information contained in the body of the message. I would also like to include From, Subject and Date. Preferably the export result would be in a organized comma format.
    Any suggestions?
    Thanks in advance.

    James,
    Two routes to try come to mind, the first being Applescript. Mail is obviously "aware" of the info contained in the detectors, and of course it knows all about what is contained in the header. You can probably use Applescript to extract the desired data, placing it in a Text Edit document. It has been some time since I haves used Applescript myself, so I won't be much help in guiding you. Regardless, you would need to teach yourself how to use Applescript, even with assistance.
    The other route to take would be to drag these emails out of Mail to the Finder, creating standard text files. You could then handle them in one of the command line text editors- scripted, of course- to extract and format the needed data. Again, this is something you'd need to explore on your own.
    Since these messages all have the same formatting, it is simply a matter of identifying the data you need, then placing that data in a properly formatted text document. Generally speaking, this is part and parcel of what both Applescript be text editors do.
    Scott

  • SOAP BODY data to be Put into SOAP Header

    Hi All,
    Could you kindly help me out in this issue?
    Basically our Requirement is to send the UserID and Password stored in
    the R/3 system to the 3rd Party Server as a part of the SOAP Header .
    Presently I am using a Message Interface which takes the parameters
    UserID and Password and hence its placing them in the SOAP BODY which in
    turn in resulting in Rejection of the data sent being us. So I guess we
    have to do some take out these parameters from Message Interface and
    try out something else.
    So Could you help us out in this issue since we are stuck  and hence not
    able to proceed any further.
    Here are some Details :
    Here is the extract from the XML File:
    A) Format in XI
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:DPSrequestToken xmlns:ns1="http://tempuri.org/message/">
    - <Username>
      <Username>ANYAGENT</Username>
      <Password>p2ssword</Password>
      </Username>
    - <DPSrequestToken>
      <version>1</version>
      <vendorID>0142</vendorID>
      </DPSrequestToken>
      </ns1:DPSrequestToken>
    B) The way the file needs to be sent to the 3rd party server
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Header>
            <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                <wsse:UsernameToken>
                    <wsse:Username>ANYAGENT</wsse:Username>
                    <wsse:Password>p2ssword</wsse:Password>
                </wsse:UsernameToken>
            </wsse:Security>
    </SOAP-ENV:Header>
         <SOAP-ENV:Body>
              <m:DPSrequestToken xmlns:m="https://tpvs.hmrc.gov.uk/dpsauthentication">
                   <m:version>1</m:version>
                   <m:vendorID>your 4 digit vendorID</m:vendorID>
              </m:DPSrequestToken>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Basically as mentioned above
      <Username>ANYAGENT</Username>
      <Password>p2ssword</Password> ,Tokens should be sent in the SOAP
    Header which is now being sent in the Body and hence causing problems.
    Do get back to me in case you need any clarifications on this issue.
    Best Regards,
    Chandan
    Message was edited by: Chandan A C

    see this --> page 2
    HTTP Adapter error.
    Rgds

  • Increase the call depth in JRA data

    It seems that by default, I can only access 15 levels of call stacks for one method's callers in JRA data. Does any of you know how I can increase the call depth in JRA call stack?
    Thanks much!!

    Unfortunately you cannot change that value. I'll put it on the list of things we want to do for the next version, though.
    Thanks for letting us know,
    /Staffan

  • How second frame transfer data to main frame

    I have main frame,and another frame that appear after user click to button on main frame . The problem is that i don't know how tranfer data that user input in second frame to main frame.
    Thanks to ALL

    your main frame needs to hold a reference to the second frame after its created. then use method calls (or even listeners depending on when you want the main to have the data) to retrieve the data.
    you may need to do some tweaking/redesigning of how your frames work with the data they're displaying.
    Takis

  • REST Error Response, Include BODY data

    I am using the REST Web Service to build an API for some VIs.
    I want to do the following:
    If an error occurs, then change the response such that it is "500" or some non-OK response.
    Include in the return data the error information (error code, etc.)
    I was able to do number 1 above by calling the Set HTTP Response Code VI.  However, when I do this I am not able to return data (the body is empty).
    Is there a way to return data while also setting the response code to a non-OK response?
    If not, then I have to always return "200-OK", even when errors occur, and include an error data structure in every transaction.
    Solved!
    Go to Solution.

    I spoke with my NI support person and it sounds like this same issue was opened in their issue tracking system back in April 2013.  There may be a solution in the future, but for now this is how the REST service works in LabVIEW.
    My work around will be to always return the error cluster; the client will look at the error cluster to determine if there was an error.
    (Always returning the error cluster is not ideal as it makes for a larger payload and that it breaks the convention of using the HTTP response codes to convey an error.)

  • How to Read the content of E-mail Body data

    Hi All,
    I am creating an E-mail webdynpro application, In that i want to read the content of body part. what will be the type of that TEXTEDIT field?
    and how can i read the content ?? is there any method or function module for that ???
    Thanks.

    Hi,
    There is standard WDA available on sending Emails. It is RPLM_MP_SENDEMAIL_COMP.
    See the code in this WD application and get the relevant logic for your functionality.
    I hope this will solve your problem.
    Thanks,
    Chandra

Maybe you are looking for