Lamp effect design method and device of modeling lamp, electronic equipment and storage medium
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 cannot be combined with the shape in the existing technology is improved, and the flexibility of the display effect and user satisfaction are improved.
Patent Information
- Application Number
- CN202510127769.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-05
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2045-02-05
AI Technical Summary
In the prior art, the display effect of the styling lamp cannot be combined with its styling design, resulting in users being unable to customize the display effect and unable to meet the high-quality display needs.
By obtaining the shape of the shape lights generated by the user's placement of the shape lights, identifying the coordinate information of each control light, analyzing the expected lighting effects, determining the light control strategy, and sorting the coordinate information according to the strategy, the control of each control light is realized to achieve custom lighting effects display.
The custom design and shape of the display effect of the styling lamp is realized, changing the traditional fixed and single display effect, increasing the flexibility and creativity of the product, and improving user satisfaction.
Smart Images

Figure CN119562423A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lamp control, and in particular to a lighting effect design method, device, electronic equipment and storage medium for a modeling lamp. Background Art
[0002] In order to create an atmosphere, modeling lights are usually wrapped around decorations, and different lighting effects can be presented by controlling the various control lights in the modeling lights.
[0003] However, in traditional lighting effects displays, the display effects of modeling lights are fixed when used. Users cannot design different display effects according to the modeling lights after placing them. They can only create an atmosphere based on the single effect that has been fixed by the modeling lights themselves, and cannot combine the modeling lights with the modeling lights. Therefore, the atmosphere effect of modeling lights cannot meet users' high-quality display needs. Summary of the invention
[0004] The present invention provides a lighting effect design method, device, electronic device and storage medium for a modeling lamp, so as to realize the customized design and display of the display effect of the modeling lamp, so as to combine the display effect with the modeling of the modeling lamp.
[0005] According to one aspect of the present invention, a lighting effect design method for a modeling lamp is provided, the method comprising:
[0006] 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;
[0007] Acquire 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;
[0008] Each light control is controlled 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 light control under the light control strategy: lighting order, extinguishing order, and color change order.
[0009] According to another aspect of the present invention, a lighting effect design device for a modeling lamp is provided, the device comprising:
[0010] 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;
[0011] A sorting module, used for obtaining the expected lighting effect of the modeling lamp, analyzing the expected lighting effect, obtaining a lighting control strategy corresponding to the expected lighting effect; and sorting the coordinate information according to the lighting control strategy;
[0012] The lighting control module is used to control each controlled 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 controlled light under the lighting control strategy: lighting order, extinguishing order, and color change order.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and a memory in communication with the at least one processor; wherein,
[0015] The memory stores a computer program that can be executed 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 of the modeling lamp described in any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein 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 described in any embodiment of the present invention when executed.
[0017] According to another aspect of the present invention, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the method for designing a lighting effect of a modeling lamp according to any embodiment of the present invention is implemented.
[0018] The technical solution of the embodiment of the present invention obtains the shape of modeling lights generated by the user's placement of modeling lights, and identifies the modeling light shape to obtain the coordinate information of each control light in the modeling light shape; obtains the expected lighting effect of the modeling light shape, analyzes the expected lighting effect, and obtains the light control strategy corresponding to the expected lighting effect; and sorts the coordinate information according to the light control strategy; controls 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 sequences of each control light under the light control strategy: lighting sequence, extinguishing sequence, and color change sequence, which solves the problem in the prior art that the display effect of the modeling lights cannot be combined with the modeling lights shape for customized design, and obtains the coordinate information by identifying the modeling lights shape, and can control the lights based on the coordinate information according to the expected lighting effect, thereby achieving customized design and display of the lighting effect, and the display effect can be combined with the modeling lights shape, thereby changing the traditional fixed and single display effect of the modeling lights.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily 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 briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a lighting effect design method of a modeling lamp provided in 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 provided in an embodiment of the present invention;
[0023] Figure 3 is a schematic diagram of a perspective projection of a front view of a modeling lamp provided according to an embodiment of the present invention;
[0024] Figure 4 is a schematic diagram of a perspective projection of a top view of a modeling lamp provided according to an embodiment of the present invention;
[0025] Figure 5 is a schematic diagram of a modeling lamp provided according to an embodiment of the present invention before rotating when flowing obliquely in a cone shape;
[0026] Figure 6 is a schematic diagram of a modeling lamp provided by an embodiment of the present invention after rotating when flowing obliquely in a cone shape;
[0027] Figure 7 is a structural schematic diagram of a lighting effect design device for a modeling lamp provided in an embodiment of the present invention;
[0028] Figure 8 It is a schematic diagram of the structure of an electronic device for implementing the lighting effect design method of the modeling lamp according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection 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 drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, 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 "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] Figure 1 This is a flow chart of a lighting effect design method for a modeling lamp provided according to an embodiment of the present invention. This embodiment is applicable to the case where an atmosphere is created by designing the lighting effect of a modeling lamp. This method can be executed by a lighting effect design device for a modeling lamp. The lighting effect design device for a modeling lamp can be implemented in the form of hardware and / or software. The lighting effect design device for a modeling lamp can be configured in electronic devices such as computers, mobile phones, smart home appliances, or wearable devices. Figure 1 As shown, the method includes:
[0032] Step 110: Obtain the shape of the modeling lamp generated by the user placing the modeling lamp, identify the shape of the modeling lamp, and obtain the coordinate information of each control lamp in the shape of the modeling lamp.
[0033] Among them, the modeling lights can be linear lights, for example, the modeling lights can be light strips or light strings, etc. Modeling lights can be used to create an atmosphere. Users can customize the placement of modeling lights to generate modeling light shapes. For example, the modeling lights can be installed on a tree or a three-dimensional shelf for modeling settings. The modeling light modeling image can be obtained from multiple perspectives through the camera device to perform modeling light modeling recognition. Alternatively, the size information of the modeling light modeling input by the user on the device can be obtained to identify the modeling light modeling. When identifying the modeling light modeling, the modeling light can be lit, and the modeling light modeling recognition can be realized by combining the light emitting information of each control light on the modeling light to obtain the coordinate information of each control light. The coordinate information can be three-dimensional information or two-dimensional information. The embodiment of the present invention does not specifically limit the recognition method of the modeling light modeling.
[0034] An exemplary method of identifying the shape of a modeling lamp and determining the coordinate information of each control lamp may be: lighting the modeling lamp, collecting images of the modeling lamp shape from various viewing angles, marking the light-emitting points in the image; generating a modeling lamp path based on the marking results and the connection relationship between the control lamps in the modeling lamp; fitting the modeling lamp path to achieve path correction; constructing a three-dimensional layout image of the modeling lamp based on the modeling lamp path combined with various viewing angles; and determining the coordinates of each control lamp in the three-dimensional layout image based on the principle of the three-dimensional coordinate system. Different control lamps may have different identification information (IC serial numbers).
[0035] For example, Figure 2 FIG. 1 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. Figure 2 As shown, a three-dimensional coordinate system can be established for the acquired shape of the shape lamp to obtain the three-dimensional coordinates of each control lamp. For example, the three-dimensional coordinates (x, y, z) of the control lamp ic can be expressed as (x, y, z, ic serial number).
[0036] In an optional implementation of an embodiment of the present invention, in order to reduce the amount of information processing data, optionally, the modeling light shape is identified to obtain coordinate information of each control light in the modeling light shape, including: identifying the modeling light shape to obtain the three-dimensional coordinates of each control light in the modeling light shape; converting the three-dimensional view of the modeling light shape into a two-dimensional view using perspective projection, and converting the three-dimensional coordinate projection into two-dimensional coordinates.
[0037] Figure 3 It is a schematic diagram of a perspective projection of a front view of a modeling lamp provided according to an embodiment of the present invention. Figure 4 FIG. 1 is a schematic diagram of a perspective projection of a top view of a modeling lamp according to an embodiment of the present invention. Figure 2 The modeling lamp shown in the figure is projected from the front, that is, the z-axis side is ignored and the front view with only the x-axis and y-axis is obtained. Figure 3 The front view shown in FIG. Figure 2 The modeling lamp shown in the figure is projected from top to bottom, that is, the y-axis side is ignored and only the x-axis and z-axis side is viewed from top, and the following can be obtained: Figure 4 The embodiment of the present invention does not specifically limit the specific viewing angle of the perspective projection, and the user can perform perspective projection of the corresponding viewing angle according to the specific angle at which the lighting effect is desired to be displayed, and convert the three-dimensional coordinates into two-dimensional coordinates.
[0038] According to the above perspective projection, the three-dimensional coordinate information (x, y, z, ic number) can be converted into two-dimensional coordinate information such as (x, y, ic number) or (x, z, ic number) and saved.
[0039] Step 120: 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.
[0040] Basic lighting effects can be pre-set in the electronic device and displayed on the visual screen. The user can select from the basic lighting effects, and the electronic device determines the expected lighting effect based on the user's selection. Alternatively, the user can directly set the lighting effect in the electronic device, and the electronic device determines the expected lighting effect based on the setting information.
[0041] The electronic device can analyze the expected lighting effect and determine the lighting and / or extinguishing order of each control light in the shape of the shape lamp when the expected lighting effect is achieved. The expected lighting effect may include 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. In the embodiment of the present invention, each lighting effect can be combined with each other. For example, a straight flow lighting effect can be performed first, and then a conical oblique flow can be performed after a certain interval.
[0042] When each control light is turned on and / or off in a certain order, the control light at each position can achieve precise lighting effect control. Therefore, in an embodiment of the present invention, the coordinate information can be sorted according to the control light strategy to generate a coordinate array for turning on and / or off the control light. In order to simplify the lighting effect, the two-dimensional coordinate information can be sorted. At the same time, the two-dimensional coordinates are sorted, and the lighting effect is realized according to the sorting result, so that the current view and the opposite view can show the same lighting effect.
[0043] Optionally, 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 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 coordinate values of the dimension corresponding to the straight-flow direction: lighting the control lights in sequence, turning off the control lights in sequence, and controlling the color changes of the control lights in sequence; and sorting the coordinate information according to the linear order of the coordinate values of the dimension corresponding to the straight-flow direction.
[0044] The linear order includes but is not limited to the order from small to large or from large to small. For example, the coordinate information can be sorted in the order of the coordinate values of the dimension corresponding to the vertical flow direction from small to large; or the coordinate information can be sorted in the order of the coordinate values of the dimension corresponding to the vertical flow direction from large to small.
[0045] In the embodiment of the present invention, the straight-flow lighting effect includes at least one of the following: flow from top to bottom, flow from bottom to top, flow from left to right, and flow from right to left. For example, when realizing the straight-flow lighting effect, the control lights may be lit in sequence from small to large; or, the control lights may be lit in sequence from large to small; or, the control lights may be turned off in sequence from small to large; or, the control lights may be turned off in sequence from large to small; or, the color change of the control lights may be controlled in sequence from small to large; or, the color change of the control lights may be controlled in sequence from large to small.
[0046] For example, for Figure 3 As shown in the front view, when performing a straight flow lighting effect from bottom to top, the lighting effect can be achieved by lighting up the control lights in sequence from bottom to top. That is, the control lights need to be arranged in ascending order according to the y-axis coordinates, and light up in sequence according to the arrangement order, so as to achieve a straight flow lighting effect from bottom to top. At this time, an exemplary sorting result is {x, y1, ic number), (x, y2, ic number), ..., (x, yn, ic number)}. Among them, the coordinate values of y1, y2, ..., yn increase in sequence. At this time, you can ignore the x coordinate, or you can sort according to the lighting effect that needs to be achieved horizontally.
[0047] For example, when the lighting effect requires that each row of lights be controlled according to odd and even rows, the odd and even rows can be judged based on the x-axis coordinates based on the above sorting results, and the sorting results can be divided according to the judgment results to form sub-sorting results corresponding to odd rows and even rows respectively. For example, in actual light control, the lights can be controlled to light up in sequence according to the sub-sorting results corresponding to the odd rows, and after a preset interval, the lights can be controlled to light up in sequence according to the sub-sorting results corresponding to the even rows.
[0048] Another exemplary example is that Figure 3As shown in the front view, when performing a straight flow lighting effect from left to right, the lighting effect can be achieved by controlling the lights to light up in sequence from left to right. That is, the control lights need to be arranged in order from small to large according to the x-axis coordinates, and light up in sequence according to the arrangement order, so as to achieve a straight flow lighting effect from left to right. At this time, an exemplary sorting result is {x1, y, ic number), (x2, y, ic number), ..., (xn, y, ic number)}. Among them, the coordinate values of x1, x2, ..., xn increase in sequence. At this time, you can ignore the y coordinate, or you can sort according to the lighting effect that needs to be achieved in the vertical direction.
[0049] Optionally, 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 cone-shaped oblique flow lighting effect, the lighting control strategy is that the coordinate values of the dimension corresponding to the oblique flow direction are rotated according to the oblique angle, and then, at least one of the following operations is performed in linear order: lighting the control lights in sequence, turning off the control lights in sequence, and controlling the color changes of the control lights in sequence; rotating the shape corresponding view of the shape light according to the oblique angle to obtain the rotated coordinate information; and sorting the rotated coordinate information according to the linear order of the coordinate values of the dimension corresponding to the oblique flow direction.
[0050] The lighting effects of the oblique flow direction include at least one of the following: leftward flow from top to bottom, leftward flow from bottom to top, rightward flow from top to bottom, and rightward flow from bottom to top.
[0051] For example, for Figure 2 When the modeling lamp shape shown in the figure realizes the light effect of the oblique flow in the cone shape, the view of the modeling lamp shape can be rotated to convert the oblique direction into the vertical direction, and then sorted according to the coordinates of the rotation. For example, Figure 5 It is a schematic diagram of a modeling lamp provided according to an embodiment of the present invention before rotating when flowing obliquely in a cone shape. Figure 6 FIG. 1 is a schematic diagram of a modeling lamp provided by an embodiment of the present invention after rotating when the conical shape flows obliquely. The oblique angle during rotation can be determined according to the offset angle between the modeling lamp and the y-axis in the modeling lamp. Figure 5 The view shown is rotated as Figure 6As shown, the vertical (horizontal) modeling light distribution can be obtained. At this time, the coordinate information after rotation can be calculated using a mathematical formula according to the oblique angle. Then sort the coordinate information after rotation according to the order of the dimensional coordinates corresponding to the oblique flow direction from small to large. For example, when the lighting effect of the oblique flow direction is right-handed and flows from top to bottom, the sorting result can be {(xnew1, ynew, ic number), (xnew2, ynew, ic number), ..., (xnewn, ynew, ic number)}. xnew is the new value after x rotation, and ynew is the new value after y rotation; xnew1, xnew2, ..., xnewn increase in sequence.
[0052] Optionally, 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 lighting effect that diffuses or contracts with a first center point, the lighting control strategy is to light up the controlled lights according to the distance from each controlled light to the first center point; determine the first center point according to the coordinate information, and calculate the distance from each controlled light to the first center point; in the lighting effect that diffuses with the first center point, sort the coordinate information in order of distance from small to large; in the lighting effect that contracts with the first center point, sort the coordinate information in order of distance from large to small.
[0053] For example, according to Figure 3 The front view shown or Figure 4 When the top view shown in the figure performs a lighting effect of expanding or contracting with a first center point, 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 based on the coordinate information. Figure 3 In the view shown, the coordinates of the first center point are (x0, y0); Figure 4 In the view shown, the coordinates of the first center point are (x0, z0). According to the coordinate information of each light control, the distance from each light control to the first center point can be calculated by a mathematical formula. Figure 3 In the lighting effect diffused from the first center point, the sorting result by distance is {(x, y, d1, ic number), (x, y, d2, ic number), ..., (x, y, dn, ic number)}. Among them, dn represents the distance from the current coordinate to the coordinate of the first center point (x0, y0). d1, d2, ..., dn increase in sequence.
[0054] Optionally, 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 lighting effect rotating about a second center point, the lighting control strategy is to light up the controlled lights according to the angle from each controlled light to the second center point; determine the second center point according to the coordinate information, and calculate the angle between each controlled light and the second center point; and sort the coordinate information according to the size of the angle.
[0055] For example, according to Figure 3 The front view shown or Figure 4 When the top view shown in the figure is rotated with the second center point, 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 based on the coordinate information. Figure 3 In the view shown, the coordinates of the second center point are (x0', y0'); Figure 4 In the view shown, the coordinates of the second center point are (x0', z0'). According to the coordinate information of each control light, the angle between each control light and the second center point can be calculated by a mathematical formula. The angle can be in the range of 0 to 360 degrees. For example, Figure 3 In the lighting effect rotating with the second center point, the sorting result by angle is {(x, y, r1, ic number), (x, y, r2, ic number), ..., (x, y, rn, ic number)}. Among them, rn represents the angle between the current coordinate and the coordinate 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 light control unit according to the sorting result to achieve the expected lighting effect.
[0057] The sorting result is the lighting order and / or extinguishing order of each control light under the light control strategy. Exemplarily, when the sorting result is obtained, each control light can be lit in sequence according to the sorting order to achieve the corresponding expected lighting effect.
[0058] In actual applications, it is expected that the lighting effect may include multiple lighting effects, and each lighting effect may be switched at intervals of a preset time. For example, the lighting may be controlled according to the sorting results corresponding to the lighting effects flowing in a straight direction at a certain interval, and then the lighting may be controlled according to the sorting results corresponding to the lighting effects flowing obliquely in a cone shape at a certain interval, and then the lighting may be controlled according to the sorting results corresponding to the lighting effects spreading or contracting about a first center point at a certain interval, and then the lighting may be controlled according to the sorting results corresponding to the lighting effects rotating about a second center point, and so on. The embodiment of the present invention does not specifically limit the above-mentioned lighting effect switching method. Users can make customized settings on electronic devices according to display requirements.
[0059] When controlling the lighting, you can also calculate the color and brightness of the lighting effect according to the display requirements to determine the final output value of the lighting control.
[0060] On the basis of the above implementation, in order to reduce the complexity of light control, the sorting results can be controlled by partition. Optionally, each light control is controlled according to the sorting results, including: determining the number of partitions according to the display precision of the expected light effect; and partitioning the sorted coordinate information according to the number of partitions; controlling the light control in each partition according to the sorting results, wherein all light control in the same partition are controlled synchronously.
[0061] For example, when the display precision is high, a smaller number of partitions can be determined; when the display precision is low, a larger number of partitions can be determined. When partitioning, the sorted coordinate information can be evenly partitioned according to the number of partitions. In the embodiment of the present invention, the advantage of partitioning the sorted coordinate information instead of the original coordinate information is that the smoothness of the lighting effect display can be achieved and the phenomenon of light jumping can be avoided.
[0062] Using the same lighting control in each zone can significantly reduce the amount of calculation of lighting control output values and the complexity of lighting control.
[0063] The technical solution of this embodiment obtains the shape of the modeling lamps generated by the user's placement of the modeling lamps, and identifies the modeling lamp shape to obtain the coordinate information of each control light in the modeling lamp shape; obtains the expected lighting effect of the modeling lamp shape, analyzes the expected lighting effect, and obtains the lighting control strategy corresponding to the expected lighting effect; and sorts the coordinate information according to the lighting control strategy; controls 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 sequences of each control light under the lighting control strategy: lighting sequence, extinguishing sequence, and color change sequence, which solves the problem in the prior art that the display effect of the modeling lamp cannot be combined with the modeling lamp shape for customized design. By identifying the modeling lamp shape to obtain the coordinate information, the lamp can be controlled based on the coordinate information according to the expected lighting effect, thereby realizing the customized design and display of the lighting effect. The display effect can be combined with the modeling lamp shape, changing the traditional fixed and single display effect of the modeling lamp, and realizing complex three-dimensional lighting effects, thereby increasing the flexibility and creativity of the modeling lamp products and improving user satisfaction.
[0064] Figure 7 FIG. 1 is a schematic diagram of a lighting effect design device for a modeling lamp according to an embodiment of the present invention. Figure 7 As shown, the device includes: a coordinate information determination module 710, a sorting module 720 and a light control module 730. Among them:
[0065] The coordinate information determination module 710 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;
[0066] The sorting module 720 is used to obtain the expected lighting effect of the modeling lamp, analyze the expected lighting effect, obtain the 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 used to control each light control unit 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 light control unit under the lighting control strategy: lighting order, extinguishing order, and color change order.
[0068] Optionally, the coordinate information determination module 710 includes:
[0069] A three-dimensional coordinate determination unit is used to identify the shape of the modeling lamp and obtain the three-dimensional coordinates of each control lamp in the shape of the modeling lamp;
[0070] The two-dimensional coordinate determination unit is used to convert the three-dimensional view of the modeling lamp into a two-dimensional view by using perspective projection, and convert the three-dimensional coordinate projection into two-dimensional coordinates.
[0071] Optionally, the sorting module 720 includes:
[0072] 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;
[0073] The first sorting unit is used to sort the coordinate information according to the linear order of the dimensional coordinate values corresponding to the vertical flow direction.
[0074] Optionally, the straight-flow 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 cone-shaped oblique flow lighting effect, the lighting control strategy is to light up the lights in the order of small to large lighting after rotating the dimensional coordinates corresponding to the oblique flow direction according to the oblique angle;
[0077] A coordinate rotation unit, used to rotate the modeling corresponding view of the modeling lamp according to the oblique angle to obtain the coordinate information after rotation;
[0078] 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.
[0079] Optionally, the lighting effect of the oblique flow direction includes at least one of the following: leftward flow from top to bottom, leftward flow from bottom to top, rightward flow from top to bottom, and rightward flow from bottom to top.
[0080] Optionally, the sorting module 720 includes:
[0081] When the expected lighting effect is a lighting effect that spreads or contracts from 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;
[0082] A distance calculation unit, used to determine the first center point according to the coordinate information, and calculate the distance from each control light to the first center point;
[0083] A third sorting unit is used to sort the coordinate information in the light effect diffused from the first center point according to the order of distance from small to large;
[0084] The fourth sorting unit is used to sort the coordinate information in the lighting effect contracted by the first center point according to the order of distance from large to small.
[0085] Optionally, the sorting module 720 includes:
[0086] 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;
[0087] An angle calculation unit, used to determine the second center point according to the coordinate information, and calculate the angle between each control light and the second center point;
[0088] The fifth sorting unit is used to sort the coordinate information according to the angle.
[0089] Optionally, the lighting control module 730 includes:
[0090] A partition processing unit, used to determine the number of partitions according to the expected display precision of the lighting effect; and perform partition processing on the sorted coordinate information according to the number of partitions;
[0091] The light control unit is used to control the lights in each zone according to the sorting result, wherein all the lights in the same zone are controlled synchronously.
[0092] The lighting effect design device for a modeling lamp provided in an embodiment of the present invention can execute the lighting effect design method for a modeling lamp provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0093] Figure 8A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment 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 processing, 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 required herein.
[0094] like Figure 8 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and 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 to 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] A number of 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 disk, 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 may be a variety of general and / or special 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 special 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 lighting effect design method of the modeling lamp.
[0097] In some embodiments, the lighting effect design method for a modeling lamp may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on 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 lighting effect design method for a modeling lamp described above may be executed. Alternatively, in other embodiments, the processor 11 may be configured to execute the lighting effect design method for a modeling lamp in any other appropriate manner (e.g., by means of firmware).
[0098] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations 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 can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0099] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0100] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0101] To provide interaction with a user, the systems and techniques described herein may 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 trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0102] The systems and techniques described herein may 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 with a graphical user interface or a web browser through which a user can interact with implementations 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 may 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 remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0104] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. 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 this document does not limit this.
[0105] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in 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; Acquire 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; Each light control is controlled 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 light control under the light control strategy: lighting order, extinguishing order, and color change order.
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 using 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 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.
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 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.
6. 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 the controlled lights 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.
7. 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.
8. 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, used for obtaining the expected lighting effect of the modeling lamp, analyzing the expected lighting effect, obtaining a lighting control strategy corresponding to the expected lighting effect; and sorting the coordinate information according to the lighting control strategy; The lighting control module is used to control each controlled 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 controlled light under the lighting control strategy: lighting order, extinguishing order, and color change order.
9. 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-7.
10. 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 7 when executed.
Citation Information
Patent Citations
Light-emitting switching control method and related equipment
CN114501741A
Atmosphere lamp equipment, light-emitting partition layout construction method and device and computer equipment
CN117521179A
Atmosphere lamp equipment, light-emitting partition layout generation method and device and computer equipment
CN117528873A