CN114567955A - Indoor light rendering method and device, electronic equipment and storage medium - Google Patents

Indoor light rendering method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114567955A
CN114567955A CN202210178197.2A CN202210178197A CN114567955A CN 114567955 A CN114567955 A CN 114567955A CN 202210178197 A CN202210178197 A CN 202210178197A CN 114567955 A CN114567955 A CN 114567955A
Authority
CN
China
Prior art keywords
target
brightness value
area
determining
light source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210178197.2A
Other languages
Chinese (zh)
Other versions
CN114567955B (en
Inventor
梁兴仑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210178197.2A priority Critical patent/CN114567955B/en
Publication of CN114567955A publication Critical patent/CN114567955A/en
Application granted granted Critical
Publication of CN114567955B publication Critical patent/CN114567955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Architecture (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the disclosure provides an indoor light rendering method, an indoor light rendering device, an electronic device and a storage medium, wherein the method comprises the following steps: determining an initial brightness value of a target light source according to the decoration parameters of the target deployment area; determining a brightness value to be adjusted corresponding to a current indoor sampling point under the action of at least one initial brightness value, and determining a brightness value to be corrected of a corresponding target deployment area based on at least one brightness value to be adjusted belonging to the same target deployment area; and determining a target brightness value according to the brightness value to be corrected and the preset brightness value of the target deployment area. This scheme has solved and needs artifical participation light source deployment and luminance value adjustment among the prior art, has the higher problem of error rate and cost of labor, and is further, can't carry out the problem of automatic adaptation to each house type, has realized the automation of indoor light and has played up, has not only reduced the human cost, has still improved and has played up efficiency and efficiency, and is further, has still improved the light and has played up the technological effect of universality.

Description

Indoor light rendering method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of image processing, and in particular relates to an indoor light rendering method and device, electronic equipment and a storage medium.
Background
In the process of off-line rendering of indoor light, reasonable light configuration plays a crucial role in final rendering quality. However, in the current process of off-line rendering of indoor light, for a specific house type, a relevant user needs to manually set a light source in a room through relevant software and adjust corresponding parameters.
It can be understood that in the prior art, light rendering needs manual participation, which not only has the problem of low efficiency, but also has the problem of high error rate. Furthermore, the existing house source patterns have certain differences, and need to be deployed one by one according to corresponding house type graphs based on the above-mentioned mode, so that the problems of low efficiency, poor universality and low popularization degree exist.
Disclosure of Invention
The embodiment of the disclosure provides an indoor light rendering method and device, electronic equipment and a storage medium, so as to realize automatic rendering of indoor light, improve rendering effect and save human resources.
In a first aspect, an embodiment of the present disclosure provides an indoor light rendering method, where the method includes:
determining a target deployment area for deploying a target light source according to a target household type graph, and determining an initial brightness value of the target light source according to decoration parameters of the target deployment area;
aiming at each indoor sampling point, determining a brightness value to be adjusted corresponding to the current indoor sampling point under the action of at least one initial brightness value, and determining a brightness value to be corrected of a corresponding target deployment area based on at least one brightness value to be adjusted belonging to the same target deployment area;
and adjusting the target light source of the target deployment area from the initial brightness value to a target brightness value according to the brightness value to be corrected and a preset brightness value of the target deployment area.
In a second aspect, an embodiment of the present disclosure further provides an indoor light rendering apparatus, including:
the initial brightness value determining module is used for determining a target deployment area for deploying the target light source according to the target house type graph and determining an initial brightness value of the target light source according to decoration parameters of the target deployment area;
the device comprises a to-be-corrected brightness value determining module, a to-be-corrected brightness value determining module and a correcting module, wherein the to-be-corrected brightness value determining module is used for determining a to-be-adjusted brightness value corresponding to a current indoor sampling point under the action of at least one initial brightness value aiming at each indoor sampling point, and determining a to-be-corrected brightness value of a corresponding target deployment area based on at least one to-be-adjusted brightness value belonging to the same target deployment area;
and the brightness adjusting module is used for adjusting the target light source of the target deployment area from an initial brightness value to a target brightness value according to the brightness value to be corrected and a preset brightness value of the target deployment area.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the indoor light rendering method according to any one of the embodiments of the present disclosure.
In a fourth aspect, the embodiments of the present disclosure also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the indoor light rendering method according to any one of the embodiments of the present disclosure.
According to the technical scheme, the target deployment area for deploying the target light source is determined according to the target household type graph, the initial brightness value of the target light source is determined according to the decoration parameters of the target deployment area, the brightness value to be adjusted of each indoor sampling point is determined under the influence of the initial brightness value, and the brightness value to be corrected of the corresponding target deployment area is determined based on at least one brightness value to be adjusted belonging to the same target deployment area. The target brightness value of the target deployment area can be determined according to a plurality of brightness values to be corrected and preset brightness values of the target deployment area, indoor light rendering is carried out based on the target brightness value, the problems that in the prior art, manual participation in light source deployment and brightness value adjustment is needed, error rate and labor cost are high are solved, furthermore, automatic adaptation to each house type cannot be carried out, automatic rendering of indoor light is achieved, labor cost is reduced, rendering efficiency and efficiency are improved, and further, the technical effect of light rendering universality is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a schematic flow chart of an indoor light rendering method according to an embodiment of the disclosure;
fig. 2 is a schematic flow chart of an indoor light rendering method according to a second embodiment of the disclosure;
fig. 3 is a schematic diagram of a current indoor connected domain provided in a second embodiment of the disclosure;
fig. 4 is a schematic view of a current indoor connected domain provided in a second embodiment of the disclosure;
fig. 5 is a schematic flow chart of an indoor light rendering method according to a third embodiment of the disclosure;
fig. 6 is a schematic flow chart of an indoor light rendering method according to a fourth embodiment of the disclosure;
fig. 7 is a block diagram illustrating an indoor light rendering apparatus according to a fifth embodiment of the disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to a sixth embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units. It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Before the technical solution is introduced, an application scenario may be exemplarily described. The technical scheme can be applied to any scene needing indoor light rendering, for example, when house source display is carried out through an application program, indoor light of each target house source can be rendered. Also can be after room source image is uploaded to certain application program, can carry out indoor light for each room source and play up based on this technical scheme to obtain the room source image that shows at application program, not only improved the aesthetic property that the room source demonstrateed, still improved the attractiveness to browsing the room source user.
That is to say, the technical scheme provided by the embodiment of the present disclosure can be applied to any scene that needs to be subjected to room source light rendering, so as to achieve the effect of performing visual simulation on indoor light.
Example one
Fig. 1 is a schematic flow diagram of an indoor light rendering method according to an embodiment of the present disclosure, where the present embodiment may be applied to any indoor light rendering scene, such as various house-viewing software, or any indoor decoration design scene, and the method may be executed by an indoor light rendering device, where the device may be implemented in the form of software and/or hardware, and the hardware may be an electronic device, such as a mobile terminal, a PC terminal, or a server. Any indoor light rendering scene is usually realized by cooperation of a client and a server, and the method provided by the embodiment can be executed by a server, the client, or the cooperation of the client and the server.
As shown in fig. 1, the method of the present embodiment includes:
s110, determining a target deployment area for deploying the target light source according to the target house type graph, and determining an initial brightness value of the target light source according to decoration parameters of the target deployment area.
The house type graph generated according to the vector house type description file is used as a target house type graph, and it can be understood that the target house type graph can be a layout graph of a target house in a plane space. The target house type graph can be used for describing the size and relative position of each independent space in the target house, and the information of the use function, the area size and the like of each area of the target house type can be displayed on the target house type graph. The target light source may be understood as a light source that needs to be deployed in a corresponding area within the target house type figure. The target deployment area may be an area for deploying a target light source. The decoration parameters can be understood as parameters corresponding to different decoration styles, namely, the decoration parameters are decoration styles, and the decoration styles can comprise industrial wind, simple wind, small clear styles, cool tone styles, warm tone styles and the like. A mapping relationship between the different decorating parameters and the corresponding initial luminance values may be established in advance to determine the initial luminance values corresponding to the decorating parameters based on the mapping relationship. For example, the decoration parameter corresponds to industrial wind, and the initial brightness value can be b 1; the initial brightness value corresponding to the decoration parameter corresponding to the reduced wind may be set to b 2. It should be noted that, because different users have different decoration preferences for rooms, different decoration preferences result in different light effects required in different houses, and therefore, when the decoration parameters are different, the rendering effect for indoor light is also different. The initial brightness value may be an initial brightness value set for the target light source. The initial brightness value is determined according to different decorating parameters, namely, the initial brightness values corresponding to different decorating parameters are different.
It should be noted that, the target house type diagram may include a plurality of rooms, and there may be some difference in decoration parameters of different rooms, so that there may also be some difference in initial brightness values of the rooms in the target house type diagram, and whether the initial brightness values are the same or not and match with the corresponding decoration parameters. The decoration parameters correspond to the uploaded vector house type files.
It should be noted that the decoration parameter may be automatically identified by the server or may be edited by the user.
Specifically, a target house type diagram of the target house source is obtained according to a preset method, and a target deployment area where the light source needs to be deployed may be determined according to description information in the target house type diagram, for example, the target deployment area of the target light source may be determined according to size information and position information of each independent space of the target house source in the target house type diagram. After the target deployment area of the target light source is determined, the initial brightness value of the target light source deployed on the target deployment area can be determined according to the decoration parameters of the current target deployment area. It will be appreciated that the user may choose to select different decor styles in different rooms, and therefore the decor parameters for different regions may be different, and thus the initial brightness values for different target deployment regions within the same house may be different.
S120, aiming at each indoor sampling point, determining a brightness value to be adjusted corresponding to the current indoor sampling point under the action of at least one initial brightness value, and determining a brightness value to be corrected of a corresponding target deployment area based on at least one brightness value to be adjusted belonging to the same target deployment area.
The indoor sampling points may be randomly and uniformly generated based on a mesh network structure on the surface of the indoor wall of the target house, and it should be noted that the manner of determining the brightness value to be adjusted of each sampling point is the same, and the manner of determining the initial brightness value of one of the sampling points is described here as an example. The brightness value to be adjusted may be a brightness value of the current indoor sampling point under the action of the initial brightness value of the target light source. The brightness value to be corrected is determined according to the brightness value to be adjusted of the indoor sampling points in the same deployment area, for example, the brightness values to be adjusted corresponding to a plurality of indoor sampling points may be summed, the average brightness value of the indoor sampling points is obtained according to the summation result and the number of the indoor sampling points in the current deployment area, and the average brightness value of the indoor sampling points is used as the brightness value to be corrected in the current deployment area. For another example, the weighted value of each indoor sampling point is determined, and the brightness value to be corrected is determined according to the brightness value to be adjusted of each indoor sampling point and the corresponding weighted value. The determination of the weight value can be determined according to the information of the distance between the indoor sampling point and the light source, the longer the distance is, the smaller the weight value is, and conversely, the larger the weight value is.
S130, adjusting the target light source of the target deployment area from an initial brightness value to a target brightness value according to the brightness value to be corrected and a preset brightness value of the target deployment area.
The preset brightness value can be understood as a brightness value that the target deployment area can reach before indoor light rendering is performed. The target brightness value may be a brightness value obtained by adjusting the initial brightness value according to a relationship between the brightness value to be corrected and a preset brightness value.
Specifically, after the brightness value to be corrected of the target deployment area is obtained, the target light source of the target deployment area is adjusted from the initial brightness value to the target brightness value according to the preset brightness value and the brightness value to be corrected. For example, if the initial brightness value of the target deployment area is B, it is determined that the brightness value to be modified of the target deployment area is a, and the preset brightness value of the target deployment area is 2A, the current adjustment coefficient may be obtained to be 2 based on the obtained brightness value to be modified and the preset brightness value, and the initial brightness value is adjusted from B to 2B based on the adjustment coefficient 2.
According to the technical scheme, the target deployment area for deploying the target light source is determined according to the target household type graph, the initial brightness value of the target light source is determined according to the decoration parameters of the target deployment area, the brightness value to be adjusted of each indoor sampling point is determined under the influence of the initial brightness value, and the brightness value to be corrected of the corresponding target deployment area is determined based on at least one brightness value to be adjusted belonging to the same target deployment area. The method and the device have the advantages that the target brightness value of the target deployment area can be determined according to the plurality of to-be-corrected brightness values and the preset brightness values of the target deployment area, indoor light rendering is conducted based on the target brightness value, the problems that in the prior art, manual participation in light source deployment and brightness value adjustment is needed, error rates and labor cost are high are solved, further, automatic adaptation to each household type cannot be conducted are solved, automatic rendering of indoor light is achieved, labor cost is reduced, rendering efficiency and efficiency are improved, and further, the technical effect of light rendering universality is improved.
Example two
Fig. 2 is a schematic flow chart of an indoor light rendering method provided in the second embodiment of the present disclosure, and on the basis of the foregoing embodiment, the determination of the target deployment area is further refined, and for a specific implementation manner thereof, reference may be made to the technical solution in this embodiment. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method of the present embodiment includes:
and S210, generating the target house type graph according to the received vector house type description file.
Wherein, a vector house type description file can be understood as a file for describing house type information. The format of the vector house type description file can be json format, and can also be other formats as long as a corresponding house type graph can be generated based on the vector house type description file.
Specifically, the vector house type description file may use a coordinate system to locate the house type information, may use a coordinate form to record the contour points of the rooms in the house, and arrange the contour points in the rooms clockwise, and the contour points may be understood as the vertices of the room contour, and may use line segments of different colors to describe the information of the wall in the room, for example, a black line segment represents the wall, and a blue line segment represents the window. The blank area between the black line segments may represent a door connecting two rooms or connecting the inside and outside of a room.
Specifically, after the vector user type description file is received, the vector user type description file may be analyzed according to a method for generating the vector user type description file preset in the application program, and then a corresponding target user type graph is generated. The target floor plan may include at least one room, and each room may be understood as an independent connected domain.
S220, determining at least one light source area to be deployed according to the connected domain in the target house type graph.
The independent room in the house type figure is used as a connected domain, for example, the independent room can be a bedroom, a bathroom and the like. The area constituted by the dependent sections may be an area constituted by dependent areas such as a living room, a restaurant, and a corridor, as one connected area. The technical scheme provided by the embodiment can be collected by indoor light source deployment, namely indoor light rendering, of independent areas or non-independent areas.
On the basis of the above technical solution, the determining at least one light source area to be deployed according to the connected domain in the target floor plan includes: if the connected domain is in a regular shape, determining that the connected domain is the light source area to be deployed; and if the connected domain is in an irregular shape, dividing the connected domain into a plurality of convex polygons to obtain the light source area to be deployed.
Before the target deployment area is determined, the light source areas to be deployed can be determined according to the target house type diagram, and the target deployment area is determined by further combining the information of the light source areas to be deployed.
Regular shapes are understood to be shapes that are approximately rectangular, triangular, circular, etc. Each individual area may be taken as an area where a light source is to be deployed. The dependent region may be divided into a plurality of convex polygons, each of which is taken as one light source region to be deployed, see reference numerals in fig. 3 or fig. 4, each of which corresponds to a convex polygon, i.e., corresponds to a light source region to be deployed. And preliminarily determining the area where the light source needs to be deployed as the area of the light source to be deployed.
In the scheme, the advantage of determining the light source area to be deployed is that the deployed target light sources can cover the whole house source under the condition of saving the number of the target light sources.
And S230, determining a target deployment area for deploying the target light source according to the area information of each area of the light source to be deployed.
The area information may be related information of the light source area to be deployed, and the area information may include at least one of position information, area information, decoration parameter information, and attribute information of the light source area to be deployed.
In the technical solution, the specific determination of the target deployment area from the to-be-deployed area may be: the area information includes area areas, and the target deployment area for deploying the target light source is determined according to the area information of each area of the light source to be deployed, including: taking the minimum circumscribed rectangle of the light source area to be deployed, of which the effective action area is not determined and the area is the largest, as the current effective action area; determining the overlapping area of the current effective region and each effective region to be determined in the effective region list, and determining the proportion information of the overlapping area in the current effective region; and if the occupation ratio information is smaller than a preset occupation ratio threshold value, determining the light source area to be deployed with the largest current area as a target deployment area, and updating the current effective action area into an effective area list as an effective area to be determined.
Wherein the effective active area is a minimum rectangle including the area to be deployed. It can also be: and taking the area which can be influenced by the light source in the area of the light source to be deployed as an effective action area. The minimum bounding rectangle may be the minimum rectangle that contains the area of the light source to be deployed. Determining the smallest rectangle may be: and determining each vertex coordinate of each area to be deployed according to the coordinate position information in the vector house type description file, and further generating a minimum circumscribed rectangle corresponding to the current area to be deployed according to the vertex coordinates.
Wherein, what is stored in the valid area list is: a list of light source area information to be deployed for the active area has been determined. The overlapping area can be understood as the overlapping area of the effective scope of the current region to be deployed and the effective scopes of all the regions to be deployed before. The proportion information can be understood as proportion information of the area of the overlapping region and the effective scope area of the current light source region to be deployed. The preset duty ratio threshold may be preset by the user according to actual conditions, and for example, the preset duty ratio threshold may be set to 0.67.
Specifically, after a target area for deploying the target light source is determined based on the connected domain in the target house type graph, the target deployment area for deploying the target light source is determined according to the area information of the target deployment area. The target deployment region may be determined according to area information in the region information. For example, fig. 3 is a schematic view of a current indoor connected domain provided by a second embodiment of the present disclosure, as shown in fig. 3, an irregular connected domain is divided into A, B, C, D four light source regions to be deployed, a specific processing order is determined according to area information of the four light source regions to be deployed, and a light source region to be deployed with a large area is preferentially processed, so that a region C is preferentially processed, since the region C is a region with a largest area, and other regions are not processed before the region C, only a minimum bounding rectangle of the region C needs to be obtained, the minimum bounding rectangle of the region C is used as an effective active region of a light source in the region C, and the effective active region of the region C is stored in an effective region list. And then, processing the area A according to the sequence of the areas from large to small, similarly obtaining the minimum circumscribed rectangle of the area A as an effective action area of the light source in the area A, wherein the area C is processed before the area A, so that the effective action area of the area C needs to be obtained from an effective area list, calculating the overlapping area of the effective action area of the area C and the effective action area of the area A, and if the ratio of the overlapping area to the effective action area of the area A is not more than a preset threshold value, determining the area A as a target deployment area. By analogy, when processing the B region, it is necessary to calculate the overlapping area of the effective region of the B region and the effective region of the C region and the a region, and determine the ratio of the overlapping area to the effective region of the B region. When the D region is processed, the overlapping area of the effective action area of the D region and the effective action areas of the C region, the A region and the B region needs to be calculated, the ratio of the overlapping area to the effective action area of the D region is calculated, and then whether the D region is the target deployment region is determined according to the ratio. And repeatedly executing the steps, and taking the area of the light source area to be deployed with the area ratio smaller than the preset threshold value as a target deployment area.
Fig. 4 is a schematic view of a current indoor connected domain provided in the second embodiment of the present disclosure, and in order to more clearly understand how to determine a target deployment region, the irregular connected domain may be further described with reference to fig. 4, which is divided into three light source regions to be deployed, namely, a region E, a region F, and a region G. And processing each light source to be deployed according to the area information of the light source region to be deployed. Preferentially obtaining an effective action area of the area F, determining that the overlapping area ratio is 0, taking the area F as a target deployment area, and updating an action area range into an effective action list. Next, the overlapping area of the effective coverage area of the area G and the effective coverage area of the area F is determined, and if the occupancy information is smaller than the preset occupancy threshold (here, the preset occupancy threshold is assumed to be 0.67), the area G is also used as the target deployment area, and the effective coverage area corresponding to the area G is updated to the effective coverage list. Finally, processing the area E, obviously, the effective active area of the area E is completely covered by the effective active area of the area F, that is, the occupation ratio information of the area E is 1, which is greater than the preset threshold of 0.67, so that there is no need to deploy a light source in the area E, and at the same time, the light source is not updated into the effective active list.
It should also be noted that, for the independent space, the corresponding light source may be directly deployed, and the target deployment area does not need to be determined in the above manner, that is, the target deployment area is determined only for the connected domain with an irregular shape.
The target deployment area is determined in the above manner, so that not only is the target light source saved, but also the target light source can cover the whole room area.
After the target deployment area is determined, corresponding light sources need to be deployed for the target deployment area, and in the technical scheme, the deploying of the light sources for the target deployment area may be: and determining target position information and target shape information of the target light source to be deployed according to the current effective action area corresponding to the target deployment area and a preset scaling coefficient.
The scaling factor may be understood as a factor for processing the current effective region, for example, the scaling factor may be set to 0.1, that is, the length and width of the effective region (the minimum bounding rectangle) are reduced to 0.1 times of the original length and width, and the deployment position of the target light source is obtained, that is, the central point of the minimum bounding rectangle is the deployment position. Accordingly, the shape of the target light source is mostly rectangular.
Specifically, after the target deployment area is determined, the current effective action area is scaled according to a preset scaling coefficient, and then position information for deploying the target light source and shape information of the target light source are determined. For example, the current effective region is reduced according to the scaling factor, and it should be noted that the scaling factor changes only the size of the side length of the current effective region and does not change the position information of the current effective region, that is, the intersection of the diagonal line of the current effective region and the focal point of the diagonal line of the rectangle obtained after reduction are located at the same position, and the position information and the shape information of the target light source can be obtained only by reducing the current effective region according to the scaling factor.
S240, determining an initial brightness value of the target light source according to the decoration parameters of the target deployment area.
On the basis of the above technical solution, the determining an initial brightness value of a target light source according to the decoration parameter of the target deployment area includes: and determining an initial brightness value corresponding to the target light source in the target deployment area according to the decoration parameters of the target deployment area and a mapping relation table between the decoration parameters and the illumination brightness, which is established in advance.
The mapping relation table between the decoration parameters and the illumination brightness can be obtained in advance according to influence coefficients of different decoration styles on the brightness in the room, and it should be noted that the influence coefficients of different decoration styles on indoor light are different, for example, the decoration with extremely simple wind can make the indoor light appear brighter, and the decoration with vintage style can make the indoor light appear darker and the like. Namely, the corresponding relation between various decoration parameters and the illumination brightness is preset, so that the specific initial brightness value is determined according to the decoration parameters of each room.
The advantage of determining the initial brightness value is that a general initial brightness value for each room can be predetermined, and then adjustment is performed on the basis of the initial brightness value, so that convenience in determining the target brightness value is improved.
According to the technical scheme, the target deployment area for deploying the target light source is determined according to the target household type graph, the initial brightness value of the target light source is determined according to the decoration parameters of the target deployment area, the brightness value to be adjusted of each indoor sampling point is determined under the influence of the initial brightness value, and the brightness value to be corrected of the corresponding target deployment area is determined based on at least one brightness value to be adjusted belonging to the same target deployment area. The target brightness value of the target deployment area can be determined according to a plurality of brightness values to be corrected and preset brightness values of the target deployment area, indoor light rendering is carried out based on the target brightness value, the problems that in the prior art, manual participation in light source deployment and brightness value adjustment is needed, error rate and labor cost are high are solved, furthermore, automatic adaptation to each house type cannot be carried out, automatic rendering of indoor light is achieved, labor cost is reduced, rendering efficiency and efficiency are improved, and further, the technical effect of light rendering universality is improved.
EXAMPLE III
Fig. 5 is a schematic flow chart of an indoor light rendering method provided in the third embodiment of the present disclosure, and based on the foregoing embodiment, an initial brightness value of a target deployment area is adjusted to a target brightness value to be further refined, and a specific implementation manner thereof may refer to the technical solution in this embodiment. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 5, the method of the present embodiment includes:
s310, determining a target deployment area for deploying the target light source according to the target house type graph, and determining an initial brightness value of the target light source according to decoration parameters of the target deployment area.
S320, generating a plurality of sampling points on the wall surface corresponding to the target house type graph to serve as indoor sampling points; and dispersing the target light source into a plurality of light source discrete points so that the light source discrete points act on corresponding indoor sampling points under the condition of the initial brightness value to obtain brightness values to be adjusted corresponding to the indoor sampling points.
The light source discrete point can be understood as a light source point obtained by discretizing a target light source. The brightness value of each discrete point of the light source is consistent with the initial brightness value of the target light source. And performing wall mesh processing on the target house-type diagram to obtain a three-dimensional structure schematic diagram. And randomly generating a plurality of sampling points on the inner surface of the wall body as indoor sampling points.
It can be understood that: the shapes of the target light sources are different, the indoor sampling points are influenced by the target light sources differently, and the target light sources can be subjected to discretization treatment to obtain light source discrete points. And determining the brightness value to be adjusted corresponding to each indoor sampling point under the action of the initial brightness value of each light source discrete point.
It should be noted that, for each indoor sampling point, the luminance contribution value of each discrete point of the light source to the current indoor sampling point may be calculated, so as to obtain a plurality of luminance contribution values of the current indoor sampling point. The number of the brightness contribution values of each indoor sampling point is consistent with the number of the discrete points of the light source.
On the basis of the above technical solution, the determining a brightness value to be adjusted corresponding to the current indoor sampling point under the action of at least one initial brightness value includes: and aiming at each light source discrete point, determining brightness contribution information corresponding to the current indoor sampling point by the current light source discrete point under the condition of corresponding initial brightness value, and determining a brightness value to be adjusted of the current indoor sampling point based on the brightness contribution information.
The brightness contribution information comprises light ray shielding information, brightness attenuation information, and information of an included angle between an incident light ray formed by the current light source discrete point and the current indoor sampling point and a normal vector of a wall body to which the current indoor sampling point belongs.
Wherein, the shading can be understood as that the discrete points of the light source cannot penetrate through the wall body to irradiate the indoor discrete points of another room. If this occurs, the luminance contribution value can be determined to be 0. The luminance decay information may be understood as luminance values that are spatially decaying with a decay factor. The luminance contribution information after luminance decay may be determined from the distance information and the decay coefficient of the light source discrete point and the indoor discrete point. The angle information is used to determine reflection information, i.e. the luminance value contributed by the reflection.
Specifically, for each indoor discrete point, the contribution of each light source discrete point to the brightness value may be determined according to the above factors. Based on the mode, the brightness contribution of each light source discrete point to the indoor discrete point is determined so as to obtain the brightness value to be adjusted.
S330, aiming at each indoor sampling point, determining a brightness value to be adjusted corresponding to the current indoor sampling point under the action of at least one initial brightness value, and determining a brightness value to be corrected of a corresponding target deployment area based on at least one brightness value to be adjusted belonging to the same target deployment area.
It should be noted that, for an indoor sampling point, the brightness value to be adjusted is the brightness value obtained by the brightness contribution when each discrete light source point acts on the current indoor sampling point. And for each target deployment area, acquiring brightness values to be adjusted of each indoor sampling point in the current target deployment area. And accumulating the brightness values to be adjusted to obtain a total brightness value. And determining a brightness value average value according to the total brightness value and the number of indoor discrete points in the current target deployment area, and taking the brightness average value as a brightness value to be corrected.
S340, adjusting the target light source of the target deployment area from an initial brightness value to a target brightness value according to the brightness value to be corrected and a preset brightness value of the target deployment area.
Specifically, for each target deployment area, the brightness adjustment coefficient may be determined according to the brightness value to be corrected and the preset brightness value of the current target deployment area. The coefficient may be a positive value or a negative value. According to the brightness adjustment coefficient, the initial brightness value of the current target deployment area can be corrected to obtain a target brightness value.
That is, the requirements of each target deployment region are adjusted from the original initial brightness value to the corresponding target brightness value. It should be noted that the target brightness values corresponding to each target deployment area (room) may be the same or different, and whether they are the same is consistent with the determined result.
After the target brightness value is determined, light rendering can be performed on the corresponding target deployment area based on the target brightness value.
According to the technical scheme, the target deployment area for deploying the target light source is determined according to the target household type graph, the initial brightness value of the target light source is determined according to the decoration parameters of the target deployment area, the brightness value to be adjusted of each indoor sampling point is determined under the influence of the initial brightness value, and the brightness value to be corrected of the corresponding target deployment area is determined based on at least one brightness value to be adjusted belonging to the same target deployment area. The target brightness value of the target deployment area can be determined according to a plurality of brightness values to be corrected and preset brightness values of the target deployment area, indoor light rendering is carried out based on the target brightness value, the problems that in the prior art, manual participation in light source deployment and brightness value adjustment is needed, error rate and labor cost are high are solved, furthermore, automatic adaptation to each house type cannot be carried out, automatic rendering of indoor light is achieved, labor cost is reduced, rendering efficiency and efficiency are improved, and further, the technical effect of light rendering universality is improved.
Example four
Fig. 6 is a schematic flow chart of an indoor light rendering method according to a fourth embodiment of the present disclosure, and based on the foregoing embodiment, further refinement is performed on adjusting an initial brightness value of a target deployment area to a target brightness value, and a specific implementation manner thereof may refer to the technical solution of the present embodiment. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 6, the method of the present embodiment includes:
and S410, determining a plurality of target indoor sampling points belonging to the same target deployment area.
The target indoor sampling point may be understood as a sampling point on a wall inside the target deployment area.
Specifically, sampling points are randomly and uniformly generated based on a mesh network structure on the surface of a wall body in the same target area, and it can be understood that multiple wall bodies may exist in the same target area, multiple sampling points inevitably exist on the same wall body, and at the moment, multiple target indoor sampling points belonging to the same target deployment area can be determined. And determining the brightness value to be corrected according to the brightness information to be adjusted of all target sampling points in the same target deployment area.
And S420, determining the brightness value to be corrected of the target deployment area according to the brightness information to be adjusted of the target indoor sampling point.
In this technical solution, the determining the brightness value to be corrected of the target deployment area according to the brightness to be adjusted of the target indoor sampling point includes: and determining the brightness value to be corrected of the target deployment area by carrying out mean value processing on the brightness value to be adjusted of each target indoor sampling point.
The average processing may be to obtain the brightness value to be corrected by calculating the sum of the brightness values to be adjusted of all the target indoor sampling points and performing ratio operation on the obtained sum and the number of all the target indoor sampling points.
Specifically, according to brightness values to be adjusted corresponding to different target indoor sampling points, the sum of the brightness values to be adjusted of all the target indoor sampling points is calculated, and the sum is divided by the number of the target indoor sampling points to obtain brightness values to be corrected of target deployment areas to which the plurality of target indoor sampling points belong.
S430, adjusting the target light source of the target deployment area from the initial brightness value to a target brightness value according to the brightness value to be corrected and a preset brightness value of the target deployment area.
On the basis of the technical scheme, the adjusting the target light source of the target deployment area from the initial brightness value to the target brightness value according to the brightness value to be corrected and the preset brightness value of the target deployment area comprises: determining a brightness value change coefficient according to a brightness value to be corrected and a preset brightness value of a target deployment area; and adjusting the target light source from the initial brightness value to the target brightness value according to the brightness value change coefficient.
And the coefficient which is determined according to the brightness value to be corrected and needs to be adjusted is used as the brightness change coefficient. For example, the preset brightness value is 1.25 times of the brightness value to be corrected, the brightness value change coefficient may be determined to be 1.25, and the initial brightness value of the target light source may be adjusted to be 1.25 times of the original brightness value, so as to obtain the target brightness value.
According to the technical scheme, the target deployment area for deploying the target light source is determined according to the target floor plan, the initial brightness value of the target light source is determined according to the decoration parameters of the target deployment area, the brightness value to be adjusted of each indoor sampling point is determined under the influence of the initial brightness value, and the brightness value to be corrected of the corresponding target deployment area is determined based on at least one brightness value to be adjusted belonging to the same target deployment area. The method and the device have the advantages that the target brightness value of the target deployment area can be determined according to the plurality of to-be-corrected brightness values and the preset brightness values of the target deployment area, indoor light rendering is conducted based on the target brightness value, the problems that in the prior art, manual participation in light source deployment and brightness value adjustment is needed, error rates and labor cost are high are solved, further, automatic adaptation to each household type cannot be conducted are solved, automatic rendering of indoor light is achieved, labor cost is reduced, rendering efficiency and efficiency are improved, and further, the technical effect of light rendering universality is improved.
EXAMPLE five
Fig. 7 is a block diagram of an indoor light rendering apparatus according to a fifth embodiment of the disclosure, which is capable of executing an indoor light rendering method according to any embodiment of the disclosure, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 7, the apparatus specifically includes: an initial brightness value determining module 710, a brightness value to be modified determining module 720, and a brightness adjusting module 730.
An initial brightness value determining module 710, configured to determine a target deployment area where a target light source is deployed according to a target floor plan, and determine an initial brightness value of the target light source according to a decoration parameter of the target deployment area;
the to-be-corrected brightness value determining module 720 is configured to determine, for each indoor sampling point, a to-be-adjusted brightness value corresponding to the current indoor sampling point under the action of at least one initial brightness value, and determine, based on at least one to-be-adjusted brightness value belonging to the same target deployment area, a to-be-corrected brightness value of the corresponding target deployment area;
the brightness adjusting module 730 is configured to adjust the target light source of the target deployment area from an initial brightness value to a target brightness value according to the brightness value to be corrected and a preset brightness value of the target deployment area.
On the basis of the foregoing technical solution, the initial brightness value determining module 710 further includes:
the target house type graph generating unit is used for generating the target house type graph according to the received vector house type description file;
the light source area to be deployed determining unit is used for determining at least one light source area to be deployed according to the connected domain in the target house type diagram;
and the target deployment area determining unit is used for determining a target deployment area for deploying the target light source according to the area information of each light source area to be deployed.
On the basis of the above technical solution, the to-be-deployed light source region determining unit is specifically configured to:
if the connected domain is in a regular shape, determining that the connected domain is the light source area to be deployed;
and if the connected domain is in an irregular shape, dividing the connected domain into a plurality of convex polygons to obtain the light source area to be deployed.
On the basis of the above technical solution, the region information includes a region area, and the target deployment region determining unit is specifically configured to:
taking the minimum circumscribed rectangle of the light source area to be deployed, of which the effective action area is not determined and the area is the largest, as the current effective action area;
determining the overlapping area of the current effective action area and each effective area to be determined in the effective area list, and determining the proportion information of the overlapping area in the current effective action area;
and if the proportion information is smaller than a preset proportion threshold, determining the light source area to be deployed with the largest current area as a target deployment area, and updating the current effective action area into the effective area list as an effective area to be determined.
On the basis of the above technical solution, the target deployment area determining unit includes:
and the target light source determining subunit is used for determining target position information and target shape information of the deployed target light source according to the current effective action area corresponding to the target deployment area and a preset scaling coefficient.
On the basis of the technical scheme, the target light source determination subunit is specifically configured to determine an initial brightness value corresponding to the target light source in the target deployment area according to the decoration parameter of the target deployment area and a mapping relation table between the pre-established decoration parameter and the illumination brightness.
On the basis of the above technical solution, the apparatus further includes:
the to-be-adjusted brightness value determining module is used for generating a plurality of sampling points on the wall surface corresponding to the target house pattern to serve as indoor sampling points; and dispersing the target light source into a plurality of light source discrete points, so that the light source discrete points act on corresponding indoor sampling points under the condition of the initial brightness value, and obtaining brightness values to be adjusted corresponding to the indoor sampling points.
On the basis of the above technical solution, the module 720 for determining the brightness value to be adjusted is specifically configured to:
aiming at each light source discrete point, determining brightness contribution information corresponding to the current indoor sampling point by the current light source discrete point under the condition of corresponding initial brightness value, and determining a brightness value to be adjusted of the current indoor sampling point based on the brightness contribution information; the brightness contribution information comprises light shielding information, brightness attenuation information, and information of an included angle between an incident light formed by a current light source discrete point and a current indoor sampling point and a normal vector of a wall body to which the current indoor sampling point belongs.
On the basis of the above technical solution, the brightness adjusting module 730 includes:
the target indoor sampling point determining unit is used for determining a plurality of target indoor sampling points belonging to the same target deployment area;
and the to-be-corrected brightness value determining unit is used for determining the to-be-corrected brightness value of the target deployment area according to the to-be-adjusted brightness information of the target indoor sampling point.
On the basis of the foregoing technical solution, the to-be-corrected brightness value determining unit is specifically configured to:
and determining the brightness value to be corrected of the target deployment area by carrying out mean processing on the brightness value to be adjusted of each target indoor sampling point.
On the basis of the above technical solution, the luminance value to be corrected determining unit is further configured to: determining a brightness value change coefficient according to the brightness value to be corrected and a preset brightness value of the target deployment area; and adjusting the target light source from an initial brightness value to a target brightness value according to the brightness value change coefficient.
According to the technical scheme of the embodiment, the target deployment area for deploying the target light source is determined according to the target floor type graph, the initial brightness value of the target light source is determined according to the decoration parameters of the target deployment area, the brightness value to be adjusted corresponding to the current indoor sampling point under the action of at least one initial brightness value is determined for each indoor sampling point under the influence of the initial brightness value, the brightness value to be corrected of the corresponding target deployment area is determined based on at least one brightness value to be adjusted belonging to the same target deployment area, after the brightness value to be corrected and the preset brightness value of the target deployment area are obtained, the target light source of the target deployment area is adjusted to the target brightness value from the initial brightness value according to the brightness value to be corrected and the preset brightness value of the target deployment area, the automatic rendering of the indoor light is realized, the deployment of the indoor light source and the adjustment of the relevant parameters can be completed without manual participation, the effect of saving human resources is achieved.
The indoor light rendering device provided by the embodiment of the disclosure can execute the indoor light rendering method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of executing the indoor light rendering method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are also only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the embodiments of the present disclosure.
EXAMPLE six
Fig. 8 is a schematic structural diagram of an electronic device according to a sixth embodiment of the disclosure. Referring now to fig. 8, a schematic diagram of an electronic device (e.g., a terminal device or a server in fig. 8) 800 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an electronic device 800 may include a processing device (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage device 808 into a Random Access Memory (RAM) 808. In the RAM 808, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An editing/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 8 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The electronic device provided by the embodiment of the disclosure and the indoor light rendering method provided by the embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment can be referred to the embodiment, and the embodiment have the same beneficial effects.
EXAMPLE seven
The seventh embodiment of the present disclosure provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the indoor light rendering method provided by the foregoing embodiment.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
determining a target deployment area for deploying a target light source according to a target household type graph, and determining an initial brightness value of the target light source according to decoration parameters of the target deployment area;
aiming at each indoor sampling point, determining a brightness value to be adjusted corresponding to the current indoor sampling point under the action of at least one initial brightness value, and determining a brightness value to be corrected of a corresponding target deployment area based on at least one brightness value to be adjusted belonging to the same target deployment area;
and adjusting the target light source of the target deployment area from the initial brightness value to a target brightness value according to the brightness value to be corrected and a preset brightness value of the target deployment area.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first obtaining unit may also be described as a "unit obtaining at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, [ example one ] there is provided an indoor light rendering method, the method comprising:
determining a target deployment area for deploying a target light source according to a target floor plan, and determining an initial brightness value of the target light source according to decoration parameters of the target deployment area;
aiming at each indoor sampling point, determining a brightness value to be adjusted corresponding to the current indoor sampling point under the action of at least one initial brightness value, and determining a brightness value to be corrected of a corresponding target deployment area based on at least one brightness value to be adjusted belonging to the same target deployment area;
and adjusting the target light source of the target deployment area from the initial brightness value to a target brightness value according to the brightness value to be corrected and a preset brightness value of the target deployment area.
According to one or more embodiments of the present disclosure, [ example two ] there is provided an indoor light rendering method, comprising:
optionally, the determining a target deployment area for deploying the target light source according to the target floor plan includes:
generating the target house type graph according to the received vector house type description file;
determining at least one light source area to be deployed according to the connected domain in the target house type graph;
and determining a target deployment area for deploying the target light source according to the area information of each area of the light source to be deployed.
According to one or more embodiments of the present disclosure, [ example three ] there is provided an indoor light rendering method, comprising:
optionally, the determining at least one light source area to be deployed according to the connected domain in the target floor plan includes:
if the connected domain is in a regular shape, determining that the connected domain is the light source area to be deployed;
and if the connected domain is in an irregular shape, dividing the connected domain into a plurality of convex polygons to obtain the light source area to be deployed.
According to one or more embodiments of the present disclosure, [ example four ] there is provided an indoor light rendering method, comprising:
optionally, the area information includes an area, and the determining a target deployment area for deploying the target light source according to the area information of each area of the light source to be deployed includes:
taking the minimum circumscribed rectangle of the light source area to be deployed, of which the effective action area is not determined and the area is the largest, as the current effective action area;
determining the overlapping area of the current effective action area and each effective area to be determined in the effective area list, and determining the proportion information of the overlapping area in the current effective action area;
and if the proportion information is smaller than a preset proportion threshold, determining the light source area to be deployed with the largest current area as a target deployment area, and updating the current effective action area into the effective area list as an effective area to be determined.
According to one or more embodiments of the present disclosure, [ example five ] there is provided an indoor light rendering method, comprising:
optionally, after determining the target deployment area, the method further includes:
and determining target position information and target shape information of the target light source to be deployed according to the current effective action area corresponding to the target deployment area and a preset scaling coefficient.
According to one or more embodiments of the present disclosure, [ example six ] there is provided an indoor light rendering method, comprising:
optionally, the determining an initial brightness value of the target light source according to the decoration parameter of the target deployment area includes:
and determining an initial brightness value corresponding to the target light source in the target deployment area according to the decoration parameters of the target deployment area and a mapping relation table between the decoration parameters and the illumination brightness, which is established in advance.
According to one or more embodiments of the present disclosure, [ example seven ] there is provided an indoor light rendering method, comprising:
optionally, before determining the brightness value to be adjusted corresponding to the current indoor sampling point under the action of at least one initial brightness value, the method further includes:
generating a plurality of sampling points on the wall surface corresponding to the target house type graph to serve as indoor sampling points; and dispersing the target light source into a plurality of light source discrete points, so that the light source discrete points act on corresponding indoor sampling points under the condition of the initial brightness value, and obtaining brightness values to be adjusted corresponding to the indoor sampling points.
According to one or more embodiments of the present disclosure, [ example eight ] there is provided an indoor light rendering method, comprising:
optionally, the determining a brightness value to be adjusted corresponding to the current indoor sampling point under the action of at least one initial brightness value includes:
aiming at each light source discrete point, determining brightness contribution information corresponding to the current indoor sampling point by the current light source discrete point under the condition of corresponding initial brightness value, and determining a brightness value to be adjusted of the current indoor sampling point based on the brightness contribution information;
the brightness contribution information comprises light shielding information, brightness attenuation information, and information of an included angle between an incident light formed by a current light source discrete point and a current indoor sampling point and a normal vector of a wall body to which the current indoor sampling point belongs.
According to one or more embodiments of the present disclosure, [ example nine ] there is provided an indoor light rendering method, comprising:
optionally, the determining, based on at least one brightness value to be adjusted belonging to the same target deployment area, a brightness value to be corrected of the corresponding target deployment area includes:
determining a plurality of target indoor sampling points belonging to the same target deployment area;
and determining the brightness value to be corrected of the target deployment area according to the brightness information to be adjusted of the target indoor sampling point.
According to one or more embodiments of the present disclosure, [ example ten ] there is provided an indoor light rendering method, comprising:
optionally, the determining, according to the brightness information to be adjusted of the target indoor sampling point, a brightness value to be corrected of the target deployment area includes: and determining the brightness value to be corrected of the target deployment area by carrying out mean value processing on the brightness value to be adjusted of each target indoor sampling point.
According to one or more embodiments of the present disclosure, [ example eleven ] there is provided an indoor light rendering method, including:
optionally, the adjusting, according to the brightness value to be corrected and the preset brightness value of the target deployment area, the target light source of the target deployment area from the initial brightness value to the target brightness value includes:
determining a brightness value change coefficient according to the brightness value to be corrected and a preset brightness value of the target deployment area;
and adjusting the target light source from an initial brightness value to a target brightness value according to the brightness value change coefficient.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed.
It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (14)

1. An indoor ray rendering method, comprising:
determining a target deployment area for deploying a target light source according to a target household type graph, and determining an initial brightness value of the target light source according to decoration parameters of the target deployment area;
aiming at each indoor sampling point, determining a brightness value to be adjusted corresponding to the current indoor sampling point under the action of at least one initial brightness value, and determining a brightness value to be corrected of a corresponding target deployment area based on at least one brightness value to be adjusted belonging to the same target deployment area;
and adjusting the target light source of the target deployment area from the initial brightness value to a target brightness value according to the brightness value to be corrected and a preset brightness value of the target deployment area.
2. The method of claim 1, wherein determining a target deployment area for deploying a target light source according to a target floor plan comprises:
generating the target house type graph according to the received vector house type description file;
determining at least one light source area to be deployed according to the connected domain in the target house type graph;
and determining a target deployment area for deploying the target light source according to the area information of each area of the light source to be deployed.
3. The method of claim 2, wherein the determining at least one light source area to be deployed according to the connected component in the target floor plan comprises:
if the connected domain is in a regular shape, determining that the connected domain is the light source area to be deployed;
and if the connected domain is in an irregular shape, dividing the connected domain into a plurality of convex polygons to obtain the light source area to be deployed.
4. The method according to claim 3, wherein the region information includes a region area, and the determining the target deployment region for deploying the target light source according to the region information of each region of the light source to be deployed includes:
taking the minimum circumscribed rectangle of the light source area to be deployed, of which the effective action area is not determined and the area is the largest, as the current effective action area;
determining the overlapping area of the current effective action area and each effective area to be determined in the effective area list, and determining the proportion information of the overlapping area in the current effective action area;
and if the proportion information is smaller than a preset proportion threshold, determining the light source area to be deployed with the largest current area as a target deployment area, and updating the current effective action area into the effective area list as an effective area to be determined.
5. The method of claim 4, after determining the target deployment region, further comprising:
and determining target position information and target shape information of the target light source to be deployed according to the current effective action area corresponding to the target deployment area and a preset scaling coefficient.
6. The method of claim 5, wherein determining an initial brightness value of a target light source based on a decor parameter of the target deployment region comprises:
and determining an initial brightness value corresponding to the target light source in the target deployment area according to the decoration parameters of the target deployment area and a mapping relation table between the decoration parameters and the illumination brightness, which is established in advance.
7. The method according to claim 1, wherein before said determining the brightness value to be adjusted corresponding to the current indoor sampling point under at least one initial brightness value, further comprising:
generating a plurality of sampling points on the wall surface corresponding to the target floor plan as indoor sampling points; and dispersing the target light source into a plurality of light source discrete points, so that the light source discrete points act on corresponding indoor sampling points under the condition of the initial brightness value, and obtaining brightness values to be adjusted corresponding to the indoor sampling points.
8. The method according to claim 7, wherein the determining the brightness value to be adjusted corresponding to the current indoor sampling point under the action of at least one initial brightness value comprises:
aiming at each light source discrete point, determining brightness contribution information corresponding to the current indoor sampling point by the current light source discrete point under the condition of corresponding initial brightness value, and determining a brightness value to be adjusted of the current indoor sampling point based on the brightness contribution information;
the brightness contribution information comprises light shielding information, brightness attenuation information, and information of an included angle between an incident light formed by a current light source discrete point and a current indoor sampling point and a normal vector of a wall body to which the current indoor sampling point belongs.
9. The method according to claim 1, wherein the determining the brightness value to be modified of the corresponding target deployment area based on at least one brightness value to be adjusted belonging to the same target deployment area comprises:
determining a plurality of target indoor sampling points belonging to the same target deployment area;
and determining the brightness value to be corrected of the target deployment area according to the brightness information to be adjusted of the target indoor sampling point.
10. The method according to claim 9, wherein the determining the brightness value to be corrected of the target deployment area according to the brightness information to be adjusted of the target indoor sampling point comprises: and determining the brightness value to be corrected of the target deployment area by carrying out mean value processing on the brightness value to be adjusted of each target indoor sampling point.
11. The method according to claim 1, wherein the adjusting the target light source of the target deployment area from the initial brightness value to the target brightness value according to the brightness value to be modified of the target deployment area and the preset brightness value comprises:
determining a brightness value change coefficient according to the brightness value to be corrected and a preset brightness value of the target deployment area;
and adjusting the target light source from an initial brightness value to a target brightness value according to the brightness value change coefficient.
12. An indoor light rendering apparatus, the apparatus comprising:
the initial brightness value determining module is used for determining a target deployment area for deploying the target light source according to the target house type graph and determining an initial brightness value of the target light source according to decoration parameters of the target deployment area;
the device comprises a to-be-corrected brightness value determining module, a to-be-corrected brightness value determining module and a correcting module, wherein the to-be-corrected brightness value determining module is used for determining a to-be-adjusted brightness value corresponding to a current indoor sampling point under the action of at least one initial brightness value aiming at each indoor sampling point, and determining a to-be-corrected brightness value of a corresponding target deployment area based on at least one to-be-adjusted brightness value belonging to the same target deployment area;
and the brightness adjusting module is used for adjusting the target light source of the target deployment area from an initial brightness value to a target brightness value according to the brightness value to be corrected and a preset brightness value of the target deployment area.
13. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the indoor light rendering method of any one of claims 1-11.
14. A storage medium containing computer-executable instructions for performing the room light rendering method of any one of claims 1-11 when executed by a computer processor.
CN202210178197.2A 2022-02-25 2022-02-25 Indoor light ray rendering method and device, electronic equipment and storage medium Active CN114567955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210178197.2A CN114567955B (en) 2022-02-25 2022-02-25 Indoor light ray rendering method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210178197.2A CN114567955B (en) 2022-02-25 2022-02-25 Indoor light ray rendering method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114567955A true CN114567955A (en) 2022-05-31
CN114567955B CN114567955B (en) 2023-12-01

Family

ID=81716503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210178197.2A Active CN114567955B (en) 2022-02-25 2022-02-25 Indoor light ray rendering method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114567955B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070090960A1 (en) * 2003-08-04 2007-04-26 Mitsunori Miki Lighting control system and control system
US9041307B1 (en) * 2014-04-11 2015-05-26 Richtek Technology Corp Method for brightness control
CN104797063A (en) * 2015-05-13 2015-07-22 广州市珠江灯光科技有限公司 Method and device for adjusting lamplight brightness, and LED lamp
CN205726587U (en) * 2016-03-04 2016-11-23 许浩然 Classroom lighting intelligent regulating system
CN106447760A (en) * 2016-11-01 2017-02-22 深圳市彬讯科技有限公司 Automatic interior rendering light arranging method based on tumax
CN107295732A (en) * 2017-07-11 2017-10-24 北京金茂绿建科技有限公司 One kind sensing lamp brightness adjusting method and device
CN108600649A (en) * 2018-04-26 2018-09-28 莆田市烛火信息技术有限公司 A kind of Intelligent House Light brightness acquisition and control method
CN108966439A (en) * 2017-05-25 2018-12-07 深圳市海洋王照明工程有限公司 The adjusting method and device of room brilliancy
CN111145332A (en) * 2019-11-21 2020-05-12 江苏艾佳家居用品有限公司 General method for designing photometry for home decoration
CN111611726A (en) * 2020-06-22 2020-09-01 广州极点三维信息科技有限公司 Automatic indoor scene lighting method and related device
CN112399682A (en) * 2020-10-27 2021-02-23 江汉大学 Light source control method and device for automatically identifying and adjusting ambient brightness
CN112689355A (en) * 2021-01-07 2021-04-20 杭州恒生数字设备科技有限公司 Electronic class card with networking and data processing functions of Internet of things
CN112954850A (en) * 2021-02-22 2021-06-11 天津久曜灯具制造有限公司 Classroom lamp brightness control method and device and classroom lamp
CN113329550A (en) * 2020-02-28 2021-08-31 漳州立达信光电子科技有限公司 Method and device for controlling illumination of real-time environment of lamp, terminal equipment and medium
CN113347768A (en) * 2021-06-04 2021-09-03 深圳市欧瑞博科技股份有限公司 Intelligent light regulation and control method and device, electronic equipment and storage medium
CN113766708A (en) * 2021-04-30 2021-12-07 北京字节跳动网络技术有限公司 Method and device for adjusting brightness of lighting device, electronic equipment and storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070090960A1 (en) * 2003-08-04 2007-04-26 Mitsunori Miki Lighting control system and control system
US9041307B1 (en) * 2014-04-11 2015-05-26 Richtek Technology Corp Method for brightness control
CN104797063A (en) * 2015-05-13 2015-07-22 广州市珠江灯光科技有限公司 Method and device for adjusting lamplight brightness, and LED lamp
CN205726587U (en) * 2016-03-04 2016-11-23 许浩然 Classroom lighting intelligent regulating system
CN106447760A (en) * 2016-11-01 2017-02-22 深圳市彬讯科技有限公司 Automatic interior rendering light arranging method based on tumax
CN108966439A (en) * 2017-05-25 2018-12-07 深圳市海洋王照明工程有限公司 The adjusting method and device of room brilliancy
CN107295732A (en) * 2017-07-11 2017-10-24 北京金茂绿建科技有限公司 One kind sensing lamp brightness adjusting method and device
CN108600649A (en) * 2018-04-26 2018-09-28 莆田市烛火信息技术有限公司 A kind of Intelligent House Light brightness acquisition and control method
CN111145332A (en) * 2019-11-21 2020-05-12 江苏艾佳家居用品有限公司 General method for designing photometry for home decoration
CN113329550A (en) * 2020-02-28 2021-08-31 漳州立达信光电子科技有限公司 Method and device for controlling illumination of real-time environment of lamp, terminal equipment and medium
CN111611726A (en) * 2020-06-22 2020-09-01 广州极点三维信息科技有限公司 Automatic indoor scene lighting method and related device
CN112399682A (en) * 2020-10-27 2021-02-23 江汉大学 Light source control method and device for automatically identifying and adjusting ambient brightness
CN112689355A (en) * 2021-01-07 2021-04-20 杭州恒生数字设备科技有限公司 Electronic class card with networking and data processing functions of Internet of things
CN112954850A (en) * 2021-02-22 2021-06-11 天津久曜灯具制造有限公司 Classroom lamp brightness control method and device and classroom lamp
CN113766708A (en) * 2021-04-30 2021-12-07 北京字节跳动网络技术有限公司 Method and device for adjusting brightness of lighting device, electronic equipment and storage medium
CN113347768A (en) * 2021-06-04 2021-09-03 深圳市欧瑞博科技股份有限公司 Intelligent light regulation and control method and device, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
S. HAN, X. ZHONG, Y. DING, W. LI, S. LIU AND P. LIU: "Intelligent Dimming LED for Moonlight Simulation", 《 2015 2ND INTERNATIONAL CONFERENCE ON INFORMATION SCIENCE AND CONTROL ENGINEERING》 *
郭盛利,都书言: "一种智能化数字LED照明灯的设计", 《2013年中国照明论坛暨LED照明产品设计、应用与创新论坛论文集》 *
雷鸣,聂凯,姜罕盛,戴庞达,王京丽: "数字摄像能见度仪的设计与实现", 《光学学报》, vol. 41, no. 17 *

Also Published As

Publication number Publication date
CN114567955B (en) 2023-12-01

Similar Documents

Publication Publication Date Title
CN110730374B (en) Animation object display method and device, electronic equipment and storage medium
CN114782613A (en) Image rendering method, device and equipment and storage medium
CN113052947A (en) Rendering method, rendering device, electronic equipment and storage medium
US20230125255A1 (en) Image-based lighting effect processing method and apparatus, and device, and storage medium
CN111210497A (en) Model rendering method and device, computer readable medium and electronic equipment
CN115330925A (en) Image rendering method and device, electronic equipment and storage medium
CN115170740A (en) Special effect processing method and device, electronic equipment and storage medium
CN114429418A (en) Method and device for generating stylized image, electronic equipment and storage medium
CN114567955A (en) Indoor light rendering method and device, electronic equipment and storage medium
CN111145358B (en) Image processing method, device and hardware device
CN116228956A (en) Shadow rendering method, device, equipment and medium
CN110555799A (en) Method and apparatus for processing video
CN114693885A (en) Three-dimensional virtual object generation method, apparatus, device, medium, and program product
CN110209861A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN116342753A (en) Map generation method, device, storage medium and electronic equipment
CN114549781A (en) Data processing method and device, electronic equipment and storage medium
CN115487495A (en) Data rendering method and device
CN112446944B (en) Method and system for simulating real environment light in AR scene
CN115019021A (en) Image processing method, device, equipment and storage medium
CN116109744A (en) Fluff rendering method, device, equipment and medium
CN113744379A (en) Image generation method and device and electronic equipment
CN116894933B (en) Three-dimensional model comparison method, device, equipment and storage medium
CN116342785A (en) Image processing method, device, equipment and medium
CN115984448A (en) Transparent object model rendering method and device, computer equipment and storage medium
CN114742936A (en) Illumination processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant