- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have been trying to look at the samples and documentation, but there is very little information on Processing/Java compared to C++. I'm trying to get an array of depth values using Processing, but so far I have not had any luck. I want to be able to compare the depth values in each frame. If anyone could provide an example, or advice it would be greatly appreciated.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are some java samples under C:\Program Files (x86)\Intel\RSSDK\framework\Java, please let me know if you still need help. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much for the reply. I'm trying to get an array of depth values similar to what you can do with the Kinect. I was not able to find that in the examples. If it's possible to provide an example of doing this in Processing it would be really appreciated. If it was there and I overlooked it, please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looking for this information as well please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the same problem.
here is the piece of code after I initialize the pipeline and create a foor loop for the first 300 frames. The documentation code sample is not initialized and the code doesn't compile unless it is initialized. Is there another way to do read the image buffer and have the stream be saved as a file?
if (sM.AcquireFrame(true) == pxcmStatus.PXCM_STATUS_NO_ERROR) break; // PXCM Status no error means there is some data available and I/O device is connected // retrieve the samples PXCMCapture.Sample sample=sM.QuerySample(); // work on the samples: sample.color & sample.depth System.out.println("Working on frame"+i); PXCMImage.ImageInfo iinfo=new PXCMImage.ImageInfo(); PXCMImage image=session.CreateImage(iinfo); PXCMImage.ImageData data; // how to initialize this?????? image.AcquireAccess(PXCMImage.Access.ACCESS_READ,data); // go fetch the next samples sM.ReleaseFrame(); System.out.println("Done with frame"+i);
Thanks,
ignacio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've been trying the same.
This is what I've got so far, but I'm missing how to interpret depth values. I was expecting millimeters, but it does not look like.
sts = senseMgr.AcquireFrame(true); if (sts.compareTo(pxcmStatus.PXCM_STATUS_NO_ERROR)<0) return; PXCMCapture.Sample sample = senseMgr.QueryHandSample(); if (sample.depth != null) { PXCMImage.ImageData dData = new PXCMImage.ImageData(); sample.depth.AcquireAccess(PXCMImage.Access.ACCESS_READ,PXCMImage.PixelFormat.PIXEL_FORMAT_DEPTH, dData); dData.ToIntArray(0, intDepth); sample.depth.ReleaseAccess(dData); for (int i = 0; i<floatDepth.length;i++){ if(i%100==0) println((intDepth)) } }

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page