Automatic lamp distribution method, device and equipment and storage medium
Through the automatic cloth lighting method and device, the light source location is automatically determined according to the parameters of the layer lamp area, and the manual layout in the existing technology is long and effective, and the efficiency and design speed of the lamp layout are improved.
Patent Information
- Application Number
- CN202411509829.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-01-28
AI Technical Summary
In the prior art, users need to manually place lighting fixtures in virtual scenes of home improvement software, and repeatedly adjust the position and parameters of the fixtures to achieve ideal lighting effects. This method takes a long time and is not effective.
Provide automatic cloth lighting methods and devices. By determine the initial location of the light source according to the area parameters, illumination requirements and light sources of the lamp area, predict the light parameters, and compare with the standard value to determine the target location of the light source.
The lamp simulation layout that automatically completes the lamp area is automatically completed, the efficiency of the lamp layout is improved when the design decoration scheme is improved, the process of automatic layout of the lamp is simplified, and the design speed is improved.
Smart Images

Figure CN119378252A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to the technical fields of simulated lighting, environmental rendering, simulated decoration, etc. Background Art
[0002] Users can manually place lighting fixtures one by one in the virtual scene of the home improvement software, and adjust the parameters such as the brightness, color temperature, color, and irradiation direction of the lighting fixtures. After the placement is completed, the software calculates the room illumination and other information. Then the user can repeatedly adjust the placement and parameters of the lighting fixtures based on the calculation results. This method takes a long time to design the whole thing, and the lighting solution designed may not be effective. Summary of the invention
[0003] The present disclosure provides an automatic lighting arrangement method, device, equipment and storage medium to solve or alleviate one or more technical problems in the prior art.
[0004] In a first aspect, the present disclosure provides an automatic lighting arrangement method, comprising:
[0005] Determine the initial position of one or more light sources to be arranged in the area to be lit according to the area parameters, illumination requirements and the type of light sources to be arranged in the area to be lit;
[0006] Determining predicted illumination parameters in the area to be lit according to the initial positions of the one or more light sources in the area to be lit;
[0007] The target positions of the one or more light sources to be arranged are determined by comparing the predicted lighting parameters and the standard values of the lighting parameters in the area to be arranged.
[0008] In a second aspect, the present disclosure provides an automatic lighting device, comprising:
[0009] An initial position determination module, used to determine the initial position of one or more light sources to be arranged in the area to be arranged according to the area parameters, illumination requirements and types of light sources to be arranged in the area to be arranged;
[0010] An illumination determination module, configured to determine predicted illumination parameters in the area to be illuminated according to the initial positions of the one or more light sources in the area to be illuminated;
[0011] The target position determination module is used to determine the target position of the one or more light sources to be arranged according to the comparison between the predicted lighting parameters and the standard values of the lighting parameters in the area to be arranged.
[0012] In a third aspect, an electronic device is provided, including:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.
[0016] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute any method according to the embodiments of the present disclosure.
[0017] In a fifth aspect, a computer program product is provided, comprising a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.
[0018] The beneficial effects of the technical solution provided by the present disclosure include at least: the simulated arrangement of lamps in the area to be lit can be automatically completed according to the parameters of the area to be lit and the light source, thereby increasing the efficiency of lamp arrangement when designing decoration plans, improving the ease of use and applicability of automatic lamp arrangement, and increasing the speed of lamp design.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0021] Figure 1 It is a flowchart of an automatic lighting arrangement method according to an embodiment of the present disclosure;
[0022] Figure 2 is a flow chart of an automatic lighting arrangement method according to another embodiment of the present disclosure;
[0023] Figure 3 is a flow chart of an automatic lighting arrangement method according to another embodiment of the present disclosure;
[0024] Figure 4 is a flow chart of an automatic lighting arrangement method according to another embodiment of the present disclosure;
[0025] Figure 5is a schematic diagram of the process of automatic lighting arrangement according to an embodiment of the present disclosure;
[0026] Figure 6 is a schematic diagram of the main light lighting process according to an embodiment of the present disclosure;
[0027] Figure 7 is a schematic diagram of a lighting process of other lamps according to an embodiment of the present disclosure;
[0028] Figure 8 is a schematic diagram of a flow chart of accent lighting calculation according to an embodiment of the present disclosure;
[0029] Fig. 9 is a structural schematic diagram of an automatic lighting arrangement device according to an embodiment of the present disclosure;
[0030] Fig.10 is a structural schematic diagram of an automatic lighting arrangement device according to another embodiment of the present disclosure;
[0031] Fig.11 is a block diagram of an electronic device for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] The present disclosure will be further described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0033] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.
[0034] Figure 1 FIG. 1 is a flow chart of an automatic lighting arrangement method according to an embodiment of the present disclosure. In one embodiment, the method includes:
[0035] S101, determining the initial position of one or more light sources to be arranged in the area to be lit according to area parameters, illumination requirements and types of light sources to be arranged in the area to be lit;
[0036] S102, determining predicted illumination parameters in the area to be lit according to the initial positions of the one or more light sources in the area to be lit;
[0037] S103: Determine the target positions of the one or more light sources to be arranged according to the comparison between the predicted lighting parameters and the standard values of the lighting parameters in the area to be arranged.
[0038] In the embodiment of the present disclosure, the area parameters of the area to be lighted may include area type, area size, area shape, etc. The illumination requirement may include an illumination requirement value, a power density requirement value, an average illumination requirement value, etc., which are not limited in the present disclosure. The types of light sources to be arranged may include downlights, spotlights, ceiling lights, chandeliers, wall lights, etc.
[0039] In the disclosed embodiment, the number and arrangement positions of light sources in the area to be lit can be determined according to a certain light source arrangement mode based on the area type, area size, area shape, set illumination standard value, power density, average illumination, and parameters of light sources corresponding to the light source type, such as power, luminous intensity, etc. For example, the light source arrangement mode may include ring ceiling, single linear, multi-linear, etc.
[0040] In the embodiments of the present disclosure, the predicted illumination parameters may include predicted illumination values, predicted power density values, etc., which are not limited in the present disclosure. After determining the arrangement of the light sources in the area to be lit, the predicted illumination parameters of the working surface (reference plane) under the current arrangement can be calculated based on the position, power, luminous intensity of each light source in the area to be lit, and the area, height, luminous flux, etc. of the working surface (reference plane) in the area to be lit.
[0041] In the embodiments of the present disclosure, the standard values of lighting parameters may include standard values of illumination, standard values of power density, etc., which are not limited in the present disclosure. After the predicted lighting parameters of the arrangement of the light sources are determined, the predicted lighting parameters can be compared with the standard values of the lighting parameters. When the predicted lighting parameters meet the requirements of the standard values of the lighting parameters, the position of the light source in the arrangement of the light sources corresponding to the predicted lighting parameters is determined as the target position. When the predicted lighting parameters do not meet the requirements of the standard values of the lighting parameters, return to S101 and redetermine the initial position of one or more light sources in the area to be lit. For example, change the number and / or arrangement positions of the light sources. Then, continue to execute S102 and S103 until the predicted lighting parameters meet the requirements of the standard values of the lighting parameters.
[0042] According to the embodiments of the present disclosure, the simulated arrangement of light sources in the area to be lit can be automatically completed according to the parameters of the area to be lit and the light sources, thereby improving the efficiency of light source arrangement when designing decoration plans and improving the ease of use and applicability of automatic light source arrangement.
[0043] Figure 21 is a flow chart of an automatic lighting arrangement method according to another embodiment of the present disclosure. The method may include one or more features of the automatic lighting arrangement method described above. In one embodiment, S101 determines the initial position of one or more light sources to be arranged in the area to be lit based on the area information, illumination requirements, and the type of light source to be arranged of the area to be lit, including:
[0044] S201, determining a lighting design style according to the area information, the illumination requirement and the type of light source to be arranged;
[0045] S202: Determine an initial position of the light source in the area to be lit according to the lighting design style.
[0046] In the embodiments of the present disclosure, the lighting design style may include a design with a main light source, a design without a main light source, etc., which is not limited in the present disclosure. A design with a main light source may include using a light source such as a chandelier or a ceiling lamp as the main light source, and other types of lamps such as downlights and spotlights as secondary light sources. A design without a main light source may include not arranging a main light source, and using lamps such as downlights and spotlights as secondary light sources.
[0047] In the disclosed embodiment, the lighting design style can be determined based on at least one of the area information, illumination requirements, and light source types. For example, if the area type in the area information is a corridor, the lighting design style can be determined as a design without a main light based on the corridor type. For another example, if the area type in the area information is a living room, the lighting design style can be determined as a design with a main light based on the living room type. For another example, when the light source types include chandeliers and downlights, the lighting design style can be determined as a design with a main light. In the disclosed embodiment, the number and arrangement of light sources can be determined based on different design styles, thereby obtaining the initial position of the light source.
[0048] According to the embodiments of the present disclosure, the design style of the light source can be selected based on the area type, illumination requirements and light source type, so that the system can determine the position of each light source according to the design style of the light source, thereby improving the efficiency of the light source arrangement.
[0049] In one embodiment, the light source includes a main light source and / or a secondary light source, and S202, determining an initial position of the light source in the area to be lit according to the lighting design style, includes at least one of the following:
[0050] In the case where the lighting design style is a main light source design and a main light source already exists in the area to be lighted, determining an initial position of the secondary light source to be arranged in the area to be lighted;
[0051] When the lighting design style is a main light source design and there is no main light source in the area to be lit, executing a main light source lighting algorithm to determine an initial position of the main light source;
[0052] In the case where the lighting design style is a design without a main light source, the initial position of the secondary light source to be arranged in the area to be lit is determined.
[0053] In the embodiment of the present disclosure, when the lighting design style is a main light source design, it is possible to detect whether there is a main light source in the area to be lit. In the case that there is no main light source in the area to be lit, the position of the main light can be determined according to the main light position calculation algorithm. Specifically, the illumination requirement value of the area to be lit is obtained, the central area of the area to be lit is identified, the central area of the area to be lit is divided into a plurality of lighting points, the main light source is separately arranged at each lighting point, and it is detected whether the current illumination meets the requirement, and the position that meets the illumination requirement value is used as the position of the main light source. For example, the central area of the area to be lit is evenly divided into 1*2 rectangular sub-areas, and the vertices of each rectangle are used as lighting points, which are recorded as (1, 1), (1, 2), (1, 3), (2, 1), (2, 2), and (2, 3) in sequence. The main light sources are enumerated starting from the position (1, 1), and the illumination of the area when the main light source is arranged at each position is calculated, and the position that meets the illumination requirement value can be used as the position of the main light source.
[0054] In the embodiment of the present disclosure, when the lighting design style is a main light source design, if there is no need for other secondary light source designs, only the main light source can be arranged. The arrangement of the main light source can refer to the above example.
[0055] In the embodiment of the present disclosure, when the lighting design style is a design with a main light source, if there is a pre-placed main light source or a pre-determined main light source position, the step of calculating the main light position can also be skipped, and the main light source can be directly arranged using the pre-placed main light source or the pre-determined main light source position.
[0056] In the embodiments of the present disclosure, when the lighting design style is a design without a main light source, or when the design style is a design with a main light source and the position of the main light source has been determined, the position of the secondary light source can be determined according to the arrangement method, layout parameters, etc. corresponding to the lighting design style.
[0057] According to the embodiment of the present disclosure, the presence and arrangement of the main light source and the auxiliary light source can be determined based on the lighting design style, and then the initial position of the light source in the area to be lit can be obtained, which improves the efficiency of light source arrangement.
[0058] In one embodiment, determining the initial position of the secondary light source to be arranged in the area to be arranged includes:
[0059] Determine the arrangement of the secondary light sources to be arranged in the area to be arranged;
[0060] According to the arrangement mode and the arrangement parameters, the initial position of the secondary light source to be arranged in the area to be arranged is determined.
[0061] In the embodiment of the present disclosure, the arrangement mode may include single-line, multi-line, ring ceiling, etc., which is not limited in the present disclosure. The arrangement mode of the secondary light sources may be determined according to the lighting design style.
[0062] In the embodiment of the present disclosure, the arrangement parameters may include the distance of the light source from the wall, the regional illumination requirement, the regional size, the attributes in the light source related standards, etc., which are not limited in the present disclosure. The number and position of the secondary light sources in the current lighting area can be determined based on the arrangement mode and the arrangement parameters.
[0063] According to the embodiments of the present disclosure, the initial position of the light source can be determined in the area to be lit according to the arrangement method and the layout parameters, thereby improving the efficiency of the light source design.
[0064] In one embodiment, determining the arrangement of the secondary light sources to be arranged in the area to be arranged includes:
[0065] Select a preset arrangement corresponding to the lighting design style;
[0066] Or, get a custom arrangement.
[0067] In the disclosed embodiments, the arrangement method may include an arrangement method that has been set in advance for each lighting design style. For example, the candidate arrangement method for the auxiliary light source corresponding to the main light source design may be single-linear, multi-linear, etc. For another example, the candidate arrangement method for the auxiliary light source corresponding to the main light source design may be single-linear, multi-linear, ring ceiling, etc. An arrangement method may be selected from the candidate arrangement methods as the arrangement method for the auxiliary light sources in the area to be lit. It may be selected by the user, or it may be a default, or it may be automatically selected based on parameters such as the area type, or it may be randomly selected. The arrangement method may also include an arrangement method customized by the designer or the user. For example, after completing a lamp design, the designer may store the current arrangement method as a custom arrangement method, and may select the custom arrangement method when designing lamps for other apartment plans. One or more custom arrangement methods may be stored, and the designer or user may freely name the custom arrangement method.
[0068] According to the embodiment of the present disclosure, the arrangement of light sources can be obtained, which facilitates the determination of the positions of light sources in the area to be lit.
[0069] In one embodiment, determining the initial position of the secondary light source to be arranged in the area to be arranged according to the arrangement mode and the arrangement parameters includes:
[0070] Determine the number of the secondary light sources according to at least one of the illumination requirement, the light source utilization coefficient, the maintenance coefficient in the arrangement parameters of the secondary light sources, the work surface area in the area information, and the attributes of the secondary light sources;
[0071] The initial position of the auxiliary light source is determined according to at least one of the number of the auxiliary light sources, the spacing in the arrangement, the distance from the wall, and the area size in the area information.
[0072] In the embodiment of the present disclosure, the illumination may be the energy of visible light received per unit area of the working surface (reference plane), and an optional calculation formula is as follows:
[0073] E=dΦ / dA Formula 1
[0074] Wherein, dΦ can represent the luminous flux incident on the working surface (reference plane) containing the point, and the luminous flux can be the light energy radiated by the light source per unit time, and its unit is lumen. dA can represent the area of the working surface (reference plane), and E can represent the illuminance, and its unit is lux (lx).
[0075] In the disclosed embodiment, the light source utilization coefficient may be the ratio of the luminous flux received directly or through mutual reflection to the sum of the rated luminous flux emitted by all light sources on the working surface or other specified reference plane. An optional calculation formula is as follows:
[0076] Cu=Fu / F0 Formula 2
[0077] F=(E n ×dA) / (N×Cu×K) Formula 3
[0078] Where Cu is the light source utilization coefficient, Fu is the useful luminous flux, which can be calculated based on the direct luminous flux and the reflected luminous flux. F0 is the total luminous flux emitted from the light source. F is the luminous flux of a single light source, and E is the total luminous flux emitted from the light source. n It can be the illumination requirement, which can include the average illumination value of the working condition specified by the lighting standard. dA can be the area of the working surface (reference plane). N can be the number of arranged light sources, and K can be the maintenance factor, which can represent the ratio of the average illumination or average brightness on the working surface (reference plane) after the light source has been used for a certain period of time to the average illumination or average brightness obtained on the same working surface (reference plane) when the device is newly installed under the same conditions. Among them, Cu and K can be found based on relevant standards.
[0079] In the disclosed embodiment, the room index (RI) may be calculated first. The room index may represent the geometric shape of the room. An optional calculation formula is as follows:
[0080] RI=(l×w) / [h×(l+w)]Formula 4
[0081] Among them, l can be the length of the area to be lit, w can be the width of the area to be lit, and h can be the distance between the light source and the working surface (reference plane), which can be calculated based on the difference between the light source setting height and the working surface (reference plane) height. After obtaining the room type index, the room type index and reflectivity can be used to query and obtain the lamp utilization coefficient. The reflectivity can represent the reflectivity of the walls, ceilings and floors of the space, and can be obtained based on the material of the apartment plan. For example, a room is 19.2m long and 12.8m wide, the lamp installation height is 2.6m, and the working surface height is 0.75m. Then, the room area is calculated to be 245.76m 2 , the room index is calculated to be 4.15. The reflectivity of the current room is obtained as 70% for the wall, 50% for the ceiling, and 20% for the floor. The utilization coefficient table is queried and the utilization coefficient value of the room index 4.15 is calculated to be 1.005. An example of a utilization coefficient table is shown in Table 1 below.
[0082] Table 1 Utilization coefficient table
[0083]
[0084]
[0085] In the embodiments of the present disclosure, the properties of the light source may include the luminous intensity, power, color temperature, type, etc. of the light source, which is not limited in the present disclosure. Based on the arrangement mode, the number of secondary light sources that can meet the illuminance requirement can be calculated according to the illuminance requirement, light source utilization factor, maintenance factor, work surface area, and luminous intensity, power, type, etc. of the secondary light sources in the current arrangement parameters. An optional calculation formula is as follows:
[0086] L n =(E n ×dA) / (F×Cu×K) Formula 5
[0087] Among them, L n can be the number of lamps, E n It can be the illumination requirement, and can also be called the target average illumination of the working surface (reference plane). dA can be the area of the working surface (reference plane), F can be the luminous flux of a single light source, Cu can be the light source utilization coefficient, and K can be the maintenance coefficient.
[0088] In the disclosed embodiment, the position of the secondary light source can be calculated based on one or more of the calculated number of secondary light sources, the spacing between light sources in the arrangement parameters, the distance from the wall, and the area size, so as to obtain the position of the light sources that meet the illumination requirements and are evenly arranged in an arrangement manner, and obtain the initial position of the secondary light source.
[0089] In the embodiment of the present disclosure, when there is a main light source design, after the positions of the main light source and the auxiliary light source are determined respectively, the two can be combined to obtain the initial position of the light source. When there is no main light source design, the initial position of the auxiliary light source can be used as the initial position of the light source.
[0090] According to the embodiments of the present disclosure, the initial position of the light source can be determined based on the arrangement mode and the layout parameters, without the need for the user to manually set the light source, thereby improving the efficiency of lamp design.
[0091] Figure 3 is a flow chart of an automatic lighting arrangement method according to another embodiment of the present disclosure. The method may include one or more features of the automatic lighting arrangement method described above. In one embodiment, S102 determines the predicted lighting parameters in the area to be lit according to the initial position of the one or more light sources in the area to be lit, including:
[0092] S301, querying the scene illumination configuration table according to the type of the area to be lit to obtain the working surface of the area to be lit;
[0093] S302, dividing the working surface into grids to obtain grid points, and calculating the illumination of all the grid points according to the initial positions of the light sources;
[0094] S303: Calculate the average illumination and illumination uniformity of the reference plane according to the illumination of all grid points to obtain the predicted illumination parameters.
[0095] In the embodiment of the present disclosure, the scene illumination configuration table may include illumination standard values corresponding to different area types, heights of work surfaces (reference planes), general color rendering indexes, etc. After obtaining the type of the area to be lit in the apartment plan, the corresponding illumination standard value, height of the work surface (reference plane), general color rendering index, etc. may be queried based on the type of the area to be lit.
[0096] In the embodiment of the present disclosure, after obtaining the working surface (reference plane), the working surface (reference plane) can be grid-divided according to a certain ratio to obtain grid division lines, and then the intersection of the grid division lines is used as the grid point. The illumination value of each grid point under the initial position condition of the current light source can be calculated. The calculation method can refer to the above formula 1.
[0097] In the embodiment of the present disclosure, after the illumination values of all grid points are obtained, the average illumination value of the reference plane can be calculated based on the sum of the illumination values of the grid points and the number of grid points. An optional calculation formula is as follows:
[0098]
[0099] Among them, E avg Can be the average illumination value, E i It can be the illumination value of different grid points, and n can be the total number of grid points.
[0100] In the embodiment of the present disclosure, after obtaining the average illumination value of the reference plane, the illumination uniformity of the reference plane can be calculated based on the average illumination value and the minimum illumination value. An optional calculation formula is as follows:
[0101] U0=E min / E avg Formula 7
[0102] Among them, U0 is the illumination uniformity, E min It can be the minimum illuminance value among the grid point illuminance values.
[0103] According to the embodiments of the present disclosure, the predicted illumination parameter value at the initial position of the light source can be calculated, which provides a judgment basis for determining the target position of the light source.
[0104] Figure 4 1 is a flow chart of an automatic lighting arrangement method according to another embodiment of the present disclosure. The method may include one or more features of the automatic lighting arrangement method described above. In one embodiment, S103 compares the predicted lighting parameters in the area to be lit with the standard values of the lighting parameters to determine the target positions of the one or more light sources to be arranged, including:
[0105] S401, querying the scene illumination configuration table to obtain the standard value of the lighting parameter according to the type of the area to be lit, and comparing the standard value of the lighting parameter with the predicted lighting parameter;
[0106] S402: if the predicted illumination parameter does not meet the illumination parameter standard value, re-determine the initial position of the light source;
[0107] S403: When the predicted illumination parameter meets the illumination parameter standard value, output the current initial position of the light source as the target position of the light source.
[0108] In the embodiment of the present disclosure, the illumination parameter standard value may include an average illumination standard value and / or an illumination uniformity standard value. The average illumination value in the predicted illumination parameter and the average illumination standard value in the illumination parameter standard value may be compared to obtain a comparison result. And / or, the illumination uniformity in the predicted illumination parameter and the illumination uniformity standard value in the illumination parameter standard value may be compared to obtain a comparison result.
[0109] In the disclosed embodiment, the comparison result may include that the predicted lighting parameters meet the standard values of the lighting parameters or that the predicted lighting parameters do not meet the standard values of the lighting parameters. In the case where the predicted lighting parameters do not meet the standard values of the lighting parameters, it is necessary to re-execute the aforementioned step S101 to re-determine the initial position of the light source. In the case where the predicted lighting parameters meet the standard values of the lighting parameters, the initial position of the current light source can be used as the target position of the light source.
[0110] In the disclosed embodiment, light source design and effect rendering can be performed in the apartment plan according to the obtained target position of the light source to present the effect after the light source arrangement.
[0111] According to the disclosed embodiments, the arrangement of light sources can be screened through the scene illumination configuration table to obtain an arrangement result that meets the requirements, thereby improving the availability of the light source arrangement and improving the efficiency of light source design.
[0112] In one embodiment, the method further comprises:
[0113] The area is divided according to the apartment plan to obtain the area to be lit, and the area parameters of the area to be lit are obtained.
[0114] In one embodiment, the method further comprises:
[0115] Perform regional division according to the lighting plan to obtain the area to be lit, and set regional parameters of the area to be lit.
[0116] In the disclosed embodiments, the apartment plan may include an apartment diagram, a design drawing, and the like. Based on an area division algorithm, the apartment plan may be divided into a plurality of areas to be lit, and the shapes of the areas to be lit may include a variety of shapes, such as rectangles, triangles, trapezoids, or other irregular shapes. And the type of the area to be lit is determined according to the markers or area features in the apartment plan. The markers may include other items that have been arranged in the area to be lit, such as a sofa, a television, a bed, a cabinet, and the like. The area features may include the type of adjacent areas of the current area, the location of the current area, the shape of the current area, and the like. The area parameters of the area to be lit may include the type, length, width, and the like.
[0117] In one application scenario, taking the apartment plan including the living-dining room area as an example, the area division can be performed according to the following steps:
[0118] 1. The order of determining the area types in the apartment plan can be: living room - corridor - dining room - entrance - corridor;
[0119] 2. Use the TV and sofa orientation and adjacent walls to find the living room; if the sofa is not against the wall, set up a virtual sofa wall based on the sofa position;
[0120] 3. Find the long corridor area based on the slope and length of the side of the apartment in the apartment plan excluding the living room area;
[0121] 4. After finding the living room and corridor, find the largest inscribed rectangle in the remaining area, which must include the dining table and be a long strip with a not-too-extreme aspect ratio, to determine the dining room area;
[0122] 5. Look for the entrance area in the remaining area. The entrance area may overlap with the living room or dining room so it may not exist;
[0123] 6. For the remaining scattered areas that have not been divided or select the polygon with the largest area, find the largest inscribed rectangle and fill it as the corridor area.
[0124] In the disclosed embodiment, the apartment plan may also be divided into areas based on a pre-designed lighting plan to obtain areas to be lit.
[0125] According to the embodiments of the present disclosure, the area to be lit can be divided according to the apartment plan, and various parameters of the area to be lit can be obtained, providing a basis for subsequent automatic lighting.
[0126] The lighting area is divided according to the existing room data and furniture information, and the illumination target of each area is determined by obtaining the lighting style specified by the user. The lighting algorithm combines the above information to calculate and present the final automatic layout results of the lamps and the illumination values of each area. The lamps are clustered according to the apartment type and the hard and soft furnishing design, and the scenario configuration is automatically generated according to the target value of the scenario template.
[0127] Figure 5 is a schematic diagram of the process of automatic lighting arrangement according to an embodiment of the present disclosure, such as Figure 5 As shown, including:
[0128] S501, obtaining a housing plan. After obtaining the housing plan, S502 may be optionally executed;
[0129] S502, placing main lights and decorative lights. After S501 or S502 is completed, S503 can be executed;
[0130] S503, selecting a lighting style and a type of lighting fixture to be arranged;
[0131] S504, executing a layout algorithm;
[0132] S505, presenting the layout; optionally, after the presentation is completed, S506 may be executed;
[0133] S506, Second revision and supplement;
[0134] S507, selecting a scenario template;
[0135] S508, executing scenario algorithm;
[0136] S509: Present the result.
[0137] Figure 6 is a schematic diagram of the main light lighting process according to an embodiment of the present disclosure, such as Figure 6 As shown, this may include:
[0138] S601, set the light tone, gray tone and dark tone, and select downlight and spotlight;
[0139] S602, determine whether the current area type is a living room or a bedroom; if so, execute S603; if not, execute S604;
[0140] S603, enter the main light design, and calculate the required illumination of the entire area;
[0141] S604, enter the design without main light, and then execute S701, such as Figure 7 Arrange other lamps as shown.
[0142] S605, determine whether the main light has been placed; if so, execute S604; if not, execute S606;
[0143] S606. Determine the arrangement of the main lights according to the illumination generated by the main lights and the illumination required for the work surface; or, determine the arrangement of the main lights according to the maximum number of main lights. After completing S606, optionally, execute S604.
[0144] Figure 7 FIG. 1 is a schematic diagram of a lighting process without a main light design according to an embodiment of the present disclosure. Figure 7 As shown, after S604 in the above embodiment, the method may include:
[0145] S701, calculating the required illumination of the entire area;
[0146] S702, determine whether the current area is a living room or a living and dining room; if so, execute S703; if not, execute S704;
[0147] S703, using ring chandelier arrangement;
[0148] S704, determine whether the distance between lamps is less than 700 mm in a single linear arrangement; if so, execute S705; if not, execute S710;
[0149] S705, using bilinear arrangement;
[0150] S706. Under the condition of limiting the distance from the wall to 300 mm, calculate the upper and lower limits of the number of lamps according to the arrangement mode, area size, and IES parameters;
[0151] S707, determining the position of the lamps according to the number of lamps, arrangement, distance from the wall, area size, and IES parameters;
[0152] S708, calling the backend interface to calculate the predicted illumination of the working surface according to the area, the positions of other lamps, the position of the main lamp, the IES of other lamps, and the IES of the main lamp;
[0153] S709: Determine whether the predicted illumination of the working surface meets the requirement; if so, execute S710; if not, return to execute S707; and can also execute again Figure 6 S606, redefine the main light position;
[0154] S710, output lamp arrangement.
[0155] Figure 8 FIG. 1 is a flow chart of key lighting calculation according to an embodiment of the present disclosure. Key lighting refers to the lighting of some key areas in an area, such as desks, dining tables, etc. Figure 8 As shown, including:
[0156] S801, identify the central location of the key area;
[0157] S802, calculating the required illumination of the key area according to the area type;
[0158] S803, starting from (1, 1), enumerate the lamps toward (2, 3), and calculate the direct illumination;
[0159] S804, determine whether the direct illumination meets the requirements; if so, execute S805; if not, return to execute S803;
[0160] S805: Output the key lighting result.
[0161] There are a few points to note when calculating:
[0162] The illumination calculation of the working surface of the key area only includes the corresponding spotlights. Other lights, such as main lights, basic lighting, decorative lighting, and lighting in other key areas are not included in the calculation. Conversely, the illumination calculation of the main area and other key areas does not need to consider the key lighting fixtures. The lighting arrangement of key area lighting is similar to that of the main lights.
[0163] In an embodiment of the present disclosure, a method for calculating regional illumination is as follows:
[0164] (1) Calculate grid points. In the target area, specify a certain height as the calculation working surface, and calculate points at certain intervals within the working surface as calculation grid points. The grid point interval in key areas is 0.25m, and the upper limit of grid points is 9×9. The grid point interval in non-key areas is 0.5m, and the upper limit of grid points is 8×8. The grid point height is taken according to the reference height in the following table:
[0165] Table 2 Scene illumination configuration table
[0166]
[0167]
[0168] (2) Calculate the direct illumination from the light to each grid point and find the average illumination of all points.
[0169] Fig. 9 : is a schematic diagram of the structure of an automatic lighting device according to an embodiment of the present disclosure. In one implementation, the device includes:
[0170] The initial position determination module 901 is used to determine the initial position of one or more light sources to be arranged in the area to be arranged according to the area parameters, illumination requirements and types of light sources to be arranged in the area to be arranged;
[0171] An illumination determination module 902, configured to determine a predicted illumination parameter in the area to be illuminated according to the initial position of the one or more light sources in the area to be illuminated;
[0172] The target position determination module 903 is used to determine the target position of the one or more light sources to be arranged according to the comparison between the predicted lighting parameters and the standard values of the lighting parameters in the area to be arranged.
[0173] Fig.10 1 is a schematic diagram of the structure of an automatic lighting device according to another embodiment of the present disclosure, and the device may include one or more features of the automatic lighting device described above. In one embodiment, the initial position determination module 901 includes:
[0174] A style determination submodule 1001 is used to determine a lighting design style according to the area information, the illumination requirement and the type of light source to be arranged;
[0175] The position determination submodule 1002 is used to determine the initial position of the light source in the area to be lit according to the lighting design style.
[0176] In one implementation, the light source includes a main light source and a secondary light source, and the position determination submodule 1002 is further used for at least one of the following:
[0177] In the case where the lighting design style is a main light source design and a main light source already exists in the area to be lighted, determining an initial position of the secondary light source to be arranged in the area to be lighted;
[0178] When the lighting design style is a main light source design and there is no main light source in the area to be lit, executing a main light source lighting algorithm to determine an initial position of the main light source;
[0179] In the case where the lighting design style is a design without a main light source, the initial position of the auxiliary light source to be arranged in the area to be lit is determined.
[0180] In one embodiment, determining the initial position of the secondary light source to be arranged in the area to be arranged includes:
[0181] Determine the arrangement of the secondary light sources to be arranged in the area to be arranged;
[0182] According to the arrangement mode and the arrangement parameters, the initial position of the secondary light source to be arranged in the area to be arranged is determined.
[0183] In one embodiment, determining the arrangement of the secondary light sources to be arranged in the area to be arranged includes:
[0184] Select a preset arrangement corresponding to the lighting design style;
[0185] Or, get a custom arrangement.
[0186] In one embodiment, determining the initial position of the secondary light source to be arranged in the area to be arranged according to the arrangement mode and the arrangement parameters includes:
[0187] Determine the number of the secondary light sources according to at least one of the illumination requirement, the light source utilization coefficient, the maintenance coefficient in the arrangement parameters of the secondary light sources, the work surface area in the area information, and the attributes of the secondary light sources;
[0188] The initial position of the auxiliary light source is determined according to at least one of the number of the auxiliary light sources, the spacing in the arrangement, the distance from the wall, and the area size in the area information.
[0189] In one embodiment, if Fig.10 As shown, the illumination determination module 902 includes:
[0190] A query submodule 1003 is used to query the scene illumination configuration table according to the type of the area to be lit to obtain the working surface of the area to be lit;
[0191] A calculation submodule 1004 is used to divide the working surface into grids to obtain grid points, and calculate the illumination of all the grid points according to the initial position of the light source;
[0192] The prediction submodule 1005 is used to calculate the average illumination and illumination uniformity of the reference plane according to the illumination of all grid points to obtain the predicted illumination parameters.
[0193] In one embodiment, if Fig.10 As shown, the target position determination module 903 includes:
[0194] A comparison submodule 1006, configured to query the scene illumination configuration table to obtain the standard value of the illumination parameter according to the type of the area to be lit, and compare the standard value of the illumination parameter with the predicted illumination parameter;
[0195] A repositioning submodule 1007, configured to re-determine the initial position of the light source when the predicted illumination parameter does not meet the illumination parameter standard value;
[0196] The output submodule 1008 is used to output the current initial position of the light source as the target position of the light source when the predicted lighting parameter meets the standard value of the lighting parameter.
[0197] In one embodiment, if Fig.10 As shown, the device also includes:
[0198] The division module 1009 is used to divide the area according to the apartment plan, obtain the area to be lighted, and obtain the area parameters of the area to be lighted;
[0199] Alternatively, the division module 1009 is further used to divide the area according to the lighting plan, obtain the area to be lit, and set the area parameters of the area to be lit.
[0200] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0201] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0202] Fig.11 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Fig.11As shown, the electronic device includes: a memory 1110 and a processor 1120, and the memory 1110 stores a computer program that can be run on the processor 1120. The number of memories 1110 and processors 1120 can be one or more. The memory 1110 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided by the above method embodiment. The electronic device may also include: a communication interface 1130, which is used to communicate with external devices and perform data exchange transmission.
[0203] If the memory 1110, the processor 1120 and the communication interface 1130 are implemented independently, the memory 1110, the processor 1120 and the communication interface 1130 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0204] Optionally, in a specific implementation, if the memory 1110, the processor 1120 and the communication interface 1130 are integrated on a chip, the memory 1110, the processor 1120 and the communication interface 1130 can communicate with each other through an internal interface.
[0205] It should be understood that the processor may be a central processing unit (CPU), or 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. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0206] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory 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 include 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 include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).
[0207] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it 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. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure 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 a website site, computer, server or data center by wired (for example: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (for example: infrared, Bluetooth, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. It is worth noting that the computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, a non-transient storage medium.
[0208] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0209] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0210] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B. "And / or" in this article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0211] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.
[0212] The above description is only an exemplary embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An automatic lighting method, comprising: Determine the initial position of one or more light sources to be arranged in the area to be lit according to the area parameters, illumination requirements and the type of light sources to be arranged in the area to be lit; Determining predicted illumination parameters in the area to be lit according to the initial positions of the one or more light sources in the area to be lit; The target positions of the one or more light sources to be arranged are determined by comparing the predicted lighting parameters and the standard values of the lighting parameters in the area to be arranged.
2. The method according to claim 1, wherein: According to the area information of the area to be lit, the illumination requirement and the type of light source to be arranged, determining the initial position of one or more light sources to be arranged in the area to be lit, including: Determining a lighting design style according to the area information, the illumination requirement and the type of light source to be arranged; According to the lighting design style, an initial position of the light source in the area to be lit is determined.
3. The method according to claim 2, wherein: The light source includes a main light source and / or a secondary light source. According to the lighting design style, determining the initial position of the light source in the area to be lit includes at least one of the following: In the case where the lighting design style is a main light source design and a main light source already exists in the area to be lighted, determining an initial position of the secondary light source to be arranged in the area to be lighted; When the lighting design style is a main light source design and there is no main light source in the area to be lit, executing a main light source lighting algorithm to determine an initial position of the main light source; In the case where the lighting design style is a design without a main light source, the initial position of the auxiliary light source to be arranged in the area to be lit is determined.
4. The method according to any one of claims 1 to 3, wherein: Determining the initial position of the secondary light source to be arranged in the area to be arranged includes: Determine the arrangement of the secondary light sources to be arranged in the area to be arranged; According to the arrangement mode and the arrangement parameters, the initial position of the secondary light source to be arranged in the area to be arranged is determined.
5. The method according to any one of claims 1 to 4, wherein: Determining the arrangement of the auxiliary light sources to be arranged in the area to be arranged includes: Select a preset arrangement that corresponds to your lighting design style; Or, get a custom arrangement.
6. The method according to any one of claims 1 to 4, wherein: According to the arrangement mode and the arrangement parameters, determining the initial position of the auxiliary light source to be arranged in the area to be arranged includes: Determine the number of the secondary light sources according to at least one of the illumination requirement, the light source utilization coefficient, the maintenance coefficient, the work surface area in the area information, and the attributes of the secondary light sources in the arrangement parameters of the secondary light sources; The initial position of the auxiliary light source is determined according to at least one of the number of the auxiliary light sources, the spacing in the arrangement, the distance from the wall, and the area size in the area information.
7. The method according to any one of claims 1 to 4, wherein: Determining predicted illumination parameters in the area to be lit according to the initial positions of the one or more light sources in the area to be lit, including: According to the type of the area to be lit, query the scene illumination configuration table to obtain the working surface of the area to be lit; Dividing the working surface into grids to obtain grid points, and calculating the illumination of all the grid points according to the initial positions of the light sources; The average illumination and illumination uniformity of the working surface are calculated according to the illumination of all grid points to obtain the predicted illumination parameters.
8. The method according to any one of claims 1 to 7, wherein: Determining the target positions of the one or more light sources to be arranged according to the predicted lighting parameters in the area to be arranged with the standard values of the lighting parameters includes: According to the type of the area to be lit, query the scene illumination configuration table to obtain the standard value of the lighting parameter, and compare the standard value of the lighting parameter with the predicted lighting parameter; When the predicted illumination parameter does not meet the illumination parameter standard value, re-determining the initial position of the light source; When the predicted illumination parameter meets the illumination parameter standard value, the current initial position of the light source is output as the target position of the light source.
9. The method according to any one of claims 1 to 3, further comprising: Divide the area according to the apartment plan to obtain the area to be lighted, and obtain the area parameters of the area to be lighted; Alternatively, the area is divided according to the lighting plan to obtain the area to be lit, and the area parameters of the area to be lit are set.
10. An automatic lighting device, comprising: An initial position determination module, used to determine the initial position of one or more light sources to be arranged in the area to be arranged according to the area parameters, illumination requirements and types of light sources to be arranged in the area to be arranged; An illumination determination module, configured to determine predicted illumination parameters in the area to be illuminated according to the initial positions of the one or more light sources in the area to be illuminated; The target position determination module is used to determine the target position of the one or more light sources to be arranged according to the comparison between the predicted lighting parameters and the standard values of the lighting parameters in the area to be arranged.
11. The device according to claim 10, wherein: The initial position determination module comprises: A style determination submodule, used to determine the lighting design style according to the area information, the illumination requirement and the type of light source to be arranged; The position determination submodule is used to determine the initial position of the light source in the area to be lit according to the lighting design style.
12. The device according to claim 11, wherein The light source includes a main light source and / or a secondary light source, and the position determination submodule is further used for at least one of the following: In the case where the lighting design style is a main light source design and a main light source already exists in the area to be lighted, determining an initial position of the secondary light source to be arranged in the area to be lighted; When the lighting design style is a main light source design and there is no main light source in the area to be lit, executing a main light source lighting algorithm to determine an initial position of the main light source; In the case where the lighting design style is a design without a main light source, the initial position of the auxiliary light source to be arranged in the area to be lit is determined.
13. The device according to any one of claims 10 to 12, wherein: Determining the initial position of the secondary light source to be arranged in the area to be arranged includes: Determine the arrangement of the secondary light sources to be arranged in the area to be arranged; According to the arrangement mode and the arrangement parameters, the initial position of the secondary light source to be arranged in the area to be arranged is determined.
14. The device according to any one of claims 10 to 13, wherein: Determining the arrangement of the auxiliary light sources to be arranged in the area to be arranged includes: Select a preset arrangement that corresponds to your lighting design style; Or, get a custom arrangement.
15. The device according to any one of claims 10 to 13, wherein: According to the arrangement mode and the arrangement parameters, determining the initial position of the auxiliary light source to be arranged in the area to be arranged includes: Determine the number of the secondary light sources according to at least one of the illumination requirement, the light source utilization coefficient, the maintenance coefficient, the work surface area in the area information, and the attributes of the secondary light sources in the arrangement parameters of the secondary light sources; The initial position of the auxiliary light source is determined according to at least one of the number of the auxiliary light sources, the spacing in the arrangement, the distance from the wall, and the area size in the area information.
16. The device according to any one of claims 10 to 13, wherein: The illumination determination module comprises: A query submodule, used for querying the scene illumination configuration table according to the type of the area to be lit to obtain the working surface of the area to be lit; A calculation submodule, configured to divide the working surface into grids to obtain grid points, and calculate the illumination of all the grid points according to the initial position of the light source; The prediction submodule is used to calculate the average illumination and illumination uniformity of the work surface according to the illumination of all grid points to obtain the predicted illumination parameters.
17. The device according to any one of claims 10 to 16, wherein: The target position determination module comprises: A comparison submodule, used for querying the scene illumination configuration table to obtain the standard value of the illumination parameter according to the type of the area to be lit, and comparing the standard value of the illumination parameter with the predicted illumination parameter; A repositioning submodule, configured to re-determine the initial position of the light source when the predicted illumination parameter does not meet the illumination parameter standard value; The output submodule is used to output the current initial position of the light source as the target position of the light source when the predicted lighting parameter meets the standard value of the lighting parameter.
18. The device according to any one of claims 10 to 12, further comprising: A division module is used to divide the area according to the apartment plan, obtain the area to be lighted, and obtain the area parameters of the area to be lighted; Alternatively, the division module is further used to divide the area according to the lighting plan, obtain the area to be lit, and set the area parameters of the area to be lit.
19. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.
20. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-9.
21. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 9.