Items with no label
3341 토론

how to get RGB and Depth data form R200 using openCV and librealsense

D111
초급자
3,159 조회수

hello friends:

I am planning using openCV and librealsense to get RGB and Depth data from R200 and I tested the code from link http://https://software.intel.com/en-us/articles/using-librealsense-and-opencv-to-stream-rgb-and-depth-data http://https://software.intel.com/en-us/articles/using-librealsense-and-opencv-to-stream-rgb-and-depth-data

As the function of that programm shows ,I get rgb and depth image from R200, but the depth image looks like not so good. I want to know how to deal with the problem and how to get the actual distance from an object to the camera.

Any help is appreciated!intel_admin

0 포인트
5 응답
idata
직원
1,438 조회수

Hi Zcwz2016,

Thanks for reaching out.

Well, that's weird. I recommend you to check https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_devguide_whats_new_in_sdk.html/ Intel® RealSense™ SDK 2016 R2 Documentation, there is a section called https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_epv_enhanced_photography.html Depth Enabled Photography and Videography, maybe you can find there how to change the focus of a picture, and there are also some measurement functions that you can use.

I hope you find this information useful.

Regards,

-Leonardo

0 포인트
idata
직원
1,438 조회수

Hi Zcwz2016,

 

 

I was wondering if you have updates.

 

 

Let us know if you still need help.

 

 

Regards,

 

-Leonardo
0 포인트
D111
초급자
1,438 조회수

Hi Leonardo

Thanks for you help.

In fact, I did not solve the problem. Now, I wonder whether can I find the measurement functions in librealsense like those in SDK 2016

 

0 포인트
idata
직원
1,438 조회수

Hi Zcwz2016,

 

 

Take a look to this link: https://github.com/IntelRealSense/librealsense/blob/master/doc/projection.md# pixel-coordinates, I didn't find any information about measurement functions, but maybe you can use the 3D coordinates to get the distance between the camera and the object.

 

 

I hope you find this helpful.

 

 

Regards,

 

-Leonardo
0 포인트
jb455
소중한 기여자 II
1,438 조회수

I can't help with the librealsense stuff, but once you have real-world coordinates for points, it's easy to work out the distance between them by using Pythagoras.

0 포인트
응답