-
Notifications
You must be signed in to change notification settings - Fork 21
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
Ambient Light Sensors to detect RGB colors #9
Comments
Thanks. As discussed, until this is exposed by underlying platforms and shipped in devices there is little point in looking at it more seriously. I'll keep this open for now in case someone has more on this topic, else we'll revisit whenthese actually show up in devices. |
@anssiko Some Android devices as well as Windows API provide temperature in addition to 'clear channel' info. Temperature can be converted to RGB if needed. Do you think it worth experimenting with implementing support for it? RGB data can be used in e.g., accessibility applications or provided as an input for WB to Image Capture API. |
I'm all in for experimentation. Given good use cases and developer excitement we should consider baking it into a future spec update. (To clarify, we're talking about measuring color temperature, not infrared radiation.) |
I added this issue to the Level 2 milestone. |
Discussed in F2F at TPAC 2018. Related feature request to immersive-web/proposals#27. @AdaRoseCannon @kyungtae |
F2F minutes: https://www.w3.org/2018/10/23-dap-minutes.html#x06 |
For the record since the immersive-web link above no longer works: the issue above was moved and is now immersive-web/lighting-estimation#1 |
immersive-web/lighting-estimation#1 seems to pursue an XR Device API-specific ALS extension that is tied with an XRFrame. The ALS API's proposed RGB feature might still be useful for a webxr-polyfill. Cc @AdaRoseCannon to comment whether that'd be a valid use case. Another use case described in this issue is RGB data as an input to white balance in conjunction with Image Capture API. Cc @riju who has implemented some Image Capture API enhancements and experimented with OpenCV.js to investigate. |
A polyfill would definitely be a valid use case. |
Thank you @AdaRoseCannon. We will loop you in for review when this feature work moves forward to ensure it addresses your polyfill requirements. |
Well, I also observed that there is no color sensor in generic sensors spec, https://github.com/samsunginternet/color-sensor-js It's very basic, and schema is just :
Merging in Ambient light could makes sense, but in the case of tcs34725 It could be misleading because this sensor is active: it ships a white LED that light the material to observe. |
Modern sensors are capable of detecting not only luminance, but also actual RGB colors (e.g. http://ams.com/eng/Products/Light-Sensors/Color-Sensors-Proximity-Detection/TMD37821).
Might be interesting to evaluate the feasibility of including it to the spec/draft at some point. Note: it appears there are no actual devices currently supporting this.
Also, in case this ships, it should be directly subject to permissions.
The text was updated successfully, but these errors were encountered: