Patent ID: 9134539
Filing Date: 2015-09-15
Classification: G02B,G02F,H01S

Abstract:
1. A computer-implemented method for controlling laser lights in an electronic device, the electronic device comprising a first laser light and a second laser light, the method comprising: enabling a laser light function by switching on a first switch of the electronic device; sampling predetermined pixels from a background color of a current slide displayed on a display screen of the electronic device at each predetermined time interval, and obtaining RGB values of the predetermined pixels; calculating a first average of R values and a second average of G values of the predetermined pixels, according to the RGB values of the predetermined pixels; enabling the second laser light to emit laser with a second color using a second switch of the electronic device, the second color being distinct from a partial red background of the current slide, if the first average is greater than a predetermined color threshold value; and enabling the first laser light emit the laser with a first color using the second switch, the first color being distinct from a partial green background of the current slide, if the first average is less than or equal to the predetermined color threshold value and the second average is greater than the predetermined color threshold value.