CN114007316B - Full-color lamp band effect setting method and terminal - Google Patents
Full-color lamp band effect setting method and terminal Download PDFInfo
- Publication number
- CN114007316B CN114007316B CN202111268664.2A CN202111268664A CN114007316B CN 114007316 B CN114007316 B CN 114007316B CN 202111268664 A CN202111268664 A CN 202111268664A CN 114007316 B CN114007316 B CN 114007316B
- Authority
- CN
- China
- Prior art keywords
- light material
- lamplight
- lamp
- light
- full
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/165—Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/265—Mixing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Processing Or Creating Images (AREA)
- Illuminated Signs And Luminous Advertising (AREA)
Abstract
The invention discloses a full-color lamp strip effect setting method and a terminal, wherein the method comprises the following steps: obtaining a lamp strip model corresponding to the lamp strip site modeling and a pre-configured lamp material file; encoding and decoding videos in the lamplight material files, associating the lamplight material files with the lamp band model, and then rendering and displaying lamplight effects in real time; recording the rendered image to generate a light effect file for playing by the full-color device. According to the invention, the recording and generation of the full-color lamp band effect are realized by utilizing the preset model drawing function, combining the video coding and decoding functions, the image rendering functions and other technologies, so that the lamp effect file which can be played by full-color equipment is finally obtained, and the operation of a professional is not required, thereby reducing the difficulty and cost of setting the full-color lamp band effect.
Description
Technical Field
The invention relates to the technical field of decorative lighting, in particular to a full-color lamp strip effect setting method and a terminal.
Background
Full-color lamp strips have been widely used in the decorative lighting arts, such as: building scenery, showcase decoration, billboards, street view lights and the like. The full-color lamp strip effect setting device is a set of software system for synthesizing full-color lamp strip effects, and can be divided into a lamp strip modeling part and a lamp strip effect recording part, the lamp strip modeling part has the functions of drawing a corresponding lamp strip model according to the lamp strip modeling of a lamp strip construction site, the lamp strip effect recording part has the functions of processing, recording and cutting various different materials, and finally, the recorded lamp strip effect is combined with the lamp strip model drawn by the modeling part to generate a lamp strip effect file for playing full-color equipment. The full-color lamp strip effect setting device is realized by taking a PC (Personal Computer ) as a platform at present, software authorization is high in price, and very specialized skills are required, and only professionals generally use the device, for example: professional dimmer, current full-color lamp area effect setting device promptly has the problem such as high price and the use degree of difficulty height.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the full-color lamp strip effect setting method and the terminal are provided, the effect setting of the full-color lamp strip is realized through simple setting, and the use price and the use difficulty are reduced.
In order to solve the technical problems, the invention adopts the following technical scheme:
a full-color lamp band effect setting method comprises the following steps:
obtaining a lamp strip model corresponding to the lamp strip site modeling and a pre-configured lamp material file;
encoding and decoding videos in the lamplight material files, associating the lamplight material files with the lamp band model, and then rendering and displaying lamplight effects in real time;
recording the rendered image to generate a light effect file for playing by the full-color device.
In order to solve the technical problems, the invention adopts another technical scheme that:
the full-color lamp band effect setting terminal comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the full-color lamp band effect setting method when executing the computer program.
The invention has the beneficial effects that: a full-color lamp band effect setting method and a full-color lamp band effect setting terminal realize recording generation of full-color lamp band effects by utilizing the preset model drawing function, combining the video coding and decoding functions, the image rendering functions and other technologies, finally obtain a lamp effect file which can be played by full-color equipment, and the full-color lamp band effect setting method and the full-color lamp band effect setting terminal do not need professional staff to operate, so that the difficulty and cost of full-color lamp band effect setting are reduced.
Drawings
Fig. 1 is a flowchart of a full-color lamp band effect setting method according to an embodiment of the invention;
FIG. 2 is a schematic drawing of a drawing interface of a lamp strip model according to an embodiment of the present invention;
FIG. 3 is an enlarged schematic view of a location in FIG. 2;
FIG. 4 is a schematic diagram of real-time rendering of light effects according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a real-time rendering of another lighting effect according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a full-color lamp band effect setting terminal according to an embodiment of the present invention.
Description of the reference numerals:
1. a full-color lamp strip effect setting terminal; 2. a processor; 3. a memory.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
Referring to fig. 1 to 5, a method for setting effects of full-color lamp strips includes the steps of:
obtaining a lamp strip model corresponding to the lamp strip site modeling and a pre-configured lamp material file;
encoding and decoding videos in the lamplight material files, associating the lamplight material files with the lamp band model, and then rendering and displaying lamplight effects in real time;
recording the rendered image to generate a light effect file for playing by the full-color device.
From the above description, the beneficial effects of the invention are as follows: the full-color lamp band effect recording and generating technology is realized by utilizing the preset model drawing function, combining the video coding and decoding function, the image rendering function and the like, and finally the lamp effect file which can be played by full-color equipment is obtained without professional operation, so that the difficulty and cost of full-color lamp band effect setting are reduced.
Further, the pre-configuring of the light material file includes the following steps:
acquiring all light material layers corresponding to a current light material configuration key, wherein the light material configuration key is used for storing configuration contents of the light material layers and is provided with a plurality of light material layers;
and carrying out layer fusion on all the lamplight material layers according to the corresponding fusion parameters to obtain lamplight material files.
As can be seen from the above description, by providing a plurality of configuration keys, each of the configuration keys stores configuration contents of a plurality of light material layers, and generates corresponding light material files according to the configuration contents thereof, thereby realizing rapid switching of the light material files by rapid switching between the light material configuration keys. Meanwhile, the video in the set lamplight material file can be directly used, so that a user can quickly configure various lamplight effects after being associated with a lamplight model.
Further, if the number of the light material layers is N, and N is a natural number greater than 1, then performing layer fusion on all the light material layers according to corresponding fusion parameters to obtain a light material file specifically includes the following steps:
A. multiplying the pixel value of the current image frame of the first light material layer by the first transparency of the current image frame of the layer to obtain a fusion image of the current image frame of the first light material layer;
B. multiplying the pixel value of the current image frame of the second light material layer by the second transparency of the current image frame of the layer to obtain a transparent image of the current image frame of the second light material layer, multiplying the difference value of 1 and the second transparency by the pixel value of the fusion image of the current image frame of the first light material layer, and superposing the obtained product on the transparent image of the current image frame of the second light material layer to obtain the fusion image of the current image frame of the second light material layer;
C. repeating the step B, and sequentially processing the rest light material layers until a fusion image of the current image frame of the Nth light material layer is obtained, and outputting the fusion image of the current image frame of the Nth light material layer as a final fusion image of the current frame;
D. and (3) repeating the steps A-C, and sequentially carrying out layer fusion on each image frame to obtain the lamplight material file.
From the above description, it can be known that the fusion and superposition of the image frames in the light material layers to be fused according to the corresponding relation of transparency are performed, so that the fusion of a plurality of light material layers is realized, and a more flexible and colorful light effect is realized.
Further, the step of performing layer fusion on all the lamplight material layers according to the corresponding fusion parameters specifically comprises the following steps:
judging whether a certain light material layer is marked as being displayed independently or not in all the light material layers, if so, taking the light material layer marked as being displayed independently as the light material file, otherwise, carrying out layer fusion on all the light material layers according to corresponding fusion parameters.
According to the description, the layers needing to be displayed independently are displayed independently without fusion of the layers, so that a user can select fusion or select individual display of the layers according to actual light display requirements, and the light configuration effect of the appointed layers can be conveniently checked.
Further, before the layer fusion is performed on all the lamplight material layers according to the corresponding fusion parameters, the method further comprises the steps of:
and carrying out image transformation on each lamplight material layer according to the corresponding transformation parameters.
From the above description, it can be known that, for each light material layer, image transformation can be performed, for example, operations such as translating, amplifying, shrinking, etc. are performed on the materials of the light material layer, so as to realize partition of the light material and more flexible and colorful light effects.
Further, before the layer fusion is performed on all the lamplight material layers according to the corresponding fusion parameters, the method further comprises the steps of:
taking the highest frame rate of all the light material layers corresponding to the current light material configuration key as the frame rate of the light material file, calculating the first time required by each frame, setting a frame rate control timer according to the first time, and accumulating frame counts according to the first time by the frame rate control timer;
when each current frame is counted, each lamplight material layer judges whether an image frame needs to be updated according to the proportion relation between the frame rate of the lamplight material layer and the highest frame rate, if so, the updated image frame of the lamplight material layer is obtained, otherwise, the updating is skipped;
adding image frames obtained by counting all the lamplight material layers in the current frame into a frame queue;
and carrying out layer fusion on all the lamplight material layers according to the corresponding fusion parameters, specifically carrying out layer fusion on the image frames in the frame queue according to the corresponding fusion parameters.
From the above description, it can be known that, for the light material layers, the types of video, pictures, characters, ART-NET recording, software generated pictures and the like, the frame rates of the light material layers are different for different light material types, and by using the highest frame rate of all the light material layers as the frame rate of the light material file, other light material layers are updated according to the determined frame rate, so that unified frame rate control of a plurality of light material layers is realized. And adding the images in the frame queue, including updated image frames, and judging whether to add the image frames which are not updated according to the requirements of the lamplight configuration. For example, if the material corresponding to the lamplight material layer is a blank picture, the image frames which are not updated are not added into the frame queue; for another example, if the material corresponding to the lamplight material layer is a picture carrying content, the image frames which are not updated are added into the frame queue.
Further, each lamplight material configuration key corresponds to one lamplight material file;
and when different lamplight material configuration keys are switched, displaying the lamplight effect of the lamplight material file corresponding to the switched lamplight material configuration keys on a real-time preview interface.
From the above description, when different light material configuration keys are switched, the light effects of the light material files corresponding to the light material configuration keys are previewed in real time, so that a user can quickly and accurately select the light material files required by the user to perform light display.
Further, the real-time rendering and displaying of the light effect further comprises the following steps:
after communication connection is carried out on field devices pre-associated with the lamp bands, each port corresponding to a controller in the lamp band model is correspondingly associated with the lamp band of the field;
acquiring a target real-time preview frame rate, and transmitting the light effect image frame to the field device for field light effect preview according to the target real-time preview frame rate, wherein the light effect image frame is an image frame obtained after the light material file is associated with the light band model;
after the light effect image frames are sent, calculating an optimal frame rate according to a sending code rate and sending data, and taking the optimal frame rate as a new target real-time preview frame rate after being increased by a preset value to send the light effect image frames, wherein the preset value is [5%,20% ].
From the above description, it can be seen that the field device pre-associated with the light strip is in communication connection to perform real-time preview of the light strip, and the target real-time preview frame rate is adjusted in real time according to the network condition in the communication process, so as to realize dynamically stable effect frame output.
Further, the generating process of the lamp strip model further comprises the following steps:
and obtaining a scaling request, scaling the lamp band model of the current interface according to the scaling request, and displaying different drawing states of each pixel position on the current interface in different display modes.
From the above description, real-time pixel preview is supported during model drawing, so that a user can more rapidly locate physical pixels corresponding to model pixels, and drawing of a model is greatly facilitated.
Referring to fig. 6, a full-color lamp band effect setting terminal includes a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the full-color lamp band effect setting method when executing the computer program.
The method and the terminal for setting the full-color lamp band effect can be suitable for various scenes needing the full-color lamp band effect, such as KTV (Karaoke TV, a place for providing Karaoke video and audio equipment and a video and audio space), bars, concerts or various activity performances and the like, and are described by specific embodiments:
referring to fig. 1 to 3, a first embodiment of the present invention is as follows:
a full-color lamp band effect setting method comprises the following steps:
s1, acquiring a lamp strip model corresponding to a lamp strip site modeling and a pre-configured lamp material file;
in this embodiment, the process of generating the lamp strip model includes the following steps:
and obtaining a scaling request, scaling the lamp band model of the current interface according to the scaling request, and displaying different drawing states of each pixel position on the current interface in different display modes.
As shown in fig. 2 and fig. 3, the model drawing module in this embodiment can edit multiple lamp band models at the same time, and display the information such as the number of full-color controllers, the number of ports of each controller, the number of drawn points and the number of non-drawn points of each port, and the like, which are included in the lamp band models, according to a tree structure, so that the model diagram can be enlarged and reduced to view the pixel point information, and a user can more quickly locate to the physical pixel corresponding to the model pixel, thereby greatly facilitating the drawing of the model, wherein fig. 3 is an enlarged schematic diagram of the lamp band model in a certain position in fig. 2. Meanwhile, in this embodiment, selected, unselected, drawn and non-drawn points can be sent to the full-color controller in real time through a network, and corresponding pixels are lightened or extinguished by different colors, and various model drawing modes are supported, such as: drawing, straight line, curve, circle, ellipse, spiral, matrix, polygon, text, dxf (an open vector data format) importation, and the like.
Wherein, the matrix drawing is exemplified as follows: firstly, a user mouse clicks a starting point; secondly, inputting or dragging the width and height of the input matrix of the mouse; then, a pixel drawing direction is selected, wherein a drawing direction such as increasing row pixels from left to right, decreasing column pixels from top to bottom, and the like can be obtained according to 16 drawing orders including a row-column increasing direction, whether to turn back, a starting position, and the like; finally, the drawing is completed.
S2, encoding and decoding videos in the lamplight material files, associating the lamplight material files with the lamp band model, and then rendering and displaying lamplight effects in real time;
in this embodiment, a video codec module of a PC may be selected to implement encoding and decoding of video in a lamplight material file, a GPU (graphics processing unit, graphics processor) may be selected to implement real-time rendering and display of lamplight effects, and a mobile terminal device may be selected to perform video encoding and decoding operations in the lamplight material file.
S3, recording the rendered image to generate a light effect file which can be played by the full-color equipment.
Recording the light material effect displayed by the light material file according to the light strip model, and outputting the light material effect to full-color equipment in real time through a network for light effect preview; then cutting the recorded light effect to obtain a light effect file; after the light effect file is generated, the light effect file can be sent to the full-color equipment through a network or copied to the full-color equipment through a USB flash disk, so that the follow-up full-color equipment displays the light effect of the field light band according to the light effect file.
Referring to fig. 1 to 5, a second embodiment of the present invention is as follows:
the method for setting the full-color lamp band effect in the first embodiment further defines the configuration process of the lamp light material file, which specifically includes the following steps:
s11, acquiring all light material layers corresponding to a current light material configuration key, wherein the light material configuration key is used for storing configuration contents of the light material layers and is provided with a plurality of light material layers;
as shown in fig. 4, a plurality of light material configuration keys are provided, and a plurality of light material layers and corresponding configuration contents may be configured in each light material configuration key.
The lamplight material layer can be of various material types such as video, pictures, characters, ART-NET recorded pictures and software generated pictures, the configuration content of the lamplight material layer comprises transformation parameters, fusion parameters and execution parameters, wherein the transformation parameters comprise parameters such as coordinates, mirror images, rotation and scaling, the fusion parameters comprise transparency, independent display, hiding and the like, and the execution parameters comprise frame rate, back broadcasting, skip broadcasting, filters and the like.
As shown in fig. 4 and fig. 5, each light material configuration key corresponds to one light material file, and when different light material configuration keys are switched, the light effect of the light material file corresponding to the switched light material configuration key is displayed on the real-time preview interface, so that the light material file is switched rapidly.
And S12, carrying out layer fusion on all the lamplight material layers according to the corresponding fusion parameters to obtain lamplight material files.
The step S12 specifically includes the following steps:
s121, generating a layer map according to the drawn lamp strip model or a model map file formed by combining a plurality of lamp strip models, wherein the layer map is the circumscribed rectangle of each lamp bead pixel on the field lamp strip and the area to be drawn and is used for representing the size of the drawing area.
S122, carrying out image transformation on each lamplight material layer according to the corresponding transformation parameters.
Namely, each lamplight material layer is provided with corresponding transformation parameters, and image transformation is carried out before fusion.
S123, taking the highest frame rate of all the light material layers corresponding to the current light material configuration key as the frame rate of the light material file, calculating the first time required by each frame, setting a frame rate control timer according to the first time, and accumulating frame counts according to the first time by the frame rate control timer;
when each current frame is counted, each lamplight material layer judges whether the image frame needs to be updated according to the proportion relation between the frame rate of the lamplight material layer and the highest frame rate, if so, the updated image frame of the lamplight material layer is obtained, otherwise, the updating is skipped;
adding image frames obtained by counting the current frames of all the lamplight material layers into a frame queue;
and carrying out layer fusion on all the lamplight material layers according to the corresponding fusion parameters, specifically carrying out layer fusion on all the image frames in the frame queue according to the corresponding fusion parameters.
If the frame rate of both light material layers is 30 in fig. 5, the frame rate of the light material file is also 30. When assuming that the frame rate of one light material layer is 30 and the frame rate of the other light material layer is 15, the frame rate of the light material file is the highest frame rate of the two light material layers, namely 30, and for the light material layer with the frame rate of 15, the frame count is needed to update a frame image every two times.
S124, judging whether a certain light material layer is marked as being singly displayed in all the light material layers, if so, taking the light material layer marked as being singly displayed as a light material file, otherwise, executing the following steps for all the light material layers:
A. multiplying the pixel value of the current image frame of the first light material layer by the first transparency of the current image frame of the layer to obtain a fusion image of the current image frame of the first light material layer;
i.e. the pixel value at the ith position of the current image frame of the first light material layer is P1 i The transparency of the current image frame of the first light material layer is R1, and the transparency is [0,100 ]]Wherein 100% is 1, so that the pixel value T1 corresponding to the i-th position of the fusion map of the current image frame of the first light material layer i =P1 i *R1。
B. Multiplying the pixel value of the current image frame of the second light material layer by the second transparency of the current image frame of the layer to obtain a transparent image of the current image frame of the second light material layer, multiplying the difference between 1 and the second transparency by the pixel value of the fusion image of the current image frame of the first light material layer, and superposing the obtained product on the transparent image of the current image frame of the second light material layer to obtain the fusion image of the current image frame of the second light material layer;
i.e. the pixel value of the current image frame of the second light material layer is P2 i The transparency of the current image frame of the first light material layer is R2, whereby the fusion map T2 of the current image frame of the second light material layer i =P2 i *R2+T1 i *(1-R2)。
C. Repeating the step B, and sequentially processing the rest light material layers until a fusion image of the current image frame of the Nth light material layer is obtained, and outputting the fusion image of the current image frame of the Nth light material layer as a final fusion image of the current frame;
in the layer fusion process, the two fused light material layers are set as the nth light material layer and the corresponding (n+1) th light material layer, and then the pixel value corresponding to the fusion image of the current image frame of the nth light material layer at the ith position is Tn i =Pn i * Fusion map T [ n+1 ] of current image frame of Rn, n+1th lamplight material layer] i =P[n+1] i *R[n+1]+Tn i *(1-R[n+1])。
D. And (3) repeating the steps A-C, and sequentially carrying out layer fusion on each image frame to obtain the lamplight material file.
The parameters of the multiple light material layers are updated to the material player or the layer manager for playing, the layer manager stores the material player and the generated layer image, and starts the frame rate control timer to execute step S123 when the light material layer exists, wherein the base class of the material player defines a series of virtual functions and attributes, such as initialization, parameter updating, image acquisition, frame skip and the like, and each material player realizes the virtual functions in its own base class for unified call of the layer manager.
Referring to fig. 1 to 5, a third embodiment of the present invention is as follows:
the method for setting full-color lamp band effect is further defined as the following for real-time rendering and displaying of the lamp effect based on the first embodiment:
s21, after the field devices pre-associated with the lamp bands are in communication connection, each port corresponding to a controller in the lamp band model is correspondingly associated with the lamp band of the field;
the method comprises the steps of acquiring equipment information of a field device by scanning an appointed port of an intranet IP, establishing TCP and UDP connection after searching, and indicating that the equipment is normally connected, wherein physical equipment is well configured with lamp beads on a field lamp band, and associating virtual equipment of the lamp band model with the physical equipment on the field, so that the lamp band model and the lamp beads on the field lamp band form a lamp light control relation.
S22, acquiring a target real-time preview frame rate, and transmitting a light effect image frame to the field device according to the target real-time preview frame rate to preview the light effect on site, wherein the light effect image frame is an image frame obtained after a light material file is associated with a light band model;
the method comprises the steps that a user sets a target real-time preview frame rate in an interface, wherein the target real-time preview frame rate is smaller than or equal to a target frame rate, and is determined according to network conditions; starting a real-time preview output timer according to the frame rate; starting a sending rate statistics timer after triggering the timer; dividing the light effect into a plurality of blocks according to the correlated model and the physical equipment, packaging according to a protocol, and transmitting to the field equipment through UDP;
and S23, after the light effect image frames are sent, calculating an optimal frame rate according to the sending code rate and the sending data, and taking the optimal frame rate as a new target real-time preview frame rate to send the light effect image frames after the optimal frame rate is increased by a preset value, wherein the preset value is [5%,20% ].
And closing a timer after the light effect image frame is sent, calculating a sending code rate, calculating an optimal frame rate according to the sending code rate and sending data, setting the time of a real-time preview output timer after the optimal frame rate is increased by 10%, and starting the timer so as to gradually approach to a target frame rate, thereby realizing dynamic stable effect frame output.
Referring to fig. 6, a fourth embodiment of the present invention is as follows:
the full-color lamp band effect setting terminal 1 includes a memory 3, a processor 2, and a computer program stored in the memory 3 and executable on the processor 2, and the processor 2 implements the steps of the first, second or third embodiments when executing the computer program.
In summary, the full-color lamp band effect setting method and the terminal provided by the invention have the following advantages:
(1) Recording and generating full-color lamp strip effects are realized by utilizing the preset model drawing function, the video coding and decoding function, the image rendering function and other technologies, so that a lamp effect file which can be played by full-color equipment is finally obtained, no professional is needed, and the difficulty and cost for configuring the full-color lamp strip effects are reduced;
(2) The rapid switching and the real-time preview display of the light material files are realized through the rapid switching among the light material configuration keys, meanwhile, each light material configuration key stores the configuration content of a plurality of light material layers with different material types, and the configuration content comprises the image transformation and the image fusion of the plurality of light material layers so as to generate the corresponding light material files, thereby realizing more flexible colorful light effects;
(3) Real-time pixel preview is supported during model drawing, so that a user can be positioned to a physical pixel corresponding to a model pixel more rapidly, and drawing of a model is greatly facilitated.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.
Claims (10)
1. The full-color lamp strip effect setting method is characterized by comprising the following steps:
obtaining a lamp strip model corresponding to the lamp strip site modeling and a pre-configured lamp material file;
encoding and decoding videos in the lamplight material files, associating the lamplight material files with the lamp band model, and then rendering and displaying lamplight effects in real time;
recording the rendered image to generate a light effect file for playing by the full-color device.
2. The full-color lamp band effect setting method according to claim 1, wherein the pre-configuration of the lamp light material file comprises the steps of:
acquiring all light material layers corresponding to a current light material configuration key, wherein the light material configuration key is used for storing configuration contents of the light material layers and is provided with a plurality of light material layers;
and carrying out layer fusion on all the lamplight material layers according to the corresponding fusion parameters to obtain lamplight material files.
3. The method for setting full-color lamp band effect according to claim 2, wherein the number of the lamp light material layers is N, N is a natural number greater than 1, and the step of performing layer fusion on all the lamp light material layers according to corresponding fusion parameters to obtain a lamp light material file specifically comprises the following steps:
A. multiplying the pixel value of the current image frame of the first light material layer by the first transparency of the current image frame of the layer to obtain a fusion image of the current image frame of the first light material layer;
B. multiplying the pixel value of the current image frame of the second light material layer by the second transparency of the current image frame of the layer to obtain a transparent image of the current image frame of the second light material layer, multiplying the difference value of 1 and the second transparency by the pixel value of the fusion image of the current image frame of the first light material layer, and superposing the obtained product on the transparent image of the current image frame of the second light material layer to obtain the fusion image of the current image frame of the second light material layer;
C. repeating the step B, and sequentially processing the rest light material layers until a fusion image of the current image frame of the Nth light material layer is obtained, and outputting the fusion image of the current image frame of the Nth light material layer as a final fusion image of the current frame;
D. and (3) repeating the steps A-C, and sequentially carrying out layer fusion on each image frame to obtain the lamplight material file.
4. The method for setting full-color lamp band effect according to claim 2, wherein said layer fusion of all the lamp light material layers according to the corresponding fusion parameters specifically comprises the following steps:
judging whether a certain light material layer is marked as being displayed independently or not in all the light material layers, if so, taking the light material layer marked as being displayed independently as the light material file, otherwise, carrying out layer fusion on all the light material layers according to corresponding fusion parameters.
5. The method for setting full-color lamp band effect according to claim 2, wherein before the layer fusion is performed on all the lamp light material layers according to the corresponding fusion parameters, the method further comprises the steps of:
and carrying out image transformation on each lamplight material layer according to the corresponding transformation parameters.
6. The method for setting full-color lamp band effect according to claim 2, wherein before the layer fusion is performed on all the lamp light material layers according to the corresponding fusion parameters, the method further comprises the steps of:
taking the highest frame rate of all the light material layers corresponding to the current light material configuration key as the frame rate of the light material file, calculating the first time required by each frame, setting a frame rate control timer according to the first time, and accumulating frame counts according to the first time by the frame rate control timer;
when each current frame is counted, each lamplight material layer judges whether an image frame needs to be updated according to the proportion relation between the frame rate of the lamplight material layer and the highest frame rate, if so, the updated image frame of the lamplight material layer is obtained, otherwise, the updating is skipped;
adding image frames obtained by counting all the lamplight material layers in the current frame into a frame queue;
and carrying out layer fusion on all the lamplight material layers according to the corresponding fusion parameters, specifically carrying out layer fusion on all the image frames in the frame queue according to the corresponding fusion parameters.
7. The full-color lamp band effect setting method according to any one of claims 2 to 6, wherein each of the lamp material configuration keys corresponds to one lamp material file;
and when different lamplight material configuration keys are switched, displaying the lamplight effect of the lamplight material file corresponding to the switched lamplight material configuration keys on a real-time preview interface.
8. The method for setting full-color lamp strip effect according to claim 1, wherein the real-time rendering and displaying of the lamp effect further comprises the steps of:
after communication connection is carried out on field devices pre-associated with the lamp bands, each port corresponding to a controller in the lamp band model is correspondingly associated with the lamp band of the field;
acquiring a target real-time preview frame rate, and transmitting the light effect image frame to the field device for field light effect preview according to the target real-time preview frame rate, wherein the light effect image frame is an image frame obtained after the light material file is associated with the light band model;
after the light effect image frames are sent, calculating an optimal frame rate according to a sending code rate and sending data, and taking the optimal frame rate as a new target real-time preview frame rate after being increased by a preset value to send the light effect image frames, wherein the preset value is [5%,20% ].
9. The full-color lamp strip effect setting method according to claim 1, further comprising the steps of, in the generating process of the lamp strip model:
and obtaining a scaling request, scaling the lamp band model of the current interface according to the scaling request, and displaying different drawing states of each pixel position on the current interface in different display modes.
10. A full-color lamp band effect setting terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a full-color lamp band effect setting method according to any one of claims 1 to 9 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111268664.2A CN114007316B (en) | 2021-10-29 | 2021-10-29 | Full-color lamp band effect setting method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111268664.2A CN114007316B (en) | 2021-10-29 | 2021-10-29 | Full-color lamp band effect setting method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114007316A CN114007316A (en) | 2022-02-01 |
CN114007316B true CN114007316B (en) | 2023-06-23 |
Family
ID=79924935
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111268664.2A Active CN114007316B (en) | 2021-10-29 | 2021-10-29 | Full-color lamp band effect setting method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114007316B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117521179B (en) * | 2024-01-04 | 2024-04-19 | 深圳市智岩科技有限公司 | Atmosphere lamp equipment, luminous partition layout construction method and device and computer equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108289357A (en) * | 2018-03-27 | 2018-07-17 | 淮阴师范学院 | A kind of LED landscape lamp control system and its working method |
CN108933961A (en) * | 2018-06-26 | 2018-12-04 | 深圳市韵阳科技有限公司 | A kind of method and system controlling LED colour developing according to image border data |
CN110111726A (en) * | 2019-05-31 | 2019-08-09 | 北京智科特机器人科技有限公司 | Control method, device and the electronic equipment of LED light battle array |
CN110996430A (en) * | 2019-12-20 | 2020-04-10 | 贵州元音在线电子技术有限公司 | Light control method, light control equipment and music room |
CN111683439A (en) * | 2020-06-08 | 2020-09-18 | Tcl华星光电技术有限公司 | Control method of color light strip and display device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106422374B (en) * | 2016-11-22 | 2018-03-13 | 深圳市环球数码科技有限公司 | A kind of dynamic visual impact strengthening system and control method for digital camera |
-
2021
- 2021-10-29 CN CN202111268664.2A patent/CN114007316B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108289357A (en) * | 2018-03-27 | 2018-07-17 | 淮阴师范学院 | A kind of LED landscape lamp control system and its working method |
CN108933961A (en) * | 2018-06-26 | 2018-12-04 | 深圳市韵阳科技有限公司 | A kind of method and system controlling LED colour developing according to image border data |
CN110111726A (en) * | 2019-05-31 | 2019-08-09 | 北京智科特机器人科技有限公司 | Control method, device and the electronic equipment of LED light battle array |
CN110996430A (en) * | 2019-12-20 | 2020-04-10 | 贵州元音在线电子技术有限公司 | Light control method, light control equipment and music room |
CN111683439A (en) * | 2020-06-08 | 2020-09-18 | Tcl华星光电技术有限公司 | Control method of color light strip and display device |
Also Published As
Publication number | Publication date |
---|---|
CN114007316A (en) | 2022-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103092612B (en) | Realize method and the electronic installation of Android operation system 3D desktop pinup picture | |
CN104243995B (en) | image processing apparatus, image processing system, image processing method and computer program | |
CN103472985B (en) | A kind of user's edit methods of three-dimensional shopping platform display interface | |
KR20170078651A (en) | Authoring tools for synthesizing hybrid slide-canvas presentations | |
WO2023138029A1 (en) | Remote sensing data processing method and apparatus, device, storage medium, and computer program product | |
CN114007316B (en) | Full-color lamp band effect setting method and terminal | |
CN106383640A (en) | Projection method | |
GB2400290A (en) | Multidimensional image data processing in a hierarchical dat structure | |
WO2023173828A1 (en) | Scene element processing method and apparatus, device, and medium | |
CN111133411B (en) | Spatial audio upmixing | |
WO2023159595A9 (en) | Method and device for constructing and configuring three-dimensional space scene model, and computer program product | |
CN115953540A (en) | Meta-universe virtual space construction system and method based on three-dimensional panorama | |
TW202248808A (en) | Augmented reality data presentation method, electronic equipment and computer-readable storage medium | |
KR101216221B1 (en) | System and method for providing augmented reality service | |
WO2024082897A1 (en) | Illumination control method and apparatus, and computer device and storage medium | |
CN102117347B (en) | Three-dimensional editing method for LED lighting scenes | |
Watier | Video mapping in audiovisual performances: projecting the club scene onto the urban space | |
CN209149720U (en) | Digital sand table | |
US11037256B2 (en) | Editing and representing property values for a digital map | |
KR102092156B1 (en) | Encoding method for image using display device | |
JP3062488B1 (en) | Texture mapping apparatus, method, and recording medium | |
EP4336820A1 (en) | Method and apparatus for generating special effect configuration file, device and medium | |
WO2023216771A1 (en) | Virtual weather interaction method and apparatus, and electronic device, computer-readable storage medium and computer program product | |
WO2023134537A1 (en) | Split-screen special effect prop generating method and apparatus, device, and medium | |
WO2024093798A1 (en) | Music composition method and apparatus, and electronic device and readable 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |