A garden lighting design method and system
By building a three-dimensional garden model and selecting automated lamp installation solutions, the existing garden lighting design is solved, and efficient and energy-saving garden lighting design is achieved, which is suitable for large-scale garden projects.
Patent Information
- Application Number
- CN202410952587.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-07-16
AI Technical Summary
The existing garden lighting design mainly relies on experienced designers for manual design. The design process is cumbersome and takes a long time. It is difficult to take into account the constraints of lamp installation, lighting needs and energy-saving and environmentally friendly, resulting in limited design solutions, inability to fully utilize the potential of garden lighting, and poor scalability, which cannot meet the needs of large-scale garden lighting design.
By building a three-dimensional garden model, obtaining the installation points and installation constraints of lamps, automatically adding lamps of different types, shapes and power, forming a variety of feasible lamp installation plans, calculating the lighting quality of each plan, determining the best solution with the highest lighting quality, and adjusting the lamp control plan according to the density of people to achieve the goal of energy conservation and environmental protection.
It has realized the automatic determination of the best lamp installation plan, saving time and effort, taking into account the constraints of lamp installation, lighting needs, energy conservation and environmental protection, fully leveraging the potential of garden lighting, and good scalability, which can meet the needs of large-scale garden lighting design.
Smart Images

Figure CN118627177B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a garden lighting design method and system. Background Art
[0002] Through reasonable lighting design, the characteristics and charm of the garden landscape can be highlighted, making the night landscape more charming. The projection and lighting effects of lights can emphasize the beauty of garden elements such as buildings, plants, and waterscapes, creating a unique night landscape atmosphere. At the same time, good lighting design can improve the safety of the garden, allowing people to clearly see the surrounding environment when they are active at night, and reduce the occurrence of accidents. In particular, setting up appropriate lighting facilities in areas such as roads, trails, and stairs can effectively prevent dangerous situations such as falls and collisions at night.
[0003] At present, the design of garden lighting mainly relies on manual design by experienced designers. The design process is cumbersome and time-consuming. In addition, since the garden area is often large, manual design often cannot take into account all the lighting installation constraints, lighting requirements and energy conservation and environmental protection, which may lead to limitations in the design scheme and fail to give full play to the potential of garden lighting. In addition, with the expansion of garden scale or the increase of design requirements, the scalability of manual design is poor and cannot meet the needs of large-scale garden lighting design. Summary of the invention
[0004] In order to solve the current problem that garden lighting design mainly relies on manual design by experienced designers, the design process is cumbersome and time-consuming, and because the garden area is often large, manual design often cannot take into account all the lighting installation constraints, lighting requirements and energy saving and environmental protection, which may lead to limitations in the design scheme and fail to give full play to the potential of garden lighting. In addition, with the expansion of the garden scale or the increase of design requirements, the scalability of manual design is poor and cannot meet the needs of large-scale garden lighting design, the present invention provides a garden lighting design method and system.
[0005] The technical solution provided by the embodiment of the present invention is as follows:
[0006] First aspect:
[0007] An embodiment of the present invention provides a garden lighting design method, comprising:
[0008] S1: Construct a 3D model of the garden;
[0009] S2: Obtaining the installation locations of lamps in the three-dimensional garden model;
[0010] S3: Obtaining the lighting fixture installation constraint conditions of each lighting fixture installation point;
[0011] S4: Under the constraints of the lamp installation constraints, add lamps of different types, shapes and powers at various lamp installation points to form a variety of feasible lamp installation solutions;
[0012] S5: Obtaining a rendering image of the three-dimensional garden model after various lighting installation solutions are adopted;
[0013] S6: calculating the lighting quality of the three-dimensional garden model after various lighting installation schemes are adopted according to the rendered image;
[0014] S7: Determine the best lighting installation plan with the goal of achieving the highest lighting quality;
[0015] S8: Set the color temperature for crowded periods and the color temperature for sparse periods;
[0016] S9: With the goal of minimizing power consumption, determine a dense period lighting control scheme when the dense period color temperature is reached during a dense period of human traffic and a sparse period lighting control scheme when the sparse period color temperature is reached during a sparse period of human traffic;
[0017] S10: Output the best lighting installation plan, the lighting control plan for the dense period, and the lighting control plan for the sparse period as the best lighting design plan.
[0018] Second aspect:
[0019] An embodiment of the present invention provides a garden lighting design system, comprising:
[0020] processor;
[0021] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the garden lighting design method as described in the first aspect is implemented.
[0022] The third aspect:
[0023] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the garden lighting design method as described in the first aspect is implemented.
[0024] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0025] (1) In the present invention, the lighting quality of various lighting installation schemes is determined based on the rendered images of the three-dimensional model of the garden after various lighting installation schemes, and then the best lighting installation scheme is determined with the highest lighting quality as the goal. The best lighting installation scheme can be determined automatically, saving time and effort, while taking into account the lighting installation constraints, lighting requirements and energy saving and environmental protection, giving full play to the potential of garden lighting. In addition, as the scale of the garden expands or the design requirements increase, the scalability of the automated lighting design is better.
[0026] (2) In the present invention, with the goal of minimizing power consumption, a dense period lamp control scheme is determined when the dense period color temperature is reached during a dense period, and a sparse period lamp control scheme is determined when the sparse period color temperature is reached during a sparse period. During dense periods, the use of lighting with a higher color temperature can improve brightness and clarity, enhance people's alertness and sense of security, and help prevent accidents. During sparse periods, the use of lighting with a lower color temperature can create a softer and more comfortable environment, help people relax, and enhance the leisure experience of the garden. Adjusting the lamp control scheme according to the density of human flow can reasonably allocate energy consumption in different time periods and achieve the goal of energy conservation and emission reduction. During sparse periods, reducing the lighting brightness or turning off some lamps can effectively reduce energy waste, which is conducive to saving energy and reducing carbon emissions. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] 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.
[0028] Figure 1 A schematic diagram of a flow chart of a garden lighting design method provided by an embodiment of the present invention;
[0029] Figure 2 A structural schematic diagram of a garden lighting design system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0031] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.
[0032] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.
[0033] In the embodiments of the present invention, sometimes the subscripts such as W 1 It may be mistakenly written as a non-subscript form such as W1. When the difference is not emphasized, the meanings they express are the same.
[0034] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0035] Reference Manual Attached Figure 1 , showing a flow chart of a garden lighting design method provided by an embodiment of the present invention.
[0036] The embodiment of the present invention provides a garden lighting design method, which can be implemented by a garden lighting design device, and the garden lighting design device can be a terminal or a server. The processing flow of the garden lighting design method can include the following steps:
[0037] S1: Construct a three-dimensional model of the garden.
[0038] Specifically, you can first collect various data on the garden site, including topographic data, vegetation distribution data, building distribution data, etc. This can be done through geographic information systems (GIS), laser scanning, drone aerial photography, measuring instruments, etc. Then process and integrate the collected data to merge data from different sources into a unified data platform. This may involve steps such as data format conversion, map projection conversion, and data registration. Use professional modeling software (such as Autodesk AutoCAD, Trimble SketchUp, Blender, etc.) to model the integrated data. According to the actual situation, terrain modeling tools, vegetation modeling tools, building modeling tools, etc. can be used to create models. The initially established model is refined and optimized, including adding details, optimizing topological structures, adjusting materials and textures, etc., to make the model more realistic and detailed, and finally build a three-dimensional garden model.
[0039] S2: Obtain the installation locations of lighting fixtures in the three-dimensional garden model.
[0040] Specifically, the garden site is surveyed on site, and the appropriate lighting installation points are determined by considering factors such as the garden layout, landscape features, pedestrian paths, and building locations. Lighting installation points are added manually or automatically in the modeling software according to actual conditions and design requirements. The added lighting installation points are refined and adjusted by considering factors such as the installation height, spacing, and coverage of the lighting to ensure that they match the site layout and design plan.
[0041] S3: Obtain the lighting fixture installation constraint conditions of each lighting fixture installation point.
[0042] Optionally, the lighting fixture installation constraints include: installation height constraints, installation position constraints, illumination range constraints, obstacle avoidance constraints, and style consistency constraints.
[0043] Among them, the height of the lamp installation is usually determined according to the layout of the garden, landscape requirements and lighting effects. The installation height constraint can stipulate the minimum or maximum height of the lamp installation to ensure that the lighting effect and visual effect of the lamp meet the design requirements.
[0044] Among them, the installation location of the lamp needs to take into account factors such as the layout of the garden, landscape features, and pedestrian paths. The installation location constraint can specify the specific location or installation area of the lamp to ensure that the layout of the lamp conforms to the design plan and does not affect the normal use of the garden. Specifically, it can be required that the distance between the lamp installation location and the installation point is within a preset range.
[0045] The illumination range of a lamp refers to the area that the lamp can cover. This range needs to be reasonably planned according to the design requirements and the actual situation of the garden. The illumination range constraint can specify the illumination range and illumination intensity of each lamp to ensure that the entire garden area can get good lighting effects.
[0046] During the installation of the lamps, various obstacles in the garden need to be avoided, such as trees, buildings, sculptures, etc. Obstacle avoidance constraints can specify the type, size, and location of obstacles that need to be considered when installing the lamps to ensure that the installation of the lamps will not affect or hinder other elements in the garden.
[0047] Among them, in garden lighting design, there are usually certain design styles and themes, and the selection and arrangement of lamps need to be consistent with the overall style of the garden. Style consistency constraints can specify the type, shape, material, etc. of lamps to ensure that the lamps match the overall design style of the garden to achieve a unified and coordinated effect.
[0048] S4: Under the constraints of lamp installation conditions, add lamps of different types, shapes and powers at each lamp installation point to form a variety of feasible lamp installation solutions.
[0049] Among them, lamp types include spotlights, street lights, landscape lights, floodlights, indicator lights, etc.
[0050] Among them, the shapes of lamps include round, square, linear and some specially customized shapes.
[0051] Among them, the power of lamps includes low power, medium power and high power. Low power is suitable for places that require energy saving and environmental protection, such as landscape lights in gardens or decorative lighting at night. Medium power is used for lighting of larger areas, such as lawns and squares. High power is used for landscape lighting and roadway lighting.
[0052] S5: Obtaining a rendering image of the garden three-dimensional model after adopting various lighting installation solutions.
[0053] S6: Calculate the lighting quality of the garden 3D model after various lighting installation schemes are adopted based on the rendered image.
[0054] In a possible implementation, the lighting quality is specifically:
[0055]
[0056] in, f Q Indicates the lighting quality, f grad represents the shadow gradient term, f edge represents the edge item,f bri represents the brightness term, f int represents the intensity term, f hist represents the brightness histogram item, f dir represents the polar angle term, oh grad represents the weight coefficient of the shadow gradient term, oh edge represents the weight coefficient of the edge term, oh bri represents the weight coefficient of the brightness term, oh int represents the weight coefficient of the intensity term, oh hist represents the weight coefficient of the brightness histogram item, oh dir Represents the weight coefficient of the polar angle term.
[0057] Among them, those skilled in the art can set the sizes of the weight coefficients of the shadow gradient item, edge item, brightness item, intensity item, brightness histogram item, and polar angle item according to actual conditions, and the present invention does not limit this.
[0058] It should be noted that the shadow gradient term measures the smoothness of the shadows in the rendered image. The smoother the transition of the shadows, the more natural the lighting effect. Therefore, a high value of the shadow gradient term is usually associated with a higher lighting quality. The edge term measures the clarity and sharpness of the edges in the rendered image. Clear edges can accurately define the outline and shape of objects, which is conducive to improving visual effects. Therefore, a high value of the edge term is usually associated with a higher lighting quality. The brightness term measures the overall brightness level in the rendered image. Appropriate brightness can make the scene brighter and more vivid, and enhance the visual effect. Therefore, a high value of the brightness term is usually associated with a higher lighting quality. The intensity term measures the intensity and distribution of the light source in the rendered image. Appropriate light intensity and distribution can effectively illuminate the target area in the scene, improve visibility and viewing, so a high value of the intensity term is usually associated with a higher lighting quality. The brightness histogram term measures the distribution and balance of brightness in the rendered image. A balanced brightness distribution can make the entire scene look more harmonious and unified, and enhance the visual effect. Therefore, a high value of the brightness histogram term is usually associated with a higher lighting quality. The polar angle term measures the illumination angle and directionality of the light source in the rendered image. Appropriate illumination angle and direction can fully illuminate the target area in the scene, enhancing visibility and viewing. Therefore, a high value of the polar angle term is usually associated with higher lighting quality.
[0059] Optionally, the shadow gradient term is specifically:
[0060]
[0061] in, I Represents a rendered image, g ( I ) represents the average shadow gradient of the rendered image, g t represents the target shadow gradient, α Indicates the first scaling factor.
[0062] Among them, those skilled in the art can set the size of the shadow gradient and the first scaling factor according to actual conditions, and the present invention does not limit this.
[0063] The average shadow gradient of the rendered image is specifically:
[0064]
[0065] in, S A collection of pixels representing a flat surface of a rendered image, N represents the total number of pixels on the plane, p ij The coordinates are Pixels, express p ij The gradient at .
[0066] Optionally, the edge item is specifically:
[0067]
[0068] in, E Represents the set of edge pixels of the rendered image, M represents the total number of edge pixels, O edge represents the edge detection operator, p ij The coordinates are Pixels.
[0069] The edge detection operator is specifically:
[0070]
[0071] in, t min Minimum threshold for edge detection, t max represents the maximum threshold for edge detection, express p ij The gradient at z represents the Laplacian zero-crossing operator, z ( pij )express p ij The Laplacian zero crossing value at .
[0072] Among them, those skilled in the art can set the size of the minimum threshold for edge detection and the maximum threshold for edge detection according to actual conditions, and the present invention does not limit this.
[0073] Among them, the Laplacian zero-crossing operator is an operator used for edge detection, which can effectively detect the edges in the image. The principle of this operator is to calculate the second-order derivative of the grayscale value of the pixel in the image, that is, the Laplacian operator, and then determine the edge position in the image by detecting the zero-crossing point (that is, zero-crossing) of these second-order derivatives.
[0074] Optionally, the brightness item is specifically:
[0075]
[0076] in, I Represents a rendered image, s ( I ) represents the brightness standard deviation of the rendered image, s t Indicates the target standard deviation, and min indicates the minimum value.
[0077] Among them, those skilled in the art can set the size of the target standard deviation according to actual conditions, and the present invention does not limit it.
[0078] Optionally, the strength item is specifically:
[0079]
[0080] in, I Represents a rendered image, m ( I ) represents the average intensity of the rendered image, m t Indicates the average intensity of the target, and max indicates the maximum value.
[0081] Among them, those skilled in the art can set the target average intensity according to actual conditions, and the present invention does not limit this.
[0082] Optionally, the brightness histogram item is specifically:
[0083]
[0084] in, d hist Represents the difference between the brightness histogram and the ideal brightness histogram, d maxrepresents the maximum difference threshold, d min Indicates the minimum difference threshold.
[0085] Among them, those skilled in the art can set the maximum difference threshold according to actual conditions. d max and the minimum difference threshold d min The present invention does not limit the size.
[0086] The differences between the brightness histogram and the ideal brightness histogram are as follows:
[0087]
[0088] in, n i Indicates the actual brightness histogram i The height of the column, n t represents the column height in the ideal brightness histogram, N Indicates the total number of pixels in the plane.
[0089] Optionally, the polar angle term is specifically:
[0090]
[0091] in, d represents the difference between the source polar angle and the target polar angle, β Represents the second scaling factor.
[0092] The difference between the source polar angle and the target polar angle is specifically:
[0093]
[0094] in, i k Indicates k The polar angle of each lamp, K Indicates the total number of lamps. i t Represents the target polar angle.
[0095] Among them, those skilled in the art can set the target polar angle and the size of the second scaling factor according to actual conditions, and the present invention does not limit this.
[0096] S7: Determine the best lighting installation solution with the goal of maximizing lighting quality.
[0097] In a possible implementation, S7 specifically includes sub-steps S701 and S702:
[0098] S701: Taking the highest lighting quality as the goal, construct the fitness function of the particle swarm optimization algorithm.
[0099] Among them, Particle Swarm Optimization (PSO) is a global optimization algorithm based on swarm intelligence. It simulates the group behavior of bird flocks or fish schools and finds the optimal solution to the problem through information sharing among individuals in the group.
[0100] S702: Determine the best lighting installation solution through a particle swarm optimization algorithm.
[0101] Specifically, a population is initialized, which contains multiple particles, and each particle represents a feasible lamp installation solution.
[0102] Calculate the fitness of each particle.
[0103] Determine the individual optimal position and the global optimal position.
[0104]
[0105] in, Indicates t +1 iteration i The speed of a particle, Indicates t The first iteration i The speed of a particle, oh represents the inertia weight factor, c 1 represents the individual learning factor, c 2 represents the global learning factor, r 1 and r 2 Both represent random numbers between 0 and 1. Indicates t The iteration i The individual optimal position of each particle, Indicates t The iteration i The global optimal position of a particle, Indicates t The iteration i The position of a particle, Indicates t +1 iteration i The position of a particle.
[0106] Optionally, an inertia weight factor oh Specifically:
[0107]
[0108] in, oh t Indicates t The inertia weight factor at the iteration, t max represents the maximum number of iterations, t Indicates the current iteration number, l represents the drop coefficient, exp represents the natural constant e An exponential function with base .
[0109] In the present invention, a larger inertia weight in the early stage promotes the particles to maintain their speed, which helps the particles to conduct global search, explore different areas in the solution space, and avoid falling into the local optimum too early. As the number of iterations increases, the inertia weight decreases, so that the speed of the particles decreases, which helps the particles to conduct more detailed local search in the potential optimal area and improve the accuracy of the solution.
[0110] Recalculate the fitness of each particle.
[0111] When the fitness of the current particle is better than the individual optimal solution of the particle itself, the individual optimal solution of the particle itself is updated. When the fitness of the current particle is worse than the individual optimal solution of the particle itself, the individual optimal solution of the particle itself is updated with a certain replacement probability. When the fitness of the current particle is better than the global optimal solution, the global optimal solution is updated.
[0112] In the present invention, when the fitness of the current particle is poor, accepting a new individual optimal solution with a certain probability can help the algorithm jump out of the local optimal solution, increase the exploratory nature of the search space, and help find a better solution.
[0113] Determine whether the maximum number of iterations has been reached. If so, output the lamp installation solution represented by the particle with the highest fitness value as the optimal lamp installation solution. Otherwise, return to continue iterating.
[0114] Among them, the replacement probability is specifically:
[0115]
[0116] in, P represents the replacement probability, e represents a natural constant, F ( ) represents the fitness function, C t Indicates t The temperature at the iteration.
[0117] Among them, the temperature is updated according to the following formula:
[0118]
[0119] in, e represents the temperature drop coefficient, T i+1 Indicates i The temperature at +1 iteration, T i Indicates i The temperature at the iteration.
[0120] The specific temperature reduction coefficient is:
[0121]
[0122] in, A 1 represents the cooling oscillation factor in the first half cycle, B 1 Indicates the cooling floating factor in the first half of the cycle, A 2 represents the cooling oscillation factor in the second half of the cycle, B 2 Indicates the cooling floating factor in the second half of the cycle.
[0123] In the present invention, by periodically adjusting the temperature, a larger temperature value can be used in the early stage of the algorithm, increasing the algorithm's extensive exploration of the search space, and helping to find more candidate solutions. In the later stage, the temperature is gradually lowered, so that the algorithm tends to local search more, thereby converging to a better solution in a shorter time. Furthermore, the temperature reduction coefficient introduces a combination of a sine function and an exponential function, which brings about periodic oscillations, so that the temperature rises and falls slightly during the decline process. This mechanism helps to prevent the optimization process from converging to a local optimal solution too early and maintains a certain exploration capability. At the same time, the temperature reduction coefficient is dynamically adjusted according to the number of iterations and periodic changes, and can adapt to the search needs of different stages. In the early stage, higher temperatures and larger oscillation amplitudes are conducive to global search; in the later stage, lower temperatures and smaller oscillation amplitudes are conducive to local search.
[0124] S8: Set the color temperature for crowded periods and the color temperature for sparse periods.
[0125] Among them, those skilled in the art can set the color temperature of the dense period and the color temperature of the sparse period according to actual conditions, and the present invention does not limit this.
[0126] It should be noted that during periods of dense traffic, the use of lighting with a higher color temperature can improve brightness and clarity, enhance people's alertness and sense of security, and help prevent accidents. During periods of sparse traffic, the use of lighting with a lower color temperature can create a softer and more comfortable environment, help people relax, and enhance the leisure experience of the garden.
[0127] S9: With the goal of minimizing power consumption, determine a control plan for the dense period lighting when the dense period color temperature is reached during the dense period, and a control plan for the sparse period lighting when the sparse period color temperature is reached during the sparse period.
[0128] In a possible implementation, when the flow of people is dense, all lamps are turned on. When the flow of people is sparse, the viewing lamps are turned off, and only the street lamps and lawn lamps are turned on.
[0129] In a possible implementation manner, the method for determining the lighting control solution during the intensive period is specifically as follows:
[0130] Taking the overall color temperature of the garden reaching the color temperature during the intensive period as the constraint condition, the control parameters of various lamps are adjusted to form a variety of feasible lamp control schemes.
[0131] Optionally, the overall color temperature of the garden is specifically:
[0132]
[0133] in, C Indicates the overall color temperature of the garden. c k Indicates k The color temperature of a lamp, l k Indicates k The weight coefficient of each lamp, K Indicates the total number of lamps.
[0134] It should be noted that after considering the brightness of the lamps, the calculated overall color temperature of the garden is more accurate. Because the color temperature is obtained by weighted average of the color temperatures of all lamps, and lamps with higher brightness will have a greater impact on the overall color temperature, so after considering the brightness weight, the overall lighting effect and color temperature of the garden can be more accurately reflected.
[0135] The specific weight coefficient of the lamp is:
[0136]
[0137] in, bri k Indicates k The brightness of a lamp.
[0138] It should be noted that by associating the weight coefficient of a lamp with its brightness, the contribution of each lamp to the overall lighting can be better considered. Lamps with higher brightness have a greater impact on the overall color temperature, so giving them a higher weight helps to accurately reflect the importance and influence of each lamp in the garden lighting system.
[0139] Calculate the power consumption of various lighting control schemes.
[0140] Optionally, the power consumption of various lamp control schemes may be evaluated by accumulating the rated power of each lamp.
[0141] Select the lighting control scheme with the least power consumption as the lighting control scheme for the intensive period.
[0142] In the present invention, by optimizing the control parameters of the lamps, the lighting scheme during the intensive period can reduce energy consumption as much as possible while meeting the lighting needs, thereby achieving the purpose of energy saving and emission reduction. Selecting the lamp control scheme with the least power consumption as the intensive period scheme can effectively reduce the energy consumption of the garden lighting system, reduce the consumption of power resources, and help reduce carbon emissions and environmental pollution.
[0143] In a possible implementation manner, the method for determining the lighting control solution during the intensive period is specifically as follows:
[0144] Taking the overall color temperature of the garden reaching the color temperature during the rare period as the constraint condition, the control parameters of various lamps are adjusted to form a variety of feasible lamp control schemes.
[0145] Calculate the power consumption of various lighting control schemes.
[0146] Select the lighting control scheme with the least power consumption as the lighting control scheme for the scarce period.
[0147] Similarly, by optimizing the control parameters of lamps, the lighting scheme during the off-peak period can reduce energy consumption as much as possible while meeting the lighting needs, thereby achieving the goal of energy conservation and emission reduction. Selecting the lamp control scheme with the lowest power consumption as the off-peak period scheme can effectively reduce the energy consumption of the garden lighting system, reduce the consumption of power resources, and help reduce carbon emissions and environmental pollution.
[0148] S10: Output the best lighting installation plan, the lighting control plan for the dense period, and the lighting control plan for the sparse period as the best lighting design plan.
[0149] It should be noted that the lighting design plan consists of two parts: the lighting installation plan and the lighting control plan. The output lighting design plan is the best plan based on algorithm optimization, which can be used as a reference for the intelligent lighting system to achieve intelligent management and regulation of garden lighting. Through the automated control system, the lamps can be accurately adjusted to improve the operating efficiency and management level of the lighting system.
[0150] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0151] (1) In the present invention, the lighting quality of various lighting installation schemes is determined based on the rendered images of the three-dimensional model of the garden after various lighting installation schemes, and then the best lighting installation scheme is determined with the highest lighting quality as the goal. The best lighting installation scheme can be determined automatically, saving time and effort, while taking into account the lighting installation constraints, lighting requirements and energy saving and environmental protection, giving full play to the potential of garden lighting. In addition, as the scale of the garden expands or the design requirements increase, the scalability of the automated lighting design is better.
[0152] (2) In the present invention, with the goal of minimizing power consumption, a dense period lamp control scheme is determined when the dense period color temperature is reached during a dense period, and a sparse period lamp control scheme is determined when the sparse period color temperature is reached during a sparse period. During dense periods, the use of lighting with a higher color temperature can improve brightness and clarity, enhance people's alertness and sense of security, and help prevent accidents. During sparse periods, the use of lighting with a lower color temperature can create a softer and more comfortable environment, help people relax, and enhance the leisure experience of the garden. Adjusting the lamp control scheme according to the density of human flow can reasonably allocate energy consumption in different time periods and achieve the goal of energy conservation and emission reduction. During sparse periods, reducing the lighting brightness or turning off some lamps can effectively reduce energy waste, which is conducive to saving energy and reducing carbon emissions.
[0153] Reference Manual Attached Figure 2 , showing a structural schematic diagram of a garden lighting design system provided by the present invention.
[0154] The present invention further provides a garden lighting design system 20, which is applied to the above-mentioned garden lighting design method, comprising:
[0155] Processor 201;
[0156] The memory 202 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 201, the garden lighting design method described in the method embodiment is implemented.
[0157] The garden lighting design system 20 provided by the present invention can execute the above-mentioned garden lighting design method and achieve the same or similar technical effects. To avoid repetition, the present invention will not go into details.
[0158] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0159] (1) In the present invention, the lighting quality of various lighting installation schemes is determined based on the rendered images of the three-dimensional model of the garden after various lighting installation schemes, and then the best lighting installation scheme is determined with the highest lighting quality as the goal. The best lighting installation scheme can be determined automatically, saving time and effort, while taking into account the lighting installation constraints, lighting requirements and energy saving and environmental protection, giving full play to the potential of garden lighting. In addition, as the scale of the garden expands or the design requirements increase, the scalability of the automated lighting design is better.
[0160] (2) In the present invention, with the goal of minimizing power consumption, a dense period lamp control scheme is determined when the dense period color temperature is reached during a dense period, and a sparse period lamp control scheme is determined when the sparse period color temperature is reached during a sparse period. During dense periods, the use of lighting with a higher color temperature can improve brightness and clarity, enhance people's alertness and sense of security, and help prevent accidents. During sparse periods, the use of lighting with a lower color temperature can create a softer and more comfortable environment, help people relax, and enhance the leisure experience of the garden. Adjusting the lamp control scheme according to the density of human flow can reasonably allocate energy consumption in different time periods and achieve the goal of energy conservation and emission reduction. During sparse periods, reducing the lighting brightness or turning off some lamps can effectively reduce energy waste, which is conducive to saving energy and reducing carbon emissions.
[0161] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0162] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0163] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0164] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0165] In the present invention, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0166] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0167] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0168] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0169] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0170] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0171] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0172] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0173] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the garden lighting design method described in the method embodiment is implemented.
[0174] A computer-readable storage medium provided by the present invention can implement the steps and effects of the garden lighting design method of the above method embodiment. To avoid repetition, the present invention will not go into details.
[0175] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0176] (1) In the present invention, the lighting quality of various lighting installation schemes is determined based on the rendered images of the three-dimensional model of the garden after various lighting installation schemes, and then the best lighting installation scheme is determined with the highest lighting quality as the goal. The best lighting installation scheme can be determined automatically, saving time and effort, while taking into account the lighting installation constraints, lighting requirements and energy saving and environmental protection, giving full play to the potential of garden lighting. In addition, as the scale of the garden expands or the design requirements increase, the scalability of the automated lighting design is better.
[0177] (2) In the present invention, with the goal of minimizing power consumption, a dense period lamp control scheme is determined when the dense period color temperature is reached during a dense period, and a sparse period lamp control scheme is determined when the sparse period color temperature is reached during a sparse period. During dense periods, the use of lighting with a higher color temperature can improve brightness and clarity, enhance people's alertness and sense of security, and help prevent accidents. During sparse periods, the use of lighting with a lower color temperature can create a softer and more comfortable environment, help people relax, and enhance the leisure experience of the garden. Adjusting the lamp control scheme according to the density of human flow can reasonably allocate energy consumption in different time periods and achieve the goal of energy conservation and emission reduction. During sparse periods, reducing the lighting brightness or turning off some lamps can effectively reduce energy waste, which is conducive to saving energy and reducing carbon emissions.
[0178] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0179] There are a few points to note:
[0180] (1) The drawings of the embodiments of the present invention only involve structures related to the embodiments of the present invention. Other structures may refer to conventional designs.
[0181] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.
[0182] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.
[0183] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A garden lighting design method, characterized in that: include: S1: Construct a 3D model of the garden; S2: Obtaining the installation locations of lamps in the three-dimensional garden model; S3: Obtaining the lighting fixture installation constraint conditions of each lighting fixture installation point; S4: Under the constraints of the lamp installation constraints, add lamps of different types, shapes and powers at various lamp installation points to form a variety of feasible lamp installation solutions; S5: Obtaining a rendering image of the three-dimensional garden model after various lighting installation solutions are adopted; S6: calculating the lighting quality of the three-dimensional garden model after various lighting installation schemes are adopted according to the rendered image; S7: Determine the best lighting installation plan with the goal of achieving the highest lighting quality; S8: Set the color temperature for crowded periods and the color temperature for sparse periods; S9: With the goal of minimizing power consumption, determine a dense period lighting control scheme when the dense period color temperature is reached during a dense period of human traffic and a sparse period lighting control scheme when the sparse period color temperature is reached during a sparse period of human traffic; S10: Output the best lighting installation plan, the lighting control plan for the dense period, and the lighting control plan for the sparse period as the best lighting design plan; The lighting quality is specifically: f Q =ω grad f grad +oh edge f edge +oh bri f bri +oh int f int +oh hist f hist +oh dir f dir Among them, f Q Indicates the lighting quality, f grad represents the shadow gradient term, f edge represents the edge term, f bri represents the brightness term, f int represents the intensity term, f hist represents the brightness histogram item, f dir represents the polar angle term, ω grad Represents the weight coefficient of the shadow gradient term, ω edge Represents the weight coefficient of the edge term, ω bri Represents the weight coefficient of the brightness term, ω int represents the weight coefficient of the intensity term, ω hist Represents the weight coefficient of the brightness histogram item, ω dir represents the weight coefficient of the polar angle term; The shadow gradient term is specifically: Where I represents the rendered image, g(I) represents the average shadow gradient of the rendered image, and g t represents the target shadow gradient, α represents the first scaling factor; The average shadow gradient of the rendered image is specifically: Among them, S represents the plane pixel set of the rendered image, N represents the total number of plane pixels, and p ij represents the pixel with coordinates (i, j), Indicates p ij The gradient at The edge items are specifically: Where E represents the edge pixel set of the rendered image, M represents the total number of edge pixels, and O edge represents the edge detection operator, p ij Represents the pixel point with coordinates (i, j); The edge detection operator is specifically: Among them, t min Minimum threshold for edge detection, t max represents the maximum threshold for edge detection, Indicates p ij The gradient at, z represents the Laplacian zero crossing operator, z(p ij ) indicates p ij The Laplacian zero-crossing operation value at ; The brightness item is specifically: Where I represents the rendered image, σ(I) represents the brightness standard deviation of the rendered image, and σ t Indicates the target standard deviation, and min indicates the minimum value; The intensity items are specifically: Where I represents the rendered image, m(I) represents the average intensity of the rendered image, and m t Indicates the average intensity of the target, and max indicates the maximum value; The brightness histogram items are specifically: Among them, d hist Represents the difference between the brightness histogram and the ideal brightness histogram, d max represents the maximum difference threshold, d min represents the minimum difference threshold; The difference between the brightness histogram and the ideal brightness histogram is specifically: Among them, n i Indicates the height of the i-th column in the actual brightness histogram, n t represents the column height in the ideal brightness histogram, and N represents the total number of pixels in the plane; The polar angle term is specifically: Where d represents the difference between the polar angle of the light source and the polar angle of the target, and β represents the second scaling factor; The difference between the source polar angle and the target polar angle is specifically: Among them, θ k represents the polar angle of the kth lamp, K represents the total number of lamps, θ t Represents the target polar angle.
2. The garden lighting design method according to claim 1, characterized in that: The lighting fixture installation constraints include: installation height constraints, installation position constraints, lighting range constraints, obstacle avoidance constraints and style consistency constraints.
3. The garden lighting design method according to claim 1, characterized in that: The S7 specifically includes: S701: Taking the highest lighting quality as the goal, construct the fitness function of the particle swarm optimization algorithm; S702: Determine the best lighting installation solution through a particle swarm optimization algorithm.
4. The garden lighting design method according to claim 1, characterized in that: When the flow of people is dense, all lamps are turned on; when the flow of people is sparse, the ornamental lamps are turned off and only the street lamps and lawn lamps are turned on.
5. The garden lighting design method according to claim 4, characterized in that: The method for determining the intensive period lamp control scheme is specifically as follows: Taking the overall color temperature of the garden reaching the color temperature during the intensive period as a constraint, adjust the control parameters of various lamps to form a variety of feasible lamp control schemes; Calculate the power consumption of various lighting control solutions; A lamp control scheme with the least power consumption is selected as the lamp control scheme for the intensive period.
6. The garden lighting design method according to claim 4, characterized in that: The method for determining the intensive period lamp control scheme is specifically as follows: Taking the overall color temperature of the garden reaching the color temperature during the rare period as a constraint, adjusting the control parameters of various lamps to form a variety of feasible lamp control schemes; Calculate the power consumption of various lighting control solutions; A lamp control scheme with the least power consumption is selected as the lamp control scheme for the scarce period.
7. The garden lighting design method according to claim 5, characterized in that: The overall color temperature of the garden is specifically: Among them, C represents the overall color temperature of the garden, c k represents the color temperature of the kth lamp, λ k represents the weight coefficient of the kth lamp, and K represents the total number of lamps; The weight coefficient of the lamp is specifically: Among them, bri k Indicates the brightness of the kth lamp.
8. A garden lighting design system, characterized in that: include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the garden lighting design method according to any one of claims 1 to 7 is implemented.