Planar layout diagram generation method, equipment and medium

By receiving and structurally processing the description information of building functional bodies on the operation interface, a static page is generated to display the floor plan, which solves the problems of complex generation process and low maintenance efficiency in the existing technology, and realizes efficient and convenient generation of building floor plan. and maintenance.

CN118708176APending Publication Date: 2024-09-27南京海泰医疗信息系统有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410726369.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, the process of generating building floor plans is complex and lacks flexibility, resulting in low maintenance and update efficiency and high costs.

Method used

By receiving the description information of the functional bodies in the building on the operation interface, it is sent to the server for structured block processing, and a static page is generated to display the floor plan, which supports editing and maintenance and avoids redrawing and information binding.

Benefits of technology

It simplifies the generation process of floor layout drawings, improves the convenience and efficiency of maintenance and updates, reduces costs, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708176A
    Figure CN118708176A
Patent Text Reader

Abstract

The invention discloses a plane layout generating method and device and a medium, and the method comprises the steps: receiving description information of each function body in an operation interface, sending the description information to a server, and receiving structured module information corresponding to each function body in the description information sent by the server; and analyzing the structured module information corresponding to each functional body, and displaying a planar layout in the operation interface, the planar layout including display icons corresponding to each functional body. According to the method, the building plane layout diagram is efficiently and conveniently formed in the form of the static page, the generation process of the plane layout diagram is greatly simplified, and the generated page layout diagram can provide convenience for subsequent maintenance and updating due to the fact that the description information corresponding to each functional body exists in a structured mode, so that the generation efficiency of the plane layout diagram is improved. The defects of low efficiency and high cost caused by redrawing, color block editing and information binding from the bottom plane graph are fundamentally avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device and medium for generating a plane layout diagram. Background Art

[0002] For buildings such as shopping malls and hospitals, floor plans are required for use in scenarios such as fire protection or monitoring to show the distribution of various objects and equipment in the building.

[0003] At present, the following method is usually used to generate floor plan layout diagrams: first, draw a gray plane base map of each floor, then cover each description object and equipment color block on the gray plane base map, and then bind the information of each description object, that is, complete the background docking of information, and finally generate a floor plan.

[0004] However, the generation process of the above-mentioned floor plan layout is complicated and lacks flexibility, so that subsequent maintenance and updates need to start from the bottom floor plan, redraw, edit color blocks and bind information, which is inefficient and costly. Summary of the invention

[0005] The problem solved by the invention is how to generate an editable building plan layout diagram efficiently and simply.

[0006] In order to solve the above problems, in a first aspect, the present invention provides a method for generating a floor plan, the method comprising:

[0007] Receiving description information of each functional body in the operation interface and sending it to the server, the description information including area information and attribute information of each functional body, the area information indicating the location information of the area occupied by each functional body in the building and the contour information of the area occupied, and the attribute information indicating the functional characteristics of each functional body and the display characteristics of each functional body in the floor plan to be generated;

[0008] receiving structured module information corresponding to each function body in the description information sent by the server, wherein the structured module information is obtained by processing the description information in blocks according to each function body;

[0009] The structured module information corresponding to each functional body is parsed, and a floor plan is displayed in the operation interface. The floor plan includes display icons corresponding to each functional body, and the display icons are used to display the area and attributes of each functional body in the building.

[0010] Optionally, in the floor plan generation method provided by the present invention, the structured module information is JSON object format information corresponding to each functional body obtained by performing block processing on the description information based on JSON.

[0011] Optionally, in the method for generating a plan layout provided by the present invention, when the sides of the outline of the area occupied by the functional body in the building are straight lines, the area information includes the coordinate values ​​of the inflection points of the occupied area;

[0012] When there is an arc on the edge of the outline of the area occupied by the functional body in the building, the area information includes the coordinate values ​​of each inflection point of the occupied area and the annotation information of the coordinate values ​​of each inflection point.

[0013] Optionally, in the method for generating a planar layout diagram provided by the present invention, the annotation information includes first annotation information, second annotation information, third annotation information and fourth annotation information, the first annotation information indicates that the corresponding inflection point coordinate value is the starting point of the outline of the area occupied by the functional body, the second annotation information indicates that a line segment is drawn from the current position to the specified position, the third annotation information indicates that a quadratic Bezier curve is drawn from the current position to the specified position, and the fourth annotation information indicates the end point of the outline of the area occupied by the functional body;

[0014] The attribute information includes text information and style information, the text information represents the functional attribute of each of the functional bodies, and the style information represents the text information and the display style of the display icon corresponding to the functional body.

[0015] Optionally, in the method for generating a floor plan provided by the present invention, the operation interface includes a preview area and an editing area, the floor plan is displayed in the preview area, an editing box of the floor plan is displayed in the editing area, and the editing box is used to receive new description information of the function body to be edited;

[0016] The method further includes:

[0017] New description information is received in the editing box of the function body to be edited, and the new description information is used to update the display result of the function body to be edited on the floor plan.

[0018] Optionally, the method for generating a floor plan provided by the present invention further comprises, before receiving new description information of the function body to be edited in the edit box of the function body to be edited:

[0019] Receiving an editing instruction input by operating a display icon of the functional body to be edited in the plan layout diagram;

[0020] Alternatively, an editing instruction input by operating an add operation icon in the editing area is received.

[0021] Optionally, in the floor plan generation method provided by the present invention, the editing area also includes a delete operation icon, a copy operation icon and an association operation icon, the delete operation icon is used to delete the display icon in the floor plan, the copy operation icon is used to copy the display icon in the floor plan, and the association operation icon is used to associate additional information of the target display icon in the floor plan.

[0022] In a second aspect, the present invention provides a method for generating a floor plan, the method comprising:

[0023] Receive description information of each functional body sent by the front end, the description information includes area information and attribute information of each functional body, the area information represents the location information of the area occupied by each functional body in the building and the outline information of the area occupied, and the attribute information represents the functional characteristics of each functional body and the display characteristics of each functional body in the plane layout diagram to be generated;

[0024] The description information is divided into blocks according to each functional body to obtain structured module information corresponding to each functional body in the description information;

[0025] The structured module information is sent to the front end, so that after the front end parses the module information corresponding to each functional body, a floor plan is displayed in the operation interface, wherein the floor plan includes display icons corresponding to each functional body, and the display icons are used to display the area and attributes of each functional body in the building.

[0026] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for generating a floor plan diagram as described in the first aspect is implemented.

[0027] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is used to implement the method for generating a floor plan diagram as described in the first aspect.

[0028] The plan layout generation method, device and medium provided by the present invention import the description information of each functional body in the building into the operation interface through the front-end operation interface, and the front-end sends the imported description information to the back-end server, so that the back-end server performs structured grouping processing on the description information received, taking each functional body as a processing unit, obtains structured module information corresponding to each functional body, and pushes it to the front-end, so that the front-end finally receives the module information after structured processing, parses the module information corresponding to each functional body in turn, and displays the corresponding plan layout of the building in the form of a static page on the operation interface, that is, the present invention can efficiently and conveniently form the building plan layout in the form of a static page on the front-end, greatly simplifying the plan layout generation process, and the generated page layout diagram, because the description information corresponding to each functional body is in a structured manner, can provide convenience for subsequent maintenance and update, and fundamentally avoids the defects of low efficiency and high cost caused by redrawing, color block editing and information binding starting from the bottom floor plan. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of the architecture of a building floor plan generation system according to some embodiments of the present invention;

[0030] Figure 2 A schematic diagram of a flow chart of a method for generating a floor plan layout diagram according to some embodiments of the present invention;

[0031] Figure 3 Schematic diagram of the flow of a method for generating a floor plan layout diagram according to some other embodiments of the present invention;

[0032] Figure 4 A schematic diagram showing a building plan layout diagram according to some embodiments of the present invention;

[0033] Figure 5 A schematic diagram showing a building plan layout diagram according to some embodiments of the present invention;

[0034] Figure 6 It is a schematic diagram of the structure of a planar layout diagram generating device according to some embodiments of the present invention;

[0035] Figure 7 It is a schematic diagram of the structure of a planar layout diagram generating device according to some other embodiments of the present invention;

[0036] Figure 8 Schematic diagram of the structure of electronic devices according to some embodiments of the present invention. DETAILED DESCRIPTION

[0037] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.

[0038] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0039] It is understandable that for public buildings with large and complex traffic and complex functions, it is necessary to generate corresponding layout diagrams, such as floor plans of each floor, to assist other systems to ensure the normal operation of each area and function in the public building.

[0040] Such as auxiliary monitoring systems or fire protection systems to ensure that the flow of people in public buildings is maintained at normal levels.

[0041] It can also be understood that in the above scenario, the specific layout of each floor in the public building may be adjusted and changed during use. Correspondingly, the floor plan of each floor needs to be updated in real time according to the changes of the described objects.

[0042] In the present invention, in order to simplify the generation process of a building layout diagram, so as to achieve the convenience of subsequent maintenance and updating, reduce the cost of subsequent maintenance, and improve maintenance efficiency, a front end is provided so that a user can realize the generation, editing and modification of a building layout diagram by operating an operation interface of the front end, that is, the description information of each functional body in the building, that is, the location coordinates and display style of each room and / or each device, is obtained by using a front-end programming language, and converted into corresponding structured module information to generate a static page corresponding to the floor plan of the building, so as to complete the generation of the building layout diagram, so that the floor plan building layout diagram presented in the form of a static page can be conveniently and quickly edited and updated for each description object therein, and ultimately improve the user experience, thereby solving the problems in the related art that the generation process of the building layout diagram is complicated, the generated building layout diagram lacks flexibility and mobility, and cannot be conveniently and timely modified.

[0043] Figure 1 FIG. 1 is a schematic diagram showing a framework for implementing the present invention. Figure 1 As shown, the framework can be implemented based on the CS or BS framework, and can specifically include a terminal and a server.

[0044] The terminal may be an electronic device such as a computer, a tablet computer or a smart mobile terminal, on which a front end may be loaded, such as a web terminal running based on a previewer, or may be a developed application.

[0045] After the web terminal or application can be run on an electronic device, the user can access the backend server through the runtime operation interface to generate, edit and modify the floor plan of the building.

[0046] The server may be a server cluster or a cloud server, etc., running the above-mentioned application or web-side background information, such as an information library, etc.

[0047] In order to better understand the architectural plan generation method provided by the present invention, it is described in detail below with reference to the accompanying drawings.

[0048] Figure 2 FIG. 1 is a flow chart of a method for generating a building plan view according to some embodiments of the present invention. The method may be performed by Figure 1 The front-end loaded on the terminal shown in the figure is executed, such as Figure 2 As shown, the method specifically includes:

[0049] S110, receiving description information of each functional body in the operation interface and sending it to the server, the description information includes area information and attribute information of each functional body, the area information represents the location information of the area occupied by each functional body in the building and the contour information of the area occupied, the attribute information represents the functional characteristics of each functional body and the display characteristics of each functional body in the floor plan to be generated.

[0050] S120, receiving structured module information corresponding to each function body in the description information sent by the server, wherein the structured module information is obtained by dividing the description information into blocks according to each function body.

[0051] S130, parsing the structured information corresponding to each functional body, and displaying a floor plan in the operation interface, wherein the floor plan includes display icons corresponding to each functional body, and the display icons are used to display the area and attributes of each functional body in the building.

[0052] Specifically, in an embodiment of the present invention, when it is necessary to generate various functional bodies of the internal layout of a building, that is, a floor plan describing the object, the user can run the front end on an electronic device to display an operating interface for generating and managing the building floor plan on the display screen of the electronic device.

[0053] Then, an operation instruction may be inputted in the operation interface to perform an import operation of the description information of each description object, so that the electronic device receives the description information of each description object through the import operation in the operation interface.

[0054] The functional body may be a description object that needs to be reflected in the building, such as each room or each equipment.

[0055] The description information may be a description and definition of the area where the functional body is located, and may specifically include area information and attribute information of each corresponding description object.

[0056] The area information represents the location information of the area occupied by each functional body in the building and the outline information of the area occupied, and the attribute information represents the functional characteristics of each functional body and the display characteristics of each functional body in the floor plan to be generated.

[0057] For example, the area information may include the location coordinates of the area occupied by the room or device, and the attribute information may include display color features, border features, identification characters, and display style features of the identification characters corresponding to the room or device.

[0058] The description information may be stored in an Excel table, that is, in practice, the description information may be imported through an Excel file.

[0059] Furthermore, after receiving the description information through the import operation of the operation interface, the front end can send it to the backend server to store it in the relational information library of the backend server, so that the backend server can read the stored description information and perform structured processing and conversion to generate structured module information corresponding to each description object, and push it to the front end.

[0060] That is, the description information is structured according to each description object, so as to generate a structured information module from the description information corresponding to each description object, and finally obtain the structured information module of each description object.

[0061] Finally, after receiving the structured information module, the front end can parse the structured information of each description object and display the floor plan of the building on the operation interface.

[0062] The floor plan may include display icons corresponding to various functional bodies in the building, that is, each display icon is used to display various description objects in the building, such as the location of functional bodies such as rooms or equipment, and other attributes, such as the size of the space occupied, functional information, etc.

[0063] It can be understood that the building may be a complex building including one or more floors. Accordingly, the generated floor plan may be a floor plan corresponding to each floor in the building.

[0064] For example, for buildings such as hospitals, museums or schools, a floor plan of each floor can be generated to assist other monitoring departments in their operations.

[0065] like Figure 4As shown, in the scenario where the building is a hospital, the floor plan diagram displays display icons corresponding to each functional body, and each display icon has different display characteristics, such as internal fill color or border color, etc. The display icon also displays the name of the functional body, such as conference room, consulting room and printer, etc.

[0066] It can be understood that in the embodiment of the present invention, the description information of each functional body in the building is imported into the operation interface through the front-end operation interface, and the front-end sends the imported description information to the back-end server, so that the back-end server performs structured grouping processing on the description information received, taking each functional body as a processing unit, and obtains the structured module information corresponding to each functional body, and pushes it to the front-end, so that the front-end finally receives the module information after structured processing, and parses the module information corresponding to each functional body in turn, and displays the corresponding floor plan of the building in the form of a static page on the operation interface, that is, the present invention can efficiently and conveniently form the building floor plan in the form of a static page on the front-end, which greatly simplifies the generation process of the floor plan, and the generated page layout diagram, because the description information corresponding to each functional body is in a structured manner, can provide convenience for subsequent maintenance and updates, improve user experience, and fundamentally avoid the defects of low efficiency and high cost caused by redrawing, color block editing and information binding starting from the bottom floor plan.

[0067] On the other hand, Figure 3 As shown, the present invention provides a method for generating a floor plan, which is executed by a server and specifically comprises the following steps:

[0068] S210, receiving the description information of each functional body sent by the front end, the description information includes the area information and attribute information of each functional body, the area information represents the location information of the area occupied by each functional body in the building and the outline information of the area occupied, the attribute information represents the functional characteristics of each functional body and the display characteristics of each functional body in the floor plan to be generated.

[0069] S220, dividing the description information into blocks according to each functional body to obtain structured module information corresponding to each functional body in the description information.

[0070] S230, sending the structured module information to the front end, so that after the front end parses the module information corresponding to each functional body, a floor plan is displayed in the operation interface, and the floor plan includes display icons corresponding to each functional body, and the display icons are used to display the area and attributes of each functional body in the building.

[0071] Specifically, Figure 1The server shown can receive the description information sent by the front end, and then store the description information in the information library, and then perform structured processing on the stored description information, that is, according to the description information corresponding to each functional body, the description information is converted into a structured format, and finally the module information corresponding to each functional body is obtained, and pushed to the front end, so that after the front end parses the module information corresponding to each functional body, the floor plan is displayed in the operation interface.

[0072] It can be understood that in the embodiment of the present invention, the background server takes each functional body as a processing unit, performs structured grouping processing on the description information received, obtains structured module information corresponding to each functional body, and pushes it to the front end, so that the front end finally receives the module information after structured processing, parses the module information corresponding to each functional body in turn, and displays the corresponding floor plan of the building in the form of a static page on the operation interface. That is, the present invention can efficiently and conveniently form a building floor plan in the form of a static page on the front end, greatly simplifies the generation process of the floor plan, and the generated page layout diagram, because the description information corresponding to each functional body is stored in the server in a structured manner, can facilitate subsequent maintenance and updates, improve user experience, and fundamentally avoid the defects of low efficiency and high cost caused by redrawing, color block editing and information binding starting from the bottom floor plan.

[0073] Optionally, in some embodiments of the present invention, in order to simplify the information processing process, the structured information received by the front end running on the electronic device is JSON object format information corresponding to each of the functional bodies obtained by block processing the description information based on JSON.

[0074] That is, after receiving the description information, the backend server can perform structured processing in the following steps:

[0075] Based on the JSON array format, the description information is structurally processed to obtain module information corresponding to each description object.

[0076] Specifically, after the background server receives the description information, the description information may be imported into a relational information library, and the server then obtains the imported description information through JDBC to group and organize the description information in the library in a JSON array format.

[0077] Among them, the module information corresponding to each function body is recorded in JSON object format, including the area information and attribute information of the area occupied by the function body. The area information represents the path information (i.e., position and outline information) of the occupied area, and the attribute information represents the border color, border thickness, internal style gradient color, internal text content and style information of the display icon corresponding to each function body.

[0078] Finally, the structured information after the above processing is returned to the front-end page. The front-end page parses the JSON information, and the front-end traverses the JSON information to quickly generate a floor plan through the H5 front-end template engine.

[0079] For example, the background uses Apache poi to parse EXCEL information and quickly import floor plan coordinate information.

[0080] It can be understood that in the embodiment of the present invention, the background server performs structural processing on the description information based on JSON, and then generates a corresponding floor plan in the form of a static page, which can intuitively understand the location of each room and equipment, as well as the usage status.

[0081] Furthermore, since the description information of each description object exists as a separate structural module, the floor information generated using this method can be adjusted and edited at will.

[0082] Optionally, in some embodiments of the present invention, the area information in the description information, i.e., the path information, may be the inflection point coordinates and coordinate annotation information of the description object; the attribute information may include display style information, text information and text display format information of the area corresponding to the functional body, which is used to define the display characteristics of the display icon corresponding to the functional body, as well as the text of the functional body name in the display icon and its display characteristics.

[0083] Specifically, in some embodiments of the present invention, when a user needs to generate a floor plan of a building, he or she may first collect floor plans of the building, such as collecting floor plans of each floor.

[0084] Furthermore, the acquired plane images can be processed by a coordinate positioning tool to obtain the position coordinates of each described object.

[0085] That is, we can first define the origin of the two-dimensional plane coordinates, and then use this as a reference to record the position coordinates of each description object in the plane diagram, that is, the functional body, such as the coordinates of each inflection point of the area occupied by each room and equipment. Then, we can summarize the coordinates of each inflection point of each room and area in sequence, and finally obtain the inflection point coordinates and standard information of each functional body area.

[0086] Finally, the coordinates and annotation information of each inflection point can be entered into an EXCEL table in a fixed format to obtain the area information.

[0087] It can be understood that various functional bodies have different external forms, that is, the shapes of the areas they occupy are different, and they can be regular polygons or shapes including arcs.

[0088] For example, in two-dimensional plane coordinates, that is, in the coordinate form (x, y), the upper left corner is the starting point (0, 0) by default.

[0089] If the outer contour of the functional body is a regular polygon with straight lines on each side, that is, if the sides of the contour of the area occupied by the functional body are straight lines, the area information includes the coordinate values ​​of each inflection point of the occupied area.

[0090] In practice, the coordinates of each point can be directly recorded clockwise.

[0091] For example: draw an irregular polygon 25, 185 143, 185 143, 410 40, 410 40, 270 25, 270. The coordinates of each point are separated by spaces;

[0092] Alternatively, when there is an arc on the edge of the outline of the area occupied by the functional body in the building, the area information includes the coordinate values ​​of each inflection point of the occupied area and the annotation information of the coordinate values ​​of each inflection point.

[0093] That is, if the object being described is a polygonal rule and has arc edges, it is necessary to mark between the coordinates when recording the point coordinates.

[0094] The annotation information may include:

[0095] First annotation information M: identifies the starting point of the current path;

[0096] Second annotation information L: indicates that a line segment is drawn from the current position to the specified position;

[0097] The third annotation information Q: indicates the current position and draws a quadratic Bezier curve to the specified position;

[0098] The fourth annotation information Z: identifies a closed path, that is, a closed line segment is drawn from the last recorded point coordinates to the starting point coordinates.

[0099] For example, Figure 4 As shown, the path drawn by the reception desk of a nurse station is: M 540 360L 565, 360Q573, 354577, 380L 577, 410Q 575, 416 565, 425L 540, 425Z.

[0100] Furthermore, for the record of attribute information in the description information, hexadecimal color codes can be used for maintenance. Gradient colors need to record the start color code and the end color code information; the hexadecimal information of the area outer border color is maintained and recorded.

[0101] In addition, for regional text content maintenance, horizontal text content does not require special markings, and vertical text content can be marked by adding the suffix "L" at the end of the text as a text annotation.

[0102] It can be understood that in the embodiment of the present invention, the original image is collected and then the coordinate analysis tool is used to locate the coordinates of each description object in the original image, thereby obtaining the description information of each description object.

[0103] Optionally, in some embodiments of the present invention, after the above-mentioned plan layout diagram is generated, the plan layout diagram can be flexibly edited and modified.

[0104] That is Figure 4 and Figure 5 The front-end operation interface may include a preview area and an editing area, wherein the preview area displays the plan layout diagram, and the editing area displays an editing box of the plan layout diagram, wherein the editing box is used to receive new description information of the function body to be edited.

[0105] That is Figure 5 As shown, the method also includes:

[0106] New description information is received in the editing box of the function body to be edited, and the new description information is used to update the display result of the function body to be edited on the floor plan.

[0107] Specifically, in an embodiment of the present invention, when the layout of specific description objects of a public building changes, making it necessary to update the floor plans of each floor in real time according to the changes in the description objects, etc., the user can run the front end on the electronic device, that is, display the operating interface of the building layout diagram on the display screen of the electronic device.

[0108] like Figure 4 and Figure 5 As shown, the operation interface may include a preview area and an editing area. The preview area is used to display the floor plan, and the editing area is used to display each editing box.

[0109] That is, the preview area can display display icons corresponding to each descriptive object in the building, so that when the layout of a functional body changes, that is, the corresponding description information changes, the functional body, as the functional body to be edited, needs to edit and modify the previous description information to modify the display result of the display icon corresponding to the functional body to be edited.

[0110] Alternatively, if a functional body is added to the building, a display icon corresponding to the functional body needs to be added to the floor plan.

[0111] The user can input operation instructions into the operation interface through the operation interface to update and modify the current plane layout diagram.

[0112] For example, the user may input an editing instruction by clicking on a display icon corresponding to the function body in the preview area, that is, a display icon of the function body to be edited corresponding to the target description whose description information needs to be updated.

[0113] like Figure 4 As shown, you can click the display icon corresponding to the registration and charging function in the preview area to enter an editing instruction, and then display the editing box corresponding to the function in the editing area.

[0114] Or, for another example, the user may click on an editing icon displayed on the editing interface to input an editing instruction into the operation interface.

[0115] For example, in the editing area, the user can click the "Add" button to display a blank editing box in the editing area, and then add a display icon corresponding to the new functional body in the floor plan by entering corresponding description information in the editing box.

[0116] Furthermore, after receiving the editing instruction, the front end running on the terminal may respond to the operation instruction and display an editing box for the operation instruction in the editing area.

[0117] like Figure 4 and Figure 5 As shown, the edit box may include input boxes corresponding to various description information, such as a coordinate input box, a text input box, and a style input box.

[0118] The editing box may also include a plurality of display terminal identification input boxes of the plan layout diagram and a description information input box corresponding to each display terminal input box, a floor input box of the plan layout diagram, and the like.

[0119] like Figure 4 and Figure 5 As shown, the corresponding display terminal can be entered in the multiple display terminal input boxes, and the specific display information of the corresponding display terminal can be entered in the corresponding description information input box to achieve the synchronous display of multiple terminals of the building plan layout diagram.

[0120] Finally, after receiving the input description information, the edit box can send it to the backend server, so that the backend server performs the same structural processing and pushes it to the front end. Then, after receiving the new structured information, the front end performs parsing and displays the updated result in the floor plan according to the parsing result.

[0121] That is, this method is built using front-end technology, can be viewed directly in the browser, is interoperable across multiple platforms, and can be deployed once for simultaneous viewing on multiple terminals.

[0122] Optionally, in some embodiments of the present invention, in order to improve the editing efficiency of the floor plan and enhance the user experience, the editing area may further include a delete operation icon, a copy operation icon and an associated operation icon.

[0123] The copy operation icon is used to copy the description information of an existing function body, that is, to copy the existing display icon. The delete operation icon is used to delete the description information of an existing function body, that is, to delete the existing display icon. The association operation icon is used to associate additional information of the function body, that is, to associate additional information of the display icon in the plan layout diagram.

[0124] For example, the copy icon may include a single copy icon and a whole copy icon. The single copy icon is used to copy the description information of an existing function body. The whole copy icon can copy the current whole one-sided layout diagram.

[0125] For another example, the additional information may be the flow of people in the area corresponding to the functional body, and an early warning of the flow of people in the corresponding area may be implemented through an associated operation.

[0126] That is, in this embodiment, each area is processed modularly, and events can be bound to each area to provide early warning information prompts. In addition, if the floor layout changes, the current layout can be directly reused and local data can be adjusted.

[0127] It can be understood that in the embodiment of the present invention, the generated floor plan obtains the coordinates of each division point of each room and device through the image viewing tool, and draws the room and device information through each coordinate point. The static page generated after drawing can bind information to each room and device, and can quickly modify the floor plan and bind and display information. This overcomes the problem in the related art that when the floor plan is updated, it lacks flexibility and mobility, cannot cope with emergency situations, and needs to be redrawn from the bottom floor plan, which is time-consuming and labor-intensive.

[0128] That is, the static page generated by this method can intuitively understand the location of each room and equipment, as well as the usage status. Moreover, the floor information generated by this method can be adjusted arbitrarily, and any area can be monitored, and early warning information prompts can be issued to specific areas.

[0129] On the other hand, Figure 6 As shown, the present invention provides a plan layout diagram generating device, the device comprising:

[0130] The first receiving module 001 is used to receive description information of each functional body in the operation interface and send it to the server, wherein the description information includes area information and attribute information of each functional body, wherein the area information represents the location information of the area occupied by each functional body in the building and the contour information of the area occupied, and the attribute information represents the functional characteristics of each functional body and the display characteristics of each functional body in the plane layout diagram to be generated;

[0131] The second receiving module 002 is used to receive structured module information corresponding to each function body in the description information sent by the server, wherein the structured module information is obtained by processing the description information in blocks according to each function body;

[0132] Display module 003 is used to parse the structured module information corresponding to each functional body, and display a floor plan in the operation interface. The floor plan includes display icons corresponding to each functional body, and the display icons are used to display the area and attributes of each functional body in the building.

[0133] Optionally, in the plan layout diagram generating device provided by the present invention, the structured module information is JSON object format information corresponding to each of the functional bodies obtained by performing block processing on the description information based on JSON.

[0134] Optionally, in the plan layout generating device provided by the present invention, when the sides of the outline of the area occupied by the functional body in the building are straight lines, the area information includes the coordinate values ​​of the inflection points of the occupied area;

[0135] When there is an arc on the edge of the outline of the area occupied by the functional body in the building, the area information includes the coordinate values ​​of each inflection point of the occupied area and the marking information of the coordinate values ​​of each inflection point.

[0136] Optionally, in the plan layout diagram generating device provided by the present invention, the annotation information includes first annotation information, second annotation information, third annotation information and fourth annotation information, the first annotation information indicates that the corresponding inflection point coordinate value is the starting point of the outline of the area occupied by the functional body, the second annotation information indicates that a line segment is drawn from the current position to the specified position, the third annotation information indicates that a quadratic Bezier curve is drawn from the current position to the specified position, and the fourth annotation information indicates the end point of the outline of the area occupied by the functional body;

[0137] The attribute information includes text information and style information, the text information represents the functional attribute of each of the functional bodies, and the style information represents the text information and the display style of the display icon corresponding to the functional body.

[0138] Optionally, in the plan layout generating device provided by the present invention, the operation interface includes a preview area and an editing area, the plan layout is displayed in the preview area, an editing box of the plan layout is displayed in the editing area, and the editing box is used to receive new description information of the function body to be edited;

[0139] The device also includes:

[0140] The third receiving module 004 is used to receive new description information in the editing box of the function body to be edited, and the new description information is used to update the display result of the function body to be edited on the plane layout diagram.

[0141] Optionally, the plan layout diagram generating device provided by the present invention further includes, before receiving new description information of the function body to be edited in the edit box of the function body to be edited:

[0142] A fourth receiving module 005, configured to receive an editing instruction input by operating a display icon of the function body to be edited in the plan layout diagram;

[0143] Or also include:

[0144] The fifth receiving module 006 receives the editing instruction input by operating the add operation icon in the editing area.

[0145] Optionally, in the floor plan generation device provided by the present invention, the editing area also includes a delete operation icon, a copy operation icon and an associate operation icon, the delete operation icon is used to delete the display icon in the floor plan, the copy operation icon is used to copy the display icon in the floor plan, and the associate operation icon is used to associate additional information of the display icon in the floor plan.

[0146] On the other hand, Figure 7 As shown, the present invention provides a plan layout diagram generating device, the device comprising:

[0147] The acquisition module 007 is used to receive the description information of each functional body sent by the front end, wherein the description information includes the area information and attribute information of each functional body, wherein the area information represents the location information of the area occupied by each functional body in the building and the contour information of the area occupied, and the attribute information represents the functional characteristics of each functional body and the display characteristics of each functional body in the plane layout diagram to be generated;

[0148] Processing module 008, used to process the description information in blocks according to each functional body, and obtain structured module information corresponding to each functional body in the description information;

[0149] Sending module 009 is used to send the structured module information to the front end, so that after the front end parses the module information corresponding to each functional body, a floor plan is displayed in the operation interface, and the floor plan includes display icons corresponding to each functional body, and the display icons are used to display the area and attributes of each functional body in the building.

[0150] On the other hand, an electronic device provided by an embodiment of the present invention further includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the planar layout diagram generating method as described above is implemented.

[0151] Reference below Figure 8 , Figure 8 FIG. 4 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention.

[0152] like Figure 8 As shown, the electronic device includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RAM) 303. In RAM303, various programs and data required for the operation of the electronic device 300 are also stored. CPU301, ROM302 and RAM303 are connected to each other through a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304. In some embodiments, the following components are connected to the I / O interface 305: an input part 306 including a keyboard, a mouse, etc.; an output part 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage part 308 including a hard disk, etc.; and a communication part 309 including a network interface card such as a LAN card, a modem, etc. The communication part 309 performs communication processing via a network such as the Internet. A driver 310 is also connected to the I / O interface 305 as needed. Removable media 311, such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on drive 310 as needed, so that the computer program read therefrom is installed into storage section 308 as needed. In particular, according to an embodiment of the present invention, the process described with reference to the flowchart above can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through communication section 309, and / or installed from removable media 311. When the computer program is executed by central processing unit (CPU) 301, the above-mentioned functions defined in the electronic device of the present invention are executed.

[0153] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electronic device, device or device of electrical, magnetic, optical, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with a signaling execution electronic device, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with a signaling execution electronic device, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0154] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the electronic equipment, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the aforementioned module, program segment, or a part of the code contains one or more executable signaling for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based electronic device that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer signaling.

[0155] The units or modules involved in the embodiments of the present invention may be implemented by software or hardware. The units or modules described may also be arranged in a processor, for example, they may be described as: a processor comprising: a first receiving module, a second receiving module and a display module. Among them, the names of these units or modules do not constitute a limitation on the units or modules themselves under certain circumstances. For example, the display module may also be described as "used to parse the structured data corresponding to each functional body, and display a floor plan in the operation interface, wherein the floor plan includes display icons corresponding to each functional body, and the display icons are used to display the area and attributes of each functional body in the building".

[0156] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium stores one or more computer programs, and when the above computer programs are used by one or more processors to execute the planar layout generation method described in the present invention:

[0157] Receiving description information of each functional body in the operation interface and sending it to the server, the description information including area information and attribute information of each functional body, the area information indicating the location information of the area occupied by each functional body in the building and the contour information of the area occupied, and the attribute information indicating the functional characteristics of each functional body and the display characteristics of each functional body in the floor plan to be generated;

[0158] receiving structured module data corresponding to each function body in the description data sent by the server, wherein the structured data is obtained by grouping the description data according to each function body;

[0159] The structured data corresponding to each functional body is parsed, and a floor plan is displayed in the operation interface, wherein the floor plan includes display icons corresponding to each functional body, and the display icons are used to display the area and attributes of each functional body in the building.

[0160] Or for execution:

[0161] Receive description information of each functional body sent by the front end, the description information includes area information and attribute information of each functional body, the area information represents the location information of the area occupied by each functional body in the building and the outline information of the area occupied, and the attribute information represents the functional characteristics of each functional body and the display characteristics of each functional body in the plane layout diagram to be generated;

[0162] The description information is divided into blocks according to each functional body to obtain structured module information corresponding to each functional body in the description information;

[0163] The structured module information is sent to the front end, so that after the front end parses the module information corresponding to each functional body, a floor plan is displayed in the operation interface, wherein the floor plan includes display icons corresponding to each functional body, and the display icons are used to display the area and attributes of each functional body in the building.

[0164] In summary, the floor plan generation method, device and medium provided by the present invention import the description data of each functional body in the building into the operation interface through the operation of the front-end operation interface, and the front-end sends the imported description data to the back-end server, so that the back-end server performs structured grouping processing on the received description data with each functional body as a processing unit, obtains structured module data corresponding to each functional body, and pushes it to the front-end, and finally, after the front-end receives the module data after structured processing, it parses the module data corresponding to each functional body in turn, and displays it in the form of a static page on the operation interface. The corresponding floor plan of the building is shown, that is, the front-end operation interface provided in the present invention is used to import the description data of each functional body in each building, and through the structured processing of the back-end server, the building floor plan can be efficiently and conveniently formed in the form of a static page on the front end, which greatly simplifies the generation process of the floor plan. Moreover, the generated page layout diagram, since the description data corresponding to each functional body is present in a structured manner, provides convenience for subsequent maintenance and updating, and fundamentally avoids the defects of low efficiency and high cost caused by redrawing, color block editing and information binding starting from the bottom floor plan.

[0165] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) to form a technical solution.

Claims

1. A method for generating a floor plan. It is characterized in that The method comprises: Receiving description information of each functional body in the operation interface and sending it to the server, the description information including area information and attribute information corresponding to each functional body, the area information indicating the location information of the area occupied by each functional body in the building and the contour information of the area occupied, and the attribute information indicating the functional characteristics of each functional body and the display characteristics of each functional body in the floor plan to be generated; receiving structured module information corresponding to each function body in the description information sent by the server, wherein the structured module information is obtained by processing the description information in blocks according to each function body; The structured module information corresponding to each functional body is parsed, and a floor plan is displayed in the operation interface. The floor plan includes display icons corresponding to each functional body, and the display icons are used to display the area and attributes of each functional body in the building.

2. The method for generating a plan layout diagram according to claim 1, It is characterized in that The structured module information is JSON object format information corresponding to each function body obtained by dividing the description information into blocks based on JSON.

3. The method for generating a plan layout diagram according to claim 2, It is characterized in that When the sides of the outline of the area occupied by the functional body in the building are straight lines, the area information includes the coordinate values ​​of the inflection points of the occupied area; When there is an arc on the edge of the outline of the area occupied by the functional body in the building, the area information includes the coordinate values ​​of each inflection point of the occupied area and the annotation information of the coordinate values ​​of each inflection point.

4. The method for generating a plan layout diagram according to claim 3, It is characterized in that The annotation information includes first annotation information, second annotation information, third annotation information and fourth annotation information, wherein the first annotation information indicates that the corresponding inflection point coordinate value is the starting point of the outline of the area occupied by the functional body, the second annotation information indicates that a line segment is drawn from the current position to the specified position, the third annotation information indicates that a quadratic Bezier curve is drawn from the current position to the specified position, and the fourth annotation information indicates the end point of the outline of the area occupied by the functional body; The attribute information includes text information and style information, the text information represents the functional attribute of each of the functional bodies, and the style information represents the text information and the display style of the display icon corresponding to the functional body.

5. The method for generating a plan layout diagram according to any one of claims 1 to 4, It is characterized in that The operation interface includes a preview area and an editing area, wherein the floor plan is displayed in the preview area, and an editing box of the floor plan is displayed in the editing area, wherein the editing box is used to receive new description information of the function body to be edited; The method further comprises: New description information is received in the editing box of the functional body to be edited, and the new description information is used to update the display result of the functional body to be edited on the plane layout diagram.

6. The method for generating a plan layout diagram according to claim 5, It is characterized in that Before receiving new description information in the edit box of the function body to be edited, the method further includes: receiving an editing instruction input by operating a display icon of the functional body to be edited in the plan layout diagram; Alternatively, an editing instruction input by operating an add operation icon in the editing area is received.

7. The method for generating a plan layout diagram according to claim 5, It is characterized in that The editing area also includes a delete operation icon, a copy operation icon and an association operation icon. The delete operation icon is used to delete the display icon in the plan layout diagram, the copy operation icon is used to copy the display icon in the plan layout diagram, and the association operation icon is used to associate additional information of the display icon in the plan layout diagram.

8. A method for generating a floor plan. It is characterized in that The method comprises: Receive description information of each functional body sent by the front end, the description information includes area information and attribute information of each functional body, the area information represents the location information of the area occupied by each functional body in the building and the outline information of the area occupied, and the attribute information represents the functional characteristics of each functional body and the display characteristics of each functional body in the plane layout diagram to be generated; The description information is divided into blocks according to each functional body to obtain structured module information corresponding to each functional body in the description information; The structured module information is sent to the front end, so that after the front end parses the module information corresponding to each functional body, a floor plan is displayed in the operation interface, wherein the floor plan includes display icons corresponding to each functional body, and the display icons are used to display the area and attributes of each functional body in the building.

9. An electronic device, It is characterized in that The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the method for generating a floor plan diagram according to any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and the computer program is used to implement the plan layout diagram generating method as described in any one of claims 1-8.