CN114007316A - Full-color lamp strip effect setting method and terminal - Google Patents
Full-color lamp strip effect setting method and terminal Download PDFInfo
- Publication number
- CN114007316A CN114007316A CN202111268664.2A CN202111268664A CN114007316A CN 114007316 A CN114007316 A CN 114007316A CN 202111268664 A CN202111268664 A CN 202111268664A CN 114007316 A CN114007316 A CN 114007316A
- Authority
- CN
- China
- Prior art keywords
- light material
- light
- lighting
- frame
- fusion
- 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.)
- Granted
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: acquiring a lamp belt model corresponding to the lamp belt on-site modeling and a pre-configured light material file; coding and decoding videos in the light material file, associating the light material file with the lamp belt model, and rendering and displaying light effects in real time; and recording the rendered image to generate a light effect file which can be played by full-color equipment. According to the invention, the full-color lamp strip effect is recorded and generated by utilizing the preset model drawing function, the video encoding and decoding function, the image rendering function and other technologies, and finally the light effect file which can be played by full-color equipment is obtained without the operation of a professional, so that the difficulty and the cost of setting the full-color lamp strip effect are reduced.
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 area has been widely used in the decorative lighting field, if: building scenery, showcase decoration, billboards, street view lighting, etc. Wherein, full-color lamp area effect sets up the device and is the one set of software system of synthetic full-color lamp area effect, can divide into lamp area molding part and light effect and record the part, lamp area molding part's function is according to the lamp area molding of lamp area job site, draw out the lamp area model that corresponds, light effect records the function of part and is handled the material of multiple difference, record, tailor, will record the lamp area model that good light effect combines the molding part to draw at last, generate the light effect file that can supply full-color equipment to broadcast. The full-color light strip effect setting device is realized by taking a Personal Computer (PC) as a platform at present, software authorization is expensive, and requires a very professional skill, and generally only a professional can use the device, for example: professional dimming person, there are the high price and the high scheduling problem of the use degree of difficulty in current full-color lamp area effect setting device promptly.
Disclosure of Invention
The technical problem to be solved by the invention is 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 technical scheme that:
a full-color lamp strip effect setting method comprises the following steps:
acquiring a lamp belt model corresponding to the lamp belt on-site modeling and a pre-configured light material file;
coding and decoding videos in the light material file, associating the light material file with the lamp strip model, and then rendering and displaying light effects in real time;
and recording the rendered image to generate a light effect file which can be played by full-color equipment.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
a full-color lamp band effect setting terminal comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the full-color lamp band effect setting method.
The invention has the beneficial effects that: the utility model provides a full-color lamp area effect sets up method and terminal, draws the function, combines video coding and decoding function and image rendering function etc. technique through utilizing the predetermined model and realizes the formation of recording of full-color lamp area effect, finally obtains the light effect file that can supply full-color equipment to broadcast, need not professional's operation to the degree of difficulty and the cost of full-color lamp area effect setting have been reduced.
Drawings
Fig. 1 is a schematic flow chart of a full-color lamp strip effect setting method according to an embodiment of the present invention;
fig. 2 is a schematic drawing interface diagram of a lamp strip model according to an embodiment of the present invention;
FIG. 3 is an enlarged schematic view of a position on FIG. 2;
FIG. 4 is a schematic diagram illustrating a real-time rendering of lighting effects according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating another real-time rendering of lighting effects according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a full-color lamp strip effect setting terminal according to an embodiment of the present invention.
Description of reference numerals:
1. a full-color lamp belt effect setting terminal; 2. a processor; 3. a memory.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
Referring to fig. 1 to 5, a method for setting a full-color lamp strip effect includes the steps of:
acquiring a lamp belt model corresponding to the lamp belt on-site modeling and a pre-configured light material file;
coding and decoding videos in the light material file, associating the light material file with the lamp strip model, and then rendering and displaying light effects in real time;
and recording the rendered image to generate a light effect file which can be played by full-color equipment.
From the above description, the beneficial effects of the present invention are: through utilizing the preset model to draw the function, combining technologies such as video coding and decoding function and image rendering function to realize the formation of recording of full-color lamp area effect, finally obtain the light effect file that can supply full-color equipment to broadcast, need not the professional operation to the degree of difficulty and the cost that full-color lamp area effect set up have been reduced.
Further, the pre-configuration of the light material file comprises 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 light material layers according to the corresponding fusion parameters to obtain a light material file.
As can be seen from the above description, a plurality of configuration keys are provided, each configuration key stores configuration contents of a plurality of light material layers, and generates a corresponding light material file according to the configuration contents, so that the light material files are quickly switched by quickly switching between the light material configuration keys. Meanwhile, the video in the set light material file can be directly used, so that a user can conveniently and quickly configure various light effects after the user is associated with the light model.
Further, if the number of the light material layers is N, and N is a natural number greater than 1, the step of performing layer fusion on all the light material layers according to the corresponding fusion parameters to obtain the light material file specifically includes the following steps:
A. multiplying the pixel value of the current image frame of the first lighting material layer by the first transparency of the current image frame of the first lighting material layer to obtain a fusion image of the current image frame of the first lighting 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 to obtain a transparent image of the current image frame of the second light material layer, multiplying the difference value 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;
C. repeating the step B, sequentially processing the remaining 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 repeating the steps A-C, and sequentially carrying out layer fusion on each image frame to obtain the light material file.
It can be known from the above description that the fusion and superposition of each image frame in the lighting material layer to be fused are performed according to the corresponding relation of the transparency, so that the fusion of a plurality of lighting material layers is realized, and a more flexible and colorful lighting effect is realized.
Further, the process of layer fusion of all the lighting material layers according to the corresponding fusion parameters specifically includes the following steps:
and judging whether a certain lighting material layer is marked to be displayed independently in all the lighting material layers, if so, taking the lighting material layer marked to be displayed independently as the lighting material file, and otherwise, performing layer fusion on all the lighting material layers according to corresponding fusion parameters.
According to the description, the layers which need to be displayed independently are displayed independently without layer fusion, so that a user can select and fuse the layers or select to display independently according to actual lighting display requirements, and the lighting configuration effect of the appointed layers is convenient to view.
Further, before the layer fusion is performed on all the lighting material layers according to the corresponding fusion parameters, the method further includes the following steps:
and carrying out image transformation on each light material layer according to the corresponding transformation parameters.
As can be seen from the above description, image transformation may also be performed on each light material layer, for example, the operations of translation, enlargement, reduction, and the like are performed on the materials in the light material layers, so as to realize partitioning of the light materials and a more flexible and colorful light effect.
Further, before the layer fusion is performed on all the lighting material layers according to the corresponding fusion parameters, the method further includes the following steps:
taking the highest frame rate of all the light material layers corresponding to the current light material configuration key as the frame rate of a light material file, calculating the first time required by each frame, and setting a frame rate control timer according to the first time so that the frame rate control timer accumulates the frame count according to the first time;
when each current frame is counted, each light material layer judges whether the image frame needs to be updated according to the proportional relation between the frame rate of each light material layer and the highest frame rate, if so, the updated image frame of the light material layer is obtained, and if not, the current updating is skipped;
adding all the image frames obtained by counting the light material layers in the current frame into a frame queue;
the step of performing layer fusion on all the light material layers according to the corresponding fusion parameters is specifically to perform layer fusion on the image frames in the frame queue according to the corresponding fusion parameters.
It can be known from the above description that the light material layers may be of video, picture, text, ART-NET recording, software generated picture, and the like, and the frame rates of different light material types are different, and the uniform frame rate control of the plurality of light material layers is realized by using the highest frame rate of all the light material layers as the frame rate of the light material file, and updating the other light material layers according to the determined frame rate. And adding the images in the frame queue, including the updated image frames, and judging whether to add the non-updated image frames according to the requirement of light configuration. For example, if the material corresponding to the lighting material layer is a blank picture, the image frame which is not updated is not added to the frame queue; and if the material corresponding to the lighting material layer is a picture carrying contents, adding the image frame which is not updated into the frame queue.
Furthermore, each light material configuration key corresponds to one light material file;
and when different light material configuration keys are switched, displaying the light effect of the light material file corresponding to the switched light material configuration key on a real-time preview interface.
It can be known from the above description that when different light material configuration keys are switched, the light effect of the light material file corresponding to the light material configuration key is previewed and displayed in real time, so that a user can quickly and accurately select the light material file 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 equipment which is pre-associated with the lamp strip, each port corresponding to a controller in the lamp strip model corresponds to the lamp strip of the associated field;
acquiring a target real-time preview frame rate, and sending the lighting effect image frame to the field equipment for field lighting effect preview according to the target real-time preview frame rate, wherein the lighting effect image frame is an image frame obtained after the lighting material file is associated with the lamp strip model;
after the sending of the lighting effect image frames is finished, calculating an optimal frame rate according to a sending code rate and a sending data amount, increasing the optimal frame rate by a preset value, and then serving as a new target real-time preview frame rate to send the lighting effect image frames, wherein the preset value is [ 5%, 20% ].
As can be seen from the above description, the field device pre-associated with the lamp strip is in communication connection to perform real-time preview of the lamp strip, and the target real-time preview frame rate is adjusted in real time according to the network condition in the communication process, so that the dynamically stable effect frame output is realized.
Further, the generation process of the lamp strip model further comprises the following steps:
and acquiring a zooming request, zooming the lamp strip model of the current interface according to the zooming request, and displaying each pixel position on the current interface in different drawing states in different display styles.
From the above description, real-time pixel preview is supported during model drawing, so that a user can more quickly locate a physical pixel corresponding to a model pixel, and great convenience is brought to model drawing.
Referring to fig. 6, a full-color light band effect setting terminal includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the computer program to implement the above-mentioned full-color light band effect setting method.
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 audio and video equipment and a singing space), a bar, a concert or various events and performances, and the like, and are explained through specific implementation modes as follows:
referring to fig. 1 to fig. 3, a first embodiment of the present invention is:
a full-color lamp strip effect setting method comprises the following steps:
s1, obtaining a lamp strip model corresponding to the lamp strip on-site modeling and a pre-configured lamp material file;
in this embodiment, the generation process of the light strip model includes the following steps:
and acquiring a zooming request, zooming the lamp strip model of the current interface according to the zooming request, and displaying each pixel position on the current interface in different drawing states in different display styles.
As shown in fig. 2 and 3, the model drawing module in this embodiment can edit a plurality of lamp strip models simultaneously, and display 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 undrawn points of each port, which are included in the lamp strip models, according to a tree structure, and can enlarge and reduce the model diagram to view pixel point information, so that a user can more quickly locate a physical pixel corresponding to a model pixel, thereby greatly facilitating the drawing of the model, where fig. 3 is an enlarged schematic view of the lamp strip model in fig. 2 at a certain position. Meanwhile, in the embodiment, selected, unselected, drawn and unpainted points can be sent to the full-color controller through the network in real time, corresponding pixels are lighted or extinguished by different colors, and various model drawing modes are supported, such as: brush, line, curve, circle, ellipse, spiral, matrix, polygon, text, dxf (an open vector data format), import, etc.
The following is exemplified by matrix rendering: firstly, a user clicks a starting point by a mouse; secondly, inputting or dragging the width and the height of a mouse input matrix; then, selecting pixel drawing directions, wherein drawing directions such as row pixels increasing from left to right and column pixels decreasing from top to bottom can be obtained according to 16 kinds of drawing orders including row-column increasing direction, turning back or not, starting position and the like; and finally, finishing drawing.
S2, coding and decoding videos in the light material file, associating the light material file with the lamp strip model, and rendering and displaying light effects in real time;
in this embodiment, a video coding and decoding module of the PC may be selected to implement coding and decoding of a video in the light material file, a GPU (graphics processing unit) is selected to perform real-time rendering and display of a light effect, and a mobile terminal device may be selected to perform video coding and decoding operations in the light material file.
And S3, recording the rendered image to generate a light effect file which can be played by the full-color equipment.
The lighting effect previewing method comprises the steps that a lighting material effect displayed by a lighting material file is recorded according to a lamp strip model, and the lighting material effect is output to full-color equipment in real time through a network to perform lighting effect previewing; cutting the recorded lighting effect to obtain a lighting 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 subsequent full-color equipment can display the light effect of the field lamp strip according to the light effect file.
Referring to fig. 1 to 5, a second embodiment of the present invention is:
on the basis of the first embodiment, the configuration process of the light material file is further defined in the embodiment, which is specifically as follows:
s11, acquiring all light material layers corresponding to the current light material configuration keys, wherein the light material configuration keys are used for storing configuration contents of the light material layers and are provided in plurality;
as shown in fig. 4, a plurality of light material configuration keys are provided, and each light material configuration key may be configured with a plurality of light material layers and corresponding configuration contents, in this embodiment, for convenience of subsequent description, the number of the light material layers is set to be N, where N is a natural number greater than 1.
The lighting material layer can be various material types such as video, picture, text, ART-NET recorded picture, software generated picture and the like, the configuration content of the lighting material layer comprises transformation parameters, fusion parameters and execution parameters, wherein the transformation parameters comprise coordinates, mirror images, rotation, scaling and other parameters, the fusion parameters comprise transparency, independent display, hiding and the like, and the execution parameters comprise frame rate, reverse playing, skip playing, filter and the like.
As shown in fig. 4 and 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 files are switched quickly.
And S12, carrying out layer fusion on all the light material layers according to the corresponding fusion parameters to obtain the light material file.
Wherein, step S12 specifically includes the following steps:
and 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 a circumscribed rectangle of each lamp bead pixel on the field lamp strip and an area needing drawing and is used for representing the size of the drawing area.
And S122, carrying out image transformation on each light material layer according to the corresponding transformation parameters.
Namely, corresponding transformation parameters are set in each lighting material layer, and image transformation is performed before fusion.
S123, taking the highest frame rate of all 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, and setting a frame rate control timer according to the first time so that the frame rate control timer accumulates the frame count according to the first time;
when each current frame is counted, each light material layer judges whether the image frame needs to be updated according to the proportional relation between the frame rate of each light material layer and the highest frame rate, if so, the updated image frame of the light material layer is obtained, and if not, the updating is skipped;
adding all the light material layers into a frame queue in an image frame obtained by counting the current frame;
and performing layer fusion on all the light material layers according to the corresponding fusion parameters, specifically performing layer fusion on all the image frames in the frame queue according to the corresponding fusion parameters.
If the frame rates of the two light material layers in fig. 5 are both 30, the frame rate of the light material file is also 30. When it is assumed 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, that is, 30, and for the light material layer with the frame rate of 15, the frame count updates one frame of image every two times.
S124, judging whether a certain lighting material layer is marked to be displayed independently in all the lighting material layers, if so, taking the lighting material layer marked to be displayed independently as a lighting material file, otherwise, executing the following steps on all the lighting material layers:
A. multiplying the pixel value of the current image frame of the first lighting material layer by the first transparency of the current image frame of the first lighting material layer to obtain a fusion image of the current image frame of the first lighting material layer;
i.e. the pixel value of the i-th position of the current image frame of the first lighting material layer is P1iThe transparency of the current image frame of the first lighting material layer is R1, and the transparency value is [0, 100%]Wherein 100% is 1, and thus, the pixel value T1 corresponding to the fused image of the current image frame of the first lighting material layer at the i-th positioni=P1i*R1。
B. Multiplying the pixel value of the current image frame of the second lighting material layer by the second transparency of the current image frame to obtain a transparent image of the current image frame of the second lighting material layer, multiplying the difference value between the 1 and the second transparency by the pixel value of the fusion image of the current image frame of the first lighting material layer, and superposing the obtained product on the transparent image of the current image frame of the second lighting material layer to obtain the fusion image of the current image frame of the second lighting material layer;
i.e. the pixel value of the current image frame of the second layer of lighting material is P2iThe transparency of the current image frame of the first lighting material layer is R2, whereby the fusion map T2 of the current image frame of the second lighting material layeri=P2i*R2+T1i*(1-R2)。
C. Repeating the step B, sequentially processing the remaining 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;
therefore, 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 the pixel value corresponding to the fusion image of the current image frame of the nth light material layer at the ith position is Tni=PniRn, fusion graph T [ n +1 ] of current image frame of n +1 th light material layer]i=P[n+1]i*R[n+1]+Tni*(1-R[n+1])。
D. And repeating the steps A-C, and sequentially carrying out layer fusion on each image frame to obtain the light material file.
The parameters of a plurality of light material layers can be updated to a material player or a layer manager for playing, the layer manager stores the material player and generated layer images, and starts a frame rate control timer to execute step S123 when the light material layers exist, wherein a base class of the material player defines a series of virtual functions and attributes, such as initialization, parameter updating, image acquisition, frame skipping and the like, and each material player realizes the virtual functions in the base class thereof for the layer manager to call uniformly.
Referring to fig. 1 to 5, a third embodiment of the present invention is:
on the basis of the first embodiment, the real-time rendering and display of the light effect are further limited as follows:
s21, after the communication connection is carried out on the field equipment which is pre-associated with the lamp strip, each port corresponding to the controller in the lamp strip model corresponds to the lamp strip which is associated with the field;
the method comprises the steps of scanning an appointed port of an intranet IP to obtain equipment information of field equipment, establishing TCP and UDP connection after the equipment information is searched, indicating that the equipment is normally connected, configuring physical equipment and lamp beads on a field lamp strip, associating virtual equipment of a lamp strip model with the field physical equipment, and enabling the lamp strip model and the lamp beads on the field lamp strip to form a lamp light control relation.
S22, acquiring a target real-time preview frame rate, and sending the lighting effect image frame to field equipment for field lighting effect preview according to the target real-time preview frame rate, wherein the lighting effect image frame is an image frame obtained after a lighting material file is associated with a lamp strip model;
setting a target real-time preview frame rate in an interface by a user, wherein the target real-time preview frame rate is less than or equal to the target frame rate according to the network condition; starting a real-time preview output timer according to the frame rate; starting a sending rate statistic timer after the timer is triggered; according to the well-associated model and physical equipment, dividing the lighting effect into a plurality of blocks, packaging according to a protocol, and sending to field equipment through UDP;
and S23, after the lighting effect image frame is sent, calculating the optimal frame rate according to the sending code rate and the sending data amount, increasing the optimal frame rate by a preset value, and then taking the optimal frame rate as a new target real-time preview frame rate to send the lighting effect image frame, wherein the preset value is [ 5%, 20% ].
The method comprises the steps of closing a timer after the sending of a lighting effect image frame is finished, calculating a sending code rate, calculating an optimal frame rate according to the sending code rate and a sending data amount, setting 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 a target frame rate, thereby realizing the output of a dynamic and stable effect frame.
Referring to fig. 6, a fourth embodiment of the present invention is:
a full-color lamp strip effect setting terminal 1 comprises a memory 3, a processor 2 and a computer program which is stored on the memory 3 and can be run on the processor 2, wherein the steps of the first embodiment, the second embodiment or the third embodiment are realized when the processor 2 executes the computer program.
In summary, the full-color lamp strip effect setting method and the terminal provided by the invention have the following advantages:
(1) the full-color light band effect is recorded and generated by utilizing the preset model drawing function, the video coding and decoding function, the image rendering function and other technologies, and finally a light effect file which can be played by full-color equipment is obtained, so that no professional is needed, and the difficulty and cost of full-color light band effect configuration are reduced;
(2) the light material file is rapidly switched and previewed in real time through rapid switching among the light material configuration keys, meanwhile, each light material configuration key stores configuration contents of a plurality of light material layers of different material types, and the configuration contents comprise image transformation and image fusion of the plurality of light material layers to generate corresponding light material files, so that a more flexible and colorful light effect is achieved;
(3) and real-time pixel preview is supported during model drawing, so that a user can more quickly position the physical pixels corresponding to the model pixels, and great convenience is brought to model drawing.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.
Claims (10)
1. A full-color lamp strip effect setting method is characterized by comprising the following steps:
acquiring a lamp belt model corresponding to the lamp belt on-site modeling and a pre-configured light material file;
coding and decoding videos in the light material file, associating the light material file with the lamp strip model, and then rendering and displaying light effects in real time;
and recording the rendered image to generate a light effect file which can be played by full-color equipment.
2. The method according to claim 1, wherein the pre-configuring of the light material file comprises 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 light material layers according to the corresponding fusion parameters to obtain a light material file.
3. The method according to claim 2, wherein the number of the lighting material layers is N, and N is a natural number greater than 1, and then the layer fusion is performed on all the lighting material layers according to the corresponding fusion parameters, so as to obtain the lighting material file, specifically including the following steps:
A. multiplying the pixel value of the current image frame of the first lighting material layer by the first transparency of the current image frame of the first lighting material layer to obtain a fusion image of the current image frame of the first lighting 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 to obtain a transparent image of the current image frame of the second light material layer, multiplying the difference value 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;
C. repeating the step B, sequentially processing the remaining 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 repeating the steps A-C, and sequentially carrying out layer fusion on each image frame to obtain the light material file.
4. The method for setting the full-color light band effect according to claim 2, wherein the step of performing layer fusion on all the light material layers according to the corresponding fusion parameters specifically comprises the following steps:
and judging whether a certain lighting material layer is marked to be displayed independently in all the lighting material layers, if so, taking the lighting material layer marked to be displayed independently as the lighting material file, and otherwise, performing layer fusion on all the lighting material layers according to corresponding fusion parameters.
5. The method according to claim 2, wherein before the layer fusion of all the lighting material layers according to the corresponding fusion parameters, the method further comprises the following steps:
and carrying out image transformation on each light material layer according to the corresponding transformation parameters.
6. The method according to claim 2, wherein before the layer fusion of all the lighting material layers according to the corresponding fusion parameters, the method further comprises the following steps:
taking the highest frame rate of all the light material layers corresponding to the current light material configuration key as the frame rate of a light material file, calculating the first time required by each frame, and setting a frame rate control timer according to the first time so that the frame rate control timer accumulates the frame count according to the first time;
when each current frame is counted, each light material layer judges whether the image frame needs to be updated according to the proportional relation between the frame rate of each light material layer and the highest frame rate, if so, the updated image frame of the light material layer is obtained, and if not, the current updating is skipped;
adding all the image frames obtained by counting the light material layers in the current frame into a frame queue;
the step of performing layer fusion on all the light material layers according to the corresponding fusion parameters specifically includes performing layer fusion on all the image frames in the frame queue according to the corresponding fusion parameters.
7. The full-color light band effect setting method according to any one of claims 2 to 6, wherein each light material configuration key corresponds to a light material file;
and when different light material configuration keys are switched, displaying the light effect of the light material file corresponding to the switched light material configuration key on a real-time preview interface.
8. The method according to claim 1, wherein the real-time rendering and displaying of light effects further comprises the following steps:
after communication connection is carried out on field equipment which is pre-associated with the lamp strip, each port corresponding to a controller in the lamp strip model corresponds to the lamp strip of the associated field;
acquiring a target real-time preview frame rate, and sending the lighting effect image frame to the field equipment for field lighting effect preview according to the target real-time preview frame rate, wherein the lighting effect image frame is an image frame obtained after the lighting material file is associated with the lamp strip model;
after the sending of the lighting effect image frames is finished, calculating an optimal frame rate according to a sending code rate and a sending data amount, increasing the optimal frame rate by a preset value, and then serving as a new target real-time preview frame rate to send the lighting effect image frames, wherein the preset value is [ 5%, 20% ].
9. The method for setting full-color lamp strip effects according to claim 1, wherein the generation process of the lamp strip model further comprises the following steps:
and acquiring a zooming request, zooming the lamp strip model of the current interface according to the zooming request, and displaying each pixel position on the current interface in different drawing states in different display styles.
10. A full-color light band effect setting terminal, comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor implements the full-color light 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 true CN114007316A (en) | 2022-02-01 |
CN114007316B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117521179A (en) * | 2024-01-04 | 2024-02-06 | 深圳市智岩科技有限公司 | Atmosphere lamp equipment, luminous partition layout construction method and device and computer equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180199083A1 (en) * | 2016-11-22 | 2018-07-12 | Gdc Technology (Shenzhen) Limited | Dynamic visual effect enhancing system for digital cinema and control method thereof |
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 |
-
2021
- 2021-10-29 CN CN202111268664.2A patent/CN114007316B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180199083A1 (en) * | 2016-11-22 | 2018-07-12 | Gdc Technology (Shenzhen) Limited | Dynamic visual effect enhancing system for digital cinema and control method thereof |
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 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117521179A (en) * | 2024-01-04 | 2024-02-06 | 深圳市智岩科技有限公司 | Atmosphere lamp equipment, luminous partition layout construction method and device and computer equipment |
CN117521179B (en) * | 2024-01-04 | 2024-04-19 | 深圳市智岩科技有限公司 | Atmosphere lamp equipment, luminous partition layout construction method and device and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114007316B (en) | 2023-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6011562A (en) | Method and system employing an NLE to create and modify 3D animations by mixing and compositing animation data | |
CN103092612B (en) | Realize method and the electronic installation of Android operation system 3D desktop pinup picture | |
CN103472985B (en) | A kind of user's edit methods of three-dimensional shopping platform display interface | |
US5999173A (en) | Method and apparatus for video editing with video clip representations displayed along a time line | |
US5359712A (en) | Method and apparatus for transitioning between sequences of digital information | |
KR20170078651A (en) | Authoring tools for synthesizing hybrid slide-canvas presentations | |
JPH09293144A (en) | Multimedia title editing device and style preparing device using therefor | |
WO2023138029A1 (en) | Remote sensing data processing method and apparatus, device, storage medium, and computer program product | |
JP3191266B2 (en) | Image simulation system | |
GB2400290A (en) | Multidimensional image data processing in a hierarchical dat structure | |
CN108335343A (en) | Fountain previews emulation mode, system and server | |
WO2023159595A9 (en) | Method and device for constructing and configuring three-dimensional space scene model, and computer program product | |
WO2023173828A1 (en) | Scene element processing method and apparatus, device, and medium | |
CN115188349B (en) | Method and system for editing user-defined content of mobile variable traffic information board | |
CN114007316A (en) | Full-color lamp strip effect setting method and terminal | |
JP2011223218A (en) | Image processing device, image processing method, and program | |
GB2410408A (en) | Changing time value of key frames | |
JPH0877387A (en) | Video presenting device | |
KR101216221B1 (en) | System and method for providing augmented reality service | |
WO2024045767A1 (en) | Virtual scene-based overall style transformation system and method for common area | |
CN102117347B (en) | Three-dimensional editing method for LED lighting scenes | |
CN103325135B (en) | Resource display method, device and terminal | |
CN115426520A (en) | Method, device and equipment for arranging live scenes in live broadcast room | |
JP3062488B1 (en) | Texture mapping apparatus, method, and recording medium | |
JP2011022726A (en) | Image processing apparatus and method |
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 |