-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Image quality test #12281
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
Image quality test #12281
Conversation
sensor.set_option(rs.option.emitter_enabled, 0) | ||
|
||
frames = pipeline.wait_for_frames() | ||
for i in range(30): |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
- There isn't always a screen, log messages are kept in a file if needed.
- You can set the verbosity level f/e/i/d (fatal don't continue / error but try to continue / info message / debug message only)
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. |
|
||
meaningful_depth = True | ||
for key in dists: | ||
if dists[key] > total*0.9: |
There was a problem hiding this comment.
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
There was a problem hiding this 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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.e
Great first PR!!! |
Tracked on [LRS-902]