CN117062277A - Method, device and equipment for synchronizing colors of light equipment and display - Google Patents

Method, device and equipment for synchronizing colors of light equipment and display Download PDF

Info

Publication number
CN117062277A
CN117062277A CN202311117896.7A CN202311117896A CN117062277A CN 117062277 A CN117062277 A CN 117062277A CN 202311117896 A CN202311117896 A CN 202311117896A CN 117062277 A CN117062277 A CN 117062277A
Authority
CN
China
Prior art keywords
frame
screen
color
inter
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311117896.7A
Other languages
Chinese (zh)
Inventor
龙奕辰
杜绍江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Lifesmart Technology Co ltd
Original Assignee
Hangzhou Lifesmart Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Lifesmart Technology Co ltd filed Critical Hangzhou Lifesmart Technology Co ltd
Priority to CN202311117896.7A priority Critical patent/CN117062277A/en
Publication of CN117062277A publication Critical patent/CN117062277A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention relates to the technical field of screen light synchronization, and discloses a method, a device and equipment for synchronizing colors of light equipment and a display; the method comprises the steps of obtaining the mapping relation between the lamp beads of the lighting equipment and the display screen blocks, and selecting the display screen blocks based on the mapping relation between the lamp beads of the lighting equipment and the display screen blocks; continuously capturing images of the selected display screen blocks within a preset time period to generate screen capturing image colors corresponding to any two continuous frames of screen capturing images; performing frame interpolation processing on screen shot colors corresponding to any two continuous screen shots to generate inter-frame transition colors; and sending the screenshot color and the inter-frame transition color corresponding to any two continuous screenshots to the lamp beads of the lighting equipment for synchronous display. The invention generates transition colors among frames through frame insertion processing, optimizes the phenomenon of blocking, and realizes soft and smooth light effect of color conversion.

Description

Method, device and equipment for synchronizing colors of light equipment and display
Technical Field
The invention relates to the technical field of screen light synchronization, in particular to a method, a device and equipment for synchronizing colors of light equipment and a display.
Background
At present, the light equipment changes along with the color change of the display equipment, and screen light synchronization is realized mainly by intercepting screen graphics on the client equipment and analyzing the screen graphics to generate control data; however, the process of intercepting graphics and analyzing the generated control data at the client device is time consuming, resulting in a stuck light effect while synchronizing colors. Therefore, how to optimize the blocking phenomenon and realize the softness and smoothness of the color conversion light effect becomes a technical problem to be solved urgently.
Disclosure of Invention
In view of the above, the invention provides a method, a device and a device for synchronizing colors of a lighting device and a display, so as to solve the technical problem of how to optimize the phenomenon of blocking and realize soft and smooth color conversion of the lighting effect.
In a first aspect, the present invention provides a method for synchronizing colors of a lighting device and a display, including: acquiring a mapping relation between the lamp beads of the lighting equipment and the display screen blocks, and selecting the display screen blocks based on the mapping relation between the lamp beads of the lighting equipment and the display screen blocks; continuously capturing images of the selected display screen blocks within a preset time period to generate screen capturing image colors corresponding to any two continuous frames of screen capturing images; performing frame interpolation processing on screen shot colors corresponding to any two continuous screen shots to generate inter-frame transition colors; and sending the screenshot color and the inter-frame transition color corresponding to any two continuous screenshots to the lamp beads of the light equipment, and synchronously displaying the color of the display by the lamp beads of the light equipment.
According to the method for synchronizing the colors of the light equipment and the display, the screen block of the display is subjected to continuous screenshot processing to generate any screenshot color corresponding to two continuous frames of screenshots, the screenshot color corresponding to the two continuous frames of screenshots is subjected to frame inserting processing to generate inter-frame transition color, the screenshot color corresponding to the two continuous frames of screenshots and the inter-frame transition color are sent to the lamp beads of the light equipment to synchronously display the color of the display, and the problem that the lamp beads of the light equipment are blocked in synchronous display of the color of the display due to poor smoothness of the screenshot color corresponding to the two continuous frames of screenshots is avoided. Through frame inserting processing, transition colors among frames are generated, and the phenomenon of blocking is optimized, so that the light effect of color conversion is soft and smooth.
In an alternative embodiment, the method further comprises: and acquiring the display screen, and randomly dividing the display screen to generate a plurality of display screen blocks.
According to the method for synchronizing the colors of the light equipment and the display, the display screen is randomly divided, and a plurality of display screen blocks are generated, so that the diversification and flexibility of the display colors of the light beads of the light equipment are realized.
In an optional implementation manner, continuous screenshot processing is performed on the selected display screen block within a preset time period, and screenshot colors corresponding to any two continuous frames of screenshots are generated, including: continuously capturing images of the selected display screen blocks within a preset time period to generate multi-frame screen captures; wherein each screen shot contains a plurality of colors; selecting any two continuous frames of screen shots from the multi-frame screen shots; determining the screenshot color corresponding to any two continuous frames of screenshots by using a clustering algorithm; the screen capture colors corresponding to any two continuous frame screen captures comprise a first frame screen capture color and a second frame screen capture color.
According to the method for synchronizing the colors of the light equipment and the display, the characteristic color value with the representative characteristic color value in the screenshot is calculated by using the clustering algorithm, so that better synchronism between the color displayed by the lamp beads of the light equipment and the color of the display is realized.
In an alternative embodiment, the method for generating the inter-frame transition color by performing frame interpolation processing on the screenshot color corresponding to any two consecutive frames of screenshots comprises the following steps: acquiring an inter-frame interval and an inter-frame interval corresponding to any two continuous frames of screen shots on a screen block of a display, and determining the number of inter-frame inter-frames based on the inter-frame interval and the inter-frame interval; an inter-frame transition color is determined based on the first frame screenshot color, the second frame screenshot color, and the number of inter-frame frames.
According to the color synchronization method for the light equipment and the display, provided by the embodiment, the number of the inter-frame inserted frames is determined, and then the inter-frame transition color is determined, so that the phenomenon of blocking is optimized, and the light effect of color conversion is soft and smooth.
In a second aspect, the present invention provides a synchronization apparatus for color of a light device and a display, including: the acquisition module is used for acquiring the mapping relation between the lamp beads of the light equipment and the display screen blocks, and selecting the display screen blocks based on the mapping relation between the lamp beads of the light equipment and the display screen blocks; the screenshot module is used for continuously screenshot the selected display screen block within a preset time period to generate screenshot colors corresponding to any two continuous frames of screenshots; the frame inserting processing module is used for carrying out frame inserting processing on the screen capture colors corresponding to any two continuous frames of screen captures to generate inter-frame transition colors; and the synchronous display module is used for sending the screen capture color and the inter-frame transition color corresponding to any two continuous frames of screen captures to the lamp beads of the lighting equipment for synchronous display.
In a third aspect, the present invention provides a computer device comprising: the device comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions so as to execute the method for synchronizing the color of the lighting device and the display according to the first aspect or any corresponding embodiment of the first aspect.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method for synchronizing a lighting device and a display color of the first aspect or any of its corresponding embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for synchronizing colors of a lighting device and a display according to an embodiment of the invention;
FIG. 2 is a flow chart of another method for synchronizing colors of a lighting device and a display according to an embodiment of the invention;
FIG. 3 is a flow chart of a method for synchronizing colors of a lighting device and a display according to an embodiment of the invention;
FIG. 4 is a block diagram of a light device and display color synchronization apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The color synchronization method of the lighting equipment and the display provided by the specification can be applied to the electronic equipment for controlling the color synchronization of the lighting equipment and the display; the electronic device may include, but is not limited to, a notebook, desktop, mobile terminal, such as a cell phone, tablet, etc.; of course, the method for synchronizing the colors of the lighting device and the display provided in the present disclosure may also be applied to an application program running in the above electronic device.
RGB is a color standard in industry, where R (Red), G (Green), B (Blue), implements that RGB lighting devices change with display device color changes, a function commonly referred to as a screen light synchronization function; the motion effect conversion of the light equipment is required to achieve soft and smooth feeling, which generally needs to achieve 30 frames of data per second, but is limited by the light equipment, the display equipment and the light control system, and the realization laws are different; on a client device with poor performance, the process of intercepting a screen and analyzing and generating control data by display controller software (generally referred to as a Windows desktop program) is time-consuming, that is, the operation of capturing, processing and issuing on a machine with poor performance is required to be less than 30 frames per second, so that when synchronous colors are caused, the light effect is blocked.
Based on the technical problems, the invention provides a synchronization method of lamplight equipment and display colors, which is characterized in that according to the mapping relation between lamp beads of the lamplight equipment and display screen blocks configured by a user in advance, a screen is intercepted through display controller software (generally referred to as Windows desktop program), a screen screenshot is generated, the color of the screen screenshot is analyzed, the color of a screen area is determined, the transition color between frames is generated through frame insertion processing, and the phenomenon of blocking is optimized, so that the lamplight effect of color conversion is flexible and smooth.
According to an embodiment of the present invention, there is provided an embodiment of a method for synchronizing the color of a lighting device with a display, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and that although a logical sequence is shown in the flowchart, in some cases the steps shown or described may be performed in a different order than what is shown herein.
In this embodiment, a method for synchronizing colors of a light device and a display is provided, which may be used in the above-mentioned notebook, desktop computer, mobile terminal, such as a mobile phone, tablet computer, etc., fig. 1 is a flowchart of a method for synchronizing colors of a light device and a display according to an embodiment of the present invention, as shown in fig. 1, where the flowchart includes the following steps:
step S101, the mapping relation between the lamp beads of the lighting equipment and the display screen blocks is obtained, and the display screen blocks are selected based on the mapping relation between the lamp beads of the lighting equipment and the display screen blocks.
Specifically, a display screen is obtained, and is randomly divided, so that a plurality of display screen blocks are generated, and the diversification and flexibility of the display colors of the lamp beads of the lighting equipment are realized.
Further, the mapping relation between the lamp beads of the light equipment and the screen blocks of the display is configured in advance by a user; taking a Light-Emitting Diode (LED) lamp as an example, the LED lamp can be formed by splicing a plurality of different LED lamp blocks, each lamp block is provided with a plurality of LED lamp beads, and a control system can control each LED lamp bead of the lamp; the client program supports user configuration, wherein the user configuration comprises configuration of the form of the lighting equipment and configuration of the mapping relation between the screen block of the indicator and the position of the lamp beads of the lighting equipment; the configuration of the light equipment connection form can be understood as the placement position of the physical equipment in the real world, for example, the light equipment connection form can be configured into the forms of heart, cube, five-pointed star and the like, a user sets in a preset software end of a client according to the configuration mode or the splicing mode of the light equipment in the real scene, for example, a mode similar to a jigsaw can be adopted to correspondingly splice out the virtual light equipment form, and the data of the splicing form of the light equipment is stored in the preset software end;
further, the configuration of the bead position mapping relationship between the display screen block and the lighting equipment comprises the steps of generating a virtual screen (the screen is divided into a plurality of blocks with the same size in a row x column, such as 3 x 4, i.e. 12 blocks) and a virtual bead map of the LED lighting equipment at a preset software end according to the morphological data of the lighting equipment configured by a user, wherein the user can associate the selected LED bead number with the block by selecting the LED bead and then dragging the LED bead number to the preset block of the screen, the bead position mapping relationship configuration between the display screen block and the lighting equipment is completed, the user stores the configuration data, and then different area colors are issued to different LED beads according to the configuration data.
Further, the selected display screen block has a mapping relation with the lamp beads of the lighting equipment, namely the display screen block needing screen light synchronization.
Step S102, continuously capturing the selected display screen block within a preset time period to generate any screen capture color corresponding to two continuous frames of screen captures.
Specifically, the user may set the preset time period according to the actual situation, which is not limited herein; the screenshot process includes intercepting a screenshot of a current frame of a display screen block by calling a graphics API (Application Programming Interface ) of the client system, typically a bitmap (standard image file format in Windows operating system) picture, and obtaining the color of each screenshot after calculation by an algorithm, thereby obtaining the main color of each display screen block.
Step S103, performing frame interpolation processing on the screen capture colors corresponding to any two continuous frames of screen captures to generate inter-frame transition colors.
Step S104, the screen capture color and the inter-frame transition color corresponding to any two continuous screen captures are sent to the lamp beads of the lighting equipment for synchronous display.
Specifically, the data can be sent to the lamp beads of the lighting equipment through the local area network, so that the lamp beads of the lighting equipment and the color of the display can be synchronously displayed.
According to the method for synchronizing the colors of the light equipment and the display, the screen block of the display is subjected to continuous screenshot processing to generate any screenshot color corresponding to two continuous frames of screenshots, the screenshot color corresponding to the two continuous frames of screenshots is subjected to frame inserting processing to generate inter-frame transition color, the screenshot color corresponding to the two continuous frames of screenshots and the inter-frame transition color are sent to the lamp beads of the light equipment to synchronously display the color of the display, and the problem that the lamp beads of the light equipment are blocked in synchronous display of the color of the display due to poor smoothness of the screenshot color corresponding to the two continuous frames of screenshots is avoided. Through frame inserting processing, transition colors among frames are generated, and the phenomenon of blocking is optimized, so that the light effect of color conversion is soft and smooth.
In this embodiment, a method for synchronizing colors of a light device and a display is provided, which may be used in the above-mentioned notebook, desktop computer, mobile terminal, such as a mobile phone, tablet computer, etc., fig. 2 is a flowchart of a method for synchronizing colors of a light device and a display according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S201, obtaining the mapping relation between the lamp beads of the lighting equipment and the display screen blocks, and selecting the display screen blocks based on the mapping relation between the lamp beads of the lighting equipment and the display screen blocks; please refer to step S101 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S202, continuously capturing the selected display screen block within a preset time period to generate any screen capture color corresponding to two continuous frames of screen captures.
Specifically, the step S202 includes:
step S2021, continuously capturing images of the selected display screen block within a preset time period to generate multi-frame screen captures; wherein each frame of screen shot contains a plurality of colors.
Step S2022, selecting any two consecutive frames of screen shots from the multiple frames of screen shots.
Step S2023, determining the screenshot color corresponding to any two continuous frames of screenshots by using a clustering algorithm; the screen capture colors corresponding to any two continuous frame screen captures comprise a first frame screen capture color and a second frame screen capture color.
Specifically, scaling processing can be performed on the selected screen shots; the method and the device avoid that the excessive pattern resolution can influence the calculation efficiency of the clustering algorithm.
Further, taking a K-Means clustering algorithm (K-Means clustering algorithm ) as an example, the method comprises the following steps:
a1. determining a K value, namely gathering pixel color data contained in each screen shot into K groups of colors, namely extracting the color of the screen shot; wherein K represents the number of categories of the clusters;
a2. randomly selecting K color values from all color values in each frame of screen shot as centroids;
a3. respectively calculating the distance between each color in each frame of screen shot and the color of the centroid, and dividing each color into groups of the nearest centroids based on the distance between each color in each frame of screen shot and the color of the centroid until the colors in each frame of screen shot are aggregated into K groups of colors;
a4. calculating the average value of all the color values in each group in the K groups of colors again, and taking the average value as a new centroid of the current group;
a5. comparing each new centroid in a4 with the centroid of the corresponding group in a2, if the difference between the two centroids is smaller than a preset threshold value, considering the algorithm to be stable, stopping the algorithm, and if the difference is larger than the preset threshold value, continuing to iteratively execute a3 and a4;
a6. obtaining K stable color values;
a7. obtaining pixel weights corresponding to the K stable color values, and sequencing the pixel weights;
a8. and sorting based on the pixel weights, and selecting a color value corresponding to the maximum value of the pixel weights as the current screen capture color (namely the first frame screen capture color and the second frame screen capture color).
Step S203, performing frame interpolation processing on screen capture colors corresponding to any two continuous frames of screen captures to generate inter-frame transition colors; please refer to step S103 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S204, screen capture colors and inter-frame transition colors corresponding to any two continuous screen captures are sent to lamp beads of the light equipment, and the lamp beads of the light equipment synchronously display the colors of the display; please refer to step S104 in the embodiment shown in fig. 1 in detail, which is not described herein.
According to the method for synchronizing the colors of the light equipment and the display, the characteristic color value with the representative characteristic color value in the screenshot is calculated by using the clustering algorithm, so that better synchronism between the color displayed by the lamp beads of the light equipment and the color of the display is realized.
In this embodiment, a method for synchronizing colors of a light device and a display is provided, which may be used in the above-mentioned notebook, desktop computer, mobile terminal, such as a mobile phone, tablet computer, etc., fig. 3 is a flowchart of a method for synchronizing colors of a light device and a display according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step S301, obtaining the mapping relation between the lamp beads of the lighting equipment and the display screen blocks, and selecting the display screen blocks based on the mapping relation between the lamp beads of the lighting equipment and the display screen blocks; please refer to step S201 in the embodiment shown in fig. 2 in detail, which is not described herein.
Step S302, continuously capturing images of the selected display screen block within a preset time period to generate screen capture colors corresponding to any two continuous frames of screen captures; please refer to step S202 in the embodiment shown in fig. 2, which is not described herein.
Step S303, performing frame interpolation processing on the screen capture colors corresponding to any two continuous frames of screen captures to generate inter-frame transition colors.
Specifically, the step S303 includes:
step S3031, the inter-frame interval and the inter-frame interval corresponding to any two consecutive screen shots on the display screen block are obtained, and the number of inter-frame inter-frames is determined based on the inter-frame interval and the inter-frame interval.
Specifically, the inter-frame interval represents the screen frame interval interposed between any consecutive two-frame screen shots; calculating to obtain the screenshot color or the main color of each display screen block through an algorithm, and generating a frame of data to be displayed by the lighting equipment according to the mapping relation between the lamp beads of the lighting equipment configured by a user and the display screen blocks, wherein the data content mainly describes the RGB colors of the 1 st, 2 nd, … … th and n th lamp beads; specifically, according to a mapping relationship between a lamp bead and a display screen block of a lighting device configured by a user, it is known that an m (1 is less than or equal to m is less than or equal to n) lamp bead xm corresponds to a display screen block, a screen capture color on the display screen block corresponding to the m lamp bead xm is calculated through an algorithm, a color corresponding to the m lamp bead xm is determined, data (xm, rm, gm, bm) is generated, wherein Rm represents a red color value of the screen capture color corresponding to the lamp bead xm, gm represents a green color value of the screen capture color corresponding to the lamp bead xm, and Bm represents a blue color value of the screen capture color corresponding to the lamp bead xm until a complete frame of data (x 1, R1, G1, B1), (x 2, R2, G2, B2), … …, (xn, rn, gn) is generated after all the lamp beads correspond to the colors are determined.
When the 1 st frame is processed, a data packet is not generated immediately, but the 1 st frame interception time t1 is recorded, the processing of the next frame is continued to be waited, when the 2 nd frame is processed, the 2 nd frame interception time t2 is recorded, the inter-frame interval (t 2-t 1) between the 2 nd frame and the 1 st frame is obtained, the time of the next frame is predicted to be approximately similar to the time according to the inter-frame interval (t 2-t 1), the obtained time (t 2-t 1) is used for determining the number of the inter-frame inserting frames according to the duty ratio of the time in one second.
For example, when the program starting time is 0ms to 300ms, the 1 st frame of screen shot is acquired, when the program starting time is 600ms, the 2 nd frame of screen shot is acquired, at this time, the inter-frame interval between the 1 st frame of screen shot and the 2 nd frame of screen shot is 300ms, and the 3 rd frame of screen shot is predicted to be acquired when the program starting time is 900ms, so that the lighting equipment needs to continuously receive frame data in the time interval of 600ms to 900ms, 300/1000×30=9 frame data needs to be generated, the head and the tail are removed, 7 frame data need to be inserted into two continuous frame of screen shots, at this time, the frame inserting interval between the 1 st frame of screen shot and the 2 nd frame of screen shot is 300/8=37.5 ms, new frames are acquired until the frame is 900ms, and the above operations are continuously repeated.
Step S3032, an inter-frame transition color is determined based on the first frame screenshot color, the second frame screenshot color, and the number of inter-frame frames.
Specifically, acquiring a first frame screenshot color value and a second frame screenshot color value; determining an inter-frame transition color value based on the first frame screenshot color value, the second frame screenshot color value, and the number of inter-frame interpolation frames; determining an inter-frame transition color based on the inter-frame transition color value; and sequentially transmitting the first frame screenshot color, the inter-frame transition color and the second frame screenshot color to the lamp beads of the light equipment through the local area network so as to realize synchronous display of the lamp beads of the light equipment and the display color until the processing result of the next frame is obtained again, and repeating the operations.
Step S304, screen capture colors corresponding to any two continuous frames of screen capture and inter-frame transition colors are sent to lamp beads of the lighting equipment for synchronous display; please refer to step S204 in the embodiment shown in fig. 2 in detail, which is not described herein.
According to the color synchronization method for the light equipment and the display, provided by the embodiment, the number of the inter-frame inserted frames is determined, and then the inter-frame transition color is determined, so that the phenomenon of blocking is optimized, and the light effect of color conversion is soft and smooth.
The embodiment also provides a device for synchronizing colors of a lighting device and a display, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The embodiment provides a synchronization device for colors of a lighting device and a display, as shown in fig. 4, including:
an obtaining module 401, configured to obtain a mapping relationship between a lamp bead of the lighting device and a display screen block, and select the display screen block based on the mapping relationship between the lamp bead of the lighting device and the display screen block;
the screenshot module 402 is configured to perform continuous screenshot processing on the selected display screen block within a preset time period, and generate screenshot colors corresponding to any two continuous frames of screenshots;
the frame inserting processing module 403 is configured to perform frame inserting processing on a screenshot color corresponding to any two consecutive frames of screenshots, and generate an inter-frame transition color;
and the synchronous display module 404 is used for sending the screenshot color and the inter-frame transition color corresponding to any two continuous frames of screenshots to the lamp beads of the lighting equipment for synchronous display.
In some alternative embodiments, further comprising:
the dividing module is used for acquiring the display screen, randomly dividing the display screen and generating a plurality of display screen blocks.
In some alternative embodiments, screenshot module 402 includes:
the screenshot submodule is used for continuously screenshot the selected display screen block in a preset time period to generate multi-frame screenshot; wherein each screen shot contains a plurality of colors;
the selecting sub-module is used for selecting any two continuous frames of screen shots from the multi-frame screen shots;
the first determining submodule is used for determining screen capture colors corresponding to any two continuous frames of screen captures by using a clustering algorithm; the screen capture colors corresponding to any two continuous frame screen captures comprise a first frame screen capture color and a second frame screen capture color.
In some alternative embodiments, the plug-in processing module 403 includes:
the second determining submodule is used for obtaining the frame inserting interval and the inter-frame interval corresponding to any two continuous frame screen shots on the screen block of the display, and determining the number of the inter-frame inserting frames based on the frame inserting interval and the inter-frame interval;
and a third determination sub-module for determining an inter-frame transition color based on the first frame screenshot color, the second frame screenshot color, and the number of inter-frame interpolation frames.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The synchronization of the lighting device and the display colors in this embodiment is presented in the form of functional units, where the units are ASIC (Application Specific Integrated Circuit ) circuits, processors and memories executing one or more software or fixed programs, and/or other devices that can provide the above described functions.
The embodiment of the invention also provides computer equipment, which is provided with the device for synchronizing the colors of the lamplight equipment and the display shown in the figure 4.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 5, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 5.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform a method for implementing the embodiments described above.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device further comprises input means 30 and output means 40. The processor 10, memory 20, input device 30, and output device 40 may be connected by a bus or other means, for example in fig. 5.
The input device 30 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointer stick, one or more mouse buttons, a trackball, a joystick, and the like. The output means 40 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. Such display devices include, but are not limited to, liquid crystal displays, light emitting diodes, displays and plasma displays. In some alternative implementations, the display device may be a touch screen.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method for synchronizing colors of a light fixture and a display, the method comprising:
acquiring the mapping relation between the lamp beads of the lighting equipment and the display screen blocks, and selecting the display screen blocks based on the mapping relation between the lamp beads of the lighting equipment and the display screen blocks;
continuously capturing images of the selected display screen blocks within a preset time period to generate screen capturing image colors corresponding to any two continuous frames of screen capturing images;
performing frame interpolation processing on the screen shot colors corresponding to any two continuous screen shots to generate inter-frame transition colors;
and sending the screenshot color corresponding to any two continuous frames of screenshots and the inter-frame transition color to the lamp beads of the lighting equipment for synchronous display.
2. The method of claim 1, further comprising, prior to said obtaining a mapping of light beads of the light fixture to display screen tiles:
and obtaining a display screen, and randomly dividing the display screen to generate a plurality of display screen blocks.
3. The method of claim 1, wherein the performing continuous screenshot processing on the selected display screen block in the preset time period to generate a screenshot color corresponding to any two consecutive frames of screenshots comprises:
continuously capturing images of the selected display screen blocks within a preset time period to generate multi-frame screen captures; wherein each screen shot contains a plurality of colors;
selecting any two continuous frames of screen shots from the multi-frame screen shots;
determining the screenshot color corresponding to any two continuous frames of screenshots by using a clustering algorithm; the screen capture colors corresponding to any two continuous frame screen captures comprise a first frame screen capture color and a second frame screen capture color.
4. A method according to claim 3, wherein said interpolating the screen shot color corresponding to said any two consecutive screen shots to generate an inter-frame transition color comprises:
acquiring an inter-frame interval and an inter-frame interval corresponding to any two continuous frames of screen shots on a screen block of a display, and determining the number of inter-frame inter-frames based on the inter-frame interval and the inter-frame interval;
an inter-frame transition color is determined based on the first frame screenshot color, the second frame screenshot color, and the number of inter-frame frames.
5. A device for synchronizing the colors of a light fixture and a display, said device comprising:
the system comprises an acquisition module, a display screen block and a display screen block, wherein the acquisition module is used for acquiring the mapping relation between the lamp beads of the lighting equipment and the display screen block and selecting the display screen block based on the mapping relation between the lamp beads of the lighting equipment and the display screen block;
the screenshot module is used for continuously screenshot the selected display screen block within a preset time period to generate screenshot colors corresponding to any two continuous frames of screenshots;
the frame inserting processing module is used for carrying out frame inserting processing on the screen capture colors corresponding to any two continuous frames of screen captures to generate inter-frame transition colors;
and the synchronous display module is used for synchronously displaying the screen capture color corresponding to any two continuous frames of screen captures and the inter-frame transition color to the lamp beads of the light equipment.
6. The apparatus as recited in claim 5, further comprising:
the dividing module is used for acquiring the display screen, randomly dividing the display screen and generating a plurality of display screen blocks.
7. The apparatus of claim 5, wherein the screenshot module comprises:
the screenshot submodule is used for continuously screenshot the selected display screen block in a preset time period to generate multi-frame screenshot; wherein each screen shot contains a plurality of colors;
the selecting sub-module is used for selecting any two continuous frames of screen shots from the multi-frame screen shots;
the first determining submodule is used for determining the screenshot color corresponding to any two continuous frames of screenshots by using a clustering algorithm; the screen capture colors corresponding to any two continuous frame screen captures comprise a first frame screen capture color and a second frame screen capture color.
8. The apparatus of claim 7, wherein the frame insertion processing module comprises:
the second determining submodule is used for obtaining an inter-frame interval corresponding to any two continuous frames of screen shots on the screen block of the display, and determining the number of inter-frame inter-frames based on the inter-frame interval and the inter-frame interval;
a third determination sub-module for determining an inter-frame transition color based on the first frame screenshot color, the second frame screenshot color, and the number of inter-frame interpolation frames.
9. A computer device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of synchronizing the color of a display with a light device according to any one of claims 1 to 4.
10. A computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of synchronizing a lighting device of any one of claims 1 to 4 with a display color.
CN202311117896.7A 2023-08-31 2023-08-31 Method, device and equipment for synchronizing colors of light equipment and display Pending CN117062277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311117896.7A CN117062277A (en) 2023-08-31 2023-08-31 Method, device and equipment for synchronizing colors of light equipment and display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311117896.7A CN117062277A (en) 2023-08-31 2023-08-31 Method, device and equipment for synchronizing colors of light equipment and display

Publications (1)

Publication Number Publication Date
CN117062277A true CN117062277A (en) 2023-11-14

Family

ID=88664439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311117896.7A Pending CN117062277A (en) 2023-08-31 2023-08-31 Method, device and equipment for synchronizing colors of light equipment and display

Country Status (1)

Country Link
CN (1) CN117062277A (en)

Similar Documents

Publication Publication Date Title
US20150222814A1 (en) Image Acquisition Method and Apparatus
KR102463304B1 (en) Video processing method and device, electronic device, computer-readable storage medium and computer program
CN111754407B (en) Layout method, device and equipment for image display and storage medium
CN111654746A (en) Video frame insertion method and device, electronic equipment and storage medium
CN108322722B (en) Image processing method and device based on augmented reality and electronic equipment
CN110502205B (en) Picture display edge processing method and device, electronic equipment and readable storage medium
US11792245B2 (en) Network resource oriented data communication
CN115904196A (en) Control method and device of light-emitting equipment, electronic equipment and storage medium
CN108509241B (en) Full-screen display method and device for image and mobile terminal
CN104580883A (en) Image processing device and image processing method
CN114071223A (en) Optical flow-based video interpolation frame generation method, storage medium and terminal equipment
CN111797647B (en) Bar code decoding method and device
CN111274152B (en) Application program testing method, device, equipment and storage medium
CN117062277A (en) Method, device and equipment for synchronizing colors of light equipment and display
CN111882483B (en) Video rendering method and device
CN112035210B (en) Method, apparatus, device and medium for outputting color information
CN111913644B (en) Line drawing method and device for whiteboard and readable storage medium
CN115225946A (en) Display control method and display system
CN109634653B (en) Resource allocation method and device based on componentized architecture
CN112101284A (en) Image recognition method, training method, device and system of image recognition model
EP3779865A1 (en) Filling empty pixels
CN112419145B (en) Image data processing method, device, equipment and storage medium
CN112631532A (en) Bright and dark line adjusting method, device and system and computer storage medium
CN114691252B (en) Screen display method and device
CN111857478B (en) Image layout method and device, electronic equipment and storage medium

Legal Events

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