Software Archive
Read-only legacy content
17061 Discussions

lighting calculation

Yuri_B_1
Beginner
288 Views

Hello. 
Have faced with some technical problems and I couldn't find solution anywhere (it seems that there is no common approaches). Is there some ways in sdk for lighting calculation in the room or which places in s could help me to implement it? For example i want to make some actions in case of lighting lack.
 

0 Kudos
2 Replies
Andradige_S_Intel
288 Views

SDK doesn't provide a direct method to do what you are asking.

0 Kudos
samontab
Valued Contributor II
288 Views

The Intel RealSense SDK does not provide that functionality.

Although, it should be trivial to have a rough estimate of the current lighting conditions, as you could just get the pixel data, and see their values. The closer they are to 0, the darker the room is, and the closer they are to 255, the lighter the room is.

You could change the color space from RGB to something more appropriate, like Lab, or HSV, but for a rough estimate RGB should be fine.

0 Kudos
Reply