Intel® Distribution for Python*
Support and discussions for achieving faster Python* applications and core computational packages.
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.

Generating depth_frame for testing

ensar
Beginner
285 Views

Hello,

I am a beginner and working on a realtime feedback algorithm which is doing measurements using Realsense D405. I need to make test frames, and I wanted to ask how would I do it? What is the actual format of the depth_frame. Can I generate frames using opencv and add depth to them in a way that it will work?

After I find the points which I need the distance between, I'm doing this to get to the points:

 

 

    point1_2d = points_2d[0]
    point2_2d = points_2d[1]
    u_dist = depth_frame.get_distance(point1_2d[0], point1_2d[1])
    v_dist = depth_frame.get_distance(point2_2d[0], point2_2d[1])

    point1 = rs.rs2_deproject_pixel_to_point(intrinsics, [point1_2d[0],
point1_2d[1]], u_dist)
    point2 = rs.rs2_deproject_pixel_to_point(intrinsics, [point2_2d[0], point2_2d[1]], v_dist)

 

 

 

0 Kudos
1 Reply
AthiraM_Intel
Moderator
268 Views

Hi,


Thanks for posting in Intel Communities.


This forum primarily supports queries related to Intel Distribution for Python. Please submit RealSense queries here:

https://support.intelrealsense.com/hc/en-us/requests/new


We will not be monitoring this thread further.



Thanks


Reply