- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I would do segmentation from high resolution blob(1920x1080). It was okay in the 2015 R5 SDK. But when I upgrade into the 2016 R1 SDK. It can not work now. It only can work in 640x480 resolution.
sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 1920, 1080, 30);
PXCMBlobData blobData=null;
PXCMBlobConfiguration blobConfiguration=null;
pxcmStatus segs =sm.EnableBlob();
PXCMBlobModule blobM =sm.QueryBlob();
if (blobM != null)
{
blobData = blobM.CreateOutput();
blobConfiguration = blobM.CreateActiveConfiguration();
blobConfiguration.EnableColorMapping(true);
blobConfiguration.EnableContourExtraction(true);
blobConfiguration.EnableSegmentationImage(true);
blobConfiguration.ApplyChanges();
}
sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_DEPTH, 640, 480,30);
sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_IR, 640, 480, 30);
pxcmStatus cs = sm.Init();
//the vlaue of cs is pxcmStatus.PXCM_STATUS_ITEM_UNAVAILABLE
if I comment out blobConfiguration.EnableColorMapping(true) , cs value become PXCM_STATUS_NO_ERROR. But
PXCMCapture.Sample sampleb =sm.QueryBlobSample()
sampleb is null. I still can not get the blob data. When I change
//sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 1920, 1080, 30); //change into sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 640, 480, 30);
Everything is fine. any idea?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried to use 1920x1080x30 setting in our sample codes and it did work. Please find the right usage @C:\Program Files (x86)\Intel\RSSDK\framework\CSharp\DF_BlobViewer.cs. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear David,
Thank you for your reply. However, I still can not get it to work on your sample code. When I change Blobprocessor.cs to use 1920x1080x30
if (_isColorActive)
{
//Note: You don't have to call EnableStream , this call is only for viewer display
instance.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 1920, 1080, 30);
// Enable blob color mapping
blobConfiguration.EnableColorMapping(true);
blobConfiguration.ApplyChanges();
}
When I run the program and click "Color Image" then intial failed.
Can you tell me how to verify that the setting of 1920x1080 can work? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I check the document.
It memtion about the blob algorithm that assume 640x480 and 30 fps.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page