Items with no label
3335 Discussions

SR300 multiple processes question

ewu12
Novice
3,002 Views

Hi,

I have a object to detect contour by blob function ,

when i got the object contour data ,I want to get the object distance within contour.

how to do this purpose ?? blob process switch depth stream and mapping point data ??

thanks

Edison.

0 Kudos
6 Replies
idata
Employee
260 Views

Hi Edison,

 

 

Thanks for reaching the RealSense community support, we understand that you want to be able to get object distance from a point using blob. I was able to research on my end and I found a couple of URL's that might come handy in order get this data from a blob contour image, I'll include them below:

 

 

Blob Tracking documentation (SDK 2016 R2): https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_blob_blob_tracking.html Blob Tracking

 

 

Discussion about the distance between camera and Blob object: https://software.intel.com/en-us/forums/realsense/topic/537254 Distance between camera and the Closest detected Object or Blob?

 

 

Feel free to review this information and with the documentation on blob tracking try to setup your project so you can get the object distance you need, in case you need more information, let us know and we can investigate further on this scenario.

 

 

Have a great day!

 

 

Regards,

 

Leonardo L
0 Kudos
ewu12
Novice
260 Views

Hi, Leonardo

I had got the object contour.

then I want to get the depth value in the contour point around.

Can I got the depth value by blob function ?? or other means

thanks for your reply.

Edison.

0 Kudos
idata
Employee
260 Views

Hi Edison,

 

 

Allow me to investigate more on this one and I'll get back to you as soon as I have more information for you.

 

 

Regards,

 

Leonardo L
0 Kudos
ewu12
Novice
260 Views

Hi, Leonardo

follow your reply , https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_blob_extracting_blob_data.html https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_blob_extracting_blob_data.html

the first sentence >> "You can extract blob data from any depth image produced by your application's sensor. A depth image is a 16-bit gray-scale image in which a point's color value indicates its distance from the sensor."

How could i got the 16-bit gray image data ?? example code ??

thanks.

Edison.

0 Kudos
idata
Employee
260 Views

Hi Edison,

 

 

We have investigated further on this scenario and you can perform the following: Get the Depth image of the blob as shown in lines 128 - 138 (138 uses blob->QuerySegementationImage(image) in the DF_BlobViewer sample. Then use this depth image to get the vertices using QueryVertices as described in the last post in this thread: https://software.intel.com/en-us/forums/realsense/topic/537254 https://software.intel.com/en-us/forums/realsense/topic/537254. See the DF_Projection sample for how to use the QueryVertices function to retrieve depth values. In DF_Projection, look at functions ColorToDepth and ColorToWorld for more ideas on how to get depth data.

 

 

As for extracting the blob data from the 16-bit gray scale image, you can use the code for Example 78 of the SDK documentation and get the blob data from the depth image.

 

 

We hope you find this information helpful.

 

 

Regards,

 

Leonardo L
0 Kudos
idata
Employee
260 Views

Hi Edison,

 

 

We are writing to follow up on your thread, let us know if you need more assistance with the blob data extraction, we'll be looking forward to your reply.

 

 

Regards,

 

Leonardo L
0 Kudos
Reply