Closed shrutichakraborty closed 3 months ago
Hi @shrutichakraborty Does your complete Python script have a wait_for_frames() instruction anywhere in it? If it does then you can place a for i in range(5): instruction directly before the wait_for_frames() line to skip the first several frames.
for i in range(5):
pipe.wait_for_frames()
A reason for skipping the first several frames is that auto-exposure may not settle down until after those initial frames, which can result in the first frames having bad exposure. This does not occur if auto-exposure is disabled and a fixed manual exposure value is used.
If you are able to try the above method in your script and do not see improvement, if you have access to the RealSense Viewer tool then please try resetting your camera to its factory-new default calibration using the instructions at https://github.com/IntelRealSense/librealsense/issues/10182#issuecomment-1019854487
Hi @shrutichakraborty Do you require further assistance with this case, please? Thanks!
Hi @MartyG-RealSense I have found that this error only occurs when the camera is in certain orientations and not others which is quite strange. Any reasons this might happen?
RealSense cameras will operate best when facing straight ahead, rotated 90 degrees straight up / down or diagonally tilted forward / back 30 degrees.
If the camera is tilted forward / back more than 30 degrees then the chance of problems occurring in the depth stream may increase.
Hi @shrutichakraborty Do you have an update about this case that you can provide, please? Thanks!
Hi @shrutichakraborty Do you require further assistance with this case, please? Thanks!
Case closed due to no further comments received.
Issue Description
Hello, I have a realsense D435i attached to a robot end effector, with resolution 1280x720. I have an object detection network and I use the camera's internal functions to convert the detected objects center positions in pixels to 3D coordinates. This was working fine until recently, when the pixel to camera coordinates function is giving completely wrong output but only in the first few frames. I am using the first 10 frames to get position of detected objects an dthen servo my robot to these positions so this is leading to big issues in my application.. What I am cocerned by is that this has started happening recently, can anyone think of reasons that could cause such an issue? I am using the camera's internal functions for getting the intrinsics :
To convert pixel to 3D point I use :
Where the intrinsics are :
As I said this code was working for me until recently. Can anyone think of what might have lead to the
rs.rs2_deproject_pixel_to_point
leading to incorrect results (gives a depth of more than 1m)? Could is be due to a change in the camera intrinsics? If so, what could have lead to this change and would I need to custom calibrate the intrinsics?I see that the results are wrong for the first few frames only, does anyone have any ideas (algorithms or post processing methods) to bypass this issue?Thanks!