Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.

Generating depth_frame for testing

ensar
Beginner
660 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
643 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


0 Kudos
Reply