Light linkage method and device, storage medium and host

By capturing, cutting and extracting the main color block data of the linkage device screen, combining it into a third image and driving the lighting device to light it, the problem of the splitting feeling between traditional lighting devices and other equipment is solved, real-time linkage and aesthetic enhancement is achieved.

CN120129119APending Publication Date: 2025-06-10SHENZHEN XINGSHAN YUEDONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510119406.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

There is a sense of separation between traditional lighting equipment and other equipment, and the linkage effect cannot be achieved.

Method used

Capture the picture of the linkage device through the preset frequency, cut it into multiple sub-images, extract the main color block data, merge it into the third image, and drive the lighting device to light it up, real-time linkage with the picture color of the linkage device.

Benefits of technology

Real-time linkage between lighting equipment and linkage equipment is realized. The lighting form of lighting equipment is related to the picture color distribution of linkage equipment, and changes with the picture changes of linkage equipment, improving aesthetics and unity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120129119A_ABST
    Figure CN120129119A_ABST
Patent Text Reader

Abstract

The invention discloses a light linkage method, and the method comprises the steps: capturing an image of linkage equipment through a preset frequency, thereby obtaining a first image displayed by the linkage equipment at the moment, carrying out the cutting of the first image according to a preset mode, obtaining a second image, extracting the main color block data of the second image, and obtaining a third image, the third image reflects the color distribution of the first image at the moment, and then the light equipment is driven to be lightened according to the third image, so that the light equipment is associated with the picture of the linkage equipment at the moment after being lightened and is changed along with the change of the picture of the linkage equipment, and the real-time linkage between the light equipment and the linkage equipment is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of lighting control, and particularly relates to a lighting linkage method, device, storage medium, and host computer. Background Art

[0002] Traditional lighting devices can generally be divided into static lighting effects and dynamic lighting effects. Among them, the static lighting effect is only a single-color or multi-color display, and the dynamic lighting effect has additional changing effects such as breathing and flowing on the basis of the static one. The lighting effects of the foregoing lighting devices are isolated and cannot be linked with other devices, resulting in a sense of disconnection between the lighting devices and other devices. Summary of the Invention

[0003] The purpose of this application is to provide a lighting linkage method, aiming to solve the problem of disconnection between traditional lighting devices and other devices.

[0004] The first aspect of the embodiment of this application provides a lighting linkage method, including: Capturing the screen of the linked device according to a preset frequency to obtain a first real-time image of the linked device; Performing cutting processing on the first image to obtain a first preset number of second images; Extracting the main color block data of all second images; the main color block data includes main color data and position data of the main color data in the first image; and Merging the third image according to the main color block data, and driving the lighting device to light up according to the third image.

[0005] In one embodiment, the capturing the screen of the linked device to obtain the first image of the linked device includes: Pre-installing a screen capture processing module in the linked device; Taking a screenshot of the current screen of the linked device through the screen capture processing module to obtain the first image.

[0006] In one embodiment, the performing cutting processing on the first image to obtain a first preset number of second images includes: Taking the pixel as the cutting unit, and evenly dividing the first image according to the first preset number to obtain the first preset number of second images; Wherein, the first preset number is A×B, and the first preset number is greater than 1; both A and B are positive integers.

[0007] In one embodiment, the extracting the main color block data of all second images includes: Blur each of the second images and extract the main color data corresponding to each of the second images; Obtain the position data according to the position of the second image corresponding to each main color data in the first image.

[0008] In one embodiment, the blurring each of the second images and extracting the main color data corresponding to each of the second images includes: Traverse each of the second images respectively to obtain all pixels corresponding to each of the second images, and calculate the average red component, average green component, and average blue component; Obtain the main color data of the second image according to the average red component, the average green component, and the average blue component.

[0009] In one embodiment, the merging the main color data to obtain a third image and driving a lighting device to light up according to the third image includes: Merge all the main color data to obtain a third image according to each main color data and the position data corresponding to the main color data; Parse the third image to obtain color matrix data; Send the color matrix data to the lighting device; The lighting device lights up the corresponding light-emitting area with the corresponding color according to the color data matrix of the third image.

[0010] In one embodiment, the linkage device is a host screen and the lighting device is a backlit keyboard.

[0011] The second aspect of the embodiments of the present application provides a lighting linkage method, including: Capture the screen of the linkage device according to a preset frequency to obtain a real-time first image of the linkage device; Scale the first image and convert it into a second image in RGB format; Obtain the RGB values of the pixels at the specified coordinates of the second image to obtain a tuple drive data containing three integers; Drive the lighting device to light up through the tuple drive data.

[0012] The third aspect of the embodiments of the present application provides a lighting linkage device, including: A screen capture processing module, configured to capture the screen of the linkage device according to a preset frequency to obtain a real-time first image of the linkage device; An image cutting module, configured to perform cutting processing on the first image to obtain a first preset number of second images; A color block extraction module, configured to extract the main color block data of all the second images; the main color block data includes main color data and position data of the main color data in the first image; and A driving module, configured to merge the third image according to the main color block data and drive the lighting device to light up according to the third image.

[0013] A fourth aspect of the embodiments of the present application provides a lighting linkage device, including: A frame capture and processing module, configured to capture the frame of the linkage device according to a preset frequency to obtain the real-time first image of the linkage device; An image scaling module, configured to scale the first image and convert it into a second image in RGB format; A data extraction module, configured to obtain the RGB values of the pixels at the specified coordinates of the second image to obtain a tuple driving data including three integers; and A driving module, configured to drive the lighting device to light up through the tuple driving data.

[0014] A fifth aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the above is implemented.

[0015] A sixth aspect of the embodiments of the present application provides a host, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in any one of the above is implemented.

[0016] The beneficial effects of the embodiments of the present invention compared with the prior art are as follows: By capturing the frame of the linkage device at a preset frequency, the first image displayed by the linkage device at this time is obtained, and then the first image is cut in a preset manner to obtain the second image. After extracting the main color block data of the second image, the third image is obtained. At this time, the third image reflects the color distribution of the first image. Then, according to the third image, the lighting device is driven to light up, so that after the lighting device lights up, it is associated with the frame of the linkage device at this time and changes with the change of the frame of the linkage device, realizing real-time linkage between the lighting device and the linkage device. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flow chart of an example method of the lighting linkage method provided by the embodiments of the present application; Figure 2 It is a flow chart of another example method of the lighting linkage method provided by the embodiments of the present application; Figure 3It is a schematic block diagram of one example of the lighting linkage device provided by an embodiment of the present application; Figure 4 It is a schematic block diagram of another example of the lighting linkage device provided by an embodiment of the present application. Detailed implementation manners

[0018] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application clearer, the present application 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 used to explain the present application and are not used to limit the present application.

[0019] Figure 1 The first schematic block diagram provided by an embodiment of the present application is shown. For the convenience of description, only the parts related to this embodiment are shown. Details are as follows: A lighting linkage method includes S100 to S400.

[0020] S100. Capture the screen of the linkage device according to a preset frequency to obtain a first image of the linkage device in real time.

[0021] The preset frequency can be 1 Hz or 8 Hz, or other specific settings made by the designer according to the relevance of the linkage.

[0022] Capture the screen of the linkage device, and the tool used can be software built into the linkage device or other devices independent of the linkage device. For example, when the linkage device is a computer host, a screen capture processing module can be installed in the computer host. After installation, the current screen of the computer host can be captured. The screen capture processing module can be a js-web-screen-shot component, a QT interface or a screen recording frame extraction tool. The linkage device can also be a camera. In this case, the screen of the linkage device should be understood as the photo in the camera. For example, when the linkage device is a computer host, the screen of the computer host can also be photographed by a camera to capture the screen of the linkage device.

[0023] S200. Perform cutting processing on the first image to obtain a first preset number of second images.

[0024] For example, the pixels of the first image can be 50×50. The 50×50 pixel first image is cut into 6×21 parts to obtain 126 second images, where it is cut into 6 equal parts horizontally and 21 equal parts vertically.

[0025] S300. Extract the main color block data of all second images; the main color block data includes main color data and position data of the main color data in the first image.

[0026] S400. Obtain a third image by merging the main color block data, and drive a lighting device to light up according to the third image.

[0027] In this embodiment, the screen of the linkage device is captured at a preset frequency to obtain a first image displayed by the linkage device at this time. Then, the first image is cut in a preset manner to obtain a second image. After extracting the main color block data of the second image, a third image is obtained. At this time, the third image reflects the color distribution of the first image. Then, the lighting device is driven to light up according to the third image, so that the lighting form of the lighting device is associated with the color distribution of the first image after lighting up. Therefore, the lighting form of the lighting device is associated with the screen of the linkage device at this time and changes with the change of the screen of the linkage device, having a real-time linkage relationship.

[0028] In a specific example, the linkage device is a computer host, and the lighting device is a backlit keyboard. The lighting area of the backlit keyboard is divided into 6×21 parts. The screen of the computer host is captured by taking a screenshot to obtain a first image. At this time, the pixel of the captured image of the first image is 50×50. Then, the first image is cut into a second image of 6×21 parts. The main color data of these 126 second images are extracted, and the position data of the color data of these 126 second images corresponding to the first image are recorded. Then, a third image of 6×21 pixels is obtained by merging the color data of these 126 second images and their corresponding position data of the first image. The third image is sent to the backlit keyboard in the form of USB transmission. After receiving it, the backlit keyboard processes the pixel occupancy of the third image and drives the RGB lights to control the corresponding lighting areas of the backlit keyboard with the color data of 6×21 pixel points to light up with corresponding colors.

[0029] In one embodiment, the capturing of the screen of the linkage device to obtain the first image of the linkage device includes: Pre-install a screen capture processing module in the linkage device; the screen capture processing module can be a js-web-screen-shot component, a QT interface or a screen recording and frame grabbing tool.

[0030] Capture the current screen of the linkage device by the screen capture processing module to obtain the first image.

[0031] In one embodiment, the cutting process of the first image to obtain a second image with a first preset quantity includes: Taking pixels as the cutting unit, evenly cutting the first image according to the first preset quantity to obtain the first preset quantity of second images.

[0032] For example, the pixels of the first image are 50×50. The first image is cut into 126 second images by evenly dividing the 50×50 pixels into 6×21 parts. Specifically, the sub-regions of the image can be created for the first image through the copy() method, that is, 6×21 sub-images are created, and the sub-images correspond to the second images.

[0033] Wherein, the first preset quantity is A×B, and the first preset quantity is greater than 1; both A and B are positive integers.

[0034] In one embodiment, the extraction of the main color block data of all the second images includes: Blur each of the second images and extract the main color data corresponding to each of the second images. The blurring of the second images can be achieved by using a mosaic mechanism to process the second images, such as using a blur filter, reducing the pixel density, or modifying the pixel values.

[0035] According to the position of each second image corresponding to the main color data in the first image, the position data is obtained. For example, if the first image is cut into 6×21 second images, the position where the second image was originally located before being cut in the first image can be correspondingly marked, and this mark can be used as the position data of the main color data corresponding to the second image.

[0036] In one embodiment, the blurring of each of the second images and the extraction of the main color data corresponding to each of the second images include: Traverse each of the second images respectively to obtain all the pixels corresponding to each of the second images, and calculate the average red component, average green component, and average blue component.

[0037] Obtain the main color data of the second image according to the average red component, the average green component, and the average blue component.

[0038] For example, the getAverageColor function can be used to traverse all the pixels in each second image, calculate the average red, green, and blue components, and then return a QRgb value representing the average color as the main color data of the second image.

[0039] In one embodiment, the merging of the third image according to the main color block data and the driving of the lighting device to light up according to the third image include: Merge all the main color data according to each main color data and the position data corresponding to the main color data to obtain a third image.

[0040] Parse the third image to obtain color matrix data.

[0041] Send the color matrix data to the lighting device. When the lighting device is a keyboard, the keyboard will simulate the color data timing requirements of the lamp beads through output methods such as SPI or IO port flipping to send the color data of 6×21 lamps, and then light up the RGB lamps of the keyboard in regions.

[0042] The lighting device lights up the corresponding light-emitting area with the corresponding color according to the color data matrix of the third image. The color data matrix of the third image reflects the color distribution of the first image, that is, the screen color distribution of the linkage device. Therefore, driving the lighting device to light up according to the color data matrix of the third image makes the lighting device associated with the screen of the linkage device at this time after lighting up, and changes with the change of the screen of the linkage device, having a real-time linkage relationship.

[0043] In one application scenario, after the linkage device obtains the first image through the screen capture processing module, it transmits the first image to the host computer with the data reception processing linkage module. The host computer performs subsequent processing on the first image and obtains the color data matrix, and sends the color data matrix to the lighting device.

[0044] In one embodiment, the linkage device is the host computer screen, and the lighting device is a backlit keyboard. In one application, the keyboard itself is only used as a receiving and displaying carrier to perform a linkage with external components through a reserved interface. For example, if a screen is externally connected to the keyboard, then the lighting device can also be the externally connected screen instead of the keyboard itself. In one application, the keyboard itself serves as both a receiving and displaying carrier and a part of the lighting device, and at the same time performs a linkage with external components through a reserved interface. For example, if a screen is externally connected to the keyboard, then the lighting device is the externally connected screen and the keyboard itself.

[0045] Traditionally, the traditional computer host and the backlit keyboard each perform their own functions, and the lighting of the backlit keyboard has little relation to the computer host, which has a sense of disconnection and lacks aesthetic feeling as a whole. At the same time, in terms of the richness of device lighting, there is a lack of linkage types between the computer host and the backlit keyboard. There are various ways for the computer host to capture the screen, but the general processing after capture is only to save, view, share, etc. the captured screen, without linkage with the lighting device. However, this application performs lighting linkage between the computer host and the backlit keyboard, increasing the unity and coordination between the computer host and the backlit keyboard and enhancing the aesthetic feeling.

[0046] As Figure 2 shown, the embodiment of the present application also provides a lighting linkage method, including S500 to S800.

[0047] S500. Capture the screen of the linked device according to a preset frequency to obtain the first real-time image of the linked device; S600. Scale the first image and convert it into a second image in RGB format; S700. Obtain the RGB values of the pixels at the specified coordinates of the second image to get a tuple driving data containing three integers; S800. Drive the lighting device to light up through the tuple driving data.

[0048] Specifically, the size of the first image can be scaled by using algorithms such as Image.ANTIALIAS algorithm and Image.LANCZOS algorithm in Python and PIL / Pillow libraries. After scaling, the convert() method is used to convert the image into a second image in RGB format. Then, the getpixel((x, y)) method is used to obtain the RGB values of the pixels at the specified coordinates (x, y) in the second image, and a tuple driving data containing three integers is returned. The tuple represents the values of the red (R), green (G), and blue (B) channels respectively. Then, the lighting device is driven to light up through the tuple driving data. Each tuple in the tuple driving data corresponds to the color of a region in the first image and the lighting data of a corresponding region of the lighting device, so that after the lighting device lights up, it is associated with the color distribution of the first image and changes with the change of the screen of the linked device, having a real-time linkage relationship.

[0049] As Figure 3 shown, an embodiment of the present application further provides a lighting linkage device, including a screen capture and processing module 10, an image cutting module 20, a color block extraction module 30, and a driving module 40.

[0050] The screen capture and processing module 10 is configured to capture the screen of the linked device according to a preset frequency to obtain the first real-time image of the linked device.

[0051] The image cutting module 20 is configured to perform cutting processing on the first image to obtain a first preset number of second images.

[0052] The color block extraction module 30 is configured to extract the main color block data of all second images; the main color block data includes main color data and position data of the main color data in the first image.

[0053] The driving module 40 combines the main color block data to obtain a third image and drives the lighting device to light up according to the third image.

[0054] As Figure 4 shown, an embodiment of the present application further provides a lighting linkage device, including: A screen capture processing module 50 is configured to capture the screen of the associated device according to a preset frequency to obtain a first real-time image of the associated device; An image scaling module 60 is configured to scale the first image and convert it into a second image in RGB format; A data extraction module 70 is configured to obtain the RGB values of the pixels at the specified coordinates of the second image to obtain a tuple drive data containing three integers; and A drive module 80 is configured to drive the lighting device to light up through the tuple drive data.

[0055] It should be noted that for the information interaction, execution process, etc. between the above-mentioned devices / units, since they are based on the same concept as the method embodiments of the present application, their specific functions and the technical effects brought can be specifically referred to in the method embodiment part, and will not be elaborated here.

[0056] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the method described in any one of the above items is implemented.

[0057] An embodiment of the present application provides a host, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in any one of the above items is implemented.

[0058] An embodiment of the present application further provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in any one of the above items is implemented.

[0059] The processor referred to in the present application may be a central processing unit (CPU), and this processor may also 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 this processor may also be any conventional processor, etc.

[0060] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above-described embodiment methods of the present invention, it can also be completed by a computer program instructing relevant hardware. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-described method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or circuit capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0061] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the above division of each functional element and circuit is used as an example. In actual applications, the above functions can be allocated to different functional elements and circuits according to needs, that is, the internal structure of the circuit is divided into different functional elements or circuits to complete all or part of the functions described above. Each functional element and circuit in the embodiment can be integrated in a processing element, or each element can exist physically alone, or two or more elements can be integrated in one element. The above integrated elements can be implemented in the form of hardware or in the form of software functional elements. In addition, the specific names of each functional element and circuit are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working processes of the elements and circuits in the above system can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0062] Those of ordinary skill in the art can realize that the elements and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0063] References throughout this specification to "various embodiments", "in an embodiment", "one embodiment" or "an embodiment" etc. mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrases "in various embodiments", "in some embodiments", "in one embodiment" or "in an embodiment" etc. in suitable places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Accordingly, the particular features, structures, or characteristics shown or described in connection with one embodiment may be incorporated, in whole or in part, with the features, structures, or characteristics of one or more other embodiments, without assuming that such combination is not logical or functional. Any directional references (e.g., plus, minus, upper, lower, upward, downward, left, right, leftward, rightward, top, bottom, above, below, vertical, horizontal, clockwise and counterclockwise) are for identification purposes to assist the reader in understanding the present disclosure and do not create a limitation, particularly as to the position, orientation, or use of an embodiment.

[0064] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For parts not detailed or recorded in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

[0065] Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art may use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present invention.

[0066] In the embodiments provided by the present invention, it should be understood that the disclosed circuit / terminal device and method can be implemented in other ways. For example, the circuit / terminal device embodiments described above are merely illustrative. For example, the division of the circuit or elements is only a logical function division, and there may be other division methods in actual implementation. For example, multiple elements or circuits can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the couplings or direct couplings or communication connections shown or discussed between each other may be through some interfaces, and the indirect couplings or communication connections of circuits or elements may be in electrical, mechanical or other forms.

[0067] The element described as a separating component may or may not be physically separated, and the component shown as an element may or may not be a physical component, that is, it may be located in one place or may be distributed across multiple network elements. Some or all of the elements can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0068] The above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A lighting linkage method, characterized in that: include: Capturing the screen of the linkage device according to a preset frequency to obtain a real-time first image of the linkage device; Cutting the first image to obtain a first preset number of second images; Extracting main color block data of all second images; the main color block data includes main color data and position data of the main color data in the first image; as well as A third image is obtained by merging the main color block data, and a lighting device is driven to light up according to the third image.

2. The lighting linkage method according to claim 1, characterized in that: The step of capturing a screen of a linkage device to obtain a first image of the linkage device includes: Pre-installing a screen capture processing module on the linkage device; The first image is obtained by capturing a screenshot of the current screen of the linkage device through the screen capture processing module.

3. The lighting linkage method according to claim 1, characterized in that: The cutting process of the first image to obtain a first preset number of second images includes: Taking pixels as cutting units, equally cutting the first image according to the first preset number to obtain the first preset number of second images; The first preset number is A×B, and the first preset number is greater than 1; A and B are both positive integers.

4. The lighting linkage method according to claim 1, characterized in that: The extracting the main color block data of all the second images comprises: Performing blur processing on each of the second images, and extracting main color data corresponding to each of the second images; The position data is obtained according to the position of the second image corresponding to each of the main color data in the first image.

5. The lighting linkage method according to claim 4, characterized in that: The blurring process is performed on each of the second images, and the main color data corresponding to each of the second images is extracted, including: Traversing each of the second images respectively, obtaining all pixels corresponding to each of the second images, and calculating an average red component, an average green component, and an average blue component; The primary color data of the second image is obtained according to the average red component, the average green component and the average blue component.

6. The lighting linkage method according to claim 1, characterized in that: The step of obtaining a third image by merging the primary color block data and driving a lighting device to light up according to the third image comprises: According to each of the main color data and the position data corresponding to the main color data, all the main color data are combined to obtain a third image; Analyzing the third image to obtain color matrix data; Sending the color matrix data to the lighting device; The lighting device lights up the corresponding light-emitting area with the corresponding color according to the color data matrix of the third image.

7. A lighting linkage method, characterized in that: include: Capturing the screen of the linkage device according to a preset frequency to obtain a real-time first image of the linkage device; Scaling the first image and converting it into a second image in RGB format; Obtaining RGB values ​​of pixels at specified coordinates of the second image to obtain a tuple driving data including three integers; The lighting device is driven to light up through the tuple driving data.

8. A lighting linkage device, characterized in that: include: A picture capture processing module, used for capturing the picture of the linkage device according to a preset frequency to obtain a real-time first image of the linkage device; An image cutting module, used for cutting the first image to obtain a first preset number of second images; A color block extraction module, used to extract main color block data of all second images; the main color block data includes main color data and position data of the main color data in the first image; as well as A driving module, which obtains a third image by combining the main color block data and drives the lighting device to light up according to the third image; or A picture capture processing module, used for capturing the picture of the linkage device according to a preset frequency to obtain a real-time first image of the linkage device; An image scaling module, used for scaling the first image and converting it into a second image in RGB format; A data extraction module, used for obtaining RGB values ​​of pixels at designated coordinates of the second image, and obtaining a tuple driving data including three integers; as well as The driving module is used to drive the lighting device to light up through the tuple driving data.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. A host comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.