Method for controlling projector and projector applicable to same
10194122 ยท 2019-01-29
Assignee
Inventors
Cpc classification
H04N9/31
ELECTRICITY
H04N9/3182
ELECTRICITY
International classification
H04N5/64
ELECTRICITY
H04N9/73
ELECTRICITY
H04N9/31
ELECTRICITY
Abstract
The present invention provides a method for controlling a projector and a projector applicable to the method. The method for controlling a projector comprises steps: enabling a projector, and projecting on a screen; enabling a sensing module, and obtaining an output image or a current environment image; processing the output image or the current environment image to obtain an RGB component, and calculating the gain coefficients of three channels RGB according to an automatic white balance algorithm; and adjusting the gains of the three channels RGB in the projector according to the gain coefficients. Using the method and the projector enables a projection screen not to be limited by colors, that is, screens with various colors can be chosen at ease, and the imaging effect of projection is not influenced.
Claims
1. A method for controlling a projector, wherein, comprising steps as follows: S1: enabling a projector, and projecting on a screen; S2: enabling a sensing module, and obtaining an output image or a current environment image; S3: processing the output image or the current environment image to obtain an RGB component, and calculating the gain coefficients of three channels RGB according to an automatic white balance algorithm; S4: and adjusting the gains of the three channels RGB in the projector according to the gain coefficients; the step S3 comprising: S31: obtaining an RGB component of the output image or the current environment image; S32: counting each average value of the RGB components, as Rave, Gave, Bave; S33: calculating a grayscale value Gary of the output image or the current environment image; S34: calculating the gain coefficient Kr of channel R, the gain coefficient Kg of channel G, and the gain coefficient Kb of channel B according to each average value of the grayscale value Gary and the RGB component; the grayscale value Gary is calculated as Gray=(Rave+Gave+Bave)/3; S35: and adjusting the R, G, B gains of each pixel in the projected image according to the gain coefficient Kr, the gain coefficient Kg, the gain coefficient Kb; the gain coefficients Kr, Kg, Kb are calculated as Kr=Gray/Rave; Kg=Gray/Gave; Kb=Gray/Bave; if the output image is captured in step S2, the method freely selects the screens of various colors and the influence of the projection will not be affected, if the current environment image is captured in step S2, the influence of the color temperature of the ambient light on the projection effect is removed.
2. A projector, including a projector body configured to project a projection on a screen, comprising a sensing module located on the projector body for obtaining an output image or a current environment image; and a control device connected with the sensing module and configured to process the output image or the current environment image, so as to obtain the gain coefficients of three channels RGB in the projector after calculation and adjust the gains of the three channels RGB according to the gain coefficients; the control device comprising: a reading unit for obtaining the RGB component of the output image or the current environment image; a counting unit, connected with the reading unit, for counting each average value of the RGB components, as Rave, Gave, Bave; a calculating unit, connected with the counting unit, for calculating the grayscale value Gary of the output image or the current environment image; a coefficient obtaining unit, connected with the calculating unit, for calculating the gain coefficients Kr, Kg, Kb of the three channels R, G, B according to each average value of the grayscale value Gary and the RGB component; and an adjusting unit, connected with the coefficient obtaining unit, for adjusting the R, G, B gains of each pixel in the projection image according to the gain coefficients Kr, Kg, Kb of the three channels.
3. The projector of claim 2, wherein, the sensing module is an RGB light sensor.
4. The projector of claim 2, wherein, the sensing module is an RGB light sensing matrix.
5. The projector of claim 2, wherein, the sensing module is a camera.
6. The projector of claim 5, wherein, the direction of the sensing module is the same as the projection direction of the projector body.
Description
DESCRIPTION OF THE DRAWINGS
(1) The accompanying drawings, together with the specification, illustrate exemplary embodiments of the present disclosure, and, together with the description, serve to explain the principles of the present invention.
(2)
(3)
(4)
(5)
DETAILED DESCRIPTION
(6) The present invention will now be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments of the invention are shown. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Like reference numerals refer to like elements throughout.
(7) The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms a, an and the are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms comprises and/or comprising, or includes and/or including or has and/or having when used herein, specify the presence of stated features, regions, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, regions, integers, steps, operations, elements, components, and/or groups thereof.
(8) Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
(9) As used herein, around, about or approximately shall generally mean within 20 percent, preferably within 10 percent, and more preferably within 5 percent of a given value or range. Numerical quantities given herein are approximate, meaning that the term around, about or approximately can be inferred if not expressly stated.
(10) As used herein, the term plurality means a number greater than one.
(11) Hereinafter, certain exemplary embodiments according to the present disclosure will be described with reference to the accompanying drawings.
EXAMPLE 1
(12) As shown in
(13) S1: enabling a projector, and projecting on a screen;
(14) S2: enabling a sensing module 2, and obtaining an output image or a current environment image;
(15) S3: calculating the gain coefficients of three channels RGB according to an automatic white balance algorithm;
(16) S4: and adjusting the gains of the channel RGB in the projector according to the gain coefficients.
(17) As shown in
(18) S31: obtaining an RGB component of the output image or the current environment image;
(19) S32: counting each average value of the RGB components, as Rave, Gave, Bave;
(20) S33: calculating a grayscale value Gary of the output image or the current environment image, wherein, Gray=(Rave+Gave+Bave)/3;
(21) S34: calculating the gain coefficients Kr, Kg, Kb of channel R, channel G, channel B, wherein, kr=Gray/Rave, kg=Gray/Gave, kb=Gray/Bave;
(22) S35: and adjusting the R, G, B gains of each pixel in the projected image according to the gain coefficients Kr, Kg, Kb.
(23) In operation, it shall start the projector first to project it on the screen. Then, the sensing module 2 is operated to obtain an output image or a current environment image. The output image or the current environment image is processed to obtain RGB components thereof, so as to calculate each average value Rave, Gave and Bave of the RGB components. Assuming that any one of the images has a sufficient color change, the mean value of its RGB components tends to be the same gray value Gray, so the gray value of the output image or the current environment is calculated as Gary=(Rave+Gave+Bave)/3. The gain coefficients Kr, Kg, Kb of the three channels R, G, B are calculated. Finally, the R, G and B gains of each pixel in the projection image are adjusted according to the three gain coefficients to realize the automatic white balance of the projector. According to the method for controlling a projector, if the output image is captured in step S2, the method enables the projection screen no longer limited by the color, that is, the method can freely select the screens of various colors and the influence of the projection will not be affected. If the current environment image is captured in step S2, the present invention can also remove the influence of the color temperature of the ambient light on the projection effect.
EXAMPLE 2
(24) According to the above embodiment, a method for controlling a projector is provided, and this embodiment provides a projector applicable to the method.
(25) The projector comprising: a projector body 1 for projecting a image on a screen; a sensing module 2 located on the projector body 1 for obtaining the output image or the current environment image; a control device 3 configured to process the output image or the current environment image, so as to obtain the gain coefficients of three channels RGB in the projector after calculation and adjust the gains of the three channels RGB according to the gain coefficients.
(26) Wherein, the control module 3 comprising: a reading unit 31 for obtaining the RGB component of the output image or the current environment image; a counting unit 32 for counting each average value of the RGB components, as Rave, Gave, Bave; a calculating unit 33 for calculating the grayscale value Gary of the output image or the current environment image; a coefficient obtaining unit 34 for calculating the gain coefficients Kr, Kg, Kb of the three channels R, G, B according to each average value of the grayscale value Gary and the RGB component; an adjusting unit 35 for adjusting the R, G, B gains of each pixel in the projection image according to the gain coefficients Kr, Kg, Kb of the three channels.
(27) Wherein, the calculating unit 33 calculates the grayscale value Gary as follows: Gary=(Rave+Gave+Bave)/3. The coefficient obtaining unit 34 calculates the gain coefficients Kr, Kg, Kb of the three channels R, G, B as follows: kr=Gray/Rave, kg=Gray/Gave, kb=Gray/Bave.
(28) The sensing module 2 is three RGB light sensors, which are simple, inexpensive, but less accurate. The sensing module 2 may also be an RGB light sensing matrix, or may be a camera. The accuracy of the latter two is higher than the former, the final gain effect will be better, but the cost is higher than the former. According to different applications, the location of the sensing module 2 should also be different. When it is needed to achieve automatic white balance on the screen color, the sensing module 2 needs to obtain the output image, then the sensing module 2 needs to directly face the projection direction of the projector body 1; when it is needed to achieve automatic white balance on the ambient light, the sensing module 2 needs to obtain the current environment image, then the location and orientation of the sensing module 2 do not need to be strictly set.
(29) In operation, the projector body 1 projects onto the screen, and the sensing module 2 collects the output image or the current environment image. The reading unit 31 reads the RGB component of the captured image and transmits it to the counting unit 32, after which the counting unit 32 counts the average values Rave, Gave, Bave of the RGB components. The calculating unit 33 obtains the grayscale value Gary of the image collected by the sensing module 2 according to the three average values and transmits the average values Rave, Gave and Bave of the RGB components and the grayscale value Gary of the image to the coefficient acquiring unit 34, so as to calculate the gain coefficients Kr, Kg, and Kb of the three channels R, G, and B. Finally, the adjusting unit 35 adjusts the R, G, B gains of each pixel in the projection image according to Kr, Kg, Kb. By adjusting the R, G, B gains of the pixels in the projected image,
(30) If the sensing module 2 collects the output image, the projector can make the projection screen no longer limited by the color. That is, with the projector, the screen of various colors can be freely selected and the influence of the projection will not be affected; if the sensing module 2 collects the current environment image, the present invention can also remove the influence of the color temperature of ambient light on the projection effect. With the projector, the projection screen is no longer limited by the color. That is, the projector can freely select screens of various colors and the influence of the projection is not affected. In addition, the projector can also remove the influence of the color temperature of ambient light on the projection effect and greatly improve the projection effect.
(31) The foregoing is only a preferred embodiment of the present invention and is not intended to limit the description and the scope of protection of the invention, and it will be appreciated by those skilled in the art that equivalent replacement using the specification and drawings of the present invention, and solution with apparent changes to specification and drawings of the present invention are to be included within the scope of the present invention.