CPC H05B 47/11 (2020.01) [F21S 4/20 (2016.01); F21V 33/0052 (2013.01); H05B 47/155 (2020.01); H05B 47/17 (2020.01); H05B 47/19 (2020.01)] | 18 Claims |
1. A lighting control method for an ambient lighting device, comprising:
starting an ambient lamp and a camera, wherein the ambient lamp includes at least one lighting strip, the lighting strip includes a plurality of lamp beads, and the plurality of lamp beads are arranged into a display frame;
reading preset frame configuration information, and dividing the display frame into a plurality of unit frames according to the frame configuration information, such that each unit frame correspondingly covers multiple lamp beads in the ambient lamp;
reading an environment reference image captured by the camera, and dividing the environment reference image into a plurality of regional images corresponding to the plurality of unit frames according to the frame configuration information; and
generating a lighting color value corresponding to each lamp bead in each unit frame, based on a main color tone of the regional image corresponding to the unit frame, and controlling the lamp beads correspondingly covered by the unit frame with the lighting color value to emit light,
wherein the generating the lighting color value corresponding to each lamp bead in each unit frame further includes:
distinguishing dark-light pixels and non-dark-light pixels in the regional image according to a preset dark-light threshold;
determining the lighting color value corresponding to the main color tone of the regional image according to a lighting color value of the non-dark-light pixels of the regional image; and
generating the lighting color value corresponding to each lamp bead in the unit frame corresponding to the regional image according to the lighting color value corresponding to the main color tone.
|