The environmental relative humidity can be read using zed-open-capture (ZED Open Capture: sl_oc::sensors::data::Environment Struct Reference). However, after much searching I’ve not seen where/how to access this sensor with ZED SDK.
Does ZED SDK expose the environmental relative humidity to the Python API?
The humidity sensor is available on the PCB of the camera, but it does not provide useful information because affected by the internal temperature of the case.
For this reason, the value is not exposed by the ZED SDK API.
1 Like
Thank you for this information!
In our hardware, we remove the case around the ZED 2i camera as it’s enclosed in our own sealed case. The humidity sensor is very helpful for determining whether our broader enclosure is properly sealed. (Note, we do account for changes in temperature when interpreting the sensor reading)
I think I can read it through the hid interface, similar to what zed-open-capture does. Long term, please consider exposing the sensor’s value with the ZED SDK for folks with a similar use-case as ours.
Thanks as always!
1 Like
Just to follow up, I have a solution but it’s not a great one.
sl.Camera.close()
- Open with hidapi
- Query sensors device
- Close HID device
- Re-open ZED SDK camera connection
Usually this takes ~3s, but sometimes we have difficulty re-opening the camera connection and it’s closer to 15s. For obvious reasons it’s not ideal to have this downtime. However, our team has grown to rely on the humidity sensor for detecting leaks.
Can you please consider exposing the humidity value more directly as a feature request? I’d love to upgrade and avoid having to pause image capture.
Thank you,
Justin