CN115222910A - Method and device for acquiring lighting information, electronic equipment and storage medium - Google Patents

Method and device for acquiring lighting information, electronic equipment and storage medium Download PDF

Info

Publication number
CN115222910A
CN115222910A CN202210739058.2A CN202210739058A CN115222910A CN 115222910 A CN115222910 A CN 115222910A CN 202210739058 A CN202210739058 A CN 202210739058A CN 115222910 A CN115222910 A CN 115222910A
Authority
CN
China
Prior art keywords
light receiving
building
lighting
target
date
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.)
Pending
Application number
CN202210739058.2A
Other languages
Chinese (zh)
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 Chengshi Wanglin Information Technology Co Ltd
Original Assignee
Beijing Chengshi Wanglin Information 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 Chengshi Wanglin Information Technology Co Ltd filed Critical Beijing Chengshi Wanglin Information Technology Co Ltd
Priority to CN202210739058.2A priority Critical patent/CN115222910A/en
Publication of CN115222910A publication Critical patent/CN115222910A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes

Landscapes

  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method, a device, an electronic device and a storage medium for acquiring lighting information, wherein the method comprises the following steps: constructing a building enclosure which surrounds a target building and has the same outline as the target building; determining a plurality of light receiving grids corresponding to the surrounding surface of the building surrounding shell; determining the lighting condition of the target building within the sampling date according to the light receiving states of the light receiving grids corresponding to the sampling times of the sampling date; responding to a first lighting checking instruction for checking the lighting condition in the target date aiming at the target building, carrying out mapping processing on a building model corresponding to the target building according to the lighting condition of the target building in the first sampling date, and displaying the building model subjected to mapping processing; wherein the first sampling date is associated with the lighting parameter corresponding to the target date. The method and the device can acquire relatively accurate lighting conditions based on the building enclosure shell which is consistent with the appearance of the target building, and are convenient for users to know the lighting conditions of the target building through the building model.

Description

Method and device for acquiring lighting information, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for acquiring lighting information, an electronic device, and a storage medium.
Background
The lighting condition of the building is an important factor considered when people carry out house source transaction, and a user can know the lighting condition through field check or a broker when choosing a house. When the lighting condition is known through field inspection, the real lighting condition can not be obtained due to the influence of environmental factors, and only the lighting condition in a short period can be inspected; when the broker knows the lighting situation, it is very not intuitive and the reality of the lighting situation obtained is not sufficient.
At present, the lighting condition of a building can be simulated by using a 3D modeling technology, but for buildings with irregular shapes, the lighting condition cannot be accurately simulated due to inaccurate shapes of the built models.
Therefore, in the prior art, when the lighting condition of the building is known, the disadvantage that the relatively accurate lighting condition cannot be obtained exists.
Disclosure of Invention
The embodiment of the application provides a method, a device, electronic equipment and a storage medium for acquiring lighting information, so as to solve the problem that relatively accurate lighting conditions cannot be acquired when the lighting conditions of a building are known in the prior art.
In a first aspect, an embodiment of the present application provides a method for acquiring lighting information, including:
constructing a building enclosure which encloses a target building and has the same outline as the target building;
determining a plurality of light receiving grids corresponding to the surrounding surface of the building surrounding shell;
determining the lighting condition of the target building within the sampling date according to the light receiving states of the light receiving grids corresponding to the sampling moments of the sampling date, wherein the sampling dates are multiple;
responding to a first lighting viewing instruction for the target building, according to the lighting condition of the target building within a first sampling date, mapping a building model corresponding to the target building, and displaying the mapped building model;
wherein the first lighting viewing instruction is used for indicating the lighting condition in the viewing target date, and the first sampling date is associated with the lighting parameter corresponding to the target date.
In a second aspect, an embodiment of the present application provides an apparatus for acquiring lighting information, including:
the building module is used for building a building enclosure shell which encloses a target building and has the same outline as the target building;
the first determining module is used for determining a plurality of light receiving grids corresponding to the surrounding surface of the building surrounding shell;
a second determining module, configured to determine, according to light receiving states of the light receiving grids at a plurality of sampling times of a sampling date, lighting conditions of the target building within the sampling date, where the sampling dates are multiple;
the processing and displaying module is used for responding to a first lighting viewing instruction for the target building, carrying out mapping processing on a building model corresponding to the target building according to the lighting condition of the target building in a first sampling date, and displaying the building model subjected to mapping processing;
wherein the first lighting viewing instruction is used for indicating the lighting condition in the viewing target date, and the first sampling date is associated with the lighting parameter corresponding to the target date.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the method for acquiring lighting information according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for acquiring lighting information according to the first aspect.
According to the technical scheme of the embodiment of the application, a plurality of light receiving grids corresponding to the building surrounding shell are determined by constructing the building surrounding shell which surrounds a target building and has the same outline as the target building, the lighting condition of the target building in each sampling date is determined according to the light receiving states of the light receiving grids corresponding to a plurality of sampling moments of each sampling date, and the relatively accurate lighting condition can be obtained based on the building surrounding shell which has the same shape with the target building; when a first lighting checking instruction which aims at a target building and indicates that the lighting condition in the target date is checked is received, according to the lighting condition of the target building in the first sampling date related to the target date, mapping processing is carried out on a building model corresponding to the target building, the building model subjected to mapping processing is displayed, and a user can know the lighting condition of the target building through the building model conveniently.
Drawings
Fig. 1 is a schematic view illustrating a method for acquiring lighting information according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a first polygon corresponding to a target building provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a parallelogram construction provided by an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating segmentation for different segments of a second polygon according to an embodiment of the present disclosure;
FIG. 5 shows a specific illustration of a building model in different colors according to an embodiment of the present application;
FIG. 6 is a schematic diagram showing a plurality of options of light receiving duration when a building model is shown according to an embodiment of the present application;
FIG. 7 is a schematic diagram showing a plurality of light receiving time period options when a building model is shown according to an embodiment of the present disclosure;
fig. 8 is a schematic view of an apparatus for acquiring lighting information according to an embodiment of the present disclosure;
fig. 9 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
An embodiment of the present application provides a method for acquiring lighting information, which is shown in fig. 1 and includes:
step 101, building a building surrounding shell which surrounds a target building and has the same outline as the target building.
According to the method for acquiring lighting information provided by the embodiment of the application, firstly, a building enclosure shell which surrounds a target building and has the same outline as the target building is constructed for the target building in a building according to the building parameters of the target building. Wherein, the building surrounding shell surrounds the side of the target building and does not surround the top and the bottom of the target building. The building plate can comprise a plurality of buildings, and any one building can be used as a target building. The building enclosure shell constructed for the target building has the same shape as the target building and a size slightly larger than the target building.
And 102, determining a plurality of light receiving grids corresponding to the surrounding surface of the building surrounding shell.
After building a building enclosure shell with the same profile as the target building based on the building parameters of the target building, light receiving grids corresponding to each enclosure surface of the building enclosure shell can be determined aiming at the building enclosure shell so as to obtain a plurality of light receiving grids corresponding to the building enclosure shell. Each surrounding surface of the building surrounding shell is matched with each side surface of the target building one by one, and the number and the size of the light receiving grids corresponding to different surrounding surfaces can be different.
And 103, determining the lighting condition of the target building within the sampling date according to the light receiving states of the light receiving grids corresponding to the sampling times of the sampling date, wherein the sampling dates are multiple.
After the corresponding light receiving grids are determined for the building enclosure, the light receiving conditions of the light receiving grids can be acquired at a plurality of sampling dates. The method specifically comprises the following steps: and acquiring light receiving states of the plurality of light receiving grids corresponding to a plurality of sampling moments of the current sampling date for each sampling date, and determining the lighting condition of the target building within the current sampling date according to the light receiving states of the plurality of light receiving grids corresponding to the plurality of sampling moments of the current sampling date. The lighting condition of the target building within the sampling date may include at least one of a light receiving period of the light receiving grid within the sampling date and a light receiving period within the sampling date.
The plurality of sampling dates may be specific solar terms, or may be a plurality of sampling dates determined according to a preset rule. For example, the plurality of sampling dates include spring equinox, summer solstice, autumn equinox, and winter solstice of a certain year; alternatively, the plurality of sample dates comprises the first day of each of the 12 months of the year. Of course, multiple sampling dates may be used, and are not listed here.
For different sampling dates, the number of corresponding sampling moments can be the same or different, and correspondingly, the corresponding specific moments can also be different. For a plurality of sampling moments in the sampling date, the duration of an interval between any two adjacent sampling moments may be a fixed value, or any two adjacent sampling moments may form a sampling moment group, and the interval durations (the interval durations of two sampling moments) corresponding to different sampling moment groups are different. For the second case, the interval duration between two adjacent sampling moments may vary according to a preset rule on the time axis. For example, the time duration between two adjacent sampling instants on the time axis gradually increases or decreases, the time duration between two adjacent sampling instants on the time axis decreases or increases during the period of strong light, the time duration between two adjacent sampling instants on the time axis increases first and then decreases, etc., although other embodiments are possible when the time duration varies according to the preset rule, which are not listed here. For convenience of description, the embodiment of the present application takes an interval duration between two adjacent sampling time instances as a fixed value.
104, responding to a first lighting viewing instruction for the target building, performing mapping processing on a building model corresponding to the target building according to the lighting condition of the target building within a first sampling date, and displaying the building model subjected to mapping processing; wherein the first lighting viewing instruction is used for indicating the lighting condition within the viewing target date, and the first sampling date is associated with the lighting parameter corresponding to the target date.
Under the condition that a first lighting viewing instruction which aims at a target building and views the lighting condition in the target date is received, responding to the first lighting viewing instruction, determining the lighting condition of the target building in the first sampling date as the lighting condition of the target building in the target date, carrying out mapping processing on a building model corresponding to the target building according to the lighting condition of the target building in the first sampling date, and then displaying the building model subjected to mapping processing.
In this embodiment, the first sampling date is associated with the target date, and the first sampling date is a date associated with the target date in the plurality of sampling dates, where the association is understood to mean that the lighting conditions are most similar. Aiming at a target building, a corresponding building model needs to be constructed, map resources corresponding to all light receiving grids are determined according to the lighting condition of the target building in a first sampling date based on a first lighting checking instruction of a user, and then map processing is performed on the building model corresponding to the target building based on the map resources so as to display the lighting condition of the target building in the target date through the building model corresponding to the target building.
It should be noted that, the building model and the determining of the multiple light receiving grids corresponding to the building enclosing shell belong to two mutually non-interfering processes, and may be parallel processes, and after the light receiving grids are determined and the lighting condition of the target building is determined based on the light receiving state of the light receiving grids, the building model may be subjected to mapping processing according to the lighting condition based on the first lighting viewing instruction, so as to display the lighting condition of the target building through the building model.
The method for acquiring lighting information provided by the embodiment of the application is applied to electronic equipment, the electronic equipment is provided with a target application program supporting house source transaction, and a user can know interested buildings and house sources through the target application program. When a first lighting checking instruction which is executed by a user on a target application program and indicates that the lighting condition of a target building in a target date is checked is received, based on the first lighting checking instruction, according to the lighting condition of the target building in a first sampling date, mapping processing is carried out on a building model corresponding to the target building, the building model subjected to mapping processing is displayed on an application program interface of the target application program, and the user can conveniently know the lighting condition of the target building through the building model.
The first lighting viewing instruction may be input by a user to a lighting control corresponding to the target building, and the input form includes but is not limited to click input, press input, slide input, specific action input, and the like. Each building can be corresponding to a lighting control; the multiple buildings can correspond to the same lighting control, a user triggers the display of multiple building identifications after inputting the lighting control, and the building corresponding to the selected building identification is determined as a target building based on the selection of the user in the multiple building identifications, so that the lighting condition of the target building is displayed.
The target date in this embodiment may be a current date on which the first lighting viewing instruction is received, or may be a specific date selected by the user, where the specific date may be a history date or a date corresponding to a day in the future, and the lighting condition of the target building within the target date is displayed based on the target date selected by the user, so that the lighting condition of the target building on the selected date is flexibly displayed for the user. For example, after clicking the lighting control, the user may trigger the display of a date list, and the date list may be updated based on the user's operation, and the target date may be determined based on the user's selection in the date list.
The lighting condition of the target building in the first sampling date can comprise at least one of the light receiving time of the plurality of light receiving grids in the first sampling date and the light receiving time in the first sampling date, the building model corresponding to the target building is subjected to mapping processing based on the lighting condition, the building model subjected to mapping processing is displayed, the light receiving time and/or the light receiving time of the light receiving grids in the first sampling date can be displayed through the building model, the lighting time of the light receiving grids in one day can be conveniently and clearly known to a user through displaying the light receiving time, and the lighting time of the light receiving grids in one day can be conveniently known to the user through displaying the light receiving time.
In the implementation process of the application, a plurality of light receiving grids corresponding to the building surrounding shell are determined by constructing the building surrounding shell which surrounds the target building and has the same profile as the target building, and the lighting condition of the target building in each sampling date is determined according to the light receiving states of the plurality of light receiving grids corresponding to a plurality of sampling moments of each sampling date, so that the relatively accurate lighting condition can be obtained based on the building surrounding shell which has the same shape as the target building; when a first lighting checking instruction which aims at a target building and indicates that the lighting condition in the target date is checked is received, according to the lighting condition of the target building in the first sampling date related to the target date, mapping processing is carried out on a building model corresponding to the target building, the building model subjected to mapping processing is displayed, and a user can know the lighting condition of the target building through the building model conveniently.
The following describes a process of constructing a building enclosure, and when constructing a building enclosure that encloses a target building and has the same contour as the target building, the process includes:
determining a first polygon corresponding to the target building according to the building parameters of the target building, wherein the first polygon is a polygon corresponding to the target building on a horizontal plane and comprising a plurality of vertexes;
for each vertex of the first polygon, determining an outward expansion vertex corresponding to the vertex;
aiming at a plurality of outward-expanding vertexes, connecting two adjacent outward-expanding vertexes to determine a second polygon surrounding the first polygon;
and determining the building enclosure shell according to the second polygon and the height of the target building.
When constructing the building enclosure shell corresponding to the target building, first, a first polygon corresponding to the target building on a horizontal plane is determined based on the building parameters of the target building, which can be understood as a polygon corresponding to the target building observed from a top view angle, for example, as shown in fig. 2, a specific example of the polygon determined when the target building is observed from a top view angle. It should be noted that the first polygon in this embodiment may be a minimum polygon that surrounds all the corresponding outlines of the target building on the horizontal plane.
After the first polygon is determined, for each vertex of the first polygon, an out-extended vertex corresponding to the vertex is determined. When determining the outward expansion vertex corresponding to the vertex for each vertex of the first polygon, the method includes: for each vertex, constructing a parallelogram according to a first line segment and a second line segment corresponding to the vertex, and determining a first diagonal line corresponding to the vertex in the parallelogram; and determining an outward expansion vertex with a preset distance from the vertex on the first diagonal or the reverse extension line of the first diagonal.
Aiming at each vertex of the first polygon, when an extended vertex corresponding to the vertex is determined, a parallelogram is constructed according to a first line segment and a second line segment corresponding to the vertex, the first line segment and the second line segment are used as two adjacent sides of the parallelogram, when the parallelogram is constructed, parallel lines parallel to the first line segment and parallel lines parallel to the second line segment are made, and then the parallelogram is determined.
After the parallelogram is determined, a target vertex opposite to the vertex in the parallelogram is determined, specifically, a connecting line between the target vertex and the current vertex is a diagonal line of the parallelogram, and the diagonal line is a first diagonal line corresponding to the current vertex. Referring to fig. 3, a specific illustration of constructing a parallelogram according to the line segments L1 and L2 corresponding to the point P is shown, and the point Q is a target vertex.
On the first diagonal line, taking the current vertex as a starting point, determining a point with a preset distance from the vertex, wherein the determined point is an outward expansion vertex; or, on the reverse extension line of the first diagonal line, taking the current vertex as a starting point, determining a point with a preset distance from the vertex, wherein the determined point is the outward expansion vertex. The first polygon comprises a first type of vertex and a second type of vertex, the parallelogram corresponding to the first type of vertex is positioned inside the first polygon, and the parallelogram corresponding to the second type of vertex is positioned outside the first polygon. In FIG. 2, P1 is a first type of vertex and P2 is a second type of vertex. The outward expansion vertex corresponding to the vertex of the first type is positioned on the reverse extension line of the diagonal line, and the outward expansion vertex corresponding to the vertex of the second type is positioned on the diagonal line.
After the outward expansion vertex corresponding to each vertex is determined for the first polygon, any two adjacent outward expansion vertices are connected according to the obtained multiple outward expansion vertices, and a second polygon surrounding the first polygon is determined. After a second polygon surrounding the first polygon is determined, for each contour line of the second polygon, a surrounding surface is determined according to the current contour line and building height information corresponding to the current contour line based on the determined second polygon, and a building surrounding shell is determined according to the surrounding surface corresponding to each contour line.
According to the implementation process, the first polygon is determined according to the building parameters of the target building, the outward-extended vertexes corresponding to the vertexes of the first polygon are determined, the second polygon is determined based on the outward-extended vertexes, the building enclosure is determined according to the second polygon and the building parameters of the target building, the building enclosure corresponding to the target building can be determined based on the real building parameters, and then the relatively accurate lighting condition can be obtained based on the light receiving condition of the light receiving grid corresponding to the building enclosure.
The following description is directed to a process of determining a plurality of light receiving grids corresponding to a building enclosing shell, and when determining a plurality of light receiving grids corresponding to an enclosing surface of the building enclosing shell, the process includes:
aiming at each line segment of the second polygon, determining a final segmentation length corresponding to the line segment according to a corresponding preset segmentation length and a length corresponding to the line segment; for each line segment, determining a light receiving grid corresponding to a first surrounding surface according to the final segmentation length corresponding to the line segment and the first surrounding surface corresponding to the line segment; the number of the light receiving grids corresponding to each floor in the first surrounding surface is the same.
For each line segment of the second polygon, it corresponds to a preset segmentation length and a tolerance. And when the final segmentation length corresponding to the current line segment is determined, determining the final segmentation length corresponding to the current line segment according to the preset segmentation length corresponding to the current line segment and the length corresponding to the current line segment. The specific calculation method is as follows: calculating the ratio of the length corresponding to the current line segment to a preset segmentation length corresponding to the current line segment to obtain segmentation parts (integers), if the remainder is less than or equal to the corresponding tolerance, determining the obtained segmentation parts as the final parts, and determining the final segmentation length based on the preset segmentation length and the remainder; if the remainder is greater than the corresponding tolerance, then the number of split copies is incremented by 1 and the final split length is determined. For example, if the length corresponding to the current line segment is 5m, and the preset segmentation length is 2m, the number of segmentation copies is 2 through calculation, and the remainder is 1m, and 1m is greater than the corresponding tolerance of 0.003 m, the number of segmentation copies is determined to be 3, and the final segmentation lengths are 1.66 m, and 1.68 m. Or, if the length corresponding to the current line segment is 4.001m, and the preset segmentation length is 2m, the number of segmentation parts is 2 through calculation, the remainder is 0.001m, and the number of segmentation parts is 0.001m and is less than the corresponding tolerance of 0.003 m, the number of segmentation parts is determined to be 2, and the final segmentation lengths are 2m and 2.001 m.
In this embodiment, after the final division length corresponding to each line segment of the second polygon is determined, a subsequent process of determining the light receiving mesh may be performed; after the final division length corresponding to the current line segment is determined for any one line segment, the light receiving mesh corresponding to the corresponding first bounding surface may be determined for the current line segment.
In this embodiment, the preset segmentation lengths and the tolerances corresponding to different line segments may be different. Referring to fig. 4, the final segmentation length is determined for each of the different line segments of the second polygon, and the segmentation is performed based on the final segmentation length.
When determining the light receiving grid corresponding to the first surrounding surface according to the final division length corresponding to the line segment and the first surrounding surface corresponding to the line segment, the method comprises the following steps: and dividing the first surrounding surface based on the floor number corresponding to the first surrounding surface and the final division length corresponding to the line segment to obtain the light receiving grid corresponding to the first surrounding surface.
For any line segment, after determining the final division length and the final division number corresponding to the line segment, the first surrounding surface may be divided based on the floor number corresponding to the first surrounding surface corresponding to the line segment, the obtained number of the division is the same as the floor number, and then the first surrounding surface is divided according to the final division length corresponding to the line segment. That is, the first surrounding surface may be divided into the floor in the height direction, the first surrounding surface may be divided into the final division lengths in the length direction perpendicular to the height direction, and the light receiving cells corresponding to the first surrounding surface may be obtained by performing the division twice in sequence. Or the division can be performed according to the final division length corresponding to the line segment, and then the division can be performed according to the floor number, at this time, the division is performed according to the final division length in the length direction, and then the division is performed according to the floor in the height direction.
In the above implementation process, the first surrounding surface may be divided based on the number of floors and the final division length to obtain the corresponding light receiving grid, so as to determine the light receiving condition of the floor corresponding to the target floor based on the light receiving condition of the light receiving grid.
In an embodiment of the present invention, the determining the lighting condition of the target building within the sampling date according to the light receiving states of the light receiving grids corresponding to the sampling times of the sampling date includes: acquiring light receiving states corresponding to the plurality of light receiving grids at each sampling time of the sampling date; for each light receiving grid, determining the light receiving time length corresponding to the light receiving grid on the sampling date according to the light receiving states corresponding to the light receiving grid on a plurality of sampling moments of the sampling date, and/or determining the light receiving time period corresponding to the light receiving grid on the sampling date; and determining the lighting condition of the target building within the sampling date according to the light receiving duration corresponding to the sampling date and/or the light receiving period corresponding to the sampling date.
After the division of the light receiving grids is completed and a plurality of light receiving grids corresponding to the building surrounding shell are determined, the light receiving states corresponding to the plurality of light receiving grids can be obtained at each sampling time of a plurality of sampling dates; then, for each light receiving grid, the light receiving states of the light receiving grid corresponding to a plurality of sampling moments are counted, the lighting condition of the target building within the sampling date is determined according to the light receiving states of the light receiving grids corresponding to the sampling moments, and the lighting condition can be determined based on the counting of the light receiving states of the light receiving grids.
When the light receiving state of the light receiving grid is obtained, the light receiving state of the light receiving grid can be determined based on the intersection condition of the target ray corresponding to the light receiving grid and the surrounding buildings, the target ray is determined based on the center of the light receiving grid and the sunlight direction, and when the target ray intersects with the surrounding buildings, the light receiving grid is determined not to receive light.
The target ray corresponding to the light receiving grid is determined based on the center of the light receiving grid and the sunlight direction, and specifically is the ray determined by taking the center of the light receiving grid as a starting point and extending in the opposite direction of the sunlight direction. When the target ray corresponding to the light receiving grid is intersected with the surrounding buildings, the light receiving grid is determined to be shielded, the light receiving grid is in an unreceived state, otherwise, the light receiving grid is determined to be in a light receiving state, the surrounding buildings corresponding to the target building can comprise buildings in a preset area range with the target building as the center, and related building data of the surrounding buildings need to be acquired, so that the intersection condition of the target ray corresponding to the light receiving grid and the buildings is determined based on the related building data. When the intersection condition of the target ray corresponding to the light receiving grid and the building is determined, the intersection condition of the target ray and the wall surface of the building can be determined.
In the present embodiment, the lighting condition of the target building within the sampling date may include at least one of a light receiving period of the light receiving grid within the sampling date and a light receiving period of the light receiving grid within the sampling date. For each light receiving grid, the light receiving time length corresponding to the sampling date of the light receiving grid can be determined according to the light receiving state corresponding to the light receiving grid at a plurality of sampling moments of the sampling date, and/or the light receiving time period corresponding to the sampling date of the light receiving grid can be determined.
The following describes the procedures of determining the light receiving time period and the light receiving period, respectively. In the embodiment of the present application, a process of determining a light receiving time length and a light receiving period of a light receiving grid is described by taking a time length of an interval between any two adjacent sampling times as an example of a fixed value. For example, the interval between any two adjacent sampling moments is 30 minutes, the sampling date corresponds to 24 sampling moments, for any light receiving grid, if the light receiving grid is in the light receiving state at the current sampling moment, the light receiving grid is considered to be in the light receiving state within 30 minutes in the future, and if the light receiving grid is in the non-light receiving state at the current sampling moment, the light receiving grid is considered to be in the non-light receiving state within 30 minutes in the future, and the light receiving time length and/or the light receiving period of the light receiving grid within one day (within the sampling date) can be determined based on the principle. Of course, the light receiving time period and/or the light receiving period may also be determined in other possible ways, which are not further listed here.
Because the target building comprises a plurality of light receiving grids, the lighting condition of the target building within the sampling date can be determined after the light receiving duration corresponding to the sampling date of the plurality of light receiving grids is acquired and/or the light receiving period corresponding to the sampling date is acquired.
In the implementation process of the application, the light receiving duration corresponding to the sampling date of the plurality of light receiving grids is counted, so that a user can conveniently know the light receiving duration of the corresponding area of the target building in one day; through counting the light receiving time periods corresponding to the plurality of light receiving grids in the sampling date, the user can know the light receiving time period of the area corresponding to the target building in one day conveniently.
In an embodiment of the present application, the lighting condition of the target building within the first sampling date includes light receiving periods corresponding to the plurality of light receiving grids and/or light receiving periods corresponding to the plurality of light receiving grids;
the responding to the first lighting viewing instruction for the target building, and performing mapping processing on a building model corresponding to the target building according to the lighting condition of the target building within a first sampling date, wherein the mapping processing includes at least one of the following steps:
responding to the first lighting viewing instruction, determining a mapping mode corresponding to each light receiving grid according to the light receiving duration of the light receiving grids in the first sampling date, and mapping the building model according to the mapping modes corresponding to the light receiving grids;
generating chartlet data which represents lighting periods and corresponds to each light receiving grid according to the light receiving periods corresponding to the light receiving grids on the first sampling date in response to the first lighting viewing instruction, and carrying out chartlet processing on the building model according to the chartlet data corresponding to the light receiving grids respectively;
and the first sampling date is the same as or similar to the lighting parameter corresponding to the target date.
In this embodiment, the lighting condition of the target building within the first sampling date includes a light receiving period corresponding to the plurality of light receiving grids and/or a light receiving period corresponding to the plurality of light receiving grids. The lighting condition of the target building within the target date is the lighting condition of the target building within the first sampling date associated with the target date.
The lighting parameter corresponding to the first sampling date is the same as or similar to the lighting parameter corresponding to the target date, and the lighting parameter can be the solar altitude. That is, the lighting condition of the target building within the first sampling date is determined as the lighting condition within the target date by determining the first sampling date associated with the target date based on the first lighting viewing instruction of the user indicating to view the lighting condition of the target building within the target date.
The association of the first sampling date with the target date is described below. The first sampling date and the target date may be the same date of different years, such as the target date of 2022 years, 6 months and 18 days, and the first sampling date may be 2021 years, 6 months and 18 days; the first sampling date may be the day or days before the target date, when the solar altitude of the first sampling date is similar to that of the target date; the first sampling date and the target date can be the same solar term of different years, for example, the target date is 2022 years summer solstice, and the first sampling date is 2021 years summer solstice. Of course, the first sampling date and the target date may be associated in other forms, as long as the solar altitude angles of the two are ensured to be the same or similar.
Aiming at the condition that the lighting condition comprises the light receiving duration corresponding to a plurality of light receiving grids, when the building model corresponding to the target building is subjected to mapping processing according to the lighting condition of the target building in the first sampling date, the mapping mode corresponding to each light receiving grid is determined according to the light receiving duration of the plurality of light receiving grids in the first sampling date, the mapping modes corresponding to different light receiving durations can be distinguished, and then the building model is subjected to mapping processing according to the mapping modes corresponding to the plurality of light receiving grids. When mapping processing is carried out, a mapping relation between the light receiving grid and the building model is established, and mapping is carried out based on the mapping relation.
The distinction of the map patterns can be color distinction, shape distinction or image distinction, and of course, other distinction forms are also possible. For example, the light receiving grid with the light receiving duration of more than 8 hours corresponds to a red mapping pattern, the light receiving grid with the light receiving duration of 6 to 8 hours corresponds to a yellow mapping pattern, the light receiving grid with the light receiving duration of 4 to 6 hours corresponds to an orange mapping pattern, and the light receiving grid with the light receiving duration of less than 4 hours corresponds to a green mapping pattern. For example, referring to FIG. 5, a particular illustration of a building model is presented in different colors. Or the light receiving grid with the light receiving time of more than 8 hours corresponds to a square chartlet pattern, the light receiving grid with the light receiving time of 6 to 8 hours corresponds to a circular chartlet pattern, the light receiving grid with the light receiving time of 4 to 6 hours corresponds to a triangular chartlet pattern, and the light receiving grid with the light receiving time of less than 4 hours corresponds to a diamond chartlet pattern; under the condition, the user can know the lighting time of each region of the target building conveniently based on the mapping shape corresponding to each region of the building model. Or the light receiving grid with the light receiving time length of more than 8 hours corresponds to the cartoon character A chartlet style, the light receiving grid with the light receiving time length of 6-8 hours corresponds to the landscape A chartlet style, the light receiving grid with the light receiving time length of 4-6 hours corresponds to the cartoon character B chartlet style, and the light receiving grid with the light receiving time length of less than 4 hours corresponds to the landscape B chartlet style; under the condition, the user can know the lighting time of each region of the target building conveniently based on the mapping content corresponding to each region of the building model.
When the building model corresponding to the target building is subjected to mapping processing according to the lighting condition of the target building within the first sampling date, mapping data representing lighting periods corresponding to each light receiving grid is generated according to the light receiving periods corresponding to the light receiving grids on the first sampling date, and the building model is subjected to mapping processing according to the mapping data corresponding to the light receiving grids. The mapping data corresponding to the light receiving grid may include a light receiving period corresponding to the light receiving grid, for example, the mapping data includes 9 to 12 points and 14 to 16 points. When the building model is subjected to mapping processing according to the mapping data respectively corresponding to the plurality of light receiving grids, a text image is generated according to the mapping relation between the light receiving grids and the building model and the mapping data (which can be understood as text data) corresponding to the light receiving grids, and the mapping processing is carried out on the corresponding area of the building model according to the text image.
The text image comprises text content and a background area, the background area can be displayed in a preset transparency mode, when the corresponding area of the building model is subjected to mapping processing according to the mapping mode of the light receiving grid and mapping data, the display of the mapping mode can not be influenced due to the fact that the background area of the text image is the preset transparency mode, the text content and the mapping mode can be overlaid at the moment, and the mapping mode serves as the background of the text content.
In the implementation process, when the first lighting checking instruction is received, the chartlet pattern is determined based on the light receiving duration of the light receiving grid, and/or the chartlet data is determined based on the light receiving time period of the light receiving grid, and the chartlet processing is performed on the building model according to at least one of the chartlet pattern and the chartlet data, so that a user can conveniently know the light receiving duration based on the chartlet pattern and/or know the light receiving time period based on the chartlet data.
In an embodiment of the present application, the lighting condition includes a light receiving duration corresponding to the plurality of light receiving grids and/or a light receiving period corresponding to the plurality of light receiving grids, and after the building model subjected to mapping is displayed, at least one of the following schemes is further included:
under the condition that a second lighting checking instruction for indicating to check a first light receiving grid is received, marking a first area in the building model in response to the second lighting checking instruction, wherein the first light receiving grid is a light receiving grid with the light receiving duration within a first time duration range, and the first area is an area corresponding to the first light receiving grid in the building model;
under the condition that a third lighting viewing instruction for indicating viewing of a second light receiving grid is received, a second area in the building model is marked in response to the third lighting viewing instruction, the second light receiving grid is a light receiving grid with a light receiving time period within a first time period, and the second area is an area corresponding to the second light receiving grid in the building model.
When the lighting condition comprises the light receiving duration corresponding to the plurality of light receiving grids, after the chartled building model is displayed, under the condition that a second lighting viewing instruction for indicating to view a first light receiving grid with the light receiving duration within a first time duration range is received, a first area matched with the first light receiving grid in the building model is marked in response to the second lighting viewing instruction, so that a user can view the first area corresponding to the first light receiving grid with the light receiving duration within the first time duration range. Specifically, when the building model subjected to mapping processing is displayed, the light receiving duration control can be displayed, a plurality of light receiving duration options are displayed based on the input of the user to the light receiving duration control, and each light receiving duration option corresponds to a light receiving duration range. Referring to fig. 6, in order to show a plurality of options of light receiving duration when the building model is displayed, building identification and selectable dates are also displayed in fig. 6. And after the user selects one light receiving duration option, determining that a second lighting checking instruction is received, determining a first light receiving grid corresponding to the selected light receiving duration option based on the second lighting checking instruction, and marking a first region matched with the first light receiving grid in the building model. For example, the number of the light receiving time duration options is 4, the light receiving time duration options respectively correspond to the light receiving time duration being larger than 8 hours, the light receiving time duration being between 6 and 8 hours, the light receiving time duration being between 4 and 6 hours and the light receiving time duration being smaller than 4 hours, when the user selects the light receiving time duration option corresponding to the light receiving time duration between 6 and 8 hours, a first light receiving grid with the light receiving time duration being between 6 and 8 hours is determined, and a first area matched with the first light receiving grid in the building model is marked. The first area in the building model is marked through the second lighting checking instruction based on the user, so that the user can conveniently select the length of light receiving time and check the corresponding house source in the target building.
When the lighting condition comprises a light receiving period corresponding to a plurality of light receiving grids, after the chartled building model is displayed, in the case of receiving a third lighting viewing instruction for indicating to view a second light receiving grid of the light receiving period in the first period, a second area matched with the second light receiving grid in the building model is marked in response to the third lighting viewing instruction, so that a user can view the second area corresponding to the second light receiving grid of the light receiving period in the first period. Specifically, when the building model subjected to mapping processing is displayed, a light receiving time period control can be displayed, a plurality of light receiving time period options are displayed based on input of a user to the light receiving time period control, and each light receiving time period option corresponds to one light receiving time period. Referring to fig. 7, in order to show options of a plurality of light receiving periods when a building model is displayed, a building mark and selectable dates are also displayed in fig. 7. And after the user selects one light receiving period option, determining that a third lighting viewing instruction is received, determining a second light receiving grid corresponding to the selected light receiving period option based on the third lighting viewing instruction, and marking a second region matched with the second light receiving grid in the building model. For example, the light receiving period options are 5, which correspond to 7 to 9, 9 to 12, 12 to 14, 14 to 16, and 16 to 19, respectively, when the user selects the light receiving period option corresponding to 9 to 12, the second light receiving grid in the light receiving state at 9 to 12 is determined, and the second area in the building model matching with the second light receiving grid is marked. The second area in the building model is marked based on the third lighting viewing instruction of the user, so that the user can conveniently select the light receiving time period to view the corresponding house source in the target building.
The second lighting viewing instruction and the third lighting viewing instruction may be lighting viewing instructions for a target date or lighting viewing instructions for other dates.
When the lighting condition includes the light receiving duration and the light receiving period corresponding to the multiple light receiving grids, a first region matched with the first light receiving grid in the building model can be marked based on the second light receiving check instruction, a second region matched with the second light receiving grid in the building model can be marked based on the third light receiving check instruction, and the marking of the first region can be cancelled when the second region is marked, or the marking of the first region is reserved, and different marking patterns are adopted to mark the second region.
In the implementation process of the application, the user can conveniently select the light receiving duration and check the corresponding house source in the target building by marking the first area corresponding to the first light receiving grid based on the selection of the light receiving duration by the user; the second area corresponding to the second light receiving grid is marked based on the selection of the user on the light receiving time period, so that the user can conveniently select the light receiving time period and check the corresponding house source in the target building.
In the above overall implementation process of the method for acquiring lighting information provided by the embodiment of the application, by constructing a building enclosure that encloses a target building and has the same profile as the target building, a plurality of light receiving grids corresponding to the building enclosure are determined, and according to light receiving states of the plurality of light receiving grids at a plurality of sampling moments of each sampling date, the lighting condition of the target building in each sampling date is determined, so that a relatively accurate lighting condition can be acquired based on the building enclosure that has the same shape as the target building; when a first lighting checking instruction which aims at a target building and indicates that the lighting condition in the target date is checked is received, according to the lighting condition of the target building in the first sampling date associated with the target date, mapping processing is carried out on a building model corresponding to the target building, the building model subjected to mapping processing is displayed, and a user can conveniently know the lighting condition of the target building through the building model.
Furthermore, the building surrounding shell corresponding to the target building is determined based on the real building parameters, and the lighting condition of the target building is determined based on the light receiving condition of the light receiving grid corresponding to the building surrounding shell, so that the lighting condition can be relatively accurately determined compared with a scheme of simulating the lighting condition of a building by using a 3D modeling technology; by determining the lighting condition in the first sampling date as the lighting condition in the target date based on the date correlation, the lighting condition can be quickly acquired and displayed based on the input of the user, and the information acquisition experience of the user is improved.
By mapping the building model according to at least one of the mapping style and the mapping data, a user can know the light receiving time based on the mapping style and/or the light receiving time based on the mapping data conveniently; the first region corresponding to the first light receiving grid is marked based on the selection of the light receiving duration by the user, so that the user can conveniently select the light receiving duration and check the corresponding house source in the target building; the second area corresponding to the second light receiving grid is marked based on the selection of the user on the light receiving time period, so that the user can conveniently select the light receiving time period and check the corresponding house source in the target building.
An embodiment of the present application provides a device for acquiring lighting information, as shown in fig. 8, including:
the building module 801 is used for building a building enclosure which surrounds a target building and has the same outline as the target building;
a first determining module 802, configured to determine a plurality of light receiving grids corresponding to an enclosing surface of the building enclosure;
a second determining module 803, configured to determine, according to light receiving states of the light receiving grids at a plurality of sampling times of a sampling date, lighting conditions of the target building within the sampling date, where the sampling dates are multiple;
the processing and displaying module 804 is used for responding to a first lighting viewing instruction for the target building, performing mapping processing on a building model corresponding to the target building according to the lighting condition of the target building within a first sampling date, and displaying the building model subjected to mapping processing;
wherein the first lighting viewing instruction is used for indicating the lighting condition within the viewing target date, and the first sampling date is associated with the lighting parameter corresponding to the target date.
Optionally, the building module comprises:
the first determining submodule is used for determining a first polygon corresponding to the target building according to the building parameters of the target building, and the first polygon is a polygon corresponding to the target building on a horizontal plane and comprising a plurality of vertexes;
a second determining submodule, configured to determine, for each vertex of the first polygon, an outward-expanded vertex corresponding to the vertex;
a third determining submodule, configured to connect two adjacent outward-expanded vertices with respect to the multiple outward-expanded vertices, and determine a second polygon surrounding the first polygon;
and the fourth determining submodule is used for determining the building enclosure shell according to the second polygon and the height of the target building.
Optionally, the second determining sub-module includes:
the first determining unit is used for constructing a parallelogram according to a first line segment and a second line segment corresponding to each vertex and determining a first diagonal line corresponding to the vertex in the parallelogram;
and the second determining unit is used for determining an outward expansion vertex with a preset distance from the vertex on the first diagonal or the reverse extension line of the first diagonal.
Optionally, the first determining module includes:
a fifth determining submodule, configured to determine, for each line segment of the second polygon, a final segmentation length corresponding to the line segment according to a corresponding preset segmentation length and a length corresponding to the line segment;
the sixth determining submodule is used for determining the light receiving grids corresponding to the first surrounding surfaces according to the final segmentation length corresponding to the line segments and the first surrounding surfaces corresponding to the line segments for each line segment;
the number of the light receiving grids corresponding to each floor in the first surrounding surface is the same.
Optionally, the sixth determining sub-module is further configured to:
and dividing the first surrounding surface based on the floor number corresponding to the first surrounding surface and the final division length corresponding to the line segment to obtain the light receiving grid corresponding to the first surrounding surface.
Optionally, the second determining module includes:
the acquisition submodule is used for acquiring light receiving states corresponding to the light receiving grids at each sampling moment of the sampling date;
a seventh determining submodule, configured to determine, for each light receiving grid, a light receiving time duration corresponding to the light receiving grid on the sampling date according to light receiving states corresponding to the light receiving grid at multiple sampling times of the sampling date, and/or determine a light receiving period corresponding to the light receiving grid on the sampling date;
and the eighth determining submodule is used for determining the lighting condition of the target building within the sampling date according to the light receiving time lengths of the light receiving grids corresponding to the sampling date and/or the light receiving time period corresponding to the sampling date.
Optionally, the lighting condition of the target building within the first sampling date comprises light receiving time periods corresponding to the plurality of light receiving grids and/or light receiving time periods corresponding to the plurality of light receiving grids;
the processing and displaying module comprises at least one of the following sub-modules:
the first processing submodule is used for responding to the first lighting viewing instruction, determining a mapping mode corresponding to each light receiving grid according to the light receiving duration of the light receiving grids in the first sampling date, and mapping the building model according to the mapping modes respectively corresponding to the light receiving grids;
the second processing submodule is used for responding to the first lighting viewing instruction, generating chartlet data which is corresponding to each light receiving grid and represents the lighting period according to the light receiving periods corresponding to the light receiving grids on the first sampling date, and carrying out chartlet processing on the building model according to the chartlet data which are respectively corresponding to the light receiving grids;
and the first sampling date is the same as or similar to the lighting parameter corresponding to the target date.
Optionally, the lighting condition includes light receiving time periods corresponding to the plurality of light receiving grids and/or light receiving time periods corresponding to the plurality of light receiving grids, and after the building model subjected to mapping is displayed, the apparatus further includes at least one of the following modules:
the first marking module is used for marking a first area in the building model in response to a second lighting viewing instruction when the second lighting viewing instruction which indicates that a first light receiving grid is viewed is received, wherein the first light receiving grid is a light receiving grid with light receiving duration within a first time duration range, and the first area is an area corresponding to the first light receiving grid in the building model;
and the second marking module is used for marking a second area in the building model in response to a third lighting viewing instruction when the third lighting viewing instruction which indicates that a second light receiving grid is viewed is received, wherein the second light receiving grid is a light receiving grid within a first time period in a light receiving period, and the second area is an area corresponding to the second light receiving grid in the building model.
For the device embodiments of the present application, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
An embodiment of the present application further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement each process of the above method for acquiring lighting information, and can achieve the same technical effect, and are not described herein again to avoid repetition.
For example, fig. 9 shows a schematic physical structure diagram of an electronic device. As shown in fig. 9, the electronic device may include: a processor (processor) 910, a communication Interface (Communications Interface) 920, a memory (memory) 930, and a communication bus 940, wherein the processor 910, the communication Interface 920, and the memory 930 are coupled for communication via the communication bus 940. The processor 910 may invoke logic instructions in the memory 930, the processor 910 being configured to perform the steps of: building a building surrounding shell which surrounds a target building and has the same outline as the target building; determining a plurality of light receiving grids corresponding to the surrounding surface of the building surrounding shell; determining the lighting condition of the target building within the sampling date according to the light receiving states of the light receiving grids corresponding to the sampling moments of the sampling date, wherein the sampling date is multiple; responding to a first lighting viewing instruction for the target building, according to the lighting condition of the target building within the first sampling date, mapping a building model corresponding to the target building, and displaying the mapped building model; wherein the first lighting viewing instruction is used for indicating the lighting condition within the viewing target date, and the first sampling date is associated with the lighting parameter corresponding to the target date. The processor 910 may also perform other schemes in the embodiments of the present application, which are not further described herein.
Furthermore, the logic instructions in the memory 930 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above method for acquiring lighting information, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed in the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method of obtaining lighting information, comprising:
building a building surrounding shell which surrounds a target building and has the same outline as the target building;
determining a plurality of light receiving grids corresponding to the surrounding surface of the building surrounding shell;
determining the lighting condition of the target building within the sampling date according to the light receiving states of the light receiving grids corresponding to the sampling moments of the sampling date, wherein the sampling date is multiple;
responding to a first lighting viewing instruction for the target building, according to the lighting condition of the target building in a first sampling date, performing mapping processing on a building model corresponding to the target building, and displaying the building model subjected to mapping processing;
wherein the first lighting viewing instruction is used for indicating the lighting condition within the viewing target date, and the first sampling date is associated with the lighting parameter corresponding to the target date.
2. The method according to claim 1, wherein the constructing a building enclosure that encloses a target building and has the same profile as the target building comprises:
determining a first polygon corresponding to the target building according to the building parameters of the target building, wherein the first polygon is a polygon corresponding to the target building on a horizontal plane and comprising a plurality of vertexes;
for each vertex of the first polygon, determining an outward expansion vertex corresponding to the vertex;
aiming at a plurality of outward-expanding vertexes, connecting two adjacent outward-expanding vertexes to determine a second polygon surrounding the first polygon;
and determining the building enclosure shell according to the second polygon and the height of the target building.
3. The method of claim 2, wherein the determining, for each vertex of the first polygon, a corresponding flaring vertex for the vertex comprises:
for each vertex, constructing a parallelogram according to a first line segment and a second line segment corresponding to the vertex, and determining a first diagonal corresponding to the vertex in the parallelogram;
and determining an outward expansion vertex with a preset distance from the vertex on the first diagonal line or the reverse extension line of the first diagonal line.
4. The method according to claim 2, wherein the determining a plurality of photic grids corresponding to the enclosing surfaces of the building enclosing shell comprises:
aiming at each line segment of the second polygon, determining a final segmentation length corresponding to the line segment according to a corresponding preset segmentation length and a length corresponding to the line segment;
for each line segment, determining a light receiving grid corresponding to a first surrounding surface according to the final segmentation length corresponding to the line segment and the first surrounding surface corresponding to the line segment;
the number of the light receiving grids corresponding to each floor in the first surrounding surface is the same.
5. The method according to claim 4, wherein the determining the light receiving grid corresponding to the first bounding surface according to the final segmentation length corresponding to the line segment and the first bounding surface corresponding to the line segment comprises:
and dividing the first surrounding surface based on the floor number corresponding to the first surrounding surface and the final division length corresponding to the line segment to obtain the light receiving grid corresponding to the first surrounding surface.
6. The method according to claim 1, wherein the determining the lighting condition of the target building within the sampling date according to the light receiving states of the light receiving grids corresponding to the sampling times of the sampling date comprises:
acquiring light receiving states corresponding to the plurality of light receiving grids at each sampling time of the sampling date;
for each light receiving grid, determining the light receiving time length corresponding to the light receiving grid on the sampling date according to the light receiving states corresponding to the light receiving grid on a plurality of sampling moments of the sampling date, and/or determining the light receiving time period corresponding to the light receiving grid on the sampling date;
and determining the lighting condition of the target building within the sampling date according to the light receiving duration corresponding to the sampling date and/or the light receiving period corresponding to the sampling date.
7. The method according to claim 1 or 6, wherein the lighting condition of the target building within the first sampling date comprises a light receiving period corresponding to the plurality of light receiving grids and/or a light receiving period corresponding to the plurality of light receiving grids;
the mapping processing is carried out on the building model corresponding to the target building according to the lighting condition of the target building within the first sampling date in response to the first lighting viewing instruction for the target building, and comprises at least one of the following steps:
responding to the first lighting viewing instruction, determining a mapping mode corresponding to each light receiving grid according to the light receiving duration of the light receiving grids in the first sampling date, and mapping the building model according to the mapping modes corresponding to the light receiving grids;
generating chartlet data representing lighting periods corresponding to each light receiving grid according to the light receiving periods corresponding to the light receiving grids on the first sampling date in response to the first lighting viewing instruction, and carrying out chartlet processing on the building model according to the chartlet data corresponding to the light receiving grids respectively;
and the first sampling date is the same as or similar to the lighting parameter corresponding to the target date.
8. The method according to claim 1 or 6, wherein the lighting conditions comprise light receiving periods corresponding to the plurality of light receiving grids and/or light receiving periods corresponding to the plurality of light receiving grids, and after displaying the mapped building model, the method further comprises at least one of the following schemes:
under the condition that a second lighting checking instruction for indicating to check a first light receiving grid is received, marking a first area in the building model in response to the second lighting checking instruction, wherein the first light receiving grid is a light receiving grid with the light receiving duration within a first time duration range, and the first area is an area corresponding to the first light receiving grid in the building model;
under the condition that a third lighting viewing instruction for indicating viewing of a second light receiving grid is received, a second area in the building model is marked in response to the third lighting viewing instruction, the second light receiving grid is a light receiving grid with a light receiving time period within a first time period, and the second area is an area corresponding to the second light receiving grid in the building model.
9. An apparatus for acquiring lighting information, comprising:
the building module is used for building a building enclosure shell which encloses a target building and has the same outline as the target building;
the first determining module is used for determining a plurality of light receiving grids corresponding to the surrounding surface of the building surrounding shell;
a second determining module, configured to determine, according to light receiving states of the light receiving grids at a plurality of sampling times of a sampling date, lighting conditions of the target building within the sampling date, where the sampling dates are multiple;
the processing and displaying module is used for responding to a first lighting viewing instruction for the target building, carrying out mapping processing on a building model corresponding to the target building according to the lighting condition of the target building within a first sampling date, and displaying the building model subjected to mapping processing;
wherein the first lighting viewing instruction is used for indicating the lighting condition in the viewing target date, and the first sampling date is associated with the lighting parameter corresponding to the target date.
10. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of acquiring lighting information according to any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of acquiring lighting information according to any one of claims 1 to 8.
CN202210739058.2A 2022-06-27 2022-06-27 Method and device for acquiring lighting information, electronic equipment and storage medium Pending CN115222910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210739058.2A CN115222910A (en) 2022-06-27 2022-06-27 Method and device for acquiring lighting information, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210739058.2A CN115222910A (en) 2022-06-27 2022-06-27 Method and device for acquiring lighting information, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115222910A true CN115222910A (en) 2022-10-21

Family

ID=83609120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210739058.2A Pending CN115222910A (en) 2022-06-27 2022-06-27 Method and device for acquiring lighting information, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115222910A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117611726A (en) * 2024-01-24 2024-02-27 埃洛克航空科技(北京)有限公司 Real model sunlight display method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117611726A (en) * 2024-01-24 2024-02-27 埃洛克航空科技(北京)有限公司 Real model sunlight display method and device
CN117611726B (en) * 2024-01-24 2024-05-14 埃洛克航空科技(北京)有限公司 Real model sunlight display method and device

Similar Documents

Publication Publication Date Title
Fisher-Gewirtzman et al. Voxel based volumetric visibility analysis of urban environments
CN109271893A (en) A kind of generation method, device, equipment and storage medium emulating point cloud data
CN109559381B (en) Transformer substation acceptance method based on AR space measurement technology
CN111192354A (en) Three-dimensional simulation method and system based on virtual reality
CN110134752B (en) Three-dimensional large-scene modeling data processing method and device
US10115165B2 (en) Management of tax information based on topographical information
CN107464286B (en) Method, device, equipment and readable medium for repairing holes in three-dimensional city model
CN112634340A (en) Method, device, equipment and medium for determining BIM (building information modeling) model based on point cloud data
CN113538706B (en) Digital sand table-based house scene display method, device, equipment and storage medium
CN107153744B (en) Underground three-dimensional pipeline decision making system
CN107843913B (en) The 3D display method and apparatus of radiation field
CN113112603A (en) Method and device for optimizing three-dimensional model
CN112598993A (en) CIM-based city map platform visualization method and device and related products
CN112435337A (en) Landscape visual field analysis method and system
CN112102492B (en) Game resource manufacturing method and device, storage medium and terminal
EP2380142A1 (en) Geospatial modeling system for 3d clutter data and related methods
CN112053440A (en) Method for determining individualized model and communication device
CN115222910A (en) Method and device for acquiring lighting information, electronic equipment and storage medium
CN115526066A (en) Engineering project virtual simulation teaching method and system based on BIM technology
KR20180093727A (en) Automatically conversion system of GIS data
CN114095716B (en) Monitoring camera three-dimensional simulation method and system based on BIM technology and GIS technology
CN114663324A (en) Fusion display method of BIM (building information modeling) model and GIS (geographic information system) information and related components
CN113744403A (en) Method and system for generating three-dimensional model of building
EP3794910B1 (en) A method of measuring illumination, corresponding system, computer program product and use
CN116503538A (en) Monomer modeling method, system, terminal and storage medium based on oblique photography

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