Skip to content

Conversation

@AviaAv
Copy link
Contributor

@AviaAv AviaAv commented Oct 11, 2023

Tracked on [LRS-902]

@AviaAv AviaAv requested a review from Nir-Az October 11, 2023 11:30
@Nir-Az Nir-Az requested a review from OhadMeir October 11, 2023 13:03
@Nir-Az
Copy link
Collaborator

Nir-Az commented Oct 11, 2023

@AviaAv please work with @OhadMeir on how to understand the failures:
image

sensor.set_option(rs.option.emitter_enabled, 0)

frames = pipeline.wait_for_frames()
for i in range(30):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment about this loop


if save:
file_name = "output_stream.png"
print("Saved image in", os.getcwd() + "\\" + file_name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't print use the log mechanism you have imported.

  1. There isn't always a screen, log messages are kept in a file if needed.
  2. You can set the verbosity level f/e/i/d (fatal don't continue / error but try to continue / info message / debug message only)

@OhadMeir
Copy link
Contributor

Overall looks good. Since we had problems with some runs that may be affected from the camera positioning and lighting condition, and currently we all work from home, try changing the resolution to 1cm. Check both day and night (lights out in the lab) if we get a meaningful depth, it might help.

@AviaAv AviaAv requested a review from Nir-Az October 16, 2023 06:57

meaningful_depth = True
for key in dists:
if dists[key] > total*0.9:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment explaining this

@AviaAv AviaAv requested a review from OhadMeir October 23, 2023 06:56
Copy link
Contributor

@OhadMeir OhadMeir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

log.f("Error getting depth frame")
return False
if DEBUG_MODE and not color:
log.d("Error getting color frame")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log.e

@Nir-Az
Copy link
Collaborator

Nir-Az commented Oct 23, 2023

Please check he CI failure, always.

You need to make sure your test run on all required platforms, and passed
image

@Nir-Az
Copy link
Collaborator

Nir-Az commented Oct 24, 2023

Great first PR!!!

@Nir-Az Nir-Az merged commit 8b22653 into IntelRealSense:development Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants