Atmosphere lamp video data processing method and device, equipment and storage medium
By partitioning the pixel areas of the TV ambient light and mapping RGB color values, the problem of the TV ambient light not being able to respond quickly to changes in the picture was solved, achieving spatial gradation and smooth transition effects, and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN XINLONGPENG TECH CO LTD
- Filing Date
- 2022-09-06
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technologies, the ambient light of a TV cannot respond quickly to changes in the picture, resulting in color or brightness differences between adjacent frames of the video picture, and the light strip produces obvious flickering, which affects the user's viewing experience.
By receiving the display signal input source from the display terminal, the number of ambient light beads is divided into several partition areas of the display terminal's pixel area. The row pixel range and column pixel range of each partition area are obtained and divided into multiple sub-partition areas. The RGB basic hue values are obtained from one or more frames of display screen data and mapped to the corresponding LED beads to produce spatial gradient and smooth transition effects.
It achieves a spatial gradient visual effect where the ambient light follows the displayed image, improving the user experience, avoiding high-frequency flickering, and providing a better viewing experience.
Smart Images

Figure CN115474306B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lighting control technology, and in particular to an ambient light video data processing method, apparatus, device, and storage medium. Background Technology
[0002] Ambient lighting, also known as LED ambient lighting, is a perfect choice for theme parks, hotels, homes, exhibitions, commercial spaces, and artistic lighting, creating the desired atmosphere for people's lives. With the improvement of living standards, people have higher aesthetic requirements for electronic devices. For example, when watching movies or playing games, they not only pursue video and sound enjoyment but also expect a greater sense of atmosphere. Therefore, higher-end desktop computers, cases, and keyboards on the market, while pursuing quality and feel, also incorporate ambient lighting effects, allowing users to better immerse themselves in the atmosphere.
[0003] A TV ambient light is a device that receives the video input signal from a TV and generates a control signal for a light strip based on changes in the video input signal, causing the light strip to produce corresponding colors of light following the color changes of the TV screen. The LED light strip consists of n LED beads connected in series, each with red (R), green (G), and blue (B) channels. For example... Figure 1 As shown, a typical LED light strip is positioned around the back bezel of a television, with each LED in the strip corresponding to a specific element on the screen. In existing technologies, most ambient lighting for televisions relies on input pixel statistics. This approach results in the LED light strip failing to respond quickly enough to screen changes, exhibiting a delay of several frames. This abruptness leads to noticeable color or brightness differences between adjacent frames, causing the light strip to flicker and negatively impacting the user's viewing experience. Therefore, reliably and efficiently solving the problem of video data processing for ambient lighting has become a pressing issue for researchers in this field. Summary of the Invention
[0004] To address the above-mentioned deficiencies, this invention provides an ambient light video data processing method, apparatus, device, and storage medium to solve the problems existing in the prior art.
[0005] To address the aforementioned technical problems, embodiments of the present invention provide an ambient light video data processing method, the method comprising:
[0006] The display terminal receives the display signal input source and divides the pixel area of the display terminal into several partition areas according to the number of LED beads of the ambient light.
[0007] Obtain the row pixel range and column pixel range of each of the aforementioned partition regions;
[0008] Based on the row pixel range and column pixel range of each of the aforementioned partition regions, each of the aforementioned partition regions is divided into multiple partition sub-regions; wherein, the multiple partition regions extend radially outward from the display screen with the midpoint of the display terminal as the center point of the screen;
[0009] In a frame of display data, the RGB basic hue values of the display signal input source in multiple partition sub-regions are obtained;
[0010] The RGB base color values of multiple sub-regions in each of the aforementioned partitioned regions are mapped to the corresponding LED beads to produce a spatial gradient effect.
[0011] Preferably, the ambient light video data processing method further includes:
[0012] In the multi-frame display data, the RGB basic hue values of the display signal input source in the multiple partition sub-regions are obtained;
[0013] Obtain the mean value of the RGB basic hue values;
[0014] The average RGB base hue of multiple sub-regions in each of the aforementioned partitioned regions is mapped to the corresponding LED beads to produce a smooth transition effect.
[0015] Preferably, the display signal input source for receiving the display terminal divides the pixel area of the display terminal into several partitioned areas according to the number of LED beads in the ambient light, including:
[0016] A Cartesian coordinate system is established with the center point of the display terminal as the origin.
[0017] Based on the number of LED beads distributed on the long and wide sides of the display terminal, the long and wide sides of the display terminal are divided into several equal parts;
[0018] Obtain the coordinates of each critical point that divides the long and wide sides of the display terminal into several equal parts;
[0019] By connecting the coordinates of each critical point with the coordinates of the center point of the display terminal, the pixel area of the display terminal is divided into several partitioned areas.
[0020] Preferably, obtaining the row pixel range and column pixel range of each of the plurality of partition regions includes:
[0021] Obtain the row pixel range and column pixel range of the several partitioned regions in the first quadrant;
[0022] Obtain the row pixel range and column pixel range of the several partitioned regions in the second quadrant;
[0023] Obtain the row pixel range and column pixel range of the aforementioned partition regions in the third quadrant;
[0024] Obtain the row pixel range and column pixel range of the aforementioned partition regions in the fourth quadrant.
[0025] Preferably, obtaining the row pixel range and column pixel range of the plurality of partitioned regions in the first quadrant includes:
[0026] The column pixel range is:
[0027] The range h of the 1st row of pixels is: X1 + zp / 2 <x<X0+zp / 2,
[0028] Wherein, the video size of the display terminal is zp×hp, zp is the long side of the video size, hp is the wide side of the video size, k is the serial number of the ambient light bead on the long or wide side of the display terminal, and m is the total number of bead on the long or wide side of the display terminal.
[0029] Preferably, dividing each of the plurality of partition regions into multiple sub-regions based on the row pixel range and column pixel range of each of the plurality of partition regions includes:
[0030] The column pixel range is divided according to a preset weight, and each of the several partition regions is divided into multiple partition sub-regions.
[0031] Preferably, mapping the RGB base hue values of multiple sub-regions within each of the plurality of partitioned regions to corresponding LED beads to produce a spatial gradient effect includes:
[0032] The RGB base hue values of multiple sub-regions in each of the aforementioned partitioned regions are multiplied by a preset weighting coefficient and then mapped onto the corresponding LED beads to produce a spatial gradient effect.
[0033] To address the aforementioned technical problems, embodiments of the present invention provide an ambient light video data processing device, the device comprising:
[0034] The first partitioning module is used to receive the display signal input source of the display terminal and divide the pixel area of the display terminal into several partition areas according to the number of LED beads of the ambient light.
[0035] The range determination module is used to obtain the row pixel range and column pixel range of each of the plurality of partition regions;
[0036] The second partitioning module is used to divide each of the plurality of partition regions into multiple partition sub-regions based on the row pixel range and column pixel range of each of the plurality of partition regions.
[0037] The first RGB hue value extraction module is used to obtain the RGB basic hue values of the display signal input source in multiple partition sub-regions in a frame of display screen data;
[0038] The first mapping module is used to map the RGB base color values of multiple sub-regions in each of the several partitioned regions to the corresponding LED beads to produce a spatial gradient effect.
[0039] To address the aforementioned technical problems, this invention provides an ambient light video data processing device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, wherein when the computer program instructions are executed by the processor, the method of the first aspect described above is implemented.
[0040] To address the aforementioned technical problems, embodiments of the present invention provide a storage medium storing computer program instructions, which, when executed by a processor, implement the method of the first aspect described above.
[0041] In summary, the ambient light video data processing method, apparatus, device, and storage medium provided by the embodiments of the present invention are as follows: The present invention receives a display signal input source from a display terminal, divides the pixel area of the display terminal into several partitioned areas according to the number of LED beads in the ambient light, obtains the row pixel range and column pixel range of each of the several partitioned areas, divides each of the several partitioned areas into multiple sub-partitioned areas according to the row pixel range and column pixel range of each of the several partitioned areas, obtains the RGB basic hue values of the display signal input source in the multiple sub-partitioned areas in a frame of display screen data, and maps the RGB basic hue values of the multiple sub-partitioned areas in each of the several partitioned areas to the corresponding LED beads to produce a spatial gradient effect. Therefore, the ambient light video data processing method of the present invention enables the ambient light to present a spatial gradient visual effect following the display screen; in addition, the present invention also enables the ambient light to smoothly transition with the display screen, resulting in a high user experience. Attached Figure Description
[0042] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1This is a schematic diagram of the ambient light distribution principle of an ambient light video data processing method according to an embodiment of the present invention.
[0044] Figure 2 This is a flowchart of an ambient light video data processing method according to an embodiment of the present invention.
[0045] Figure 3 This is a flowchart of an ambient light video data processing method according to another embodiment of the present invention.
[0046] Figure 4 This is a schematic diagram illustrating the principle of an ambient light video data processing method according to another embodiment of the present invention.
[0047] Figure 5 This is a schematic diagram illustrating the partitioning principle of an ambient light video data processing method according to an embodiment of the present invention.
[0048] Figure 6 This is a schematic diagram illustrating the principle of determining the pixel range in the ambient light video data processing method according to an embodiment of the present invention.
[0049] Figure 7 This is a schematic diagram illustrating the principle of determining the pixel range in another embodiment of the ambient light video data processing method of the present invention.
[0050] Figure 8 This is a schematic diagram illustrating the principle of dividing a video data processing method for ambient lighting into sub-regions, according to an embodiment of the present invention.
[0051] Figure 9 This is a schematic diagram of the structure of an ambient light video data processing device according to an embodiment of the present invention.
[0052] Figure 10 This is a schematic diagram of another ambient light video data processing device according to an embodiment of the present invention.
[0053] Figure 11 This is a schematic diagram of the structure of the ambient light video data processing device according to an embodiment of the present invention. Detailed Implementation
[0054] The features and exemplary embodiments of various aspects of the present invention will now be described in detail. To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the invention.
[0055] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0056] Please see Figure 2 , Figure 2 This application provides a method for processing ambient light video data, the method comprising the following steps:
[0057] S1. Receive the display signal input source of the display terminal, and divide the pixel area of the display terminal into several partition areas according to the number of LED beads of the ambient light; wherein, the several partition areas radiate outward from the display screen with the midpoint of the display terminal as the center point of the screen.
[0058] Specifically, in this application, a display signal input source is received from the display terminal to obtain the R, G, and B pixel values of the display terminal as the data source for the ambient light display. It is understood that the interface for obtaining the display signal input source in this application includes one or more of HDMI, DP, or LVDS interfaces, and is not specifically limited thereto.
[0059] Specifically, please refer to Figure 1 The ambient light in this application consists of n LED beads connected in series, each with red (R), green (G), and blue (B) channels, and distributed at the edges of the top, bottom, left, and right sides of the back of the display terminal. This application divides the pixel area of the display terminal into several partitioned areas based on the number of ambient light beads. The number of ambient light beads can be set according to the length and width dimensions of the display terminal, and is not specifically limited here.
[0060] Specifically, this application divides the pixel area of the display terminal into several partition areas based on the number of LED beads in the ambient light, processes the data in each partition area, and maps the R, G, and B pixel values of each partition area to the corresponding LED beads, so that the ambient light can present a regular flashing effect following the display screen of the display terminal.
[0061] S2. Obtain the row pixel range and column pixel range of each of the plurality of partition regions;
[0062] Specifically, this application obtains the row and column pixel ranges of each of the plurality of partitioned regions through pixel scanning. The pixel scanning process specifically includes: in each of the plurality of partitioned regions, refreshing from left to right, after completing the scanning of a row of pixels, determining the row pixel range of that row, and then scanning the next row, continuing to refresh from left to right until the last pixel in that partitioned region has been refreshed. It is understood that the pixel scanning process in this application can also scan row by row from right to left and from top to bottom, or scan row by row from right to left and from bottom to top, and is not specifically limited here.
[0063] S3. Based on the row pixel range and column pixel range of each of the plurality of partition regions, divide each of the plurality of partition regions into a plurality of partition sub-regions;
[0064] Specifically, after obtaining the row pixel range and column pixel range of each of the plurality of partition regions, this application divides each of the plurality of partition regions into multiple partition sub-regions. For example, the partition region corresponding to the first LED bead on the long perimeter of the display terminal is divided into three partition sub-regions, the partition region corresponding to the second LED bead on the long perimeter of the display terminal is divided into three partition sub-regions, the partition region corresponding to the third LED bead on the long perimeter of the display terminal is divided into three partition sub-regions, and so on.
[0065] It should be noted that, in this application, each of the aforementioned several partition areas is preferably divided into multiple partition sub-regions of the same number, thereby achieving a smooth transition of the ambient light following the flashing of the display terminal and improving the visual display effect.
[0066] S4. In a frame of display screen data, obtain the RGB basic hue values of the display signal input source in multiple partition sub-regions;
[0067] S5. Map the RGB base color values of multiple sub-regions in each of the aforementioned partition areas to the corresponding LED beads to produce a spatial gradient effect.
[0068] Specifically, after dividing each of the aforementioned several partition regions into multiple partition sub-regions of the same number, this application obtains the basic hue value ∑ of each frame of display image data through spatial filtering. R1 ,∑ G1 ,∑ B1 ~∑ Rn ,∑ Gn ,∑ BnThe RGB base color values of each frame of display data in each of the several partition areas are mapped to the corresponding LED beads, so that the ambient light can flash in layers according to each frame of display data, thereby creating a spatial gradient effect when the content of the screen changes.
[0069] In summary, this application provides an ambient light video data processing method. In this method, the present invention receives a display signal input source from a display terminal, divides the pixel area of the display terminal into several partitioned regions based on the number of LED beads in the ambient light, obtains the row and column pixel ranges of each of the several partitioned regions, and further divides each of the several partitioned regions into multiple sub-regions based on the row and column pixel ranges of each of the several partitioned regions. In a frame of display screen data, the RGB basic hue values of the display signal input source in the multiple sub-regions are obtained. The RGB basic hue values of the multiple sub-regions in each of the several partitioned regions are mapped to the corresponding LED beads to produce a spatial gradient effect. Therefore, the ambient light video data processing method of the present invention enables the ambient light to present a spatial gradient visual effect following the display screen, reflecting the diversity of display effects and providing a high-quality user experience.
[0070] Based on the above embodiments:
[0071] Please refer to Figure 3 , Figure 3 A flowchart of another ambient light video data processing method provided in this application.
[0072] Please refer to Figure 4 , Figure 4 A schematic diagram illustrating the principle of another ambient light video data processing method provided in this application.
[0073] As a preferred embodiment, the ambient light video data processing method further includes:
[0074] S6. In the multi-frame display screen data, obtain the RGB basic hue values of the display signal input source in the multiple partition sub-regions;
[0075] S7. Obtain the mean value of the RGB basic hue values;
[0076] S8. Map the average RGB base hue of multiple sub-regions in each of the aforementioned partitioned regions to the corresponding LED beads to produce a smooth transition effect.
[0077] Specifically, in this embodiment, by performing a weighted average of the statistical results generated from multiple adjacent frames of image data, the data used to map each LED bead in the ambient light strip is finally obtained. It is understood that by performing a weighted average of the RGB basic hue values in the partitioned sub-regions and then compressing and mapping them onto the light strip, this application enables a smoother transition when the ambient light follows changes in the display terminal, avoiding high-frequency flicker.
[0078] Please refer to Figure 5 , Figure 5 A schematic diagram illustrating the partitioning principle of another ambient light video data processing method provided in this application.
[0079] In a preferred embodiment, the display signal input source of the receiving display terminal divides the pixel area of the display terminal into several partitioned areas according to the number of LED beads in the ambient light, including:
[0080] A Cartesian coordinate system is established with the center point of the display terminal as the origin.
[0081] Specifically, in this embodiment, a Cartesian coordinate system is established with the center point of the display terminal as the origin, thereby dividing the display screen of the display terminal into four parts: the first quadrant, the second quadrant, the third quadrant, and the fourth quadrant.
[0082] Based on the number of LED beads distributed on the long and wide sides of the display terminal, the long and wide sides of the display terminal are divided into several equal parts;
[0083] Specifically, such as Figure 5 As shown, taking the second quadrant as an example, the number of LED beads distributed in the second quadrant, which is halfway along the X-axis of the display terminal, is N. Then, the left halfway along the display terminal is divided into N equal parts.
[0084] Obtain the coordinates of each critical point that divides the long and wide sides of the display terminal into several equal parts;
[0085] By connecting the coordinates of each critical point with the coordinates of the center point of the display terminal, the pixel area of the display terminal is divided into several partitioned areas.
[0086] Specifically, this application connects the coordinates of each critical point to the coordinates of the center point of the display terminal, thereby causing several partitioned areas to radiate outwards from the origin of the coordinate system towards the display terminal screen, i.e., each partitioned area is triangular in shape. It is understood that the several partitioned areas of this application do not overlap, thus ensuring that the data mapped to each LED bead is different, enabling more comprehensive control of the ambient light to follow the display screen's blinking and improving the synchronized display effect of the ambient light.
[0087] It is worth noting that, in one embodiment, this application may also divide the display screen into N equal parts based on the number of ambient light LED beads, with the serial number of the LED beads corresponding to the serial number of the partition area, without making specific limitations here.
[0088] Please refer to Figure 6 , Figure 6 This is a schematic diagram illustrating the principle of determining the pixel range in an ambient light video data processing method provided in this application.
[0089] As a preferred embodiment, obtaining the row pixel range and column pixel range of each of the plurality of partition regions includes:
[0090] Obtain the row pixel range and column pixel range of the several partitioned regions in the first quadrant;
[0091] Obtain the row pixel range and column pixel range of the several partitioned regions in the second quadrant;
[0092] Obtain the row pixel range and column pixel range of the aforementioned partition regions in the third quadrant;
[0093] Obtain the row pixel range and column pixel range of the aforementioned partition regions in the fourth quadrant.
[0094] Specifically, this application sequentially scans the row pixels of each partition region in the first quadrant, second quadrant, third quadrant, and fourth quadrant to determine the row pixel range and column pixel range of each partition region.
[0095] As a preferred embodiment, obtaining the row pixel range and column pixel range of the plurality of partitioned regions in the first quadrant includes:
[0096] The column pixel range is:
[0097] The range of pixels h in row h (k-1) is: X1 + zp / 2 <x<X0+zp / 2,
[0098] Wherein, the video size of the display terminal is zp×hp, zp is the long side of the video size, hp is the wide side of the video size, k is the serial number of the ambient light bead on the long or wide side of the display terminal, and m is the total number of bead on the long or wide side of the display terminal.
[0099] Specifically, taking the first quadrant as an example, such as Figure 6As shown, the shaded area represents the range of the partition area corresponding to the Kth LED bead in the first quadrant. This application determines the coordinate range of the partition area corresponding to the Kth LED bead in the first quadrant by scanning the shaded area line by line and calculating the ranges on both the left and right sides of the shaded area.
[0100] Specifically, assuming the display terminal has a screen ratio of 16:9, the video image size can be set to 16px 9p. The number of LEDs at the top of the display screen in the first quadrant is m. Input pixels correspond to rows X and columns Y. Since region K falls entirely within the second quadrant, the column pixel range, i.e., the Y coordinate range, is half the width of the video image size, i.e., 0. <Y<4.5p
[0101] Specifically, such as Figure 6 As shown, the area corresponding to the Kth LED is the shaded area, with endpoints B1, C1, and O. The line segment A1G1 is half the length of the display terminal's longer side, i.e., A1G1 = L1 / 2 = 16p / 2. The total number of LEDs on the display terminal's longer or shorter side is m, so each LED occupies a length of 16p / m. The length occupied by the Kth LED is L2 = 16pk / m, i.e., B1G1 = L7 = L2 - 16p / 2. =16pk / m-16p / 2; The length occupied by the (k-1)th LED bead is L3=16(k-1) / m, that is, G1C1=L6=L3-16p / 2=16(k-1) / m-16p / 2; The line connecting points D1, E1 and F1 is parallel to G1A1, and the variation range in the Y direction is 0~4.5p. Assuming the length of G1F1 is y, then OF1=L4=9p / 2-y, OG1=L5=9p / 2.
[0102] Specifically, in triangle OB1G1, the following relationship can be obtained using trigonometric functions:
[0103] D1F1 / B1G 1 = OF1 / OG1;
[0104] E1F1 / C1G1=OF1 / OG1;
[0105] That is: X0 / L7 = L4 / L5;
[0106] X1 / L6 = L4 / L5;
[0107] Substituting into the formula, we get:
[0108]
[0109] therefore:
[0110] X0=(144pk-32ky-72pm+16my) / 9m;
[0111] X1=(144pk-32ky-144p+32y-72pm+16my) / 9m;
[0112] The row pixel range in the first quadrant is: X1 + 16p / 2 <X<X0+16p / 2。
[0113] Please refer to Figure 7 , Figure 7 A schematic diagram illustrating the principle of determining the pixel range in another ambient light video data processing method provided in this application.
[0114] Specifically, taking the second quadrant as an example, such as Figure 7 As shown, the shaded area represents the range of the partition area corresponding to the Kth LED bead in the second quadrant. This application determines the coordinate range of the partition area corresponding to the Kth LED bead in the second quadrant by scanning the shaded area line by line and calculating the ranges on both the left and right sides of the shaded area.
[0115] Specifically, assuming the display terminal has a screen ratio of 16:9, the video image size can be set to 16px 9p. The number of LEDs at the top of the display screen in the second quadrant is m. Input pixels correspond to rows X and columns Y. Since region K falls entirely within the second quadrant, the column pixel range, i.e., the Y coordinate range, is half the width of the video image size, i.e., 0. <Y<4.5p
[0116] Specifically, such as Figure 7 As shown, the area corresponding to the Kth LED bead is the shaded area, with the endpoints of the shaded area being points B, C, and D. The AG line segment is half the length of the long side of the display terminal, i.e., AG = L1 = 16p / 2. The total number of LED beads on the long or wide side of the display terminal is m, so the length occupied by each LED bead is 16p / m. The length occupied by the Kth LED bead is 16pk / m, i.e., AC = L2 = 16pk / m. The length occupied by the (k-1)th LED bead is 16(k-1) / m, i.e., AB = L3 = 16(k-1) / m. The line connecting points D, E, and F is parallel to GA, and the variation range in the Y direction is 0 to 4.5p. Assuming the length of GF is y, then OF = L4 = 9p / 2 - y, OG = L5 = 9p / 2, GC = L6 = L1 - L2, and BG = L7 = L1 - L3.
[0117] Specifically, in triangle OBG, the following relationship can be obtained using trigonometric functions:
[0118] DF / BG = OF / OG;
[0119] EF / CG = OF / OG;
[0120] That is: X0 / L7 = L4 / L5;
[0121] X1 / L6 = L4 / L5;
[0122] Substituting into the formula, we get:
[0123]
[0124] therefore:
[0125] X0=8p-(144pk+144p+32ky-16my-32y) / 9m;
[0126] X1=8p+(32ky-144pk) / 9m-16y / 9;
[0127] The row pixel range in the second quadrant is: 16p / 2 - X0 <X<16p / 2-X1。
[0128] Specifically, the row and column pixel ranges corresponding to other LED beads in the third quadrant can be obtained in the same way, and will not be repeated here; the row and column pixel ranges corresponding to each LED bead in the fourth quadrant can be obtained in the same way, and will not be repeated here.
[0129] Please refer to Figure 8 , Figure 8 A schematic diagram illustrating the principle of dividing the ambient light video data processing method provided in this application into sub-regions.
[0130] As a preferred embodiment, dividing each of the plurality of partition regions into multiple sub-regions based on the row pixel range and column pixel range of each of the plurality of partition regions includes:
[0131] The column pixel range is divided according to a preset weight, and each of the several partition regions is divided into multiple partition sub-regions.
[0132] Specifically, this application scans each partition region line by line to determine the position of pixels, processes the pixels within the corresponding region, and finally outputs the result. Then, it divides the column pixel range according to a preset weight, dividing each of the several partition regions into multiple sub-regions. For example, for the Kth LED bead, by constraining Σ in the sub-regions... k_1 , Σ k_2 and Σ k_3 The range of y in the equation is y1, y2, y3. Then, the range of x0, x1, x2 is derived from the aforementioned formula, thus determining Σ. k_1 Σ k_2 and Σ k_3 The range.
[0133] As a preferred embodiment, mapping the RGB base hue values of multiple sub-regions within each of the plurality of partitioned regions to corresponding LED beads to produce a spatial gradient effect includes:
[0134] The RGB base hue values of multiple sub-regions in each of the aforementioned partitioned regions are multiplied by a preset weighting coefficient and then mapped onto the corresponding LED beads to produce a spatial gradient effect.
[0135] Specifically, this application can multiply the RGB base hue values of multiple partition sub-regions by corresponding coefficients r1, r2, and r3 according to actual needs. For example, the corresponding coefficients r1, r2, and r3 may present an arithmetic sequence distribution, which is not specifically limited here.
[0136] Please see Figure 9 , Figure 9 This application provides a structural diagram of an ambient light video data processing device.
[0137] This invention provides an ambient light video data processing device, the device comprising:
[0138] The first partitioning module 1 is used to receive the display signal input source of the display terminal and divide the pixel area of the display terminal into several partition areas according to the number of LED beads of the ambient light.
[0139] Range determination module 2 is used to obtain the row pixel range and column pixel range of each of the plurality of partition regions;
[0140] The second partitioning module 3 is used to divide each of the plurality of partition regions into multiple partition sub-regions based on the row pixel range and column pixel range of each of the plurality of partition regions.
[0141] The first RGB hue value extraction module 4 is used to obtain the RGB basic hue values of the display signal input source in multiple partition sub-regions in a frame of display screen data;
[0142] The first mapping module 5 is used to map the RGB basic hue values of multiple sub-regions in each of the several partitioned regions to the corresponding LED beads to produce a spatial gradient effect.
[0143] Please see Figure 10 , Figure 10 This application provides a structural diagram of an ambient light video data processing device.
[0144] This invention provides an ambient light video data processing device, the device further comprising:
[0145] The second RGB hue value extraction module 6 is used to obtain the RGB basic hue values of the display signal input source in multiple partition sub-regions from the multi-frame display screen data;
[0146] Calculation module 7 is used to obtain the mean value of the RGB basic hue values;
[0147] The second mapping module 8 is used to map the average RGB base hue of multiple sub-regions in each of the several partitioned regions to the corresponding LED beads to produce a smooth transition effect.
[0148] In addition, combined Figure 1 The ambient light video data processing method described in this embodiment of the invention can be implemented by an ambient light video data processing device. Figure 11 A schematic diagram of the hardware structure of the ambient light video data processing device provided in an embodiment of the present invention is shown.
[0149] The ambient lighting video data processing device may include a processor 401 and a memory 402 storing computer program instructions.
[0150] Specifically, the processor 401 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of the present invention.
[0151] Memory 402 may include mass storage for data or instructions. For example, and not limitingly, memory 402 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 402 may include removable or non-removable (or fixed) media. Where appropriate, memory 402 may be internal or external to a data processing device. In a particular embodiment, memory 402 is a non-volatile solid-state memory. In a particular embodiment, memory 402 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0152] The processor 401 reads and executes computer program instructions stored in the memory 402 to implement any of the ambient light video data processing methods in the above embodiments.
[0153] In one example, the ambient lighting video data processing device may further include a communication interface 403 and a bus 410. For example, Figure 11 As shown, the processor 401, memory 402, and communication interface 403 are connected through bus 410 and complete communication with each other.
[0154] The communication interface 403 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of the present invention.
[0155] Bus 410 includes hardware, software, or both, that couples components of an ambient lighting video data processing device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 410 may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.
[0156] Furthermore, in conjunction with the ambient light video data processing method in the above embodiments, this invention can be implemented using a computer-readable storage medium. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the ambient light video data processing methods in the above embodiments.
[0157] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0158] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. A method for processing ambient light video data, characterized in that, The method includes: The system receives the display signal input source from the display terminal and divides the pixel area of the display terminal into several partitioned areas based on the number of LED beads in the ambient light, including: A Cartesian coordinate system is established with the center point of the display terminal as the origin. Based on the number of LED beads distributed on the long and wide sides of the display terminal, the long and wide sides of the display terminal are divided into several equal parts; Obtain the coordinates of each critical point that divides the long and wide sides of the display terminal into several equal parts; Connect the coordinates of each critical point to the coordinates of the center point of the display terminal to divide the pixel area of the display terminal into several partition areas. Among them, several of the partitioned areas radiate outwards from the display screen with the midpoint of the display terminal as the center point of the screen; Obtaining the row pixel range and column pixel range of each of the plurality of partition regions includes: Obtain the row pixel range and column pixel range of the several partitioned regions in the first quadrant, including; The column pixel range is: ; The row pixel range is: , , ; The video size of the display terminal is [missing information]. , The longer side of the video size. Where k is the width of the video, k is the serial number of the ambient light LED on the long or wide side of the display terminal, and m is the total number of LEDs on the long or wide side of the display terminal; Based on the row pixel range and column pixel range of each of the aforementioned partition regions, each of the aforementioned partition regions is divided into multiple partition sub-regions; In a frame of display data, the RGB basic hue values of the display signal input source in multiple partition sub-regions are obtained; Mapping the RGB base hue values of multiple sub-regions within each of the aforementioned partitioned regions to corresponding LED beads to produce a spatial gradient effect includes: After multiplying the RGB base color values of multiple sub-regions in each of the aforementioned partition regions by a preset weighting coefficient, they are mapped to the corresponding LED beads to produce a spatial gradient effect. In the multi-frame display data, the RGB basic hue values of the display signal input source in the multiple partition sub-regions are obtained; Obtain the mean value of the RGB basic hue values; The average RGB base hue of multiple sub-regions in each of the aforementioned partitioned regions is mapped to the corresponding LED beads to produce a smooth transition effect.
2. The ambient light video data processing method according to claim 1, characterized in that, The step of dividing each of the plurality of partition regions into multiple sub-regions based on the row pixel range and column pixel range of each of the plurality of partition regions includes: The column pixel range is divided according to a preset weight, and each of the several partition regions is divided into multiple partition sub-regions.
3. An ambient light video data processing device, used to implement the method as described in any one of claims 1-2, characterized in that, The device includes: The first partitioning module is used to receive the display signal input source of the display terminal and divide the pixel area of the display terminal into several partition areas according to the number of LED beads of the ambient light. The range determination module is used to obtain the row pixel range and column pixel range of each of the plurality of partition regions; The second partitioning module is used to divide each of the plurality of partition regions into multiple partition sub-regions based on the row pixel range and column pixel range of each of the plurality of partition regions. The first RGB hue value extraction module is used to obtain the RGB basic hue values of the display signal input source in multiple partition sub-regions in a frame of display screen data; The first mapping module is used to map the RGB base color values of multiple sub-regions in each of the several partitioned regions to the corresponding LED beads to produce a spatial gradient effect.
4. An ambient light video data processing device, characterized in that, include: At least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method as described in any one of claims 1-2.
5. A storage medium storing computer program instructions thereon, characterized in that, The method as described in any one of claims 1-2 is implemented when the computer program instructions are executed by the processor.