Closed ljc19800331 closed 5 years ago
If I recall correctly,
import pyrealsense2 as rs
p = rs.pipeline()
prof = p.start()
s = prof.get_device().query_sensors()[1]
s.set_option(rs.option.exposure, new_value)
There is no way to make the exposure bounce between two values (at least using librealsense). You need to manually set exposure, wait, get image, set exposure, wait, get another image.
Did you try to enable the Infrared stream? I'm not 100% sure, but there is a chance you can see the dot via the other sensor. And, you can configure its exposure (through prof.get_device().query_sensors()[0]
and another option, called motion_range
) I see you are using the SR300, so resolution would not be great, but it is an idea.
@ljc19800331 any luck with your problem?
@dorodnic Thanks for your help. I think this can be closed.
Issue Description
I want to detect the laser spot on the phantom (similar to human skin) but there is a saturation problem for detection (figure 1). I could not detect the centroid of the laser spot based on the RGB image. I changed the exposure from realsense-viewer and the spot is easily detected (figure 2). However, I faced the problem when I used in Python with the code presented in #1011 and #2021 to change the exposure in python. I have two main questions:
Thanks.