Abstract:
The disclosure provides a LED light illuminating control system and a control method for illuminating LED ceiling lights, the system being applied in an electronic device. A detecting unit determines the entry of a person into the room, a capturing unit positioned on a ceiling of the room for captures image, and all the LED lights are illuminated, then all the LED lights other than those illuminating the location of the person are switched off. When the person moves to another part of the room, the LED light illuminating control system controls all the LED lights to illuminate, and after a set period switches off all the LED lights other than those illuminating the new location of the person, thus saving a lot of power.

Description:
BACKGROUND 
       [0001]    1. Technical Field 
         [0002]    The disclosure relates to illuminating control technology and, more particularly, to a LED light illuminating control system and a control method for illuminating LED lights. 
         [0003]    2. Description of Related Art 
         [0004]    LED lights are popular. However, a user must trigger a switch to control all LED lights or a part of LED lights manually in order to control illumination, which is not inconvenient for the user. 
         [0005]    Therefore, what is needed is a LED light illuminating control system to overcome the described shortcoming. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0006]      FIG. 1  is a block diagram of an electronic device applied to a LED light illuminating control system in accordance with an exemplary embodiment. 
           [0007]      FIG. 2  is a block diagram of the LED light illuminating control system of  FIG. 1 . 
           [0008]      FIG. 3  is a schematic view of LED lights illuminated by the LED light illuminating control system of  FIG. 1 . 
           [0009]      FIG. 4  is a flowchart illustrating a control method for illuminating LED lights in accordance with an exemplary embodiment. 
       
    
    
     DETAILED DESCRIPTION 
       [0010]      FIG. 1  is a block diagram of an electronic device applied to a LED light illuminating control system in accordance with an exemplary embodiment The LED light illuminating control system  10  is applied in an electronic device  1 . The electronic device  1  includes a processor  2  and a storage unit  13 . The processor  2  controls the electronic device  1  to work and includes the LED light illuminating control system  10 . The electronic device  1  is connected to a detecting unit  11 , a capture unit  12 , and a number of LED lights  14  which are positioned in a room, such as a classroom, an office, or a factory. In the embodiment, as shown in  FIG. 3 , all the LED lights  14  are on a ceiling  5  of the room. The detecting unit  11  detects an environment of the room at real time and determines whether or not the environment changes, it determines when a person comes into the room. 
         [0011]    In the embodiment, the detecting unit  11  is a temperature sensor which senses a temperature of the room. When there is not any person in the room, the temperature of the room is stable and all the LED lights  14  are turned off. When a person comes into the room, the detecting unit  11  detects the greater body temperature of the person. 
         [0012]    In another embodiment, the detecting unit  11  is a mechanical switch. The switch is near a door of the room. When the switch is triggered by a person, that means the person comes into the room, and all the LED lights  14  are turned on. 
         [0013]    The capturing unit  12  is positioned in the middle of the ceiling  5  of the room and captures an image  6  of objects under the ceiling  5  of the room. In the embodiment, the capturing unit  12  is a wide-angle lens. All the LED lights  14  are aligned on the ceiling  5  of the room. For example, all the LED lights  14  are aligned in series or in parallel based on a size of the ceiling  5  or a distance between the ceiling  5  and a floor of the room. 
         [0014]    The storage unit  13  stores the size of the ceiling  5 , an image  7  which includes no person on the floor in a circumstance that all the LED lights  14  are turned on, and a predefined set of coordinates based on a size of the image. 
         [0015]    As shown in  FIG. 2 , the LED light illuminating control system  10  includes a LED light control module  21 , a capturing control module  22 , an image processing module  24 , a timing module  25 , an image comparing module  26 , and a position determination module  27 . 
         [0016]    When the detecting unit  11  detects that a person comes into the room, the LED light control module  21  turns on all the LED lights  14  on the ceiling  5 . Therefore, the whole room is illuminated for the benefit of the person. The capturing control module  22  controls the capturing unit  12  to capture an image  6  including the person  60  on the floor of the room and stores the captured image  6  in the storage unit  13 . The image processing module  24  performs image processing for the captured image  6  which includes the person on the floor and the stored image  7  which includes no person on the floor. The image comparing module  26  compares the captured image  6  with the stored image  7  to acquire differences  60  between the two images  6 ,  7 . The differences  60  represent a body area where the person is positioned on the captured image  6 . For example, the image processing module  24  performs a color processing for the two images based on a color algorithm and the image comparing module  26  compares the color of the two images to acquire the differences  60 . 
         [0017]    The position determination module  27  calculates a size of the captured image  6  and acquires the body area  60  of the differences in the captured image  6  based on the stored predefined set of coordinates. The position determination module  27  further determines one or more of the LED lights  14  for an illumination area  50  for the person on the ceiling  5  based on a ratio between the size of the captured image  6  and a stored size of the ceiling  5  and generates a control signal. 
         [0018]    The LED light control module  21  controls the one or more LED lights within the illumination area  50  to maintain illumination for the person and turns off rest of the LED lights, in response to the control signal. If the person moves within the room, the timing module  25  starts to measure time in response to the control signal, and the capturing control module  22  controls the capturing unit  12  to capture an image on the floor at regular intervals. For example, the capturing control module  22  captures the image on the floor every two seconds. 
         [0019]    The image comparing module  26  compares the current captured image with the previously captured image at the previously interval to identify similarities. If the similarities are less than a preset value, namely, the two captured images are significantly different, that means that the person under the illuminated LED lights has moved to a place in the room which is not illuminated, and the LED light control module  21  turns on all the LED lights on the ceiling, facilitating the activities of the person in any place in the room which was previously not illuminated, and then the LED light control module  21  controls the LED lights  14  corresponding to the new location of the person to maintain the illumination in the new location and turn off rest of the LED lights  14  on the ceiling. 
         [0020]    Therefore, when the person moves to any position in the room, the LED light illuminating control system  10  controls LED lights  14  corresponding to that position to be turned on or maintained on and turns off rest of the LED lights  14  on the ceiling, thus saving power. 
         [0021]      FIG. 3  is a flowchart illustrating a control method for illuminating LED lights in accordance with an exemplary embodiment. 
         [0022]    In step S 31 , the detecting unit  11  detects the environment in the room. 
         [0023]    In step S 32 , when the detecting unit  11  detects that a person comes into the room, the LED light control module  21  turns on all the LED lights  14  on the ceiling. 
         [0024]    In step S 33 , the capturing control module  22  controls the capturing unit  12  to capture an image  6  including the person on the floor of the room and stores the captured image  6  in the storage unit  13 . 
         [0025]    In step S 34 , the image processing module  24  performs image processing for the captured image  6  which includes the person on the floor and the stored image  7  which includes no person on the floor. 
         [0026]    In step S 35 , the image comparing module  26  compares the captured image  6  with the stored image  7  to acquire differences between the two images. 
         [0027]    In step S 36 , the position determination module  27  calculates a size of the captured image  6  and acquires a body area  60  of the differences in the captured image  6  based on the stored predefined set of coordinates. 
         [0028]    In step S 37 , the position determination module  27  further determines one or more of the LED lights for an illumination area  50  for the person as tracked from the ceiling based on a ratio between the size of the captured image and a stored size of the ceiling and generates a control signal. 
         [0029]    In step S 38 , the LED light control module  21  controls the one or more LED lights  14  within the illumination area  50  on the ceiling  5  to maintain their current “on” state and turns off rest of the LED lights on the ceiling in response to the control signal. 
         [0030]    In step S 39 , the timing module  25  starts to measure time, the capturing control module  22  captures an image on the floor at regular intervals. 
         [0031]    In step S 40 , the image comparing module  26  compares the current captured image with the previously captured image. 
         [0032]    In step S 41 , if the two captured images are different, the LED light control module  21  turns on all the LED lights on the ceiling, facilitating the activities of the person in any part of the room, and the procedure returns to step S 34 . 
         [0033]    Although the present disclosure has been specifically described on the basis of the exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.