A Lighting Effect Design Method, Device, Electronic Device and Storage Medium for a Shaped Lamp

By identifying the coordinate information of the modeling lamp and analyzing the expected lighting effects, determining the light control strategy and sorting it, custom lighting effects control of the modeling lamp is solved, and the problem that the display effect of the modeling lamp in the existing technology cannot be combined with the shape is achieved, and high-quality and customized lighting effects display is achieved.

CN119562423BActive Publication Date: 2025-05-30SHENZHEN INTELLIROCKS TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510127769.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-05
Publication Date
2025-05-30
Estimated Expiration
2045-02-05

AI Technical Summary

Technical Problem

In the prior art, the display effect of the styling lamp cannot be combined with its styling design, and the custom design cannot be realized, resulting in the display effect being fixed and single, which cannot meet the user's high-quality display needs.

Method used

By obtaining the shape of the shape light generated by the user's placement of the shape lights, identifying the coordinate information of each light control, analyzing the expected lighting effects, determining the light control strategy, and sorting the coordinate information according to the strategy, accurately control the various light controls and achieving the purpose of customizing the lighting effects.

Benefits of technology

The custom design and shape of the display effect of styling lamps is realized, changing the traditional fixed and single display effect, and can achieve complex three-dimensional lighting effects, increasing product flexibility and creativity, and improving user satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119562423B_ABST
    Figure CN119562423B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses a method, device, electronic device, and storage medium for the light effect design of a shaped lamp. The method includes: obtaining the shaped lamp shape generated by the user's placement of the shaped lamp, and identifying the shaped lamp shape to obtain the coordinate information of each light control in the shaped lamp shape; obtaining the expected light effect of the shaped lamp shape, analyzing the expected light effect to obtain a light control strategy corresponding to the expected light effect; and sorting the coordinate information according to the light control strategy; controlling each light control according to the sorting result to achieve the expected light effect; wherein the sorting result is at least one of the following execution orders of each light control under the light control strategy: lighting order, extinguishing order, and color change order. By identifying the shaped lamp shape to obtain coordinate information, light control can be performed based on the coordinate information according to the expected light effect, realizing the custom design and display of the light effect. The display effect can be combined with the shaped lamp shape, changing the traditional fixed and single display effect of the shaped lamp.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lamp control, and particularly to a method, device, electronic device and storage medium for designing the lighting effects of a shaped lamp. Background Art

[0002] In the creation of an ambient atmosphere, shaped lamps are usually wound around ornaments, and different lighting effects are presented by controlling each lamp in the shaped lamp.

[0003] However, in traditional lighting effect displays, the display effect of a shaped lamp is fixed during use. After the user arranges the shaped lamp, they cannot design different display effects according to the shape of the shaped lamp. They can only rely on the single, pre-fixed effect of the shaped lamp itself to create an atmosphere, without being able to combine with the shape of the shaped lamp. Therefore, the atmosphere-creating effect of the shaped lamp cannot meet the high-quality display needs of users. Summary of the Invention

[0004] The present invention provides a method, device, electronic device and storage medium for designing the lighting effects of a shaped lamp, so as to realize the custom design and display of the display effect of the shaped lamp, and combine the display effect with the shape of the shaped lamp.

[0005] According to one aspect of the present invention, there is provided a method for designing the lighting effects of a shaped lamp, the method comprising:

[0006] Obtaining the shaped lamp shape generated by the user's placement of the shaped lamp, and identifying the shaped lamp shape to obtain the coordinate information of each lamp in the shaped lamp shape;

[0007] Obtaining the expected lighting effect of the shaped lamp shape, analyzing the expected lighting effect to obtain a lamp control strategy corresponding to the expected lighting effect; and sorting the coordinate information according to the lamp control strategy;

[0008] Controlling each lamp according to the sorting result to achieve the expected lighting effect; wherein the sorting result is the execution order of at least one of the following for each lamp under the lamp control strategy: lighting order, extinguishing order, and color change order.

[0009] According to another aspect of the present invention, there is provided a device for designing the lighting effects of a shaped lamp, the device comprising:

[0010] A coordinate information determination module, configured to obtain the shaped lamp shape generated by the user's placement of the shaped lamp, and identify the shaped lamp shape to obtain the coordinate information of each lamp in the shaped lamp shape;

[0011] A sorting module, configured to obtain an expected lighting effect of the shaped lamp, analyze the expected lighting effect to obtain a lighting control strategy corresponding to the expected lighting effect; and sort the coordinate information according to the lighting control strategy;

[0012] A lamp control module, configured to control each lamp according to the sorting result to achieve the expected lighting effect; wherein, the sorting result is at least one of the following execution sequences of each lamp under the lighting control strategy: lighting sequence, extinguishing sequence, and color change sequence.

[0013] According to another aspect of the present invention, there is provided an electronic device, which includes:

[0014] At least one processor; and a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the lighting effect design method of the shaped lamp according to any embodiment of the present invention.

[0016] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the lighting effect design method of the shaped lamp according to any embodiment of the present invention when executed.

[0017] According to another aspect of the present invention, there is provided a computer program product including a computer program, which implements the lighting effect design method of the shaped lamp according to any embodiment of the present invention when executed by a processor.

[0018] The technical solution of the embodiment of the present invention obtains the shaped lamp shape generated by the user's placement of the shaped lamp, identifies the shaped lamp shape to obtain the coordinate information of each lamp in the shaped lamp shape; obtains the expected lighting effect of the shaped lamp shape, analyzes the expected lighting effect to obtain a lighting control strategy corresponding to the expected lighting effect; and sorts the coordinate information according to the lighting control strategy; controls each lamp according to the sorting result to achieve the expected lighting effect; wherein, the sorting result is at least one of the following execution sequences of each lamp under the lighting control strategy: lighting sequence, extinguishing sequence, and color change sequence, which solves the problem that the display effect of the shaped lamp in the prior art cannot be combined with the shaped lamp shape for custom design. By identifying the shaped lamp shape to obtain coordinate information, lamp control can be performed based on the coordinate information according to the expected lighting effect, realizing the custom design and display of the lighting effect, enabling the display effect to be combined with the shaped lamp shape, and changing the traditional fixed and single display effect of the shaped lamp.

[0019] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. Brief Description of the Drawings

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0021] Figure 1 is a flowchart of a method for designing the lighting effect of a modeling lamp according to an embodiment of the present invention;

[0022] Figure 2 is a schematic diagram of establishing a coordinate system according to the shape of a modeling lamp according to an embodiment of the present invention;

[0023] Figure 3 is a schematic diagram of the perspective projection of the front view of the shape of a modeling lamp according to an embodiment of the present invention;

[0024] Figure 4 is a schematic diagram of the perspective projection of the top view of the shape of a modeling lamp according to an embodiment of the present invention;

[0025] Figure 5 is a schematic diagram of a modeling lamp before rotation when its shape is flowing obliquely in a conical shape according to an embodiment of the present invention;

[0026] Figure 6 is a schematic diagram of a modeling lamp after rotation when its shape is flowing obliquely in a conical shape according to an embodiment of the present invention;

[0027] Figure 7 is a schematic diagram of the structure of a device for designing the lighting effect of a modeling lamp according to an embodiment of the present invention;

[0028] Figure 8 is a schematic diagram of the structure of an electronic device for implementing the method for designing the lighting effect of a modeling lamp in an embodiment of the present invention. Detailed Embodiments

[0029] To enable those skilled in the art to better understand the solution of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned accompanying drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0031] Figure 1 is a flowchart of a light effect design method for a shaped lamp according to an embodiment of the present invention. This embodiment is applicable to the situation of achieving atmosphere rendering by performing light effect design on a shaped lamp. This method can be executed by a light effect design device of the shaped lamp. The light effect design device of the shaped lamp can be implemented in the form of hardware and / or software. The light effect design device of the shaped lamp can be configured in an electronic device, such as a computer, a mobile phone, a smart home appliance, or a wearable device, etc. As Figure 1 shown, the method includes:

[0032] Step 110, obtain the shaped lamp shape generated by the user's placement of the shaped lamp, and identify the shaped lamp shape to obtain the coordinate information of each light control in the shaped lamp shape.

[0033] Among them, the shaping lamp can be a linear lamp. For example, the shaping lamp can be a light strip or a string of lights, etc. The shaping lamp can be used to set off the atmosphere. The user can customize the placement of the shaping lamp to generate a shaping lamp shape. For example, the shaping lamp can be installed on a tree or a three-dimensional shelf for shape setting. The imaging device can obtain the shaping lamp shape images from multiple perspectives for shaping lamp shape recognition. Alternatively, the size information of the shaping lamp shape input by the user on the device can be obtained for shaping lamp shape recognition. When recognizing the shaping lamp shape, the shaping lamp can be lit, and the shaping lamp shape recognition can be realized by combining the light emission information of each light control on the shaping lamp, and the coordinate information of each light control can be obtained. The coordinate information can be three-dimensional information or two-dimensional information. The embodiments of the present invention do not specifically limit the recognition method of the shaping lamp shape.

[0034] An exemplary method for recognizing the shaping lamp shape and determining the coordinate information of each light control can be: lighting the shaping lamp, collecting images of each perspective of the shaping lamp shape, and marking the light-emitting points in the images; generating a shaping lamp path according to the marking result and the connection relationship of each light control in the shaping lamp; fitting the shaping lamp path to realize path correction; constructing a three-dimensional layout image of the shaping lamp according to the shaping lamp path and each perspective; determining the coordinates of each light control in the three-dimensional layout image according to the three-dimensional coordinate principle. Among them, different light controls can have different identification information (ic serial number).

[0035] Exemplarily, Figure 2 is a schematic diagram of establishing a coordinate system according to the shaping lamp shape provided by the embodiments of the present invention. As Figure 2 shown, a three-dimensional coordinate system can be established for the obtained shaping lamp shape to obtain the three-dimensional coordinates of each light control. For example, the three-dimensional coordinates (x, y, z) of the light control ic can be expressed as (x, y, z, ic serial number).

[0036] In an optional implementation manner of the embodiments of the present invention, in order to reduce the amount of information processing data, optionally, recognizing the shaping lamp shape to obtain the coordinate information of each light control in the shaping lamp shape includes: recognizing the shaping lamp shape to obtain the three-dimensional coordinates of each light control in the shaping lamp shape; converting the three-dimensional view of the shaping lamp shape into a two-dimensional view by perspective projection, and projecting and converting the three-dimensional coordinates into two-dimensional coordinates.

[0037] Figure 3 is a schematic diagram of the perspective projection of the front view of the shaping lamp shape provided by the embodiments of the present invention. Figure 4 is a schematic diagram of the perspective projection of the top view of the shaping lamp shape provided by the embodiments of the present invention. For the shaping lamp shape as Figure 2 shown, performing a front perspective projection, that is, ignoring the side of the z-axis and converting it into a front view with only the x-axis and the y-axis, a front view as Figure 3 shown can be obtained. For the shaping lamp shape asFigure 2 Perform a top - down perspective projection on the shape of the modeling lamp shown, that is, ignore the side of the y - axis and convert it to a top - down view with only the x - axis and z - axis. As shown in Figure 4 the top - down view shown. In the embodiments of the present invention, the specific perspective of the perspective projection is not specifically limited. Users can perform perspective projection of the corresponding perspective according to the specific angle for which they want to display the lighting effect, and convert the three - dimensional coordinates into two - dimensional coordinates.

[0038] According to the above - mentioned perspective projection, the three - dimensional coordinate information (x, y, z, ic serial number) can be converted into two - dimensional coordinate information such as (x, y, ic serial number) or (x, z, ic serial number) for storage.

[0039] Step 120: Obtain the expected lighting effect of the modeling lamp shape, analyze the expected lighting effect, and obtain a lighting control strategy corresponding to the expected lighting effect; and sort the coordinate information according to the lighting control strategy.

[0040] In the electronic device, basic lighting effects can be preset in advance and the basic lighting effects can be displayed through the visual screen. Users can select from the basic lighting effects, and the electronic device determines the expected lighting effect according to the user's selection. Or, users can directly set the lighting effect in the electronic device, and the electronic device determines the expected lighting effect according to the setting information.

[0041] The electronic device can analyze the expected lighting effect and determine the lighting and / or extinguishing sequence of each lighting control in the modeling lamp shape when the expected lighting effect is achieved. The expected lighting effect can include at least one of the following: straight - line flowing lighting effect, conical oblique flow, diffusion or contraction centered on a point, and rotation centered on a point. In the embodiments of the present invention, each lighting effect can be combined with each other. For example, a straight - line flowing lighting effect can be performed first, and after a certain time interval, a conical oblique flow can be performed.

[0042] When realizing that each lighting control is lit and / or extinguished in a certain order, the lighting control at each specific position can achieve precise lighting effect control. Therefore, in the embodiments of the present invention, the coordinate information can be sorted according to the lighting control strategy to generate a coordinate array for lighting and / or extinguishing the lighting control. For the sake of simplicity in realizing the lighting effect, the two - dimensional coordinate information can be sorted. At the same time, sorting the two - dimensional coordinates and realizing the lighting effect according to the sorting result can achieve the effect of the same lighting effect being displayed on the current view and the opposite view.

[0043] Optionally, analyzing the expected lighting effect to obtain a lighting control strategy corresponding to the expected lighting effect; and sorting the coordinate information according to the lighting control strategy includes: when the expected lighting effect is a straight - line flowing lighting effect, the lighting control strategy is to perform at least one of the following operations according to the linear order of the coordinate values of the corresponding dimension in the straight - line flowing direction: sequentially lighting the lighting controls, sequentially extinguishing the lighting controls, and sequentially controlling the color change of the lighting controls; sorting the coordinate information according to the linear order of the coordinate values of the corresponding dimension in the straight - line flowing direction.

[0044] Among them, the linear order includes but is not limited to the order from small to large, or from large to small, etc. For example, the coordinate information can be sorted according to the ascending order of the dimension coordinate values corresponding to the direct flow direction; or, the coordinate information can be sorted according to the descending order of the dimension coordinate values corresponding to the direct flow direction.

[0045] In the embodiment of the present invention, the direct-flow light effects include at least one of the following: flowing from top to bottom, flowing from bottom to top, flowing from left to right, and flowing from right to left. For example, when implementing the direct-flow light effect, the control lights can be lit in sequence according to the ascending order of the lighting sequence; or, according to the descending order of the lighting sequence; or, the control lights can be extinguished in sequence according to the ascending order of the lighting sequence; or, according to the descending order of the lighting sequence; or, the color of the control lights can be changed in sequence according to the ascending order of the lighting sequence; or, according to the descending order of the lighting sequence.

[0046] Exemplarily, for the front view as Figure 3 shown, when implementing the direct-flow light effect of flowing from bottom to top, the light effect can be achieved by lighting the control lights in sequence from bottom to top. That is, the control lights need to be arranged in ascending order of the y-axis coordinates and lit in sequence according to the arrangement order to achieve the direct-flow light effect of flowing from bottom to top. At this time, an exemplary sorting result is { (x, y1, ic serial number), (x, y2, ic serial number),..., (x, yn, ic serial number)}. Among them, the coordinate values of y1, y2,..., yn increase in sequence. At this time, the x coordinate can be not concerned, or, the sorting can be performed according to the light effect to be achieved horizontally.

[0047] For example, when the light effect requires the control lights of each row to be displayed according to odd and even rows, based on the above sorting result, the odd and even rows can be judged according to the x-axis coordinate, and the sorting result can be split according to the judgment result to form sub-sorting results corresponding to the odd rows and the even rows respectively. For example, during actual light control, the control lights can be lit in sequence according to the sub-sorting result corresponding to the odd rows first, and after a preset time interval, the control lights can be lit in sequence according to the sub-sorting result corresponding to the even rows.

[0048] Another exemplarily, for the one as Figure 3In the front view shown, when implementing a direct-flow lighting effect flowing from left to right, the lighting effect can be achieved by lighting the control lights in sequence from left to right. That is, the control lights need to be arranged in ascending order of the x-axis coordinates, and they are lit in sequence according to the arrangement order to achieve the direct-flow lighting effect flowing from left to right. At this time, an exemplary sorting result is { (x1, y, ic serial number), (x2, y, ic serial number),..., (xn, y, ic serial number)}. Among them, the coordinate values of x1, x2,..., xn increase in sequence. At this time, the y coordinate can be not concerned about, or the sorting can be performed according to the lighting effect required longitudinally.

[0049] Optionally, analyze the expected lighting effect to obtain a control light strategy corresponding to the expected lighting effect; and sort the coordinate information according to the control light strategy, including: when the expected lighting effect is a conical shape with an oblique flow lighting effect, the control light strategy is that after the coordinate values of the dimension corresponding to the oblique flow direction are rotated according to the oblique angle, in a linear order, perform at least one of the following operations: light the control lights in sequence, turn off the control lights in sequence, and control the color change of the control lights in sequence; rotate the corresponding view of the shaped light according to the oblique angle to obtain the rotated coordinate information; sort the rotated coordinate information in the linear order of the coordinate values of the dimension corresponding to the oblique flow direction.

[0050] Among them, the lighting effect of the oblique flow direction includes at least one of the following: flowing from top to bottom to the left, flowing from bottom to top to the left, flowing from top to bottom to the right, and flowing from bottom to top to the right.

[0051] Exemplarily, for the shaped light Figure 2 shape shown, when implementing the conical shape with an oblique flow lighting effect, the view of the shaped light shape can be rotated to convert the oblique direction into a vertical direction, and then sort according to the rotated coordinates. For example, Figure 5 is a schematic diagram before rotation when a shaped light shape provided by an embodiment of the present invention has an oblique flow in a conical shape. Figure 6 is a schematic diagram after rotation when a shaped light shape provided by an embodiment of the present invention has an oblique flow in a conical shape. The oblique angle during rotation can be determined according to the offset angle between the shaped light and the y-axis in the shaped light shape. When rotating the view shown in Figure 5 to the view shown in Figure 6When shown as such, a straight (horizontal) shaped lamp distribution can be obtained. At this time, according to the oblique angle, the rotated coordinate information can be calculated using a mathematical formula. Then, in the order of the coordinates of the corresponding dimension of the oblique flow direction from smallest to largest, the rotated coordinate information is sorted. For example, when the lamp effect in the oblique flow direction is flowing from top to bottom to the right, the sorting result can be {(xnew1, ynew, ic serial number), (xnew2, ynew, ic serial number),..., (xnewn, ynew, ic serial number)}. xnew is the new value of x after rotation, and ynew is the new value of y after rotation; xnew1, xnew2,..., xnewn increase in sequence.

[0052] Optionally, analyze the expected lamp effect to obtain a lamp control strategy corresponding to the expected lamp effect; and sort the coordinate information according to the lamp control strategy, including: when the expected lamp effect is a lamp effect that spreads or shrinks around a first center point, the lamp control strategy is to light the lamps according to the distance from each lamp control to the first center point; determine the first center point according to the coordinate information, and calculate the distance from each lamp control to the first center point; in the lamp effect that spreads around the first center point, sort the coordinate information in ascending order of the distance; in the lamp effect that shrinks around the first center point, sort the coordinate information in descending order of the distance.

[0053] Exemplarily, when performing a lamp effect that spreads or shrinks around a first center point according to the front view as shown in Figure 3 or the top view as shown in Figure 4 the first center point can be determined first. The first center point can be any point specified by the user, or the center point of the view calculated according to the coordinate information. In the view as shown in Figure 3 the coordinates of the first center point are (x0, y0); in the view as shown in Figure 4 the coordinates of the first center point are (x0, z0). According to the coordinate information of each lamp control, the distance from each lamp control to the first center point can be calculated using a mathematical formula. For example, in Figure 3 in the lamp effect that spreads around the first center point, the sorting result according to the distance is {(x, y, d1, ic serial number), (x, y, d2, ic serial number),..., (x, y, dn, ic serial number)}. Among them, dn represents the distance from the current coordinate to the first center point coordinates (x0, y0). d1, d2,..., dn increase in sequence.

[0054] Optionally, analyze the expected lamp effect to obtain a lamp control strategy corresponding to the expected lamp effect; and sort the coordinate information according to the lamp control strategy, including: when the expected lamp effect is a lamp effect that rotates around a second center point, the lamp control strategy is to light the lamps according to the angle from each lamp control to the second center point; determine the second center point according to the coordinate information, and calculate the angle between each lamp control and the second center point; sort the coordinate information according to the angle size.

[0055] Exemplarily, when performing a lighting effect of rotating around a second center point according to the front view as shown in Figure 3 or the top view as shown in Figure 4 , the second center point can be determined first. The second center point can be any point specified by the user or the center point of the view calculated according to the coordinate information. In the view as shown in Figure 3 , the coordinates of the second center point are (x0', y0'); in the view as shown in Figure 4 , the coordinates of the second center point are (x0', z0'). According to the coordinate information of each lighting control, the angles between each lighting control and the second center point can be calculated through mathematical formulas. The angle can be in the range of 0 to 360 degrees. For example, in Figure 3 , in the lighting effect of rotating around the second center point, the sorting result sorted according to the angle is {(x, y, r1, ic serial number), (x, y, r2, ic serial number),..., (x, y, rn, ic serial number)}. Among them, rn represents the angle between the current coordinate and the coordinates of the second center point (x0', y0'). When rotating clockwise, r1, r2,..., rn can decrease in sequence; when rotating counterclockwise, r1, r2,..., rn can increase in sequence.

[0056] Step 130: Control each lighting control according to the sorting result to achieve the expected lighting effect.

[0057] Among them, the sorting result is the lighting sequence and / or extinguishing sequence of each lighting control under the lighting control strategy. Exemplarily, when obtaining the sorting result, each lighting control can be lit in sequence according to the sorting order, so as to achieve the corresponding expected lighting effect.

[0058] In practical applications, the expected lighting effect can include multiple lighting effects, and each lighting effect can be switched at preset time intervals. For example, it is possible to control the lighting according to the sorting result corresponding to the lighting effect of straight flow, with a certain time interval, and then control the lighting according to the sorting result corresponding to the lighting effect of oblique flow in a conical shape, with a certain time interval, control the lighting according to the sorting result corresponding to the lighting effect of spreading or contracting around the first center point, with a certain time interval, control the lighting according to the sorting result corresponding to the lighting effect of rotating around the second center point,... and so on. The embodiments of the present invention do not specifically limit the above-mentioned lighting effect switching method. The user can perform custom settings on the electronic device according to the display requirements.

[0059] When controlling the lighting, the color and brightness of the lighting effect can also be calculated according to the display requirements to determine the final output value of the lighting control.

[0060] Based on the above embodiments, in order to reduce the complexity and tediousness of lamp control, the sorting result can be used for zonal control. Optionally, controlling each lighting control according to the sorting result includes: determining the number of zones according to the display fineness of the expected light effect; and performing zonal processing on the sorted coordinate information according to the number of zones; controlling the lighting controls in each zone according to the sorting result, where all the lighting controls in the same zone are controlled synchronously.

[0061] For example, when the display fineness is high, a smaller number of zones can be determined; when the display fineness is low, a larger number of zones can be determined. During zonal processing, the sorted coordinate information can be evenly divided according to the number of zones. In the embodiments of the present invention, the advantage of dividing the sorted coordinate information instead of the original coordinate information is that the smoothness of the light effect display can be achieved and the phenomenon of jumping lights can be avoided.

[0062] Adopting the same lighting control in each zone can significantly reduce the calculation amount of the lighting control output value and the complexity and tediousness of lamp control.

[0063] The technical solution of this embodiment obtains the shape of the modeling lamp generated by the user's placement of the modeling lamp, identifies the shape of the modeling lamp, and obtains the coordinate information of each lighting control in the shape of the modeling lamp; obtains the expected light effect of the shape of the modeling lamp, analyzes the expected light effect, and obtains the lighting control strategy corresponding to the expected light effect; sorts the coordinate information according to the lighting control strategy; controls each lighting control according to the sorting result to achieve the expected light effect; where the sorting result is at least one of the following execution orders of each lighting control under the lighting control strategy: lighting order, extinguishing order, and color change order, which solves the problem that the display effect of the modeling lamp in the prior art cannot be combined with the shape of the modeling lamp for custom design. By identifying the shape of the modeling lamp to obtain the coordinate information, the lamp control can be performed based on the coordinate information according to the expected light effect, realizing the custom design and display of the light effect. The display effect can be combined with the shape of the modeling lamp, changing the traditional fixed and single display effect of the modeling lamp, enabling the realization of complex three-dimensional light effects, increasing the flexibility and creativity of the modeling lamp product, and improving user satisfaction.

[0064] Figure 7 It is a schematic structural diagram of a light effect design device for a modeling lamp according to an embodiment of the present invention. As Figure 7 shown, the device includes: a coordinate information determination module 710, a sorting module 720, and a lamp control module 730. Among them:

[0065] The coordinate information determination module 710 is configured to obtain the shape of the modeling lamp generated by the user's placement of the modeling lamp, identify the shape of the modeling lamp, and obtain the coordinate information of each lighting control in the shape of the modeling lamp;

[0066] The sorting module 720 is configured to obtain the expected lighting effect of the shaping lamp's shape, analyze the expected lighting effect to obtain a lighting control strategy corresponding to the expected lighting effect; and sort the coordinate information according to the lighting control strategy;

[0067] The lighting control module 730 is configured to control each lighting according to the sorting result to achieve the expected lighting effect; wherein, the sorting result is at least one of the following execution orders of each lighting under the lighting control strategy: lighting order, extinguishing order, and color change order.

[0068] Optionally, the coordinate information determination module 710 includes:

[0069] The three-dimensional coordinate determination unit is configured to identify the shaping lamp's shape to obtain the three-dimensional coordinates of each lighting in the shaping lamp's shape;

[0070] The two-dimensional coordinate determination unit is configured to convert the three-dimensional view of the shaping lamp's shape into a two-dimensional view by perspective projection, and project and convert the three-dimensional coordinates into two-dimensional coordinates.

[0071] Optionally, the sorting module 720 includes:

[0072] When the expected lighting effect is a straight-flowing lighting effect, the lighting control strategy is to perform at least one of the following operations according to the linear order of the coordinate values in the dimension corresponding to the straight-flowing direction: sequentially light the lightings, sequentially extinguish the lightings, and sequentially control the color change of the lightings;

[0073] The first sorting unit is configured to sort the coordinate information according to the linear order of the coordinate values in the dimension corresponding to the straight-flowing direction.

[0074] Optionally, the straight-flowing lighting effect includes at least one of the following: flowing from top to bottom, flowing from bottom to top, flowing from left to right, and flowing from right to left.

[0075] Optionally, the sorting module 720 includes:

[0076] When the expected lighting effect is a conical shape with an oblique-flowing lighting effect, the lighting control strategy is to sequentially light the lightings in ascending order of lighting according to the coordinate values in the dimension corresponding to the oblique-flowing direction after rotation according to the oblique angle;

[0077] The coordinate rotation unit is configured to rotate the corresponding view of the shaping lamp's shape according to the oblique angle to obtain the rotated coordinate information;

[0078] The second sorting unit is configured to sort the rotated coordinate information according to the linear order of the coordinate values in the dimension corresponding to the oblique-flowing direction.

[0079] Optionally, the oblique-flowing lighting effect in the oblique-flowing direction includes at least one of the following: flowing from top to bottom obliquely to the left, flowing from bottom to top obliquely to the left, flowing from top to bottom obliquely to the right, and flowing from bottom to top obliquely to the right.

[0080] Optionally, the sorting module 720 includes:

[0081] When the expected lighting effect is a lighting effect that spreads or shrinks from a first center point, the lighting control strategy is to light the lighting controls according to the distances from each lighting control to the first center point;

[0082] A distance calculation unit, configured to determine the first center point according to the coordinate information and calculate the distances from each lighting control to the first center point;

[0083] A third sorting unit, configured to sort the coordinate information in ascending order of distance in the lighting effect that spreads from the first center point;

[0084] A fourth sorting unit, configured to sort the coordinate information in descending order of distance in the lighting effect that shrinks from the first center point.

[0085] Optionally, the sorting module 720 includes:

[0086] When the expected lighting effect is a lighting effect that rotates around a second center point, the lighting control strategy is to light the lighting controls according to the angles from each lighting control to the second center point;

[0087] An angle calculation unit, configured to determine the second center point according to the coordinate information and calculate the angles between each lighting control and the second center point;

[0088] A fifth sorting unit, configured to sort the coordinate information according to the angle magnitudes.

[0089] Optionally, the lighting control module 730 includes:

[0090] A partition processing unit, configured to determine the number of partitions according to the display fineness of the expected lighting effect; and perform partition processing on the sorted coordinate information according to the number of partitions;

[0091] A lighting control unit, configured to control the lighting controls in each partition according to the sorting result, wherein all the lighting controls in the same partition are controlled synchronously.

[0092] The lighting effect design device for the shaped lamp provided by the embodiment of the present invention can execute the lighting effect design method for the shaped lamp provided by any embodiment of the present invention, and has corresponding function modules and beneficial effects for executing the method.

[0093] Figure 8The schematic structural diagram of the electronic device 10 that can be used to implement the embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0094] As Figure 8 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. The memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.

[0095] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0096] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the lamp effect design method of the styling lamp.

[0097] In some embodiments, the method for designing the lighting effect of a styling lamp can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for designing the lighting effect of the styling lamp described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the method for designing the lighting effect of the styling lamp in any other suitable manner (e.g., by means of firmware).

[0098] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field-programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), application-specific standard products (ASSP), systems-on-chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from a storage system, at least one input device, and at least one output device, and transmits the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0099] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer programs are executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a stand-alone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0100] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0101] To provide for interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0102] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0103] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0104] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in the present invention can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and no limitations are imposed herein.

[0105] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A lighting effect design method for a modeling lamp, characterized in that: include: Acquire a modeling lamp shape generated by a user placing modeling lamps, identify the modeling lamp shape, and obtain coordinate information of each control lamp in the modeling lamp shape; Obtaining the expected lighting effect of the modeling lamp, analyzing the expected lighting effect, and obtaining a lighting control strategy corresponding to the expected lighting effect; and sorting the coordinate information according to the lighting control strategy; wherein the expected lighting effect includes at least one of the following: straight flow lighting effect, conical oblique flow, diffusion or contraction with a point as the center, and rotation with a point as the center; Controlling each control light according to the sorting result to achieve the expected lighting effect; wherein the sorting result is at least one of the following execution orders of each control light under the light control strategy: lighting order, extinguishing order, and color change order; When the expected lighting effect is a cone-shaped obliquely flowing lighting effect, the expected lighting effect is analyzed to obtain a lighting control strategy corresponding to the expected lighting effect; and the coordinate information is sorted according to the lighting control strategy, including: When the expected lighting effect is a conical oblique flow lighting effect, the lighting control strategy is to perform at least one of the following operations in a linear order after the coordinate value of the dimension corresponding to the oblique flow direction is rotated according to the oblique angle: sequentially lighting up the control lights, sequentially extinguishing the control lights, and sequentially controlling the color change of the control lights; Rotating the corresponding view of the modeling light according to the oblique angle to obtain the coordinate information after rotation; The rotated coordinate information is sorted according to the linear order of the dimensional coordinate values ​​corresponding to the oblique flow direction.

2. The method according to claim 1, characterized in that: Identifying the shape of the modeling lamp and obtaining coordinate information of each control lamp in the shape of the modeling lamp includes: Identify the shape of the modeling lamp and obtain the three-dimensional coordinates of each control lamp in the modeling lamp shape; The three-dimensional view of the modeling lamp shape is converted into a two-dimensional view by perspective projection, and the three-dimensional coordinate projection is converted into a two-dimensional coordinate.

3. The method according to claim 1 or 2, characterized in that: Analyzing the expected lighting effect to obtain a lighting control strategy corresponding to the expected lighting effect; and sorting the coordinate information according to the lighting control strategy, including: When the expected lighting effect is a straight-flow lighting effect, the lighting control strategy is to perform at least one of the following operations according to the linear order of the dimensional coordinate values ​​corresponding to the straight-flow direction: sequentially lighting up the controlled lights, sequentially extinguishing the controlled lights, and sequentially controlling the color change of the controlled lights; The coordinate information is sorted according to the linear order of the dimensional coordinate values ​​corresponding to the straight flow direction.

4. The method according to claim 1 or 2, characterized in that: Analyzing the expected lighting effect to obtain a lighting control strategy corresponding to the expected lighting effect; and sorting the coordinate information according to the lighting control strategy, including: When the expected lighting effect is a lighting effect that spreads or contracts around the first center point, the light control strategy is to light up the controlled lights according to the distance between each controlled light and the first center point; Determine a first center point according to the coordinate information, and calculate the distance from each control light to the first center point; In the lighting effect diffused from the first center point, the coordinate information is sorted in order of distance from small to large; In the lighting effect that shrinks with the first center point, the coordinate information is sorted in descending order of distance.

5. The method according to claim 1 or 2, characterized in that: Analyzing the expected lighting effect to obtain a lighting control strategy corresponding to the expected lighting effect; and sorting the coordinate information according to the lighting control strategy, including: When the expected lighting effect is a lighting effect rotating about the second center point, the lighting control strategy is to light up the controlled lights according to the angles of each controlled light to the second center point; Determine a second center point according to the coordinate information, and calculate the angle between each control light and the second center point; The coordinate information is sorted according to the angle.

6. The method according to claim 1, characterized in that Control each light according to the sorting results, including: Determine the number of partitions according to the desired display precision of the lighting effect; and perform partition processing on the sorted coordinate information according to the number of partitions; The lights in each zone are controlled according to the sorting results, wherein all lights in the same zone are controlled synchronously.

7. A lighting effect design device for a modeling lamp, characterized in that: include: A coordinate information determination module is used to obtain the modeling lamp shape generated by the user placing the modeling lamp, and identify the modeling lamp shape to obtain the coordinate information of each control lamp in the modeling lamp shape; A sorting module is used to obtain the expected lighting effect of the modeling lamp, analyze the expected lighting effect, obtain a lighting control strategy corresponding to the expected lighting effect; and sort the coordinate information according to the lighting control strategy; wherein the expected lighting effect includes at least one of the following: straight flow lighting effect, conical oblique flow, diffusion or contraction with a point as the center, and rotation with a point as the center; A light control module, used to control each control light according to the sorting result to achieve the expected light effect; wherein the sorting result is at least one of the following execution orders of each control light under the light control strategy: lighting order, extinguishing order, and color change order; A sorting module is used for, when the expected lighting effect is a lighting effect of oblique flow in a cone shape, determining that the lighting control strategy is to perform at least one of the following operations in a linear order after the coordinate value of the dimension corresponding to the oblique flow direction is rotated according to the oblique angle: lighting up the control lights in sequence, extinguishing the control lights in sequence, and controlling the color change of the control lights in sequence; Sorting module, including: A coordinate rotation unit, used to rotate the modeling corresponding view of the modeling lamp according to an oblique angle to obtain coordinate information after rotation; The second sorting unit is used to sort the rotated coordinate information according to the linear order of the dimensional coordinate values ​​corresponding to the oblique flow direction.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory in communication with the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the lighting effect design method for the modeling lamp according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the lighting effect design method for a modeling lamp according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • Atmosphere lamp equipment, light-emitting partition layout generation method and device and computer equipment

    CN117528873A