-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get X,Y coordinates from X,Y,Z coordinates of realsense /OPEN3D COORDINATES IN REALSENSE #11929
Comments
Hi @BIGINCHI If the XYZ values of a pointcloud have been calculated with the SDK instruction rs2_deproject_pixel_to_point like line 72 of In regard to marking with circles using OpenCV, the only case on tis forum that I could find is #6239 (comment) where the RealSense user in that case uses OpenCV's HoughCircles() function. Their script is at #6239 (comment) and although it is a C++ script, the OpenCV sections of the code that contain the HoughCircles() function may provide some helpful ideas. |
Thank You @MartyG-RealSense for the quick reply , yes im using deprojection and its working here you can see 3 bounding boxes i get the coordinates and display in realsense viewer and it looks like this there is a big difference in points distance and scale , the coordinate system for both is different if open 3D is X y z realsense has to be x,z,-y i need help in converting open3d X,y,z coordinates to scale according to realsense environment. this is how it looks if i import the points directly without manipulating the coordinates. Thank you in Advance. |
Which RealSense camera model are you using, please? Most of the 400 Series models have a default Depth Unit Scale of 0.001. The D405 model has a default scale though of 0.01. When RealSense data is used with a non-RealSense tool, the depth scale of the non-RealSense tool should be set to the same depth scale as the RealSense camera. Otherwise, there will be incorrect scaling such as a pointcloud being too small. |
im using the D435i camera, sure ill try that. could you also share any references on how to play around with the scale and depth pointcloud of realsense. Thanks a Lot. |
The default depth unit scale of a RealSense camera can be changed to a custom value with the RealSense SDK instruction rs.option.depth_units as demonstrated in Python code at #1905 (comment) |
I researched your question but did not find a way to write axes onto an image when saving it, unfortunately. |
Thank you for the help. I have no further questions regarding this. |
Thanks very much. As you have no further questions, I will close this case. Thanks again! |
Issue Description
im using open3D to get x,y,z coordinates of the segments im detecting in my cloud . After detecting im converting the X,y,z coordinates to realsense coordinate systems , using the cloud points
def transform_point_from_realsense_open3d(cluster):
return([cluster[0][0],cluster[0][1], -cluster[0][2]])
are there better ways to convert my coordinates and how?
this snippet helps in converting open3d coordinates to realsense cloud coordinates
now im using opencv_cloudpoint_viewer.py from the wrappers/python/examples in librealsense
i want to convert realsense X,Y,Z coordinates to X,Y coordinates to view on a picture that for which im using
cv2.imwrite('./out.png', color_image) in the opencv_cloudpoint_viewer.py
how do i get proper X,Y coordinates, from X,Y,Z coordinates and mark them using opencv circle function
The text was updated successfully, but these errors were encountered: