Intelligent equipment light effect adjusting method and computer equipment
By detecting the intelligent adjustment commands for lighting effects through the host, obtaining the audio or image parameter control mode, and using the signal conversion strategy to control the LED module, the problem of monotonous lighting effects in the existing technology is solved, and a richer lighting display is achieved, improving the user experience and visual effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN RONGYUAN TECH CO LTD
- Filing Date
- 2026-03-20
- Publication Date
- 2026-04-21
AI Technical Summary
The current input device lighting effects control of computer equipment is mainly limited to marquee or breathing modes, which cannot significantly improve the user experience and visual effects.
The host detects the intelligent lighting effect adjustment start command, obtains audio or image parameter control modes, generates lighting effect control data using preset signal conversion strategies, and dynamically controls the brightness and color effects of the LED module.
It enables flexible and diverse control of lighting effects on computer equipment, significantly improving the user experience and visual effects.
Smart Images

Figure CN121908440A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer equipment technology, and in particular to a method for intelligent adjustment of equipment lighting effects and a computer device. Background Technology
[0002] Currently, computer devices (such as desktop computers and laptops) can all connect to computer input devices such as keyboards and mice. For example, taking keyboards connected to computer devices as an example, to improve the user experience and visual effects, some keyboards have backlighting or RGB lighting effects. These keyboards with backlighting or RGB lighting effects require multiple LEDs at the bottom of the keyboard. A chip in the keyboard stores a preset flashing control algorithm to control the on / off state of these LEDs, thus achieving the blinking of the keyboard lights. However, the aforementioned flashing control algorithms generally produce a marquee-like lighting effect or a breathing-style on / off effect, resulting in a fixed lighting display effect that cannot significantly improve the user experience and visual effects. Summary of the Invention
[0003] This invention provides a method for intelligent adjustment of device lighting effects and a computer device, aiming to solve the problem that in the prior art, when controlling the lighting effects of input devices connected to a computer device, the preset flashing control algorithm can generally only achieve limited lighting display effects such as marquee or breathing, which cannot significantly improve the user experience and visual effect.
[0004] In a first aspect, embodiments of the present invention provide a method for intelligent adjustment of device lighting effects, applied to a computer device supporting dynamic lighting effects. The host of the computer device is connected to a lighting effect controlled object, which is a keyboard, mouse, or motherboard, and the lighting effect controlled object is provided with multiple LEDs to form an LED module. The method includes: If the host detects a smart lighting effect adjustment start command, it obtains the current lighting effect control mode corresponding to the smart lighting effect adjustment start command; wherein, the current lighting effect control mode includes at least an audio parameter control mode and an image parameter control mode; If the host determines that the current lighting effect control mode is the audio parameter control mode, it acquires the currently playing audio data according to the preset audio acquisition cycle, and acquires the first lighting effect control data corresponding to the currently playing audio data based on the first preset lighting effect control signal conversion strategy, and sends the first lighting effect control data to the lighting effect controlled object, so that the lamp bead module of the lighting effect controlled object can display the lighting effect according to the first lighting effect control data. If the host determines that the current lighting effect control mode is the image parameter control mode, it acquires the current candidate image data according to the preset image acquisition cycle, acquires the second lighting effect control data corresponding to the current candidate image data based on the second preset lighting effect control signal conversion strategy, and sends the second lighting effect control data to the lighting effect controlled object, so that the lamp bead module of the lighting effect controlled object can display the lighting effect according to the second lighting effect control data.
[0005] Secondly, embodiments of the present invention also provide a computer device, wherein the host of the computer device is connected to a lighting effect controlled object, the lighting effect controlled object being a keyboard, mouse, or motherboard, and the lighting effect controlled object having multiple LEDs configured to form an LED module; the host of the computer device is used to execute the method described in the first aspect above.
[0006] Thirdly, embodiments of the present invention also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method described in the first aspect above.
[0007] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, can implement the method described in the first aspect above.
[0008] This invention provides a method for intelligent adjustment of device lighting effects and a computer device. The method includes: if the host detects an intelligent lighting effect adjustment start command, it acquires the current lighting effect control mode corresponding to the intelligent lighting effect adjustment start command; wherein, the current lighting effect control mode includes at least an audio parameter control mode and an image parameter control mode; if the host determines that the current lighting effect control mode is an audio parameter control mode, it acquires currently playing audio data according to a preset audio acquisition cycle, and acquires first lighting effect control data corresponding to the currently playing audio data based on a first preset lighting effect control signal conversion strategy, and sends the first lighting effect control data to the lighting effect controlled object, so that the LED module of the lighting effect controlled object displays lighting effects according to the first lighting effect control data; if the host determines that the current lighting effect control mode is an image parameter control mode, it acquires currently candidate image data according to a preset image acquisition cycle, and acquires second lighting effect control data corresponding to the currently candidate image data based on a second preset lighting effect control signal conversion strategy, and sends the second lighting effect control data to the lighting effect controlled object, so that the LED module of the lighting effect controlled object displays lighting effects according to the second lighting effect control data. The embodiments of the present invention enable the controlled object with LED modules connected to a computer device to be controlled more flexibly and in more diverse ways, at least in audio parameter control mode or image parameter control mode, which greatly improves the user experience and visual effect. Attached Figure Description
[0009] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 This is a schematic diagram illustrating an application scenario of the intelligent adjustment method for device lighting effects provided in an embodiment of the present invention. Figure 2 A flowchart illustrating the intelligent adjustment method for device lighting effects provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the first sub-process of the intelligent adjustment method for device lighting effects provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the second sub-process of the intelligent adjustment method for device lighting effects provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the third sub-process of the intelligent adjustment method for device lighting effects provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the fourth sub-process of the intelligent adjustment method for device lighting effects provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of the fifth sub-process of the intelligent adjustment method for device lighting effects provided in an embodiment of the present invention; Figure 8 This is a schematic diagram of the sixth sub-process of the intelligent adjustment method for device lighting effects provided in an embodiment of the present invention; Figure 9 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation
[0011] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0012] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0013] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0014] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0015] Please also refer to Figure 1 and Figure 2 ,in Figure 1 This is a schematic diagram of a scenario illustrating the intelligent adjustment method for device lighting effects according to an embodiment of the present invention. Figure 2 This is a flowchart illustrating the intelligent adjustment method for device lighting effects provided in an embodiment of the present invention. Figure 1 As shown, the intelligent adjustment method for device lighting effects provided in this embodiment of the invention is applied to a computer device that supports dynamic lighting effects. The host 10 of the computer device is connected to a lighting effect controlled object 20, which is a keyboard, mouse, or motherboard, and the lighting effect controlled object is provided with multiple LEDs to form an LED module. Figure 2 As shown, the method includes the following steps S110-S130.
[0016] S110. If the host detects a lighting effect intelligent adjustment start command, it obtains the current lighting effect control mode corresponding to the lighting effect intelligent adjustment start command.
[0017] The current lighting effect control mode includes at least an audio parameter control mode and an image parameter control mode.
[0018] In this embodiment, the technical solution is described using a computer device as the executing entity. More specifically, the complete technical solution can also be described using the host computer as the control center. When the user powers on the computer device, they can first activate the intelligent lighting effect adjustment system, and then select one of the multiple lighting effect control modes displayed on the user interface corresponding to the intelligent lighting effect adjustment system as the current lighting effect control mode. Alternatively, the user can activate the intelligent lighting effect adjustment system and use a pre-configured lighting effect control mode that is set to automatic upon startup as the current lighting effect control mode. Or, the user can activate the intelligent lighting effect adjustment system and randomly select a lighting effect control mode that is then confirmed by the user as the current lighting effect control mode. After determining the current lighting effect control mode, the host computer controls the lighting effects of the controlled objects accordingly.
[0019] S120. If the host determines that the current lighting effect control mode is an audio parameter control mode, it acquires the currently playing audio data according to a preset audio acquisition cycle, acquires the first lighting effect control data corresponding to the currently playing audio data based on a first preset lighting effect control signal conversion strategy, and sends the first lighting effect control data to the lighting effect controlled object, so that the LED module of the lighting effect controlled object can display the lighting effect according to the first lighting effect control data.
[0020] In this embodiment, if the host (specifically, the host controller) determines that the current lighting effect control mode is an audio parameter control mode, it means that the host can convert the collected audio data into first lighting effect control data according to the first preset lighting effect control signal conversion strategy, and cause the LED module of the controlled object to display lighting effects according to the first lighting effect control data. Specifically, the host needs to obtain the currently playing audio data according to a preset audio acquisition cycle (such as 30ms, 50ms, 60ms, 100ms, etc., of course, the above specific values are only for example and can be customized to other values according to the user's actual needs). That is, step S120 does not stop after being executed once, but is executed once every preset audio acquisition cycle until it detects that the user has turned off the current lighting effect control mode.
[0021] Each time the currently playing audio data is converted using the first preset lighting effect control signal conversion strategy, the first lighting effect control data for controlling the LED module of the controlled object can be obtained in a timely manner. If a main control board is also set in the controlled object, and the LED module in the controlled object is connected to the main control board, then the main control board first receives the first lighting effect control data sent by the host controller, and then the main control board of the controlled object controls the brightness and color of each LED in the LED module according to the first lighting effect control data. Because the first lighting effect control data changes dynamically according to the time sequence, rather than being fixed, more flexible and diverse control of the LED module of the controlled object can be achieved, greatly improving the user experience and visual effect.
[0022] In one embodiment, such as Figure 3 As shown, step S120 includes: S121. Obtain the current audio data that is currently in playback state from the sound card of the host according to the preset audio acquisition cycle, and use it as the current playback audio data; S122. Based on the first preset lighting effect control signal conversion strategy, perform a Fourier transform on the current audio frequency of the currently playing audio data to obtain the current spectrum information; S123. Obtain the LED bead arrangement matrix corresponding to the LED bead module; S124. Based on the current amplitude information in the current spectrum information and the lamp bead arrangement matrix, determine the horizontal and vertical lighting areas of the lamp bead module; S125. Obtain the lighting effect background color determination sub-strategy in the first preset lighting effect control signal conversion strategy, and determine the current lighting effect background color according to the lighting effect background color determination sub-strategy. S126, The first lighting effect control data is composed of the horizontal and vertical lighting areas of the LED module and the current lighting effect background color.
[0023] In this embodiment, when the host acquires the currently playing audio data, it specifically acquires the currently playing audio data from the host's sound card according to the preset audio acquisition cycle, and uses this as the currently playing audio data. The core audio parameters in the currently playing audio data include audio frequency, gain, tilt factor, contrast factor, release factor, minimum decibel value, maximum decibel value, and attack frame count. Taking the acquisition of the current audio frequency of the currently playing audio data and subsequent processing as an example, a Fourier transform can be performed on the current audio frequency of the currently playing audio data to obtain the current spectrum information. Afterwards, the total number and distribution position of the LED modules in the controlled lighting effect can be obtained. For example, if the total number of LED modules corresponds to a composite number, it can be decomposed into the product of an integer greater than 1 and another integer. In this case, one of the decomposition results of the total number of LED modules is used as the LED arrangement matrix. Specifically, if the total number of LED modules is 52 and the distribution position is characterized by the total number of rows being less than the total number of columns, it can be expressed as a 4×13 decomposition product result. The LED arrangement matrix is determined to be a 4-row, 13-column matrix. The value of each matrix element in the LED arrangement matrix corresponds to a unique LED in the LED module.
[0024] It's important to note that the LED positions within a module don't necessarily correspond strictly to a rectangular layout. However, they can be automatically grouped based on the horizontal and vertical coordinates of each LED. For example, if the LEDs are approximately distributed in a 4x13 grid, the distance between the leftmost and rightmost LEDs in the bottom row is designated as the first distance, and the distance between the leftmost and rightmost LEDs in the second row is designated as the second distance. Even if the first distance is less than the second distance, it doesn't affect the grouping of the leftmost and rightmost LEDs in the second row, along with the 11 LEDs in between, into the same row. If the first distance is 14 LEDs in the first row and the second row is 12 LEDs, the rightmost LED in the first row can be grouped into the second row to ensure a 4x13 grid layout.
[0025] After obtaining the LED bead arrangement matrix, the horizontal and vertical lighting areas of the LED bead module can be determined by combining the current amplitude information (which corresponds to a normalized value within the range of -1 to 1) in the current spectrum information. Furthermore, a sub-strategy needs to be determined based on the lighting effect background color in the first preset lighting effect control signal conversion strategy, and the current lighting effect background color is determined based on this sub-strategy. After obtaining the above control parameters, the first lighting effect control data is composed of the horizontal and vertical lighting areas of the LED bead module and the current lighting effect background color. Then, the LED bead module of the controlled object can be specifically controlled to display the lighting effect using the first lighting effect control data.
[0026] In one embodiment, such as Figure 4 As shown, step S124 includes: S1241. Obtain the absolute value of the current amplitude of the current amplitude information, and obtain the total number of rows in the arrangement matrix of the LED bead arrangement matrix; S1242. The product of the current absolute value of the amplitude and the total number of rows in the arrangement matrix is rounded down to obtain the current total number of rows to be lit. S1243. The vertical illumination area is determined according to the total number of rows to be illuminated in the current direction from bottom to top of the LED module, and the area covered by all LEDs in each row of the vertical illumination area is taken as the horizontal illumination area.
[0027] In this embodiment, when determining the horizontal and vertical illumination areas of the LED module, it is generally assumed that all LEDs belonging to the same row are illuminated. The total number of rows to be illuminated is calculated by rounding down the product of the current amplitude absolute value and the total number of rows in the arrangement matrix. Then, the vertical illumination area is determined from bottom to top of the LED module based on the current total number of rows to be illuminated. For example, referring to the above example, if the LED arrangement matrix has 4 rows and 13 columns and the total number of rows is 4, and the current amplitude absolute value is 0.6, then the product of the two is rounded down to 2. In this case, the determined vertical illumination area of the LED module is the bottom two rows, and the horizontal illumination area is the area covered by all LEDs in each row of the vertical illumination area being fully illuminated. It can be seen that by combining the current audio parameters and performing corresponding conversions, the horizontal and vertical illumination areas of the corresponding illuminated LEDs in the LED module are quickly obtained.
[0028] In one embodiment, such as Figure 5 As shown, step S125 includes: S1251. If it is determined that the lighting effect background color determination sub-strategy corresponds to the monochrome mode, then the preset lighting color corresponding to the monochrome mode is obtained, and the preset lighting color is used as the current lighting effect background color. S1252. If it is determined that the lighting effect background color determination sub-strategy corresponds to the gradient color mode, then obtain the preset gradient color sequence and the historical light color at the previous adjustment time, and determine the current light color corresponding to the historical light color at the previous adjustment time based on the preset gradient color sequence, and use the current light color as the current lighting effect background color. S1253. If it is determined that the lighting effect background color determination sub-strategy corresponds to the dazzling mode, then a preset lighting effect background color is randomly selected from multiple preset lighting effect background color combinations as the current lighting effect background color.
[0029] In this embodiment, to determine the background color of the lighting effect of each LED in the horizontal and vertical lighting areas corresponding to the lit LEDs in the LED module, it can be obtained in at least three ways, as follows: The first approach is to determine if the lighting effect background color determination sub-strategy corresponds to a monochrome mode, then obtain the preset lighting color (such as blue, red, green, etc.) corresponding to the monochrome mode. Of course, the above example is only for illustration and not a specific limitation. It can be customized according to the user's actual needs, and the preset lighting color is used as the current lighting effect background color.
[0030] The second approach involves determining that if the background color determination sub-strategy corresponds to a gradient color mode, a preset gradient color sequence (containing multiple colors arranged sequentially, equivalent to a preset color pool) and the historical light color from the previous adjustment moment can be obtained. Based on this preset gradient color sequence, the current light color adjacent to the historical light color from the previous adjustment moment is determined. Specifically, if the historical light color from the previous adjustment moment is considered to be at position N-1 in the preset gradient color sequence (where N is the total number of colors in the preset gradient color sequence), the color at position N in the preset gradient color sequence is obtained as the current light color. It's important to note that if the historical light color from the previous adjustment moment is already the last color in the preset gradient color sequence, then the process returns to position 1 in the preset gradient color sequence to obtain the current light color. Furthermore, the preset gradient color sequence can be updated periodically or manually according to user needs.
[0031] The third approach is to randomly select a preset background color from multiple preset background color combinations (including multiple colors) if the lighting effect background color determination sub-strategy corresponds to the dazzling mode, and use it as the current lighting effect background color. It is evident that the lighting effect background color determination sub-strategy can determine the current lighting effect background color in a more dynamic and intelligent way.
[0032] S130. If the host determines that the current lighting effect control mode is the image parameter control mode, it acquires the current candidate image data according to the preset image acquisition cycle, acquires the second lighting effect control data corresponding to the current candidate image data based on the second preset lighting effect control signal conversion strategy, and sends the second lighting effect control data to the lighting effect controlled object, so that the lamp bead module of the lighting effect controlled object performs lighting effect display according to the second lighting effect control data.
[0033] In this embodiment, if the host determines that the current lighting effect control mode is an image parameter control mode, it means that the host can convert the collected candidate image data into second lighting effect control data according to the second preset lighting effect control signal conversion strategy, and make the LED module of the controlled object display the lighting effect according to the second lighting effect control data. Specifically, the host needs to obtain the current candidate image data according to a preset image acquisition period (such as 30ms, 50ms, 60ms, 100ms, etc., which can be equal to the preset audio acquisition period. Of course, the above specific values are only for example and can be customized to other values according to the user's actual needs). That is, step S130 does not stop after being executed once, but is executed once every preset image acquisition period until it detects that the user has turned off the current lighting effect control mode.
[0034] Each time the current candidate image data is converted using a second preset lighting effect control signal conversion strategy, the second lighting effect control data for controlling the LED module of the controlled object can be obtained in a timely manner. Similarly, if a main control board is also installed in the controlled object, and the LED module in the controlled object is connected to the main control board, the main control board first receives the second lighting effect control data sent by the host controller, and then the main control board of the controlled object controls the brightness and color of each LED in the LED module according to the second lighting effect control data. Because the second lighting effect control data changes dynamically according to the time sequence, rather than being fixed, more flexible and diverse control of the LED module of the controlled object can be achieved, greatly improving the user experience and visual effect.
[0035] In one embodiment, such as Figure 6 As shown, step S130 includes: S131. If it is determined that the current lighting effect control mode is an image parameter control mode and corresponds to the light and shadow mode, then the current display image in the selected target display screen among the several display screens connected to the host is obtained according to the preset image acquisition cycle, and used as the current candidate image data. S132. If it is determined that the current lighting effect control mode is an image parameter control mode and corresponds to a custom sub-mode, then the image data of the corresponding selected area of the region selection box on the display screen connected to the host is obtained according to the preset image acquisition cycle, and used as the current candidate image data; wherein, the region selection box acquires one of the following in the corresponding selected area on the display screen: a static image, a dynamic image, or a video frame image.
[0036] In this embodiment, if the current lighting effect control mode is determined to be an image parameter control mode and corresponds to a light and shadow mode, the currently displayed image (generally a full-screen desktop image) of the selected target display screen from among several displays connected to the host is generally acquired according to the preset image acquisition cycle, and used as the current candidate image data. The target display screen can be determined by detecting the display area where the current mouse pointer is located. If the current lighting effect control mode is determined to be an image parameter control mode and corresponds to a custom sub-mode, the difference from the light and shadow mode is that the image data of the corresponding selected area on the display screen connected to the host can be selected by the user's operation area selection box. For example, if the currently selected area currently displays a static image, a dynamic image, or a video, then the corresponding type of image is acquired as the current candidate image data. Therefore, the above method enables support for acquiring image data that needs to be converted in multiple ways.
[0037] In one embodiment, as a first embodiment of obtaining the second lighting effect control data corresponding to the current candidate image data based on the second preset lighting effect control signal conversion strategy when it is determined in step S130 that the current lighting effect control mode is an image parameter control mode and corresponds to a light and shadow mode, such as... Figure 7 As shown, step S130 further includes: S1331A, Obtain the LED bead arrangement matrix corresponding to the LED bead module; S1332A: Obtain the first current image size of the currently displayed image; S1333A: Based on the total number of image regions determined by the product of the number of rows and columns in the LED arrangement matrix and the size of the first current image, the current displayed image is divided into multiple first image sub-regions on an average basis. S1334A: Establish a mapping relationship between each of the multiple first image sub-regions and the lamp corresponding to each matrix element of the lamp arrangement matrix, and use the average RGB value corresponding to each of the multiple first image sub-regions as the current first lighting effect control data of the corresponding mapped lamp to form the second lighting effect control data.
[0038] In this embodiment, corresponding to the current lighting effect control mode being the image parameter control mode and corresponding to the light and shadow mode, the method for obtaining the lamp bead arrangement matrix corresponding to the lamp bead module is the same as in the aforementioned step S123, and will not be repeated here. Then, the first current image size of the currently displayed image can be obtained, and based on the total number of image regions determined by the product of the number of rows and columns in the lamp bead arrangement matrix and the first current image size, the currently displayed image is divided into multiple first image sub-regions on an even basis. This method completes the even division of the current displayed image. Then, a one-to-one mapping relationship is established between each of the multiple first image sub-regions and the lamp bead corresponding to each matrix element of the lamp bead arrangement matrix. Thus, the average RGB value calculated based on each first image sub-region can be used as the current first lighting effect control data for its corresponding mapped lamp bead. Knowing the current first lighting effect control data of the lamp bead corresponding to each matrix element in the lamp bead arrangement matrix, the second lighting effect control data can be formed. As can be seen, by combining the above method with the current display image and performing the corresponding conversion, the current first lighting effect control data of the corresponding lit LED in the LED module is quickly obtained.
[0039] In one embodiment, as a second embodiment of obtaining the second lighting effect control data corresponding to the current candidate image data based on the second preset lighting effect control signal conversion strategy when it is determined in step S130 that the current lighting effect control mode is an image parameter control mode and corresponds to a custom sub-mode, such as... Figure 8 As shown, step S130 further includes: S1331B: Obtain the LED bead arrangement matrix corresponding to the LED bead module; S1332B: Obtain the second current image size of the current candidate image; S1333B: Based on the total number of image regions determined by the product of the number of rows and columns in the LED arrangement matrix and the size of the second current image, the current candidate image is divided into multiple second image sub-regions on an average basis. S1334B: Establish a mapping relationship between each of the multiple second image sub-regions and the lamp corresponding to each matrix element of the lamp arrangement matrix, and use the average RGB value corresponding to each of the multiple second image sub-regions as the current second lighting effect control data of the corresponding mapped lamp to form the second lighting effect control data.
[0040] In this embodiment, corresponding to the current lighting effect control mode being the image parameter control mode and corresponding to the custom sub-mode, the method for obtaining the lamp bead arrangement matrix corresponding to the lamp bead module is the same as in the aforementioned steps S123, and will not be repeated here. Then, the second current image size of the current candidate image data (which is generally smaller than the first current image size in the aforementioned example) can be obtained. Based on the total number of image region divisions determined by the product of the number of rows and columns in the lamp bead arrangement matrix and the second current image size, the current displayed image is divided into multiple second image sub-regions on an average basis. This method completes the equal division of the current displayed image. Then, a one-to-one mapping relationship is established between each second image sub-region and the lamp bead corresponding to each matrix element of the lamp bead arrangement matrix. Thus, the average RGB value calculated based on each second image sub-region can be used as the current second lighting effect control data for its corresponding mapped lamp bead. Knowing the current second lighting effect control data of the lamp bead corresponding to each matrix element in the lamp bead arrangement matrix, the second lighting effect control data can be formed. As can be seen, by combining the above method with the current display image and performing the corresponding conversion, the current second lighting effect control data of the corresponding lit LED in the LED module is quickly obtained.
[0041] As can be seen, the implementation of this method enables the controlled object with LED modules connected to the computer device to be controlled more flexibly and in more diverse ways, at least in audio parameter control mode or image parameter control mode, which greatly improves the user experience and visual effect.
[0042] This invention also provides a computer device. Specific application scenarios for this computer device can be found in [reference needed]. Figure 1 Furthermore, the intelligent device lighting effect adjustment method provided in this embodiment of the invention is applied to a computer device that supports dynamic lighting effects. The host 10 of the computer device is connected to a lighting effect controlled object 20, which is a keyboard, mouse, or motherboard. The lighting effect controlled object is equipped with multiple LEDs to form an LED module. The host 10 executes the aforementioned intelligent device lighting effect adjustment method.
[0043] It should be noted that those skilled in the art can clearly understand that the specific implementation process of each unit in the above-mentioned computer device can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.
[0044] As can be seen, the implementation of this computer embodiment enables the controlled object with LED modules connected to the computer device to be controlled more flexibly and in more diverse ways, at least in audio parameter control mode or image parameter control mode, which greatly improves the user experience and visual effect.
[0045] The aforementioned computer device can also be implemented as a computer program, which can be used in, for example... Figure 9 It runs on the computer device shown.
[0046] Please see Figure 9 , Figure 9 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. (See also...) Figure 9 The computer device 400 includes a processor 402, a memory, and a network interface 405 connected via a system bus 401. The memory may include a storage medium 403 and internal memory 404.
[0047] The storage medium 403 may store an operating system 4031 and a computer program 4032. The computer program 4032 includes program instructions that, when executed, cause the processor 402 to perform a method for intelligent adjustment of device lighting effects.
[0048] The processor 402 provides computing and control capabilities to support the operation of the entire computer device.
[0049] The internal memory 404 provides an environment for the computer program 4032 in the storage medium 403 to run. When the computer program 4032 is executed by the processor 402, the processor 402 can execute the above-mentioned intelligent adjustment method for device lighting effects.
[0050] This network interface 405 is used for network communication with other devices. Those skilled in the art will understand that... Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device to which the present invention is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0051] The processor 402 is used to run the computer program 4032 stored in the memory to implement the intelligent adjustment method for device lighting effects as described above.
[0052] It should be understood that, in this embodiment of the invention, the processor 402 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0053] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0054] Therefore, the present invention also provides a computer-readable storage medium. This computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to perform the intelligent adjustment method for device lighting effects as described above.
[0055] The storage medium can be any computer-readable storage medium that can store program code, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk.
[0056] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0057] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0058] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0059] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0060] The above description is merely a specific embodiment of the present invention, but the scope of protection 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 scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for intelligent adjustment of lighting effects in a device, applied to computer devices that support dynamic lighting effects, characterized in that: The host computer device is connected to a lighting effect controlled object, which is a keyboard, mouse, or motherboard, and the lighting effect controlled object is equipped with multiple LEDs to form an LED module; the method includes: If the host detects a smart lighting effect adjustment start command, it obtains the current lighting effect control mode corresponding to the smart lighting effect adjustment start command; wherein, the current lighting effect control mode includes at least an audio parameter control mode and an image parameter control mode; If the host determines that the current lighting effect control mode is the audio parameter control mode, it acquires the currently playing audio data according to the preset audio acquisition cycle, and acquires the first lighting effect control data corresponding to the currently playing audio data based on the first preset lighting effect control signal conversion strategy, and sends the first lighting effect control data to the lighting effect controlled object, so that the lamp bead module of the lighting effect controlled object can display the lighting effect according to the first lighting effect control data. If the host determines that the current lighting effect control mode is the image parameter control mode, it acquires the current candidate image data according to the preset image acquisition cycle, acquires the second lighting effect control data corresponding to the current candidate image data based on the second preset lighting effect control signal conversion strategy, and sends the second lighting effect control data to the lighting effect controlled object, so that the lamp bead module of the lighting effect controlled object can display the lighting effect according to the second lighting effect control data.
2. The method according to claim 1, characterized in that, The step of acquiring first lighting effect control data corresponding to the currently playing audio data according to a preset audio acquisition cycle and based on a first preset lighting effect control signal conversion strategy includes: According to the preset audio acquisition cycle, the current audio data that is currently in playback state is obtained from the sound card of the host and used as the current playback audio data; Based on the first preset lighting effect control signal conversion strategy, the current audio frequency of the currently playing audio data is subjected to Fourier transform to obtain the current spectrum information; Obtain the LED bead arrangement matrix corresponding to the LED bead module; Based on the current amplitude information in the current spectrum information and the lamp bead arrangement matrix, the horizontal and vertical lighting areas of the lamp bead module are determined; Obtain the lighting effect background color determination sub-strategy in the first preset lighting effect control signal conversion strategy, and determine the current lighting effect background color according to the lighting effect background color determination sub-strategy; The first lighting effect control data consists of the horizontal and vertical lighting areas of the LED module and the current lighting effect background color.
3. The method according to claim 2, characterized in that, The step of determining the horizontal and vertical illumination areas of the LED module based on the current amplitude information in the current spectrum information and the LED arrangement matrix includes: Obtain the absolute value of the current amplitude information and the total number of rows in the arrangement matrix of the LED beads; The product of the absolute value of the current amplitude and the total number of rows in the permutation matrix is rounded down to obtain the total number of rows to be lit. The vertical illumination area is determined from bottom to top according to the total number of rows to be illuminated, and the area covered by all the LEDs in each row of the vertical illumination area is taken as the horizontal illumination area.
4. The method according to claim 2, characterized in that, The step of obtaining the lighting effect background color determination sub-strategy in the first preset lighting effect control signal conversion strategy, and determining the current lighting effect background color according to the lighting effect background color determination sub-strategy, includes: If it is determined that the lighting effect background color determination sub-strategy corresponds to a monochrome mode, then the preset lighting color corresponding to the monochrome mode is obtained, and the preset lighting color is used as the current lighting effect background color; If it is determined that the lighting effect background color determination sub-strategy corresponds to the gradient color mode, then the preset gradient color sequence and the historical light color at the previous adjustment time are obtained, and the current light color corresponding to the historical light color at the previous adjustment time is determined based on the preset gradient color sequence, and the current light color is used as the current lighting effect background color. If the lighting effect background color determination sub-strategy is determined to correspond to the dazzling mode, then a preset lighting effect background color is randomly selected from multiple preset lighting effect background color combinations as the current lighting effect background color.
5. The method according to claim 1, characterized in that, If the current lighting effect control mode is determined to be an image parameter control mode, then the current candidate image data is acquired according to a preset image acquisition cycle, including: If the current lighting effect control mode is determined to be an image parameter control mode and corresponds to the light and shadow mode, then the current display image in the selected target display screen among the several display screens connected to the host is obtained according to the preset image acquisition cycle, and used as the current candidate image data; If the current lighting effect control mode is determined to be an image parameter control mode and corresponds to a custom sub-mode, then the image data of the corresponding selected area of the region selection box on the display screen connected to the host is acquired according to the preset image acquisition cycle, and used as the current candidate image data; wherein, the region selection box acquires one of the following in the corresponding selected area on the display screen: a static image, a dynamic image, or a video frame image.
6. The method according to claim 5, characterized in that, If the current lighting effect control mode is determined to be an image parameter control mode and corresponds to a light and shadow mode, the step of obtaining the second lighting effect control data corresponding to the current candidate image data based on the second preset lighting effect control signal conversion strategy includes: Obtain the LED bead arrangement matrix corresponding to the LED bead module; Obtain the first current image size of the currently displayed image; Based on the total number of image regions determined by the product of the number of rows and columns in the LED arrangement matrix and the size of the first current image, the currently displayed image is divided into multiple first image sub-regions on an average basis. A mapping relationship is established between each of the multiple first image sub-regions and the LED corresponding to each matrix element of the LED arrangement matrix. The average RGB value corresponding to each of the multiple first image sub-regions is used as the current first lighting effect control data of the corresponding mapped LED to form the second lighting effect control data.
7. The method according to claim 5, characterized in that, If the current lighting effect control mode is determined to be an image parameter control mode and corresponds to a custom sub-mode, the step of obtaining the second lighting effect control data corresponding to the current candidate image data based on the second preset lighting effect control signal conversion strategy includes: Obtain the LED bead arrangement matrix corresponding to the LED bead module; Obtain the second current image size of the current candidate image; Based on the total number of image regions determined by the product of the number of rows and columns in the LED arrangement matrix and the size of the second current image, the current candidate image is divided into multiple second image sub-regions on an average basis. A mapping relationship is established between each of the multiple second image sub-regions and the LED corresponding to each matrix element of the LED arrangement matrix, and the average RGB value corresponding to each of the multiple second image sub-regions is used as the current second lighting effect control data of the corresponding mapped LED to form the second lighting effect control data.
8. A computer device, characterized in that, The host computer is connected to a lighting effect controlled object, which is a keyboard, mouse, or motherboard, and the lighting effect controlled object is provided with multiple LEDs to form an LED module; the host computer is used to execute the intelligent adjustment method for device lighting effects as described in any one of claims 1-7.
9. A computer device, characterized in that, The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the intelligent adjustment method for device lighting effects as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which includes program instructions that, when executed by a processor, can implement the intelligent adjustment method for device lighting effects as described in any one of claims 1-7.