Building scene visualization method and device, electronic equipment and storage medium
By constructing preset script language data and configuration device data for buildings, the problem of inability to intuitively display multi-floor structures and IoT devices in the existing technology is solved, and a low-cost and efficient visual display of buildings is achieved.
Patent Information
- Application Number
- CN202411497555.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the large screen of the Internet of Things building is presented in the form of two-dimensional plane superimposed device points, which cannot intuitively and clearly display the internal structure of multiple floors, and it is difficult to display a large number of IoT devices in the two-dimensional large screen. At the same time, the 3D building solution based on three-dimensional technology is complex, has high cost, high technical threshold and low development efficiency.
By constructing preset script language data for each floor in the building, setting up the main scene and sub-scene data in the data, configuring the device data, and establishing drill-in mapping relationships under the graph, quickly switching scenes and displaying device information.
The intuitive display of buildings can be achieved without three-dimensional modeling, reducing the cost of visual display, and being able to visually and clearly display information on each floor.
Smart Images

Figure CN119484765A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of visualization technology, and in particular to a building scene visualization method and device, electronic equipment, and storage medium. Background Art
[0002] In related technologies, IoT building screens are usually presented in the form of two-dimensional planes with superimposed equipment points. However, building structures usually involve multiple floors, and two-dimensional planes cannot intuitively and clearly display the internal structure of each floor. At the same time, it is difficult to display all the numerous IoT devices on a two-dimensional large screen. At present, although there are 3D building solutions based on three-dimensional technology on the market, 3D building solutions are complex to implement, have high modeling costs, high technical barriers, strict requirements on terminal configuration, and low development efficiency.
[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose a building scene visualization method and device, electronic device and storage medium, which can reduce the cost of visualization display while intuitively and clearly displaying the information of each floor.
[0005] To achieve the above object, an embodiment of the present application provides a method for visualizing a building scene, the method comprising the following steps:
[0006] Constructing preset script language data for each floor in the building, the preset script language data includes main scene data in the corresponding floor, the main scene data is configured with sub-scene data, the main scene data is used to guide the front end to display the main scene view, and the sub-scene data is used to guide the front end to display the sub-scene view;
[0007] Constructing a configuration table, wherein the data in the configuration table is used to represent the graph drill-down mapping relationship between different floors, and the graph drill-down mapping relationship between the main scene and the sub-scene in the floor;
[0008] The first device data is configured in the main scene data or the sub-scene data; a single device point is provided in the main scene view or the sub-scene view, and the first device data is used to display the single device information according to the click operation instruction of the single device point.
[0009] In some embodiments, the method further comprises the following steps:
[0010] Aggregation point data is configured in the main scene data or the sub-scene data, and the aggregation point data includes second device data, multiple device point identifiers and device aggregation point key values; multiple device points are provided in the main scene view or the sub-scene view, and the device aggregation point key value calls the second device data according to the click operation instructions of the multiple device points and the multiple device point identifiers, and the second device data is used to guide the display of multiple device information in the main scene view or the sub-scene view.
[0011] In some embodiments, the method further comprises the following steps:
[0012] Get alarm data;
[0013] Adjust the display effect of the main scene view or the sub-scene view according to the alarm data.
[0014] In some embodiments, adjusting the display effect of the main scene view or the sub-scene view according to the alarm data includes:
[0015] Determining a scene code of the alarm data;
[0016] Determine the corresponding main scene data as the main scene data to be processed according to the scene code;
[0017] Determining corresponding sub-scene data in the main scene data to be processed according to the scene code as the sub-scene data to be processed;
[0018] Adjust the display effect of the corresponding device in the to-be-processed sub-scenario data according to the alarm data.
[0019] To achieve the above object, another aspect of the embodiment of the present application provides a building scene visualization method, the method comprising the following steps:
[0020] In response to the main scene view viewing instruction, calling the main scene data to display the main scene view;
[0021] In response to the sub-scene view viewing instruction, the sub-scene data is called and the main scene view display is switched to the sub-scene view display through the map drill-down mapping relationship;
[0022] In response to a click operation instruction of a single device point, the first device data is called and the single device information in the first device data is displayed in the sub-scene view.
[0023] In some embodiments, the method further comprises the following steps:
[0024] In response to click operation instructions of multiple device points, calling aggregation point data and displaying the aggregation point data;
[0025] In response to the single device viewing instruction in the aggregation point data, the corresponding single device information in the second device data is called and displayed according to the multi-device point identifier and the device aggregation point key value.
[0026] To achieve the above object, another aspect of an embodiment of the present application provides a building scene visualization device, the device comprising:
[0027] The first module is used to construct preset script language data for each floor in the building, wherein the preset script language data includes main scene data in the corresponding floor, wherein the main scene data is configured with sub-scene data, wherein the main scene data is used to guide the front end to display the main scene view, and the sub-scene data is used to guide the front end to display the sub-scene view;
[0028] The second module is used to construct a configuration table, wherein the data in the configuration table is used to represent the graph drill-down mapping relationship between different floors, and the graph drill-down mapping relationship between the main scene and the sub-scene in the floor;
[0029] The third module is used to configure the first device data in the main scene data or the sub-scene data; a single device point is set in the main scene view or the sub-scene view, and the first device data is used to display the single device information according to the click operation instruction of the single device point.
[0030] To achieve the above object, another aspect of an embodiment of the present application provides a building scene visualization device, the device comprising:
[0031] The fourth module is used to call the main scene data to display the main scene view in response to the main scene view viewing instruction;
[0032] The fifth module is used to respond to the sub-scene view viewing instruction, call the sub-scene data and switch the main scene view display to the sub-scene view display through the map drill-down mapping relationship;
[0033] The sixth module is used to call the first device data and display the single device information in the first device data in the sub-scene view in response to a click operation instruction of a single device point.
[0034] To achieve the above object, another aspect of an embodiment of the present application provides an electronic device, including:
[0035] at least one processor;
[0036] at least one memory for storing at least one program;
[0037] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.
[0038] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.
[0039] The embodiments of the present application include at least the following beneficial effects: the present application provides a building scene visualization method and device, an electronic device and a storage medium, the scheme constructs preset script language data for each floor in the building, sets the main scene data of each floor in the preset script language data, and configures the sub-scene data in the main scene data, so that the main scene data can be used to guide the front end to display the main scene view, and the sub-scene data can be used to guide the front end to display the sub-scene view; then a configuration table is constructed, and a graph drill-down mapping relationship between different floors and a graph drill-down mapping relationship between the main scene and the sub-scene in the floor are established through the data in the configuration table, so as to realize a fast switching process of the scene; then a first configuration is configured in the main scene data or the sub-scene data; Equipment data, a single equipment point is set in the main scene view or the sub-scene view, and the single equipment information can be displayed based on the first equipment data according to the click operation instruction of the single equipment point, so that the building can be intuitively displayed without three-dimensional modeling, effectively reducing the cost of visualization display; in addition, the present application can also call the main scene data for main scene view display in response to the main scene view viewing instruction, call the sub-scene data in response to the sub-scene view viewing instruction and switch the main scene view display to the sub-scene view display through the graph drill-down mapping relationship, and call the first equipment data in response to the click operation instruction of the single equipment point and display the single equipment information in the first equipment data in the sub-scene view, so that the information of each floor can be displayed intuitively and clearly. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flow chart of a building scene visualization method provided in an embodiment of the present application;
[0041] Figure 2 It is a schematic diagram of the implementation code of the preset script language data provided in the embodiment of the present application;
[0042] Figure 3 It is a schematic diagram of a code for establishing a connection between a main scene view and a backend area code provided in an embodiment of the present application;
[0043] Figure 4 It is a code schematic diagram of data encapsulation provided in an embodiment of the present application;
[0044] Figure 5 is a flow chart of another building scene visualization method provided by an embodiment of the present application;
[0045] Figure 6It is a rendering of the main scene view provided in an embodiment of the present application;
[0046] Figure 7 It is a rendering of the scene-by-scene (customer service) view provided in an embodiment of the present application;
[0047] Figure 8 This is a rendering of the scene (machine room) view provided by the embodiment of the present application
[0048] Fig. 9 This is a rendering of a single device information display provided by an embodiment of the present application;
[0049] Fig.10 This is a rendering of a single device information alarm display provided by an embodiment of the present application;
[0050] Fig.11 This is an effect diagram of the multi-device information alarm display provided by an embodiment of the present application;
[0051] Fig.12 It is a structural schematic diagram of a building scene visualization device provided in an embodiment of the present application;
[0052] Fig.13 is a structural schematic diagram of another building scene visualization device provided in an embodiment of the present application;
[0053] Fig.14 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application, they are only examples of devices and methods consistent with some aspects of the embodiments of the present application.
[0055] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0056] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0058] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations:
[0059] 2D is a two-dimensional graphic. 2D graphic content only has the horizontal X-axis and the vertical Y-axis. Traditional hand-made comics, illustrations, etc. are all 2D.
[0060] The Chinese meaning of 3D refers to three dimensions, three coordinates, that is, a space with length, width and height. In mathematics and physics, three-dimensional space is composed of three axes: X, Y and Z. Compared with a plane (2D) with only length and width, 3D technology simulates the visual difference of the human eye and uses two different images to enter the left and right eyes respectively, thereby creating a sense of stereoscopic and depth perception.
[0061] 2.5D is a perspective between 2D and 3D, that is, the perspective of 2D is completely locked, while the perspective of 3D is unlocked and can be changed at will, and 2.5D is in between the two, and can change a certain perspective, but cannot be unlocked, so such games are called 2.5D locked perspective games. In layman's terms, the picture only looks three-dimensional, but there is no 3D from the inside out.
[0062] In related technologies, IoT building screens are usually presented in the form of two-dimensional planes with superimposed equipment points. However, building structures usually involve multiple floors, and two-dimensional planes cannot intuitively and clearly display the internal structure of each floor. At the same time, it is difficult to display all the numerous IoT devices on a two-dimensional large screen. At present, although there are 3D building solutions based on three-dimensional technology on the market, 3D building solutions are complex to implement, have high modeling costs, high technical barriers, strict requirements on terminal configuration, and low development efficiency.
[0063] In view of this, a method and device for visualizing a building scene, an electronic device, and a storage medium are provided in an embodiment of the present application. The present application constructs preset script language data for each floor in the building, sets the main scene data for each floor in the preset script language data, and configures sub-scene data in the main scene data, so that the main scene data can be used to guide the front end to display the main scene view, and the sub-scene data can be used to guide the front end to display the sub-scene view; then a configuration table is constructed, and a graph drill-down mapping relationship between different floors and a graph drill-down mapping relationship between the main scene and the sub-scene in the floor are established through the data in the configuration table, so as to realize a fast switching process of the scene; then the first device data is configured in the main scene data or the sub-scene data , a single device point is set in the main scene view or the sub-scene view, and the single device information can be displayed based on the first device data according to the click operation instruction of the single device point, so that the building can be intuitively displayed without three-dimensional modeling, effectively reducing the cost of visualization display; in addition, the present application can also call the main scene data for main scene view display in response to the main scene view viewing instruction, call the sub-scene data in response to the sub-scene view viewing instruction and switch the main scene view display to the sub-scene view display through the graph drill-down mapping relationship, and call the first device data in response to the click operation instruction of the single device point and display the single device information in the first device data in the sub-scene view, so that the information of each floor can be displayed intuitively and clearly.
[0064] The building scene visualization method provided in the embodiment of the present application relates to the field of visualization technology. The building scene visualization method provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or distributed system composed of multiple physical servers, and can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms and other basic cloud computing services. The server can also be a node server in a blockchain network; the software can be an application that implements the building scene visualization method, etc., but is not limited to the above forms.
[0065] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0066] Figure 1 is an optional flow chart of the building scene visualization method provided in the embodiment of the present application. Figure 1 The method in the embodiment can be applied to the background processing end, and the application process may include but is not limited to steps S110 to S130:
[0067] Step S110: constructing preset script language data for each floor in the building, wherein the preset script language data includes main scene data in the corresponding floor, and sub-scene data is configured in the main scene data, the main scene data is used to guide the front end to display the main scene view, and the sub-scene data is used to guide the front end to display the sub-scene view;
[0068] Step S120: construct a configuration table, wherein the data in the configuration table is used to represent the graph drill-down mapping relationship between different floors, and the graph drill-down mapping relationship between the main scene and the sub-scene in the floor;
[0069] Step S130, configuring the first device data in the main scene data or the sub-scene data; wherein, a single device point is provided in the main scene view or the sub-scene view, and the first device data is used to display the single device information according to the click operation instruction of the single device point.
[0070] In the embodiment of the present application, the preset script language data may include but is not limited to js data, which is used to maintain the main scene data, sub-scene data, hot zone, button data, etc., and its code implementation process is as follows Figure 2As shown. Exemplarily, in a shopping mall building, the main scene data may be the scene data of a floor, and the sub-scene data may be the scene data of each store on the floor. This embodiment implements the switching between different main scenes or the switching between the main scene and the sub-scene by defining the graph drill-down mapping relationship between different floors and the graph drill-down mapping relationship between the main scene and the sub-scene in the floor in the configuration table. It can be understood that this embodiment can establish a connection between the main scene view and the back-end area code (code), so that when the main scene view is switched, the corresponding front-end pre-configured main scene data can be quickly found, thereby completing the main scene view switching. Among them, the connection between the main scene view and the back-end area code is established by the code as shown in FIG. Figure 3 shown.
[0071] In the application process, after selecting the corresponding main scene view, you can find the corresponding main scene data and sub-scene data according to the backend area code, so that you can display the main scene view and sub-scene view through the main scene data and sub-scene data. After completing the construction of the main scene data, sub-scene data and configuration table, you can use Figure 4 The code program shown encapsulates these data, so that the switching process between the main scene view and the sub-scene view can be realized in the main scene view by drilling down. Specifically, the main scene view and the sub-scene view of this embodiment can both adopt 2.5D view.
[0072] In the embodiment of the present application, the embodiment can also configure the first device data in the main scene data or the sub-scene data, and the device data includes but is not limited to the device type, device ID, device name, device relative 2.5D map positioning, etc. Specifically, the embodiment matches the front-end device data and the back-end device data according to the area code, and then filters out the device data of both the front-end and the back-end as the first device data. Among them, the device type corresponding to the first device data can be hidden in the scene view, and when the corresponding device point triggers a click operation instruction, all the data of the device can be displayed in the view.
[0073] In an embodiment of the present application, this embodiment will also configure aggregation point data in the main scene data or the sub-scene data. Among them, the aggregation point data includes second device data, multi-device point identification and device aggregation point key value; multiple device points are provided in the main scene view or the sub-scene view, and the device aggregation point key value calls the second device data according to the click operation instruction of the multiple device points and the multiple device point identification, and the second device data is used to guide the display of multiple device information in the main scene view or the sub-scene view. It can be understood that since the device points may be stored in the scene view and overlap, this embodiment introduces the concept of multi-device aggregation point data based on the overlap, so that multiple device points can be marked in the scene view corresponding to Figure 2.5. When the multiple device points trigger the click operation instruction, the second device data is called according to the point identification. After the target device is determined in the list in the second device data, the device information of the target device can be displayed.
[0074] Specifically, the implementation process of multi-device information display includes but is not limited to the following steps:
[0075] In the device point list of the main scene (floor) and sub-scene (room) data corresponding to the area, the multi-device aggregation point data is maintained. In addition to the basic information of the equipment, the multi-device point identifier and multi-device aggregation point key are added.
[0076] The value of the multi-device point identifier (l abe l) is identified as more, and the point is displayed as a multi-device point. Click it to display the list of devices gathered at the point.
[0077] The back-end device data needs to bind a unique label Key to the devices gathered at each aggregation point. The points are displayed as multi-device points. The front-end requests the back-end interface based on the pre-configured multi-device aggregation point key, and returns the device list corresponding to the aggregation point. The specific device information can be viewed by clicking on the device in the device list.
[0078] In an embodiment of the present application, this embodiment can also match the device list of the current scene view by obtaining each alarm data from the backend and the device identifier corresponding to the alarm data, and update the device data in the scene view according to the improved data, thereby updating the device display effect. For example, if the device corresponding to the 2.5D map is identified and the al armI d in the data is not empty, a flashing alarm display will be displayed.
[0079] It is understandable that, in this embodiment, after determining the scene code of the alarm data, the corresponding main scene data can be determined according to the scene code as the main scene data to be processed, the corresponding sub-scene data can be determined in the main scene data to be processed according to the scene code as the sub-scene data to be processed, and the display effect of the corresponding device in the sub-scene data to be processed can be adjusted according to the alarm data. Exemplarily, when the back-end feedbacks the alarm data, a pop-up window display can be performed on the front-end interface, and after matching the area code of the alarm data to the front-end floor data, if the alarm device is on the same floor as the current scene view, it will jump to the corresponding sub-scene view for display based on the map drill-down; if the alarm data is not on the same floor as the current scene view, after switching to the floor data, it will jump to the corresponding scene for display based on the map drill-down method.
[0080] Figure 5 is another optional flow chart of the building scene visualization method provided in the embodiment of the present application. Figure 5 The method in can be applied to the front end, and the application process may include but is not limited to steps S510 to S530:
[0081] Step S510: In response to the main scene view viewing instruction, calling the main scene data to display the main scene view;
[0082] Step S520: In response to the sub-scene view viewing instruction, call the sub-scene data and switch the main scene view display to the sub-scene view display through the graph drill-down mapping relationship;
[0083] Step S530: In response to a click operation instruction of a single device point, call the first device data and display the single device information in the first device data in the sub-scene view.
[0084] It is understandable that when the front-end interface triggers the main scene view viewing instruction, this embodiment can call the main scene data based on the instruction to display the main scene view, such as Figure 6 As shown in the figure, the overall layout information of a floor can be seen in the main scene view. When the sub-scene view view key (customer service) is selected in the main scene view, the sub-scene view view instruction is triggered. Based on the sub-scene view view instruction, the sub-scene data is called and the main scene view display is switched to the sub-scene view display through the map drilling down mapping relationship, as shown in the figure. Figure 7 and Figure 8 As shown, you can switch to the scene of the sub-scene view (customer service, computer room) and display the information in the scene.
[0085] Specifically, the real-time exchange rate can also click on the click operation instruction of the single device point in the sub-scene view, so that the first device data can be called according to the click operation instruction of the single device point and the single device information in the first device data can be displayed in the sub-scene view. Fig. 9 As shown, when the point of temperature sensor 001 is clicked in the sub-scene view, the device information of temperature sensor 001 can be displayed. It can be understood that when the backend has the alarm data of the device, the frontend will modify the device display effect according to the alarm data. Fig.10 As shown in the figure, when the temperature sensor 001 has alarm data, an alarm mark will appear on the corresponding temperature sensor 001 in the view, and the location information of the abnormal device can be quickly located in the scene view.
[0086] In the embodiment of the present application, the embodiment can also respond to the click operation instruction of the multi-device point and call the aggregation point data and display the aggregation point data; respond to the single device view instruction in the aggregation point data and call the corresponding single device information in the second device data according to the multi-device point identifier and the device aggregation point key value and display it. Fig.11 As shown, when multiple equipment points trigger a click operation instruction, the front end will display multiple aggregation point data of the point (NJ Electrical Fire No. 01, NJ Electrical Fire No. 02, NJ Electrical Fire No. 03, NJ Electrical Fire No. 04, NJ Electrical Fire No. 05, NJ Electrical Fire No. 06 and NJ Electrical Fire No. 07). When a single device view instruction is further triggered, the front end will display the information of the device, for example, the specific device information of NJ Electrical Fire No. 01 will be displayed.
[0087] In summary, the method provided in the embodiment of the present application does not require 3D modeling, effectively reducing the technical threshold and development costs, and the present embodiment can realize the three-dimensional display of buildings and the drill-down switching of scenes on a simple 2.5D map, support multiple scenes and equipment marking, and realize the visual large-screen display of building scenes, which effectively solves the display problems in the prior art and can be applied to the visual display process in places such as commercial parks and industrial parks.
[0088] Reference Fig.12 , an embodiment of the present application provides a building scene visualization device, the device comprising:
[0089] The first module 1210 is used to construct preset script language data for each floor in the building, wherein the preset script language data includes main scene data in the corresponding floor, wherein sub-scene data is configured in the main scene data, wherein the main scene data is used to guide the front end to display the main scene view, and the sub-scene data is used to guide the front end to display the sub-scene view;
[0090] The second module 1220 is used to construct a configuration table, wherein the data in the configuration table is used to represent the graph drill-down mapping relationship between different floors, and the graph drill-down mapping relationship between the main scene and the sub-scene in the floor;
[0091] The third module 1230 is used to configure the first device data in the main scene data or the sub-scene data; a single device point is set in the main scene view or the sub-scene view, and the first device data is used to display the single device information according to the click operation instruction of the single device point.
[0092] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0093] Reference Fig.13 , an embodiment of the present application provides a building scene visualization device, the device comprising:
[0094] The fourth module 1310 is used to call the main scene data to display the main scene view in response to the main scene view viewing instruction;
[0095] The fifth module 1320 is used to call the sub-scene data and switch the main scene view display to the sub-scene view display through the map drill-down mapping relationship in response to the sub-scene view viewing instruction;
[0096] The sixth module 1330 is used to call the first device data and display the single device information in the first device data in the sub-scene view in response to a click operation instruction of a single device point.
[0097] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0098] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned building scene visualization method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0099] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0100] See also Fig.14 , Fig.14The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0101] The processor 1410 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.
[0102] The memory 1420 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1420 can store an operating system and other application programs. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1420, and the processor 1410 calls and executes the building scene visualization method of the embodiment of this application;
[0103] Input / output interface 1430, used to implement information input and output;
[0104] Communication interface 1440, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);
[0105] Bus 1450 , which transmits information between various components of the device (e.g., processor 1410 , memory 1420 , input / output interface 1430 , and communication interface 1440 );
[0106] The processor 1410 , the memory 1420 , the input / output interface 1430 , and the communication interface 1440 are connected to each other in communication within the device via a bus 1450 .
[0107] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned building scene visualization method is implemented.
[0108] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0109] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0110] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0111] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0112] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0113] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0114] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0115] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0116] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0117] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0118] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0119] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0120] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A building scene visualization method, characterized in that: The method comprises the following steps: Constructing preset script language data for each floor in the building, the preset script language data includes main scene data in the corresponding floor, the main scene data is configured with sub-scene data, the main scene data is used to guide the front end to display the main scene view, and the sub-scene data is used to guide the front end to display the sub-scene view; Constructing a configuration table, wherein the data in the configuration table is used to represent the graph drill-down mapping relationship between different floors, and the graph drill-down mapping relationship between the main scene and the sub-scene in the floor; The first device data is configured in the main scene data or the sub-scene data; a single device point is provided in the main scene view or the sub-scene view, and the first device data is used to display the single device information according to the click operation instruction of the single device point.
2. The method according to claim 1, characterized in that The method further comprises the following steps: Aggregation point data is configured in the main scene data or the sub-scene data, and the aggregation point data includes second device data, multiple device point identifiers and device aggregation point key values; multiple device points are provided in the main scene view or the sub-scene view, and the device aggregation point key value calls the second device data according to the click operation instructions of the multiple device points and the multiple device point identifiers, and the second device data is used to guide the display of multiple device information in the main scene view or the sub-scene view.
3. The method according to claim 1, characterized in that: The method further comprises the following steps: Get alarm data; Adjust the display effect of the main scene view or the sub-scene view according to the alarm data.
4. The method according to claim 3, characterized in that The adjusting the display effect of the main scene view or the sub-scene view according to the alarm data includes: Determining a scene code of the alarm data; Determine the corresponding main scene data as the main scene data to be processed according to the scene code; Determining corresponding sub-scene data in the main scene data to be processed according to the scene code as the sub-scene data to be processed; Adjust the display effect of the corresponding device in the to-be-processed sub-scenario data according to the alarm data.
5. A building scene visualization method, characterized in that: The method comprises the following steps: In response to the main scene view viewing instruction, calling the main scene data to display the main scene view; In response to the sub-scene view viewing instruction, the sub-scene data is called and the main scene view display is switched to the sub-scene view display through the map drill-down mapping relationship; In response to a click operation instruction of a single device point, the first device data is called and the single device information in the first device data is displayed in the sub-scene view.
6. The method according to claim 5, characterized in that The method further comprises the following steps: In response to click operation instructions of multiple device points, calling aggregation point data and displaying the aggregation point data; In response to the single device viewing instruction in the aggregation point data, the corresponding single device information in the second device data is called and displayed according to the multi-device point identifier and the device aggregation point key value.
7. A building scene visualization device, characterized in that: The device comprises: The first module is used to construct preset script language data for each floor in the building, wherein the preset script language data includes main scene data in the corresponding floor, wherein the main scene data is configured with sub-scene data, wherein the main scene data is used to guide the front end to display the main scene view, and the sub-scene data is used to guide the front end to display the sub-scene view; The second module is used to construct a configuration table, wherein the data in the configuration table is used to represent the graph drill-down mapping relationship between different floors, and the graph drill-down mapping relationship between the main scene and the sub-scene in the floor; The third module is used to configure the first device data in the main scene data or the sub-scene data; a single device point is set in the main scene view or the sub-scene view, and the first device data is used to display the single device information according to the click operation instruction of the single device point.
8. A building scene visualization device, characterized in that: The device comprises: The fourth module is used to call the main scene data to display the main scene view in response to the main scene view viewing instruction; The fifth module is used to respond to the sub-scene view viewing instruction, call the sub-scene data and switch the main scene view display to the sub-scene view display through the map drill-down mapping relationship; The sixth module is used to call the first device data and display the single device information in the first device data in the sub-scene view in response to a click operation instruction of a single device point.
9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Scene visualization method and device, electronic equipment, and storage medium
CN108734761A
Three-dimensional visual monitoring method and device, electronic equipment and readable storage medium
CN110351524A
Building scene modeling method and device
CN112669446A
Hospital intelligent logistics safety management platform, system and method
CN112700848A
Multi-dynamic-target display method and device, electronic equipment and storage medium
CN114217719A