CN114677298A - Lamp effect control method and control terminal - Google Patents

Lamp effect control method and control terminal Download PDF

Info

Publication number
CN114677298A
CN114677298A CN202210294759.XA CN202210294759A CN114677298A CN 114677298 A CN114677298 A CN 114677298A CN 202210294759 A CN202210294759 A CN 202210294759A CN 114677298 A CN114677298 A CN 114677298A
Authority
CN
China
Prior art keywords
value
color
preset
pixels
effect control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210294759.XA
Other languages
Chinese (zh)
Inventor
李志�
金凌琳
谢子恒
罗百祥
戴战江
林春明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dangzhi Technology Co ltd
Original Assignee
Shenzhen Dangzhi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Dangzhi Technology Co ltd filed Critical Shenzhen Dangzhi Technology Co ltd
Priority to CN202210294759.XA priority Critical patent/CN114677298A/en
Publication of CN114677298A publication Critical patent/CN114677298A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses a lamp effect control method and a control terminal, wherein the method comprises the following steps: acquiring pixel information of a display picture associated with the light effect device; averaging the pixel information to obtain a first color characteristic value; when a preset enhancement condition is met, enhancing the first color characteristic value to obtain a second color characteristic value; and generating a color change instruction according to the second color characteristic value to indicate the light effect equipment to display the light effect of the corresponding color. Therefore, ambient light of the display picture changes along with the change of the display content, and the display picture is subjected to the baking by the ambient light; and, through color enhancement, make the lamp effect colour more bright-colored, be favorable to user's immersive to watch, promote to watch experience.

Description

Lamp effect control method and control terminal
Technical Field
The invention relates to the technical field of smart home, in particular to a light effect control method and a control terminal.
Background
With the development of the times and the progress of science and technology, household appliances gradually develop towards intellectualization. Televisions are used as the most common household appliances, and the degree of intelligence of the televisions is also higher and higher. The current intelligent mode of the television can be that the television is provided with an intelligent operating system and supports various software to realize various video and audio entertainment functions such as video on demand, live broadcast, games and the like; the intelligent network set top box can also be connected, and various video and audio entertainment functions such as video on demand, live broadcast, games and the like can be realized by screen projection of the intelligent network set top box.
Although the intellectualization of the television greatly facilitates the use of users, the content of video, live broadcast or game is only displayed, the light effect of the surrounding environment of the television is usually irrelevant to the displayed content, usually the state of the surrounding environment, and the lighting effect is lack of being entrusted.
Therefore, how to change the light effect of the surrounding environment of the television along with the change of the display content of the television to realize the purpose of setting off the display picture by the light effect is a technical problem to be solved urgently at present.
Disclosure of Invention
The invention mainly aims to provide a light effect control method and a control terminal, and aims to solve the technical problem that how to change the light effect around a television along with the change of the display content of the television in the prior art and realize that the light effect of the light causes the emphasis of a display picture.
In order to achieve the above object, the present invention provides a lamp efficiency control method, including:
acquiring pixel information of a display picture associated with the light effect device;
carrying out average processing on the pixel information to obtain a first color characteristic value;
when a preset enhancement condition is met, enhancing the first color characteristic value to obtain a second color characteristic value; and
and generating a color change instruction according to the second color characteristic value to instruct the light effect equipment to display the light effect of the corresponding color.
Optionally, the averaging the pixel information to obtain a first color feature value includes:
acquiring each color component of a selected pixel in the pixel information;
averaging the same color components of each selected pixel to obtain an average value of each color component;
and determining a first color characteristic value according to the average value.
Optionally, when the preset enhancement condition is satisfied, enhancing the first color characteristic value to obtain a second color characteristic value, including:
converting the first color feature value into a color element value, the color element value including a hue value, a saturation value, and a brightness value;
when the color element value meets the preset enhancement condition, enhancing the color element value;
and converting the enhanced color element value into a color component value to obtain a second color characteristic value.
Optionally, when the color element value satisfies the preset enhancement condition, then enhancing the color element value includes:
judging whether the saturation value in the color element value is smaller than a first preset value in the preset enhancement condition or not, and if the saturation value is smaller than the first preset value, increasing the saturation value; and/or
And judging whether the brightness value in the color element value is greater than a second preset value in the preset enhancement condition or not, and if the brightness value is greater than the second preset value, reducing the brightness value.
Optionally, the obtaining each color component of the selected pixel in the pixel information includes:
determining selected pixels in pixel information corresponding to a selected area according to a preset calling rule, wherein the number of the selected pixels is smaller than the total number of the pixels corresponding to the selected area;
a color component is obtained for each of the selected pixels.
Optionally, the preset invoking rule includes:
determining at least one selected pixel every N pixels in a selected row of pixels; and/or
At least one selected pixel is determined every M pixels in a selected pixel column.
Optionally, the obtaining of each color component of the selected pixel in the pixel information includes:
removing part of pixels in the selected pixels based on a preset removal rule, and obtaining each color component of the pixels left after removal; and/or
And extracting a part of the selected pixels based on a preset extraction rule, and acquiring each color component of the extracted part of the pixels.
Optionally, the acquiring pixel information of a display associated with the light effect device includes:
acquiring a display picture;
determining a selected area in the display picture according to a preset selection rule, wherein at least one edge of two opposite sides of the selected area has a gap with the edge of the display picture;
pixel information corresponding to the selected region is obtained.
Optionally, the lamp effect control method includes:
when the preset enhancement condition is met, generating a color change instruction according to the second color characteristic value, otherwise, generating a color change instruction according to the first color characteristic value;
generating the color change instruction at preset periodic intervals;
performing difference processing on the same color components appointed in the color characteristic values obtained in the previous period and the current period to obtain color component difference values;
and if the color component difference value is smaller than a third preset value, stopping generating the color change instruction of the current period, or generating the color change instruction which is the same as that of the previous period.
Optionally, the generating of the new color change instruction is stopped if the color component difference value is smaller than a third preset value, or the generating of the color change instruction that is the same as the previous cycle is stopped, where the generating of the new color change instruction includes:
and if the red component difference value, the green component difference value and the blue component difference value are smaller than a third preset value, stopping generating the color change instruction of the current period, or generating the same color change instruction as the previous period.
Further, to achieve the above object, the present invention also provides a lamp effect control terminal, including: a memory, a processor, a communication bus, and a light effect control program stored on the memory:
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the light effect control program to realize the steps of the light effect control method.
Further, to achieve the above object, the present invention may also provide a lamp efficiency control device, including:
the acquisition module is used for acquiring pixel information of a display picture related to the light effect equipment;
the average processing module is used for carrying out average processing on the pixel information to obtain a first color characteristic value;
the enhancement module is used for enhancing the first color characteristic value to obtain a second color characteristic value when a preset enhancement condition is met; and
and the generating module is used for generating a color change instruction according to the second color characteristic value so as to instruct the light effect equipment to display the light effect of the corresponding color.
Further, to achieve the above object, the present invention may also provide a readable storage medium, on which a light effect control program is stored, and the light effect control program, when executed by a processor, implements the steps of the light effect control method as described above.
The invention relates to a lamp effect control method, a control terminal, a control device and a readable storage medium, which are characterized in that pixel information of a display picture associated with a lamp effect device is firstly obtained, and the display picture is picture content needing to display ambient atmosphere through light adjustment; averaging the obtained pixel information to obtain a first color characteristic value, and enhancing the first color characteristic value to obtain a second color characteristic value when the first color characteristic value meets a preset enhancement condition; and generating a color change instruction according to the second color characteristic value to indicate the light effect equipment to display the light effect of the corresponding color. Therefore, ambient light of the display picture changes along with the change of the display content, and the display picture is subjected to the baking by the ambient light; and, through color enhancement, make the lamp effect colour more bright-colored, be favorable to user's immersive to watch, promote to watch experience.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of a lamp effect control method according to the present invention;
FIG. 2 is a schematic flow chart illustrating a lamp efficiency control method according to a second embodiment of the present invention;
FIG. 3 is a schematic flow chart of a lamp effect control method according to a third embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating a fourth embodiment of a lamp efficiency control method according to the present invention;
FIG. 5 is a schematic block diagram of a lamp effect control device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a hardware operating environment according to an embodiment of the lamp effect control terminal of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of the lamp effect control method according to the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein. Specifically, the lamp efficiency control method in this embodiment includes:
step S10, acquiring pixel information of a display picture associated with the light effect equipment;
in the embodiment, the light effect of the light is adjusted to the surrounding environment of the display device by combining the picture content displayed by the display device, so that the light effect can be used for supporting the display picture. Light effect devices are arranged around the display device. The display device may be a television screen, a computer display screen, or a projection screen, and the television screen is preferably used as an example for description herein. The lamp effect device may be an atmosphere lamp or a spot lamp, and the atmosphere lamp is preferably used as an example herein. The atmosphere lamps are arranged around the television screen, such as two sides, and are used for adjusting the light effects at two sides of the television according to the content displayed by the television screen, so that the light effects change along with the change of the displayed content.
Further, the ambience lamp and the television screen may be in direct communication connection, or both may be in communication connection with other control units, such as a projector or an intelligent network set-top box, i.e. a television box. If the television screen is in direct communication connection, the television screen directly controls the atmosphere lamp and changes the light effect by adjusting the displayed light color. If the intelligent network set top box is connected, the intelligent network set top box projects a screen to a television screen on one hand to realize video playing, and on the other hand, the intelligent network set top box controls the light color of the atmosphere lamp according to the played picture content to adjust the light effect.
The present embodiment preferably takes the case where the atmosphere lamp and the television screen are both in communication connection with the intelligent network set-top box. Specifically, the intelligent network set-top box may be wirelessly connected to the tv screen and the atmosphere lamp, such as a WiFi (Wireless Fidelity, Wireless network communication technology) and a bluetooth connection; or wired connection, such as HDMI (High Definition Multimedia Interface) and USB (Universal Serial Bus); the intelligent network set top box can be connected with the atmosphere lamp in a wireless mode, and the intelligent network set top box can be connected with the atmosphere lamp in a USB mode. No matter what connection mode, the intelligent network set top box can transmit data to a television screen through communication connection, and video playing is achieved. In addition, the played video may be a movie, a show, a general art, news, etc. on demand, or live news, a sports match, or a online game, etc., which is not limited.
Further, the intelligent network set top box monitors whether an atmosphere lamp starting instruction is received, and the starting instruction can be triggered by the connection state between the intelligent network set top box and the atmosphere lamp or other special triggering keys. If the connection state is used for triggering, when the atmosphere lamp is not required to be used, the intelligent network set top box is not connected with the atmosphere lamp, and once the connection state shows that the atmosphere lamp is required to be used, a starting instruction is triggered. If the intelligent network set top box is triggered by the trigger key, the intelligent network set top box and the atmosphere lamp can be always in a connected state, only the atmosphere lamp or a matched remote controller is provided with a key special for starting the atmosphere lamp, and a starting instruction is triggered by pressing the key.
Furthermore, if the intelligent network set top box monitors an atmosphere lamp starting instruction, screen capturing is carried out on a display picture related to the atmosphere lamp to obtain the display picture. The display picture is a content picture projected to a television screen by the intelligent network set top box and played, and a picture obtained by screen capture is the display picture. The screen capture can be realized through a screen capture command of an internal system of the intelligent network set top box, and for the intelligent network set top box of the android system, the screen capture can also be realized in a mode of reflecting android surface View.
In addition, because the played content has the characteristic of real-time change, the display color of the atmosphere lamp should be changed correspondingly. Therefore, the time interval for acquiring the display picture is preset, and the display picture is shot every time interval; and then the display color of the atmosphere lamp is controlled and changed according to the newly acquired display picture, so that the color of the atmosphere lamp changes along with the change of the color of the display picture.
Furthermore, an instruction or a function for acquiring pixel information of the display picture is arranged in the intelligent network set top box, after the display picture is acquired, the display picture is identified by calling the instruction or the function, and then the pixel information of the display picture can be acquired, wherein the pixel information is any one of a red-green-blue value, a red-green-blue-white value, a red-green-blue-green value, a red-green-blue-yellow value, a red-green-blue-powder value and the like of each pixel in the display picture. The present embodiment is preferably illustrated by taking as an example a red, green, blue value, namely a RGB (red, green, blue) tristimulus value, which comprises three components of an r (red) value, a g (green) value and a b (blue) value.
Step S20, averaging the pixel information to obtain a first color characteristic value;
further, by processing the pixel information, a first color feature value is obtained. The processing of the pixel information may be averaging processing or proportion processing. Namely, calculating the average value of RGB (red, green and blue) tristimulus values of each pixel in the pixel information, and taking the calculation result as a first color characteristic value; or calculating the proportion of the RBG tristimulus color values of each pixel, and taking the RGB value with the highest proportion as the first color characteristic value. The embodiment preferably obtains the first color feature value by means of averaging.
Step S30, when a preset enhancement condition is met, enhancing the first color characteristic value to obtain a second color characteristic value;
further, in order to ensure that the color display effect of the ambient light is more matched with the display picture, when the first color characteristic value meets a preset enhancement condition, the first color characteristic value is subjected to enhancement processing, and any one of an R value, a G value and a B value in the first color characteristic value, any two or three of the R value, the G value and the B value are subjected to numerical value change to enhance the first color characteristic value, so that a second color characteristic value is obtained. The preset enhancement condition is also set correspondingly according to the R value, the G value and the B value, and if the R value is set to be less than a certain value, enhancement is performed. Furthermore, it should be noted that the enhancement of the first color feature value is implemented by enhancing the overall display effect, and not only any one of the R value, the G value and the B value, but also any two or three of the R value, the G value and the B value are increased, and it is also possible that one of the R value and the G value is decreased, or one of the R value and the G value is increased and the other is decreased, so that the overall display effect of the second color feature value enhanced by the first color feature value is enhanced, thereby being beneficial to the viewing comfort of the user.
And step S40, generating a color change instruction according to the second color characteristic value to instruct the light effect equipment to display the light effect of the corresponding color.
And further, generating a color change instruction according to the enhanced second color characteristic value, and outputting the color change instruction to an atmosphere lamp serving as lamp effect equipment to control the change of the display color of the atmosphere lamp so that the atmosphere lamp displays the lamp effect of the corresponding color, so that the color of the atmosphere lamp changes along with the change of the color of the display picture, and the lamp effect of the atmosphere lamp is adjusted. For example, the ambience lamp displays a color corresponding to an RGB value of the first color feature value or the enhanced second color feature value according to the RGB value.
In this embodiment, pixel information of a display picture associated with a lamp effect device is obtained first, and the display picture is picture content that needs to display ambient atmosphere through lighting adjustment; averaging the obtained pixel information to obtain a first color characteristic value, and enhancing the first color characteristic value to obtain a second color characteristic value when the first color characteristic value meets a preset enhancement condition; and generating a color change instruction according to the second color characteristic value to indicate the light effect equipment to display the light effect of the corresponding color. Therefore, ambient light of the display picture changes along with the change of the display content, and the display picture is subjected to the baking by the ambient light; and, through color enhancement, make the lamp effect colour more bright-colored, be favorable to user's immersive to watch, promote to watch experience.
Further, referring to fig. 2, a second embodiment of the lamp effect control method of the present invention is provided based on the first embodiment of the lamp effect control method of the present invention.
The difference between the second embodiment of the lamp effect control method and the first embodiment of the lamp effect control method is that, when the preset enhancement condition is satisfied, the first color feature value is enhanced to obtain the second color feature value, and the method includes:
step S31, converting the first color feature value into a color element value, where the color element value includes a hue value, a saturation value, and a brightness value;
step S32, when the color element value satisfies the preset enhancement condition, enhancing the color element value;
step S33, converting the enhanced color element value into a color component value, and obtaining a second color feature value.
Further, HSV values are data that are more directly reflective of the color elements of interest to the user than RGB values. HSV (Hue, Saturation, Value) is a color model that contains three component values h, s, v. The h component represents the hue, and the value range is 0-360 degrees measured by the angle, the value is calculated from red in the counterclockwise direction, the red is 0 degree, the green is 120 degrees, and the blue is 240 degrees. Their complementary colors are: yellow is 60 °, cyan is 180 °, violet is 300 °. The S component represents the saturation, and the saturation S represents the degree to which the color approaches the spectral color. A color can be seen as the result of a mixture of a certain spectral color and white. The greater the proportion of spectral colors, the higher the degree of color approaching spectral colors and the higher the saturation of colors. High saturation and dark and bright color. The white light component of the spectral color is 0, and the saturation reaches the highest. Usually the value ranges from 0% to 100%, the larger the value, the more saturated the color. v represents brightness, brightness represents the degree of brightness of the color, and for the light source color, the brightness value is related to the brightness of the luminous body; for object colors, this value is related to the transmittance or reflectance of the object. Typically, values range from 0% (black) to 100% (white).
In this embodiment, the HSV value is used as the color element value, and the h component, the s component and the v component in the HSV value respectively form a hue value, a saturation value and a brightness value in the color element value. In order to better embody the color element value concerned by the user, in the process of enhancing the first color characteristic value, the first color characteristic value is firstly converted into the color element value, and the hue value H, the saturation value S and the brightness value V in the color element value are obtained for enhancement. Wherein the conversion can be achieved by, but is not limited to, the following equations (1) to (9).
R’=R/255 (1)
G’=G/255 (2)
B’=B/255 (3)
Cmax=max(R’,G’,B’) (4)
Cmin=min(R’,G’,B’) (5)
Δ=Cmax-Cmin (6)
Figure BDA0003561463710000081
Figure BDA0003561463710000091
v=Cmax (9)
Understandably, the purpose of the enhancement processing of the first color characteristic value is to make the colors displayed by the atmosphere lamp more vivid and more highlight the atmosphere of the display picture. Therefore, if the color represented by the obtained first color characteristic value is bright enough to fully highlight the atmosphere of the display picture, the first color characteristic value does not need to be enhanced, otherwise, the first color characteristic value needs to be enhanced. Here, the preset enhancement condition is set in advance according to the color element value. After the first color feature value is converted into the color element value, the color element value is compared with the preset enhancement condition, whether the color element value meets the preset enhancement condition or not is judged, only when the color element value meets the preset enhancement condition, the fact that the first color feature value needs to be enhanced through enhancing the color element value is indicated, and otherwise, the fact that the first color feature value does not need to be enhanced.
Further, since the HSV value as the color element value includes three components, the preset enhancement condition may be set according to different components, thereby performing different judgments and enhancements. Specifically, when the color element value satisfies a preset enhancement condition, enhancing the color element value includes:
step S321, determining whether a saturation value in the color element values is smaller than a first preset value in the preset enhancement condition, and if the saturation value is smaller than the first preset value, increasing the saturation value;
further, a preset enhancement condition is set based on the saturation component s as a first preset value in the preset enhancement condition. And comparing the saturation value, namely the s value, in the converted color element value with a first preset value, and judging whether the saturation value is smaller than the first preset value. If the saturation value is less than the first preset value, the saturation value is low, and color deviation may occur when a user watches the color image, so that the saturation value in the color element value needs to be enhanced. At this time, it is determined that the color element value satisfies a preset enhancement condition, the saturation value is increased, and enhancement of the color element value is achieved by increasing the saturation value. The saturation value may be increased in a fixed value manner, or different first preset values are preset to correspond to different increased values, and the value is increased according to the first preset value corresponding to the saturation value, or may be increased in a proportional coefficient manner. For example, for the scaling factor increase mode, the first preset value and the preset increase multiple are values preset according to the requirement, such as setting the first preset value to be 0.8 or 0.9, and setting the preset increase multiple to be 1.5 times, 2 times, or 1.5 to 3 times, etc. Taking the first preset value of 0.9 and the preset increase multiple of 2 as an example, if the saturation value s in the color element values (h, s, v) is less than the first preset value of 0.9, the saturation value s is increased by 2, s ^ is obtained, and the enhancement of the color element values is realized.
It should be noted that, in addition to setting the preset enhancement condition according to the saturation component s, the preset enhancement condition may also be set according to the brightness component v. Specifically, when the color element value satisfies a preset enhancement condition, enhancing the color element value includes:
step S322, determining whether a brightness value in the color element value is greater than a second preset value in the preset enhancement condition, and if the brightness value is greater than the second preset value, decreasing the brightness value.
Further, a preset enhancement condition is set based on the brightness component v as a second preset value in the preset enhancement condition. And comparing the brightness value, namely the v value, in the converted color element value with a second preset value, and judging whether the brightness value is greater than the second preset value. If the brightness value is larger than the second preset value, the brightness value is higher, and the light effect color watched by the user is possibly too bright and whitened, so that the brightness value in the color element value needs to be processed. At this time, it is determined that the color element value satisfies a preset enhancement condition, the luminance value is reduced, and the enhancement of the color element value is realized by the reduction of the luminance value. The brightness value may be decreased in a fixed value manner, or different second preset values are preset to correspond to different decreased values, and the brightness value is decreased according to the second preset value corresponding to the brightness value, or may be decreased in a specific coefficient manner. For example, for the reduction of the specific coefficient, the second preset value and the preset reduction factor are values set in advance according to requirements, such as setting the second preset value to be a value between 70% and 90%, and the preset reduction factor to be 0.8 or 0.9, etc., that is, to be 0.8 or 0.9 of the original value, etc. Taking the second preset value of 80% and the reduction factor of 0.8 as an example, if the luminance value v in the color element values (h, s, v) exceeds the second preset value of 80%, v is reduced to 0.8 of the original value, and v ^ is obtained, thereby realizing the enhancement of the color element values.
Further, after the enhancement of the color element value is realized by increasing the saturation value or the enhancement of the color element value is realized by decreasing the brightness value, the enhanced color element value is converted into a color component value, i.e., an RGB tristimulus value, and a second color characteristic value is obtained, so as to facilitate the processing of the intelligent network set-top box.
It should be noted that, in addition to setting the preset enhancement condition separately according to the saturation component s and the brightness component v, the preset enhancement condition may be set in combination with both of them. At this time, when the saturation value in the color element value is smaller than a first preset value in a preset enhancement condition and the brightness value is larger than a second preset value in the preset enhancement condition, it is determined that the color element value meets the preset enhancement condition, and the saturation value and the brightness value are correspondingly adjusted, so that the enhancement of the color characteristic value is realized. Of course, a preset enhancement condition may also be set based on the hue component h, and the processing manner is similar to the saturation component s and the brightness component v, which is not described herein again.
This embodiment uses saturation component and/or brightness component to strengthen the colour eigenvalue as the basis, ensures that the atmosphere lamp shows that the colour is more bright-colored, and the user is immersed and is felt stronger in the time, has avoided appearing color deviation and/or lamp effect colour too bright, has promoted the experience that the user watched.
Further, referring to fig. 3, a third embodiment of the lamp efficiency control method of the present invention is provided based on the first or second embodiment of the lamp efficiency control method of the present invention.
The difference between the third embodiment of the light effect control method and the first or second embodiment of the light effect control method is that the averaging processing on the pixel information to obtain the first color feature value includes:
step S21, acquiring each color component of the selected pixel in the pixel information;
step S22, averaging the same color components of each selected pixel to obtain an average value of each color component;
step S23, determining a first color feature value according to the average value.
Further, a preset region indicating that pixel information processing is required is preset, for example, the preset region is set in a manner of a preset coordinate range, and two or more preset regions can be set through the preset coordinate range, for example, a display screen is divided into a left region and a right region, and the preset regions are respectively set for the left region and the right region. For the pixel information of the display picture, firstly, screening is carried out according to a preset area, pixels in the area of the display picture are selected, and each color component of the selected pixels is obtained, namely RGB tristimulus values are used as RGB tristimulus values of the color components.
Further, the same color components of each selected pixel are averaged to obtain an average value of each color component. Specifically, the same components in each RGB tristimulus value are summed, that is, all R values in each tristimulus value are summed, all G values are summed, and all B values are summed, to obtain a three-component summation result of the R value summation result, the G value summation result, and the B value summation result. And then, respectively comparing the sum result of the three components with the number of each pixel to obtain an R value ratio result, a G value ratio result and a B value ratio result, and forming an average value of each display component as a first color characteristic value. For example, if n pixels are selected, and the RGB tristimulus values of each pixel are (Rk, Gk, Bk) (k ═ 1, 2, 3 · · n), averaging is performed between the same components in the respective RGB tristimulus values, i.e., R ^ R1+ R2+ R3+ … … + Rn)/n; g ^ G (G1+ G2+ G3+ … … + Gn)/n; b ^ is (B1+ B2+ B3+ … … + Bn)/n, and the average value (R ^ G ^ B ^) of each color component is obtained as the first color feature value.
Understandably, the larger the number of pixels included in the display screen, the larger the amount of data that needs to be processed, thereby affecting the efficiency of the processing and slowing down the real-time control of the atmosphere lamp. Therefore, in order to improve the processing efficiency, when the pixels are selected from the target area of the display screen, the embodiment obtains relatively fewer color components for processing by reducing the number of the selected pixels. Specifically, the acquiring each color component of the selected pixel in the pixel information includes:
step S211, according to a preset calling rule, determining selected pixels in pixel information corresponding to a selected area, wherein the number of the selected pixels is smaller than the total number of the pixels corresponding to the selected area;
in step S212, the color component of each selected pixel is obtained.
Furthermore, a preset calling rule is set, a part of pixels are selected from a corresponding selected area of the display picture through the calling rule, and then color components of the selected part of pixels are obtained for processing, so that the processing efficiency is improved. The calling rule can be set according to the pixel rows, the pixel columns, the pixel rows and the pixel columns. Wherein, for the pixel row, at least one selected pixel is determined in every N pixels in the selected pixel row. That is, a certain line or several lines are selected from the pixels in the target area, and then the pixels to be processed are determined from the selected pixel lines according to the rule of the interval N. For a column of pixels, at least one selected pixel is determined every M pixels in the selected column of pixels. That is, a certain column or several columns are selected from the pixels in the target area, and then the pixels to be processed are determined from the selected pixel columns according to the rule of the interval M. Whether selected on a pixel row basis, a pixel column basis, or both, the number of selected pixels is less than the total number of pixels corresponding to the selected area, thereby reducing the number of pixels processed. N and M may be the same or different, and both values are natural numbers such as 1, 2, 3, and the like.
It should be noted that, the pixels reduced by the preset calling rule may be to extract a part of pixels as pixels to be processed in a pixel row or pixel column manner, or to remove a part of pixels and use the remaining pixels as pixels to be processed; instead of extracting or removing the pixels in the target area, the pixel position may be selected by the pixel row or the pixel column, and the pixel at the selected position may be used as the pixel to be processed. And, for the extraction and removal operation, it can be realized by the preset extraction rule and the preset removal rule. Specifically, the acquiring of each color component of the selected pixel in the pixel information includes:
a1, removing part of the selected pixels based on a preset removal rule, and obtaining each color component of the pixels left after removal; and/or
Step a2, extracting a part of the selected pixels based on a preset extraction rule, and obtaining each color component of the extracted part of the pixels.
Further, when a part of pixels are removed from the pixels in the target area to be used as unprocessed pixels or a part of pixels are selected from the pixels in the target area to be used as processed pixels, for the removal operation, a preset removal rule is preset, for example, one or more pixels are removed every N pixels, the rest pixels are used as pixels needing processing, and then the color components of the rest pixels are obtained to be processed. For the selection operation, a preset selection rule is preset, and for example, if M pixels at intervals are set, one or more pixels are extracted as pixels to be processed, and then each color component of the selected pixels is obtained for processing. Therefore, the selected pixels are reduced, the color components of the selected pixels are further reduced, the processing amount of the color components is reduced, and the processing efficiency is improved. N, M may be a positive integer value greater than 1.
Further, it is considered that a part of the display screen does not occupy the entire maximum display area, but a non-effective display area such as a black frame area or a white frame area may appear all around. The processing of the area is the processing of the invalid pixel, which reduces the processing efficiency, so the processing efficiency can be improved by determining the valid area from the display picture for processing. Specifically, the acquiring pixel information of a display screen associated with the light effect device includes:
step S11, acquiring a display picture;
step S12, determining a selected area in the display picture according to a preset selection rule, wherein at least one edge of two opposite sides of the selected area has a gap with the edge of the display picture;
in step S13, pixel information corresponding to the selected area is acquired.
In one embodiment of step S12, after all the pixel data of the display screen are obtained, the subsequent step S20 is not performed on the 0-Z1 rows of pixels closest to the upper edge and the 0-Z1 rows of pixels closest to the lower edge of the display screen; and/or, the subsequent processing of step S20 is not performed on the pixels in the 0-Z2 column closest to the left edge and the pixels in the 0-Z2 column closest to the right edge in the display screen, wherein the values of Z1 and Z2 can be set by a user or preset by a system. The left and right directions of the display picture are the long side directions of the picture, and the up and down directions are the short side directions. Specifically, in one embodiment, Z1 may be 10% of the total number of rows of pixels and Z2 may be 10% of the total number of columns of pixels. According to the scheme, the light effect is not influenced by the edge pixel data of the display picture, so that the situation that the effective display area in the display picture does not fully occupy the display range can be avoided, and the light effect can better aim at the effective area in the display picture.
Further, setting a preset selection rule, for example, setting a preset interception size, and carrying out image interception on the display image by taking the display center as a central point, wherein the interception size is the preset interception size, and the obtained display area is the selected area for removing the black frame or the white frame. Or setting the selection rule as a preset cutting size, cutting the display picture by taking the display boundary as a boundary, wherein the cutting size is the preset cutting size, and the display area obtained after cutting is the selection after removing the black frame or the white frame. No matter how the selected area is obtained, there is a gap between the edge of at least one opposite side of the circled area and the edge of the display frame, i.e. the size of the selected area is smaller than the size of the display frame. Thereafter, acquisition of pixel information is performed for the selected area to obtain a relatively reduced pixel information fast process.
On the other hand, when there are two or more light effect devices, each light effect device may form a one-to-one correspondence with a different selected area in the display screen, that is, the light effect of each light effect device depends only on the pixel information in the selected area corresponding to the light effect device.
In the embodiment, the effective display image area is selected, and the color components are obtained by selecting partial pixels to be processed, so that the number of pixels needing to be processed in the display image is reduced, the pixel processing efficiency is improved, a color change instruction can be generated rapidly, and the real-time and efficient control of the atmosphere lamp effect is realized.
Further, referring to fig. 4, a fourth embodiment of the lamp efficiency control method of the present invention is provided based on the first, second or third embodiments of the lamp efficiency control method of the present invention.
The fourth embodiment of the lamp effect control method differs from the first, second or third embodiment of the lamp effect control method in that it comprises:
step S50, when the preset enhancement condition is satisfied, generating a color change instruction according to the second color characteristic value, otherwise, generating a color change instruction according to the first color characteristic value;
step S60, generating the color change instruction at preset periodic intervals;
step S70, performing difference processing on the same color components appointed in the color characteristic values obtained in the previous period and the current period to obtain color component difference values;
in step S80, if the color component difference is smaller than the third preset value, the color change instruction in the current period is stopped being generated, or the color change instruction is generated as same as the color change instruction in the previous period.
In this embodiment, if the first color characteristic value does not satisfy the preset enhancement condition and does not need enhancement, a color change instruction is directly generated according to the first color characteristic value; and otherwise, if the first color characteristic value meets the preset enhancement condition and needs to be enhanced and the second color characteristic value is obtained through enhancement, generating a color change instruction according to the second color characteristic value. And preset period intervals are preset, and color change instructions are generated every interval in the period.
Understandably, the content of the television screen projected and played through the intelligent network set top box has the characteristic of dynamic change, and the content played at different moments is different, so that the problem that the lamp effect change cannot keep up with the displayed picture can be caused if the lamp effect of the atmosphere lamp changes slowly, and the problem that the watching effect is influenced by frequent screen flickering can be caused if the lamp effect of the atmosphere lamp changes quickly. For this reason, the present embodiment sets the preset periodic interval to a suitable time, such as 0.01 second, 0.1 second, 0.5 second, etc., by a test. And synchronously acquiring the playing content at each interval of the period to obtain a display picture, thereby realizing the periodic acquisition of the pixel information of the display picture. And a contrast mechanism of two continuous periods is set, if the pixel information of the display pictures in the two continuous periods is not greatly changed by contrast, the control of the lamp effect change of the atmosphere lamp is not carried out, so that the influence of frequent flicker of the color of the atmosphere lamp on the watching of the user is avoided.
Specifically, after the pixel information of the display frame is obtained in the current period and the color characteristic value (the first color characteristic value or the second color characteristic value used for generating the color change instruction) is obtained, the color characteristic value (the first color characteristic value or the second color characteristic value) obtained according to the pixel information of the display frame in the previous period is read from the storage unit of the intelligent network set top box. And performing difference processing on the same color components appointed in the color characteristic values obtained in the previous period and the current period, performing difference operation between the component R values of the color characteristic values and the component R values of the color characteristic values, performing difference operation between the component G values, and performing difference operation between the component B values to obtain an operation result, and performing absolute value operation on the operation result to obtain a color component difference value with a positive numerical value. The color characteristic value is a first color characteristic value or a second color characteristic value used for generating a color change command. Wherein the same color component specified is, for example, an R value in the color feature value in the previous cycle and an R value in the color feature value in the current cycle; and the color component can be selected by the user or preset by the system, and the color component is not limited to the conventional R component, G component or B component, and for some devices whose display screen involves four-color display, the color component may also include one of the unconventional color components such as white component, pink component, yellow component, etc.
Further, in order to represent the change size of the pixel information of the display pictures in two consecutive periods, a third preset value is preset, the obtained color component difference value is compared with the third preset value, and whether the color component difference value is smaller than the third preset value is judged. The third preset value may be any integer value from 15 to 30. If the current period display content is less than the previous period display content, the current period display content is not greatly changed relative to the previous period display content, and the lamp effect of the atmosphere lamp is judged not to be adjusted, so that the color change instruction of the current period is stopped to be generated, or the same color change instruction as the previous period is generated, so that the atmosphere lamp is still displayed in the previous display color. If the compared color component difference value is greater than or equal to the third preset value, it indicates that the display content in the current period has a larger change relative to the display content in the previous period, and the lamp effect of the atmosphere lamp needs to be adjusted. Therefore, a new color change instruction is generated according to the color characteristic value of the current period and is output to the atmosphere lamp so as to regulate and control the display lamp effect of the atmosphere lamp. And, the color characteristic value of the current period is saved for comparison of the next period.
Further, since the difference processing of the same color component in the color feature value includes processing of a component R value, a component G value, and a component B value, in order to accurately reflect the color change of the screenshot picture in two consecutive periods, the difference generated by each of the three components should be compared with a third preset value. With the above, the difference results obtained by the difference processing on the component R value, the component G value, and the component B value, respectively, are taken as the red component difference, the green component difference, and the blue component difference included in the color component difference. If the color component difference is smaller than a third preset value, stopping generating a new color change instruction, or generating a color change instruction the same as that of a previous cycle, including:
step S81, if the red component difference value, the green component difference value, and the blue component difference value are both smaller than a third preset value, the generation of the color change instruction in the current period is stopped, or the color change instruction identical to the color change instruction in the previous period is generated.
Furthermore, the color feature value of the current period includes a component R value, a component G value and a component B value, and the enhanced color feature value of the previous period also includes a component R value, a component G value and a component B value. Difference operation and absolute value operation are respectively carried out among the component R values, among the component G values and among the component G values, a red component difference value, a green component difference value and a blue component difference value are obtained, and the red component difference value, the green component difference value and the blue component difference value are formed into color component difference values.
And further, comparing the red component difference value, the green component difference value and the blue component difference value with a third preset value respectively, and judging whether the red component difference value, the green component difference value and the blue component difference value are all smaller than the third preset value. And if the color component difference values are smaller than the third preset value, judging that the color component difference values are smaller than the third preset value, and at the moment, the display content in the current period is not greatly changed relative to the display content in the previous period, so that the lamp effect of the atmosphere lamp does not need to be adjusted, and the generation of the color change instruction in the current period is stopped, or the color change instruction which is the same as that in the previous period is generated. On the contrary, if the red component difference value is determined through comparison, and any one of the green component difference value and the blue component difference value is larger than or equal to the third preset value, it indicates that the display content in the current period has larger change relative to the display content in the previous period, and the light effect of the atmosphere lamp needs to be adjusted. At the moment, the color component difference value is judged to be larger than or equal to a third preset value, and a color change instruction is generated according to the color characteristic value of the current period to adjust the display lamp effect of the atmosphere lamp.
This embodiment just adjusts the display lamp effect of atmosphere lamp when the contrast shows that the display color changes greatly through the color characteristic value contrast in two consecutive periods around, shows that the color change is not big then not adjusting the display lamp effect of atmosphere lamp, avoids showing the excessive regulation that the lamp effect was shown to the atmosphere lamp and makes atmosphere lamp frequent scintillation, is favorable to user's viewing effect when guaranteeing the atmosphere.
The invention also provides a lamp effect control device.
Referring to fig. 5, fig. 5 is a functional block diagram of a lamp effect control device according to a first embodiment of the present invention. The lamp effect control device includes:
an obtaining module 10, configured to obtain pixel information of a display screen associated with a light effect device;
an average processing module 20, configured to perform average processing on the pixel information to obtain a first color feature value;
the enhancing module 30 is configured to enhance the first color characteristic value to obtain a second color characteristic value when a preset enhancing condition is met; and
and the generating module 40 is configured to generate a color change instruction according to the second color feature value to instruct the light effect device to display the light effect of the corresponding color.
Further, the average processing module 20 includes:
a first acquisition unit configured to acquire each color component of a selected pixel in the pixel information;
an averaging unit, configured to average the same color components of each selected pixel to obtain an average value of each color component;
and the determining unit is used for determining the first color characteristic value according to the average value.
Further, the enhancement module 30 includes:
a first conversion unit for converting the first color feature value into a color element value, the color element value including a hue value, a saturation value, and a brightness value;
an enhancement unit configured to enhance the color element value when the color element value satisfies the preset enhancement condition;
and the second conversion unit is used for converting the enhanced color element value into a color component value to obtain a second color characteristic value.
Further, the enhancement unit is further configured to:
judging whether the saturation value in the color element value is smaller than a first preset value in the preset enhancement condition or not, and if the saturation value is smaller than the first preset value, increasing the saturation value; and/or
And judging whether the brightness value in the color element value is greater than a second preset value in the preset enhancement condition or not, and if the brightness value is greater than the second preset value, reducing the brightness value.
Further, the first obtaining unit is further configured to:
determining selected pixels in pixel information corresponding to a selected area according to a preset calling rule, wherein the number of the selected pixels is smaller than the total number of the pixels corresponding to the selected area;
a color component is obtained for each of the selected pixels.
Further, the preset invoking rule includes:
determining at least one selected pixel every N pixels in a selected row of pixels; and/or
At least one selected pixel is determined every M pixels in a selected pixel column.
Further, the first obtaining unit is further configured to:
removing part of pixels in the selected pixels based on a preset removal rule, and obtaining each color component of the pixels left after removal; and/or
And extracting a part of the selected pixels based on a preset extraction rule, and acquiring each color component of the extracted part of the pixels.
Further, the obtaining module 10 further includes:
a second acquisition unit configured to acquire a display screen;
the determining unit is used for determining a selected area in the display picture according to a preset selection rule, and at least one edge of two opposite sides of the selected area has a gap with the edge of the display picture;
and a third acquiring unit configured to acquire pixel information corresponding to the selected area.
Further, the generating module is further configured to:
when the preset enhancement condition is met, generating a color change instruction according to the second color characteristic value, otherwise, generating a color change instruction according to the first color characteristic value;
generating the color change instruction at preset periodic intervals;
the lamp effect control device further comprises a difference processing module used for:
performing difference processing on the color characteristic value obtained in the previous period and the same color component appointed in the color characteristic value obtained in the current period to obtain a color component difference value;
and if the color component difference value is smaller than a third preset value, stopping generating the color change instruction of the current period, or generating the color change instruction which is the same as that of the previous period.
Further, the color component difference values include a red component difference value, a green component difference value, and a blue component difference value, and the difference processing module is further configured to:
and if the red component difference value, the green component difference value and the blue component difference value are all smaller than a third preset value, stopping generating a new color change instruction.
The specific implementation of the lamp effect control device of the present invention is substantially the same as that of the above embodiments of the lamp effect control device, and is not described herein again.
In addition, the embodiment of the invention also provides a lamp effect control terminal. Referring to fig. 6, fig. 6 is a schematic structural diagram of a hardware operating environment of a device according to an embodiment of the lamp effect control terminal of the present invention.
As shown in fig. 6, the light effect control terminal may be an intelligent network set-top box or a display device, and the embodiment is preferably described by taking the intelligent network set-top box as an example. The intelligent network set-top box may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory such as a disk memory. The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
It will be understood by those skilled in the art that the hardware configuration of the lamp effect control terminal shown in fig. 6 does not constitute a limitation of the lamp effect control terminal, and may include more or less components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 6, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a light effect control program. The operating system is a program for managing and controlling the light effect control terminal and software resources, and supports the operation of a network communication module, a user interface module, a light effect control program and other programs or software; the network communication module is used to manage and control the network interface 1004; the user interface module is used to manage and control the user interface 1003.
In the lamp effect control terminal hardware structure shown in fig. 6, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; processor 1001 may call a light effect control program stored in memory 1005 and perform the following operations:
acquiring pixel information of a display picture associated with the light effect device;
averaging the pixel information to obtain a first color characteristic value;
when a preset enhancement condition is met, enhancing the first color characteristic value to obtain a second color characteristic value; and
and generating a color change instruction according to the second color characteristic value to instruct the light effect equipment to display the light effect of the corresponding color.
Further, the averaging the pixel information to obtain a first color feature value includes:
acquiring each color component of the selected pixel in the pixel information;
averaging the same color components of each selected pixel to obtain an average value of each color component;
and determining a first color characteristic value according to the average value.
Further, the enhancing the first color feature value to obtain a second color feature value includes:
converting the first color feature value into a color element value, the color element value including a hue value, a saturation value, and a brightness value;
when the color element value meets the preset enhancement condition, enhancing the color element value;
and converting the enhanced color element value into a color component value to obtain a second color characteristic value.
Further, when the color element value satisfies the preset enhancement condition, then enhancing the color element value includes:
judging whether the saturation value in the color element value is smaller than a first preset value in the preset enhancement condition or not, and if the saturation value is smaller than the first preset value, increasing the saturation value; and/or
And judging whether the brightness value in the color element value is greater than a second preset value in the preset enhancement condition or not, and if the brightness value is greater than the second preset value, reducing the brightness value.
Further, the acquiring each color component of the selected pixel in the pixel information includes:
determining selected pixels in pixel information corresponding to a selected area according to a preset calling rule, wherein the number of the selected pixels is smaller than the total number of the pixels corresponding to the selected area;
a color component is obtained for each of the selected pixels.
Further, the preset invoking rule includes:
determining at least one selected pixel every N pixels in a selected row of pixels; and/or
At least one selected pixel is determined every M pixels in a selected pixel column.
Further, the acquiring of each color component of the selected pixel in the pixel information includes:
removing part of the pixels in the selected pixels based on a preset removal rule, and obtaining each color component of the pixels left after removal; and/or
And extracting a part of the selected pixels based on a preset extraction rule, and acquiring each color component of the extracted part of the pixels.
Further, the acquiring pixel information of a display screen associated with the light effect device includes:
acquiring a display picture;
determining a selected area in the display picture according to a preset selection rule, wherein at least one edge of two opposite sides of the selected area has a gap with the edge of the display picture;
pixel information corresponding to the selected region is obtained.
Further, the processor 1001 may call a light effect control program stored in the memory 1005 and perform the following operations:
when the preset enhancement condition is met, generating a color change instruction according to the second color characteristic value, otherwise, generating a color change instruction according to the first color characteristic value;
generating the color change instruction at preset periodic intervals;
performing difference processing on the color characteristic value obtained in the previous period and the same color component appointed in the color characteristic value obtained in the current period to obtain a color component difference value;
and if the color component difference value is smaller than a third preset value, stopping generating the color change instruction of the current period, or generating the color change instruction which is the same as that of the previous period.
Further, the generating of the new color change instruction is stopped if the color component difference value is smaller than a third preset value, or the generating of the color change instruction which is the same as that of the previous cycle includes:
and if the red component difference value, the green component difference value and the blue component difference value are smaller than a third preset value, stopping generating the color change instruction of the current period, or generating the same color change instruction as the previous period.
The specific implementation of the lamp effect control terminal of the present invention is substantially the same as the embodiments of the lamp effect control method described above, and is not described herein again.
In addition, the embodiment of the invention also provides a readable storage medium.
The readable storage medium stores a lamp effect control program, and the lamp effect control program realizes the steps of the lamp effect control method when being executed by the processor.
The readable storage medium of the present invention may be a computer readable storage medium, and the specific implementation manner thereof is substantially the same as that of each embodiment of the lamp effect control method described above, and will not be described herein again.
The present invention is described in connection with the accompanying drawings, but the present invention is not limited to the above embodiments, which are only illustrative and not restrictive, and those skilled in the art can make various changes without departing from the spirit and scope of the invention as defined by the appended claims, and all changes that come within the meaning and range of equivalency of the specification and drawings that are obvious from the description and the attached claims are intended to be embraced therein.

Claims (10)

1. A lamp efficiency control method, comprising:
acquiring pixel information of a display picture associated with the light effect device;
averaging the pixel information to obtain a first color characteristic value;
when a preset enhancement condition is met, enhancing the first color characteristic value to obtain a second color characteristic value; and
and generating a color change instruction according to the second color characteristic value to instruct the light effect equipment to display the light effect of the corresponding color.
2. The light effect control method according to claim 1, wherein the averaging the pixel information to obtain the first color feature value comprises:
acquiring each color component of the selected pixel in the pixel information;
averaging the same color components of each selected pixel to obtain an average value of each color component;
and determining a first color characteristic value according to the average value.
3. The lamp effect control method according to claim 1, wherein the enhancing the first color characteristic value to obtain the second color characteristic value when the predetermined enhancement condition is satisfied comprises:
converting the first color feature value into a color element value, the color element value including a hue value, a saturation value, and a brightness value;
when the color element value meets the preset enhancement condition, enhancing the color element value;
and converting the enhanced color element value into a color component value to obtain a second color characteristic value.
4. The lamp effect control method according to claim 3, wherein said enhancing the color element value when the color element value satisfies the preset enhancement condition comprises:
judging whether the saturation value in the color element value is smaller than a first preset value in the preset enhancement condition or not, and if the saturation value is smaller than the first preset value, increasing the saturation value; and/or
And judging whether the brightness value in the color element value is greater than a second preset value in the preset enhancement condition or not, and if the brightness value is greater than the second preset value, reducing the brightness value.
5. The light effect control method of claim 2, wherein said obtaining each color component of a selected pixel of said pixel information comprises:
determining selected pixels in pixel information of a corresponding selected area according to a preset calling rule, wherein the number of the selected pixels is smaller than the total number of the pixels of the corresponding selected area;
a color component is obtained for each of the selected pixels.
6. The lamp effect control method according to claim 5, wherein the preset invoking rule comprises:
determining at least one selected pixel every N pixels in a selected row of pixels; and/or
At least one selected pixel is determined every M pixels in a selected pixel column.
7. The light effect control method according to claim 1, wherein the acquiring pixel information of a display screen associated with the light effect device comprises:
acquiring a display picture;
determining a selected area in the display picture according to a preset selection rule, wherein at least one edge of two opposite sides of the selected area has a gap with the edge of the display picture;
pixel information corresponding to the selected region is obtained.
8. The lamp effect control method according to any one of claims 1 to 7, comprising:
when the preset enhancement condition is met, generating a color change instruction according to the second color characteristic value, otherwise, generating a color change instruction according to the first color characteristic value;
generating the color change instruction at preset periodic intervals;
performing difference processing on the same color components appointed in the color characteristic values obtained in the previous period and the current period to obtain color component difference values;
and if the color component difference value is smaller than a third preset value, stopping generating the color change instruction of the current period, or generating the color change instruction which is the same as that of the previous period.
9. The lamp effect control method of claim 8, wherein the color component difference values comprise a red color component difference value, a green color component difference value and a blue color component difference value, and if the color component difference value is smaller than a third preset value, the generating of a new color change command is stopped, or a color change command identical to a previous cycle is generated, comprising:
and if the red component difference value, the green component difference value and the blue component difference value are smaller than a third preset value, stopping generating the color change instruction of the current period, or generating the same color change instruction as the previous period.
10. A lamp effect control terminal, comprising: a memory, a processor, a communication bus, and a light effect control program stored on the memory:
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute the light effect control program to implement the steps of the light effect control method according to any one of claims 1 to 9.
CN202210294759.XA 2022-03-23 2022-03-23 Lamp effect control method and control terminal Pending CN114677298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210294759.XA CN114677298A (en) 2022-03-23 2022-03-23 Lamp effect control method and control terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210294759.XA CN114677298A (en) 2022-03-23 2022-03-23 Lamp effect control method and control terminal

Publications (1)

Publication Number Publication Date
CN114677298A true CN114677298A (en) 2022-06-28

Family

ID=82073872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210294759.XA Pending CN114677298A (en) 2022-03-23 2022-03-23 Lamp effect control method and control terminal

Country Status (1)

Country Link
CN (1) CN114677298A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114851959A (en) * 2022-07-07 2022-08-05 智己汽车科技有限公司 Light adjusting method and light adjusting system for vehicle
CN116312312A (en) * 2022-09-05 2023-06-23 深圳市集贤科技有限公司 Color data processing method, light source system, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114851959A (en) * 2022-07-07 2022-08-05 智己汽车科技有限公司 Light adjusting method and light adjusting system for vehicle
CN114851959B (en) * 2022-07-07 2022-10-18 智己汽车科技有限公司 Light adjusting method and light adjusting system for vehicle
CN116312312A (en) * 2022-09-05 2023-06-23 深圳市集贤科技有限公司 Color data processing method, light source system, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
KR101170408B1 (en) Dominant color extraction for ambient light derived from video content mapped through unrendered color space
CN107005716B (en) Image encoding method, image decoding method, image encoder, image decoder, and display device
CN114677298A (en) Lamp effect control method and control terminal
CN107786864B (en) Television picture display method, equipment and readable storage medium
JP5161228B2 (en) Color conversion method for environmental lighting system or general lighting system
KR20180123477A (en) Method and apparatus for reducing myopia-inducing effects of electronic displays
KR20070026701A (en) Dominant color extraction using perceptual rules to produce ambient light derived from video content
WO2012137819A1 (en) Display device and display method
CA2576066A1 (en) Methods and apparatuses for aesthetically enhanced image conversion
US20080259007A1 (en) Method for dynamically adjusting brightness of image
WO2022174651A1 (en) Projection device control method and apparatus, medium, and electronic device
US20220044369A1 (en) Image processing method, terminal and non-transitory computer-readable storage medium
CN105898252A (en) Television color adjustment method and device
CN104581103A (en) Image processing method and device
CN107592517B (en) Skin color processing method and device
CN113132696A (en) Image tone mapping method, device, electronic equipment and storage medium
JP6723969B2 (en) Image processing device, display device, and image processing method
WO2022120799A1 (en) Image processing method and apparatus, electronic device, and storage medium
Shih et al. Exploiting perceptual anchoring for color image enhancement
CN103295558A (en) Display method and display device
US20150085162A1 (en) Perceptual radiometric compensation system adaptable to a projector-camera system
US20070076014A1 (en) Universal color decoder an method for decoding input signal for a multiple primary color display system
CN112435173A (en) Image processing and live broadcasting method, device, equipment and storage medium
CN111613168B (en) Image display processing method and device and computer readable storage medium
CN108765502B (en) Color appearance obtaining method in complex environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination