CN116305382A - Wiring method and device based on three-dimensional scene, storage medium and electronic equipment - Google Patents

Wiring method and device based on three-dimensional scene, storage medium and electronic equipment Download PDF

Info

Publication number
CN116305382A
CN116305382A CN202111483993.9A CN202111483993A CN116305382A CN 116305382 A CN116305382 A CN 116305382A CN 202111483993 A CN202111483993 A CN 202111483993A CN 116305382 A CN116305382 A CN 116305382A
Authority
CN
China
Prior art keywords
wiring
scene
dimensional scene
path
dimensional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111483993.9A
Other languages
Chinese (zh)
Inventor
褚安朋
孙昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom International Co ltd
Original Assignee
China Telecom International Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom International Co ltd filed Critical China Telecom International Co ltd
Priority to CN202111483993.9A priority Critical patent/CN116305382A/en
Publication of CN116305382A publication Critical patent/CN116305382A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Abstract

The disclosure provides a wiring method, device, electronic equipment and storage medium based on a three-dimensional scene. The method comprises the following steps: determining a building scene to be wired, and displaying a three-dimensional scene of the building scene to be wired; acquiring wiring requirements of a scene to be wired; determining a parameter to be measured according to wiring requirements, and calculating a distance parameter value corresponding to the parameter to be measured based on a three-dimensional scene; marking the three-dimensional scene according to wiring requirements, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene; generating a wiring path according to the wiring starting point, the wiring ending point and the wiring key point, and calculating the length of a wire rod corresponding to the wiring path based on the distance parameter value; and displaying the wiring path in the three-dimensional scene and the length of the wire corresponding to the wiring path. The method can generate a wiring path in a virtual three-dimensional scene according to wiring requirements, calculate corresponding wiring length, and further provide sufficient and accurate data support for practical wiring application.

Description

Wiring method and device based on three-dimensional scene, storage medium and electronic equipment
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a wiring method and device based on a three-dimensional scene, a storage medium and electronic equipment.
Background
IDC (network data center) requirements often exist in purchasing IDC machine room services, and in particular, relates to wiring management of construction schemes and construction wire management.
In the related art, the types, the number and the length of the wire materials are usually planned in advance by experience, so that the method greatly depends on the experience value of project personnel; the wiring data determined in this way is often inaccurate, resulting in problems of the wiring path not meeting actual demands or wasting wires.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The invention aims to provide a wiring method, a wiring device, electronic equipment and a storage medium based on a three-dimensional scene, so as to solve the problem that a wiring path does not meet actual requirements or wires are wasted.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to one aspect of the present disclosure, there is provided a wiring method based on a three-dimensional scene, including: determining a building scene to be wired, and displaying a three-dimensional scene of the building scene to be wired; acquiring wiring requirements of a scene to be wired; determining a parameter to be measured according to wiring requirements, and calculating a distance parameter value corresponding to the parameter to be measured based on a three-dimensional scene; marking the three-dimensional scene according to wiring requirements, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene; generating a wiring path according to the wiring starting point, the wiring ending point and the wiring key point, and calculating the length of a wire rod corresponding to the wiring path based on the distance parameter value; and displaying the wiring path in the three-dimensional scene and the length of the wire corresponding to the wiring path.
In one embodiment of the present disclosure, before the step of displaying the three-dimensional scene of the building scene to be wired, the three-dimensional scene-based wiring method provided by the present disclosure further includes: acquiring an initial three-dimensional scene of a building scene to be wired; and carrying out rasterization treatment on the initial three-dimensional scene to obtain the three-dimensional scene.
In one embodiment of the present disclosure, before the step of obtaining an initial three-dimensional scene of the building scene to be wired, the three-dimensional scene-based wiring method provided by the present disclosure further includes: acquiring scene data of a building scene to be wired, equipment position information of equipment in the building scene to be wired and equipment attribute data of the equipment; constructing a scene three-dimensional model according to scene data; constructing an equipment model according to the equipment attribute data; and placing the device model into the three-dimensional scene model based on the device position information to generate an initial three-dimensional scene.
In one embodiment of the present disclosure, the step of performing rasterization processing on an initial three-dimensional scene to obtain a three-dimensional scene includes: performing rasterization treatment on the three-dimensional scene model to enable a horizontal line in the three-dimensional scene model to be parallel to a preset reference horizontal line, so as to obtain a three-dimensional corrected scene model; adding a reference grid into the corrected scene three-dimensional model, and obtaining a corrected equipment model according to the placement position and the placement direction of the reference grid corrected equipment model; and determining the three-dimensional scene according to the corrected scene three-dimensional model and the corrected equipment model.
In an embodiment of the present disclosure, before the step of calculating the distance parameter value corresponding to the distance parameter to be measured based on the three-dimensional scene, the wiring method based on the three-dimensional scene provided by the present disclosure further includes: confirming that the scene data of the building scene to be wired does not comprise the distance parameter value corresponding to the distance parameter to be wired; and calculating a distance parameter value corresponding to the parameter to be measured based on the three-dimensional scene, comprising: displaying the three-dimensional scene in an Augmented Reality (AR) environment; adding an auxiliary line for measuring the distance parameter to be measured into the three-dimensional scene in an AR mode; and calculating a distance parameter value corresponding to the distance parameter to be measured based on the auxiliary line by using a synchronous positioning and mapping SLAM technology.
In one embodiment of the present disclosure, labeling a three-dimensional scene according to a wiring requirement, and determining a wiring starting point, a wiring ending point, and a wiring key point in the three-dimensional scene includes: displaying a wiring input interface; acquiring marking operation performed by a user on a wiring input interface according to wiring requirements; analyzing the labeling operation, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene; wherein the routing key points include necessary route points and/or forbidden route points.
In one embodiment of the present disclosure, the step of generating a wiring path according to a wiring start point, a wiring end point, and a wiring key point includes: obtaining wiring direction constraint, wire quantity constraint, wire type constraint and wiring critical path from wiring requirements; wherein the wiring critical path includes a necessary path and/or a wiring prohibited path; generating a graph structure according to edges formed by all equipment points and adjacent communicable equipment points in the three-dimensional scene; determining constraint conditions according to a wiring starting point, a wiring ending point, a wiring key point, a wiring direction constraint, a wire number constraint, a wire type constraint and a wiring key path; at least one routing path satisfying the constraint is generated using a path algorithm.
In one embodiment of the present disclosure, after the step of displaying the wiring path in the three-dimensional scene and the wire length corresponding to the wiring path, the three-dimensional scene-based wiring method provided by the present disclosure further includes: displaying a wiring adjustment interface; acquiring an adjustment operation performed by a user on a wiring adjustment interface; analyzing and adjusting operation, determining wiring adjustment requirements, generating at least one wiring adjustment path according to the wiring adjustment requirements, and calculating the length of a wire rod corresponding to the wiring adjustment path based on the distance parameter value.
According to another aspect of the present disclosure, there is provided a wiring device based on a three-dimensional scene, including: the display module is used for determining the building scene to be wired and displaying the three-dimensional scene of the building scene to be wired; the acquisition module is used for acquiring the wiring requirements of the scene to be wired; the determining module is used for determining a parameter to be measured according to wiring requirements and calculating a distance parameter value corresponding to the parameter to be measured based on a three-dimensional scene; the determining module is also used for marking the three-dimensional scene according to wiring requirements and determining wiring starting points, wiring ending points and wiring key points in the three-dimensional scene; the calculation module is used for generating a wiring path according to the wiring starting point, the wiring ending point and the wiring key point and calculating the length of a wire rod corresponding to the wiring path based on the distance parameter value; the display module is also used for displaying the wiring path in the three-dimensional scene and the wire length corresponding to the wiring path.
In one embodiment of the present disclosure, before the step of displaying the three-dimensional scene of the building scene to be wired by the display module, the obtaining module is further configured to: acquiring an initial three-dimensional scene of a building scene to be wired; and carrying out rasterization treatment on the initial three-dimensional scene to obtain the three-dimensional scene.
In one embodiment of the present disclosure, before the step of acquiring the initial three-dimensional scene of the building scene to be wired, the acquiring module is further configured to: acquiring scene data of a building scene to be wired, equipment position information of equipment in the building scene to be wired and equipment attribute data of the equipment; constructing a scene three-dimensional model according to scene data; constructing an equipment model according to the equipment attribute data; and placing the device model into the three-dimensional scene model based on the device position information to generate an initial three-dimensional scene.
In one embodiment of the present disclosure, the step of performing a rasterization process on the initial three-dimensional scene by the acquisition module to obtain a three-dimensional scene includes: performing rasterization treatment on the three-dimensional scene model to enable a horizontal line in the three-dimensional scene model to be parallel to a preset reference horizontal line, so as to obtain a three-dimensional corrected scene model; adding a reference grid into the corrected scene three-dimensional model, and obtaining a corrected equipment model according to the placement position and the placement direction of the reference grid corrected equipment model; and determining the three-dimensional scene according to the corrected scene three-dimensional model and the corrected equipment model.
In one embodiment of the present disclosure, the determining module is further configured to, before the step of calculating the distance parameter value corresponding to the distance parameter to be measured based on the three-dimensional scene: confirming that the scene data of the building scene to be wired does not comprise the distance parameter value corresponding to the distance parameter to be wired; and calculating a distance parameter value corresponding to the parameter to be measured based on the three-dimensional scene, comprising: displaying the three-dimensional scene in an Augmented Reality (AR) environment; adding an auxiliary line for measuring the distance parameter to be measured into the three-dimensional scene in an AR mode; and calculating a distance parameter value corresponding to the distance parameter to be measured based on the auxiliary line by using a synchronous positioning and mapping SLAM technology.
In one embodiment of the present disclosure, the determining module marks the three-dimensional scene according to the wiring requirement, and determines a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene, including: displaying a wiring input interface; acquiring marking operation performed by a user on a wiring input interface according to wiring requirements; analyzing the labeling operation, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene; wherein the routing key points include necessary route points and/or forbidden route points.
In one embodiment of the present disclosure, the step of generating the wiring path by the calculation module according to the wiring starting point, the wiring ending point and the wiring key point includes: obtaining wiring direction constraint, wire quantity constraint, wire type constraint and wiring critical path from wiring requirements; wherein the wiring critical path includes a necessary path and/or a wiring prohibited path; generating a graph structure according to edges formed by all equipment points and adjacent communicable equipment points in the three-dimensional scene; determining constraint conditions according to a wiring starting point, a wiring ending point, a wiring key point, a wiring direction constraint, a wire number constraint, a wire type constraint and a wiring key path; at least one routing path satisfying the constraint is generated using a path algorithm.
In one embodiment of the present disclosure, after the step of displaying the wiring path in the three-dimensional scene and the wire length corresponding to the wiring path by the display module, the calculation module is further configured to: displaying a wiring adjustment interface; acquiring an adjustment operation performed by a user on a wiring adjustment interface; analyzing and adjusting operation, determining wiring adjustment requirements, generating at least one wiring adjustment path according to the wiring adjustment requirements, and calculating the length of a wire rod corresponding to the wiring adjustment path based on the distance parameter value.
According to yet another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the three-dimensional scene-based wiring method described above.
According to still another aspect of the present disclosure, there is provided an electronic apparatus including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the three-dimensional scene-based routing method described above via execution of the executable instructions.
The wiring method based on the three-dimensional scene provided by the embodiment of the disclosure can generate the wiring path in the virtual three-dimensional scene in combination with the wiring requirement, and calculate the corresponding wiring length, so that sufficient and accurate data support is provided for the wiring scheme in the actual scene.
Further, the wiring method based on the three-dimensional scene provided by the embodiment of the disclosure can also realize virtual ranging based on a virtual three-dimensional scene in combination with an AR technology and a SLAM technology.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 illustrates a schematic diagram of an exemplary system architecture to which three-dimensional scene-based wiring methods of embodiments of the present disclosure may be applied;
FIG. 2 illustrates a flow chart of a three-dimensional scene-based routing method of an embodiment of the present disclosure;
FIG. 3 illustrates a flow chart of determining a three-dimensional scene in a three-dimensional scene-based routing method according to one embodiment of the present disclosure;
FIG. 4 illustrates a flow chart of deriving distance parameter values in a three-dimensional scene-based routing method according to one embodiment of the present disclosure;
FIG. 5 illustrates a schematic diagram of a three-dimensional scene in a three-dimensional scene-based routing method according to one embodiment of the present disclosure;
FIG. 6 illustrates a schematic diagram of adding auxiliary lines in a three-dimensional scene to achieve distance measurement in a three-dimensional scene based routing method of an embodiment of the present disclosure;
FIG. 7 shows a schematic diagram of labeling in a three-dimensional scene-based wiring method according to one embodiment of the present disclosure;
FIG. 8 illustrates a schematic diagram of labeling in a three-dimensional scene-based wiring method according to one embodiment of the present disclosure;
FIG. 9 shows a schematic diagram of a presentation routing path in a three-dimensional scene-based routing method according to one embodiment of the present disclosure;
FIG. 10 shows a schematic diagram showing wire lengths in a three-dimensional scene-based routing method according to one embodiment of the present disclosure;
FIG. 11 illustrates a flow chart of a three-dimensional scene-based routing method of an embodiment of the present disclosure;
FIG. 12 illustrates a block diagram of a three-dimensional scene-based wiring device according to one embodiment of the present disclosure; and
fig. 13 shows a block diagram of a wiring computer device based on a three-dimensional scene in an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present disclosure, the meaning of "a plurality" is at least two, such as two, three, etc., unless explicitly specified otherwise.
In view of the technical problems in the related art described above, embodiments of the present disclosure provide a wiring method based on a three-dimensional scene, for at least solving one or all of the technical problems described above.
FIG. 1 illustrates a schematic diagram of an exemplary system architecture to which three-dimensional scene-based wiring methods of embodiments of the present disclosure may be applied; as shown in fig. 1:
the system architecture may include a server 101, a network 102, and a client 103. Network 102 is the medium used to provide communication links between clients 103 and server 101. Network 102 may include various connection types such as wired, wireless communication links, or fiber optic cables, among others.
The server 101 may be a server providing various services, such as a background management server providing support for devices operated by users with the client 203. The background management server can receive and process wiring demands, can range based on a three-dimensional scene, can calculate a wiring path meeting the wiring demands based on the three-dimensional scene, can calculate the length of a wire corresponding to the wiring path based on a ranging result, and sends the calculated wiring path and the corresponding length of the wire to the client 203, so that the wire is displayed in the client 203.
In some alternative embodiments, the server 101 may determine a building scene to be wired, and display a three-dimensional scene of the building scene to be wired; the server 101 may acquire the wiring requirements of the scene to be wired; the server 101 may determine a parameter to be measured according to the wiring requirement, and calculate a distance parameter value corresponding to the parameter to be measured based on the three-dimensional scene; the server 101 can mark the three-dimensional scene according to wiring requirements, and determines a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene; the server 101 may generate a wiring path according to the wiring start point, the wiring end point, and the wiring key point, and calculate a wire length corresponding to the wiring path based on the distance parameter value; the server 101 may present the routing paths in a three-dimensional scene, as well as the wire lengths corresponding to the routing paths.
The client 103 may be a mobile terminal such as a mobile phone, a game console, a tablet computer, an electronic book reader, smart glasses, a smart home device, an AR (Augmented Reality) device, a VR (Virtual Reality) device, or the like, or the client 103 may be a personal computer such as a laptop portable computer and a desktop computer, or the like.
The client 103 may present a three-dimensional scene to the operator, may also provide an input interface for the operator, and may present the routing path and corresponding wire length results to the operator.
It should be understood that the number of clients, networks and servers in fig. 1 is merely illustrative, and the server 101 may be a server of one entity, may be a server cluster formed by a plurality of servers, may be a cloud server, and may have any number of clients, networks and servers according to actual needs.
Hereinafter, respective steps of the three-dimensional scene-based wiring method in the exemplary embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings and embodiments.
Fig. 2 shows a flow chart of a three-dimensional scene-based routing method of an embodiment of the present disclosure. The method provided by the embodiments of the present disclosure may be performed in a server or a client as shown in fig. 1, but the present disclosure is not limited thereto.
In the following illustration, the server cluster 101 is exemplified as an execution subject.
As shown in fig. 2, the three-dimensional scene-based wiring method provided by the embodiment of the present disclosure may include the steps of:
step S201, determining a building scene to be wired, and displaying a three-dimensional scene of the building scene to be wired. The building scene to be wired can be a specific machine room, a server storage room, a working space and the like. A routing request may be received in a corresponding interface of the client 103, in which a scenario to be routed may be indicated.
Step S203, obtaining the wiring requirement of the scene to be wired. The wiring requirement may be a requirement document, a construction guide, wiring information input by a worker, or the like. In some implementations, different routing scenarios may correspond to different routing requirements.
Step S205, determining a parameter to be measured according to wiring requirements, and calculating a distance parameter value corresponding to the parameter to be measured based on a three-dimensional scene. The distance parameter to be measured can be the distance between equipment, the distance between the highest position of the equipment and the bottom surface, the distance between the equipment and the wall body, the distance between the top surface and the bottom surface of the scene space, and the like.
And S207, marking the three-dimensional scene according to wiring requirements, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene. The labeling may be performed by using an input interface provided by the client 103, or the required document may be obtained and then parsed to perform the labeling. The wiring start point, the wiring end point, the wiring critical point may be regarded as a requirement for wiring.
Step S209, generating a wiring path according to the wiring starting point, the wiring ending point and the wiring key point, and calculating the length of the wire corresponding to the wiring path based on the distance parameter value. Wherein, a path calculation algorithm can be invoked to calculate a routing path; in addition, since the wiring path is calculated in the three-dimensional scene in the present embodiment, the space occupied by the device can be considered in the wiring path, for example, at a device point, since the device has a height, the wire to be consumed at the point can be calculated according to the height of the device, so that the calculated wire length is more accurate.
Step S211, displaying the wiring path in the three-dimensional scene and the wire length corresponding to the wiring path. The routing paths may be shown in the corresponding interface of the client 103, for example, using a preset color to show in a three-dimensional model of the scene to be routed, or using a preset color to show in a plan view of the scene to be routed; the calculated wire length of the routing path may also be displayed in a corresponding interface of the client 103, and in some practical applications, information such as a wire type, a start device, an end device of the routing path, and the like may also be displayed for use by a user.
According to the wiring method based on the three-dimensional scene, the three-dimensional model of the scene to be wired can be obtained, ranging is further performed based on the three-dimensional model, a wiring path which can be applied to the three-dimensional scene is generated according to wiring requirements, the length of a wire corresponding to the wiring path is calculated according to the ranging result, and finally displaying is performed. It can be seen that the method provided by the present disclosure can generate a wiring path in combination with wiring requirements in a virtual three-dimensional scene, and calculate a corresponding wiring length, thereby providing sufficient and accurate data support for a wiring scheme in an actual scene.
In some embodiments, before the step of displaying the three-dimensional scene of the building scene to be wired, the three-dimensional scene-based wiring method provided by the present disclosure further includes: acquiring an initial three-dimensional scene of a building scene to be wired; and carrying out rasterization treatment on the initial three-dimensional scene to obtain the three-dimensional scene.
In the embodiment of the disclosure, the initial three-dimensional scene may be acquired from other systems, or may be generated by simulation based on a scene building map, a scene image and a scene video. In some practical applications, the initial three-dimensional scene may be un-rasterized, and the horizontal lines in the initial three-dimensional scene may not be parallel to the preset reference horizontal lines.
Further, in some embodiments, the step of rasterizing the initial three-dimensional scene to obtain a three-dimensional scene includes: performing rasterization treatment on the three-dimensional scene model to enable a horizontal line in the three-dimensional scene model to be parallel to a preset reference horizontal line, so as to obtain a three-dimensional corrected scene model; adding a reference grid into the corrected scene three-dimensional model, and obtaining a corrected equipment model according to the placement position and the placement direction of the reference grid corrected equipment model; and determining the three-dimensional scene according to the corrected scene three-dimensional model and the corrected equipment model.
In the embodiment of the disclosure, the existing digital scene can be rasterized, and strategies in equipment placement and wiring work are clarified. Transparent grids can be added on the necessary space to ensure that wiring in the virtual scene meets the standards of horizontal and vertical (for example, a horizontal line in a three-dimensional model of the scene is parallel to a preset reference horizontal line, a vertical line in the three-dimensional model of the scene is parallel to the preset reference vertical line), and the distance between power lines and signal lines is ensured to meet the requirements, so that the three-dimensional scene meets the wiring operation requirements.
FIG. 3 illustrates a flow chart of determining a three-dimensional scene in a three-dimensional scene-based routing method according to one embodiment of the present disclosure, as shown in FIG. 3, including:
Step S301, an initial three-dimensional scene of the building scene to be wired is obtained.
Step S303, performing rasterization processing on the three-dimensional scene model to enable horizontal lines in the three-dimensional scene model to be parallel to preset reference horizontal lines, and obtaining the three-dimensional corrected scene model.
And step S305, adding a reference grid into the corrected scene three-dimensional model, and obtaining the corrected equipment model according to the placement position and the placement direction of the reference grid corrected equipment model.
Step S307, determining the three-dimensional scene according to the corrected scene three-dimensional model and the corrected device model.
It can be seen that by implementing the method shown in fig. 3, the initial three-dimensional scene can be subjected to rasterization processing, so as to obtain a three-dimensional scene meeting the wiring operation requirements.
Before the step S301, an initial three-dimensional scene of the building scene to be wired may be obtained as follows: acquiring scene data of a building scene to be wired, equipment position information of equipment in the building scene to be wired and equipment attribute data of the equipment; constructing a scene three-dimensional model according to scene data; constructing an equipment model according to the equipment attribute data; and placing the device model into the three-dimensional scene model based on the device position information to generate an initial three-dimensional scene.
Wherein the scene data may be scene size data, scene image data, scene video data, scene model data, etc.; the device attribute data may be device type, device size data, and the like.
In some embodiments, before calculating the distance parameter value corresponding to the distance parameter to be measured based on the three-dimensional scene in step S205, it may be determined whether the scene data of the building scene to be wired includes the distance parameter value corresponding to the distance parameter to be measured, and after confirming that the scene data does not include the required distance parameter value, the required distance parameter value is calculated based on the three-dimensional scene. In addition, in some practical applications, when it is confirmed that the required distance parameter value is included in the scene data, the distance parameter may be directly obtained from the scene data.
Fig. 4 shows a flowchart for obtaining distance parameter values in a three-dimensional scene-based routing method according to an embodiment of the present disclosure, as shown in fig. 4, including:
step S401, a three-dimensional scene is presented in an augmented reality AR environment.
Step S403, adding an auxiliary line for measuring the distance parameter to be measured in the three-dimensional scene by AR method.
Step S405, calculating the distance parameter value corresponding to the distance parameter to be measured based on the auxiliary line by using the synchronous positioning and mapping SLAM technology.
According to the method shown in fig. 4, the requirement of the construction scheme (i.e., the wiring requirement) can be acquired first, and then a virtual auxiliary line is added in the virtual three-dimensional scene according to the requirement of the construction scheme; the auxiliary line can be used for assisting in measuring the distance between two virtual positions in the space, such as measuring the distance from the cabinet to the wall; the distance between virtual locations can be used to determine whether the actual wiring job requirements are met. In actual operation, the distance between two positions in the space can be assisted by adding a virtual assistance line in the AR (Augmented Reality ) environment. Further, the distance between the equipment-auxiliary line can be calculated by SLAM (simultaneous localization and mapping, synchronous positioning and mapping) technique and stored as necessary data in the calculation of the wiring path scheme.
Fig. 5 illustrates a schematic diagram of a three-dimensional scene in a three-dimensional scene-based wiring method according to an embodiment of the present disclosure, and as illustrated in fig. 5, the three-dimensional scene is a three-dimensional scene of a scene to be wired, which may be a virtual scene after a rasterization process in which a virtual grid for the rasterization process has been set. In some practical applications, the existing digitized scene may be rasterized by implementing the manner shown in fig. 5, so as to define the placement position of the device.
Fig. 6 shows a schematic diagram of adding an auxiliary line in a three-dimensional scene to achieve distance measurement in the three-dimensional scene in the wiring method based on the three-dimensional scene according to one embodiment of the present disclosure, and fig. 6 may be regarded as an effect schematic diagram of adding the auxiliary line on the basis of fig. 5, as shown in fig. 6, including: an auxiliary line 601, a first to-be-measured point 602, a second to-be-measured point 603 and a distance line segment 604;
a horizontal auxiliary line 601 that may be added in a three-dimensional scene first; the position and direction of the auxiliary line 601 may be selected by the user in the interface displayed by the client, or may be automatically identified based on the three-dimensional scene, or may be a well-determined auxiliary line that has not yet been created; creating a virtual auxiliary line for the three-dimensional scene in an AR environment in an AR mode;
then determining a first point to be measured 602; the position of the first to-be-detected point 602 may be selected by the user in the interface displayed by the client, or may be automatically identified based on the three-dimensional scene, or may be a preset point;
when the distance between the auxiliary line 601 and the first to-be-measured point 602 needs to be calculated, the second to-be-measured point 603 on the auxiliary line 601 can be determined, so that the connection line between the first to-be-measured point 602 and the second to-be-measured point 603 can be perpendicular to the auxiliary line 601;
Finally, the length of a distance line segment 604 formed by the connection line of the first to-be-measured point 602 and the second to-be-measured point 603 can be calculated by using the SLAM technology, so that the distance measurement is completed.
In some embodiments, marking the three-dimensional scene according to the wiring requirement, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene comprises the following steps: displaying a wiring input interface; acquiring marking operation performed by a user on a wiring input interface according to wiring requirements; analyzing the labeling operation, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene; wherein the routing key points include necessary route points and/or forbidden route points.
Fig. 7 illustrates a schematic diagram of labeling in a three-dimensional scene in a wiring method based on the three-dimensional scene according to an embodiment of the present disclosure, and as illustrated in fig. 7, a labeling operation may be performed in an input interface to set a starting point of a connection line in a virtual scene.
Fig. 8 shows a schematic diagram of labeling in a three-dimensional scene-based wiring method according to an embodiment of the present disclosure. As shown in fig. 8, a labeling operation may be performed in the input interface to set an end point of the connection line in the virtual scene. In some practical applications, the connection lines may be divided into the following three scenarios: with cabinets, with columns, and across columns.
It can be seen that, through the schematic diagrams shown in fig. 7 and 8, the labeling operation performed by the user according to the requirements of the construction scheme can be received, so as to label the start point-end point, the necessary route point and the non-passing point of the equipment connection in the virtual scene, and then serve as points in the wiring path "diagram" in the subsequent steps.
In some embodiments, the step of generating a routing path from a routing start point, a routing end point, and a routing key point includes: obtaining wiring direction constraint, wire quantity constraint, wire type constraint and wiring critical path from wiring requirements; wherein the wiring critical path includes a necessary path and/or a wiring prohibited path; generating a graph structure according to edges formed by all equipment points and adjacent communicable equipment points in the three-dimensional scene; determining constraint conditions according to a wiring starting point, a wiring ending point, a wiring key point, a wiring direction constraint, a wire number constraint, a wire type constraint and a wiring key path; at least one routing path satisfying the constraint is generated using a path algorithm.
In some practical applications, all the device points may be considered into the initial graph structure, then the points to be deleted and the edges to be deleted in the initial graph structure are determined according to the forbidden path points and the forbidden route, and then the target graph structure is generated according to the points to be deleted and the edges to be deleted. Further, the connection line excluding the wiring prohibited path in the initial diagram structure may be regarded as a wiring permitted path, and the device point excluding the prohibited path point in the initial diagram structure may be regarded as a permitted path point.
Further, the path algorithm may be any one of shortest path algorithms, such as Dijkstra algorithm (Dijkstra algorithm), bellman-Ford algorithm (Bellman-Ford algorithm), SPFA algorithm (queue optimization algorithm of Bellman-Ford algorithm), floyd algorithm (floroide algorithm), and the like, which the present disclosure does not limit.
FIG. 9 shows a schematic diagram showing a wiring path in a three-dimensional scene-based wiring method according to an embodiment of the present disclosure, and as shown in FIG. 9, a wiring prohibited path 901 section, a wiring permitted path 902 section, and a generated wiring path 903 determined in the foregoing steps may be shown in a three-dimensional scene; after the routing path 903 is presented, a "start calculation" button 904 may also be displayed for the user to click on, and thus calculate the wire length. In some practical applications, the bridge properties may also be labeled in segments: cable weight limit, number limit, and not passable point/edge limit. Non-routable locations (e.g., wire inhibit path 901 sections) are set and labeled, and then a routing scheme is calculated, resulting in routing path 903.
Fig. 10 shows a schematic diagram showing a wire length in a three-dimensional scene-based wiring method according to an embodiment of the present disclosure. When the user clicks the "start calculation" button 904 shown in fig. 9, the server 101 may calculate information such as wire length in the background, and may further display an interface as shown in fig. 10. As shown in fig. 10, a routing path 1001 may be displayed, and calculated related information 1002 about the routing path may be displayed, where the related information 1002 may include information such as a network transmission mode (wire type), a U-bit to be tested (connection device point), a recommended wire length (including a home-made cable recommended length and a finished cable recommended length). The related information 1002 may further include buttons such as "save results", "save and continue test", "end test", etc. for the user to operate. In some implementations, the routing scheme can be visually viewed in a virtual scene, visually confirmed, and the line results (i.e., related information 1002) output after the user confirms the routing scheme.
In some embodiments, after the step of displaying the wiring path in the three-dimensional scene and the wire length corresponding to the wiring path, the three-dimensional scene-based wiring method provided by the present disclosure may further include: displaying a wiring adjustment interface; acquiring an adjustment operation performed by a user on a wiring adjustment interface; analyzing and adjusting operation, determining wiring adjustment requirements, generating at least one wiring adjustment path according to the wiring adjustment requirements, and calculating the length of a wire rod corresponding to the wiring adjustment path based on the distance parameter value.
Fig. 11 shows a flowchart of a three-dimensional scene-based wiring method according to an embodiment of the present disclosure, as shown in fig. 11, including:
step 1: first, the existing digitized scene can be rasterized, and the strategy in the equipment placement and wiring work (such as that the wiring cannot be inclined across the grid cells) is clarified. Transparent grids can be added in necessary space to ensure that wiring in the virtual scene meets the requirements of horizontal and vertical specifications, power line/signal line distance and the like, and further ensure that the virtual scene meets the requirements of wiring operation.
Step 2: virtual auxiliary lines can be added into the virtual scene according to the requirements of the construction scheme; the auxiliary line can assist in measuring the distance between two virtual positions in the space, and can check working requirements such as the distance from the cabinet to the wall, the distance from the cabinet to the pipeline and the like. In actual operation, the distance between two positions in the measurement space can be assisted by adding a virtual assistance line in the AR environment.
Step 3: the distance between the device and the auxiliary line can be calculated by SLAM and stored as necessary data in the wiring scheme for use in the subsequent steps.
Step 4: the method can mark the starting point-end point, the necessary access point and the non-passing point of the equipment connection according to the requirements of the construction scheme; i.e., to determine the points of the routing path "map".
Step 5: the routing path may be calculated using an algorithm based on the set points and the necessary paths (properties of the path-routable wires, such as power lines, fiber lines, net lines), the weights of the sides (limit of the number of path-routable wires); in some practical scenarios, dijkstra algorithm may be used, and the routing schemes such as the optimal routing path, the suboptimal routing path and the like are calculated through the algorithm.
Step 6: the routing paths completed by the system may be viewed in a virtual scenario, and in some scenarios may also be manually adjusted (designated to pass through a point, or through a path segment) to allow the system to recalculate and for the user to confirm the routing scheme.
Step 7: the wire length can be rounded upwards and calculated according to the wire management rule, and the wire length is confirmed and recorded. When a plurality of wiring schemes need to be calculated, the method can return to the step 4 again, and the calculation of the next wiring path and the length of the wire rod is calculated until the calculation of all wiring schemes in the engineering is completed. In some scenarios, these schemes may also be managed uniformly.
It can be seen that by implementing the method shown in fig. 11, an existing digital scene can be obtained, then a three-dimensional model capable of meeting the application requirement of the scheme is obtained through grille treatment, further ranging is performed based on the three-dimensional model, then a wiring path capable of being applied in the three-dimensional scene is generated according to the wiring requirement, the length of a wire corresponding to the wiring path is calculated according to the ranging result, and finally the display is performed. It can be further seen that the method provided by the present disclosure can generate a wiring path in combination with wiring requirements in a virtual three-dimensional scene, and calculate a corresponding wiring length, so as to provide sufficient and accurate data support for a wiring scheme in an actual scene.
It is noted that the above-described figures are only schematic illustrations of processes involved in a method according to an exemplary embodiment of the invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Fig. 12 shows a block diagram of a three-dimensional scene-based wiring device 1200 in a fifth embodiment of the present disclosure; as shown in fig. 12, includes:
The display module 1201 is used for determining a building scene to be wired and displaying a three-dimensional scene of the building scene to be wired; an obtaining module 1202, configured to obtain a wiring requirement of a scene to be wired; the determining module 1203 is configured to determine a parameter to be measured according to the wiring requirement, and calculate a distance parameter value corresponding to the parameter to be measured based on the three-dimensional scene; the determining module 1203 is further configured to label the three-dimensional scene according to the wiring requirement, and determine a wiring starting point, a wiring ending point, and a wiring key point in the three-dimensional scene; a calculating module 1204, configured to generate a wiring path according to the wiring starting point, the wiring ending point, and the wiring key point, and calculate a wire length corresponding to the wiring path based on the distance parameter value; the display module 1201 is further configured to display a wiring path in the three-dimensional scene and a wire length corresponding to the wiring path.
In some embodiments, before the presenting module 1201 presents the three-dimensional scene step of the building scene to be wired, the obtaining module is further configured to: acquiring an initial three-dimensional scene of a building scene to be wired; and carrying out rasterization treatment on the initial three-dimensional scene to obtain the three-dimensional scene.
In some embodiments, prior to the step of acquiring the initial three-dimensional scene of the building scene to be wired, the acquisition module 1202 is further configured to: acquiring scene data of a building scene to be wired, equipment position information of equipment in the building scene to be wired and equipment attribute data of the equipment; constructing a scene three-dimensional model according to scene data; constructing an equipment model according to the equipment attribute data; and placing the device model into the three-dimensional scene model based on the device position information to generate an initial three-dimensional scene.
In some embodiments, the acquiring module 1202 performs a rasterization process on the initial three-dimensional scene to obtain a three-dimensional scene, including: performing rasterization treatment on the three-dimensional scene model to enable a horizontal line in the three-dimensional scene model to be parallel to a preset reference horizontal line, so as to obtain a three-dimensional corrected scene model; adding a reference grid into the corrected scene three-dimensional model, and obtaining a corrected equipment model according to the placement position and the placement direction of the reference grid corrected equipment model; and determining the three-dimensional scene according to the corrected scene three-dimensional model and the corrected equipment model.
In some embodiments, the determining module 1203 is further configured to, before the step of calculating the distance parameter value corresponding to the distance parameter to be measured based on the three-dimensional scene: confirming that the scene data of the building scene to be wired does not comprise the distance parameter value corresponding to the distance parameter to be wired; and calculating a distance parameter value corresponding to the parameter to be measured based on the three-dimensional scene, comprising: displaying the three-dimensional scene in an Augmented Reality (AR) environment; adding an auxiliary line for measuring the distance parameter to be measured into the three-dimensional scene in an AR mode; and calculating a distance parameter value corresponding to the distance parameter to be measured based on the auxiliary line by using a synchronous positioning and mapping SLAM technology.
In some embodiments, the determining module 1203 marks the three-dimensional scene according to the wiring requirement, and determines a wiring starting point, a wiring ending point, and a wiring key point in the three-dimensional scene, including: displaying a wiring input interface; acquiring marking operation performed by a user on a wiring input interface according to wiring requirements; analyzing the labeling operation, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene; wherein the routing key points include necessary route points and/or forbidden route points.
In some embodiments, the calculating module 1204 generates a routing path from the routing start point, the routing end point, and the routing key point, including: obtaining wiring direction constraint, wire quantity constraint, wire type constraint and wiring critical path from wiring requirements; wherein the wiring critical path includes a necessary path and/or a wiring prohibited path; generating a graph structure according to edges formed by all equipment points and adjacent communicable equipment points in the three-dimensional scene; determining constraint conditions according to a wiring starting point, a wiring ending point, a wiring key point, a wiring direction constraint, a wire number constraint, a wire type constraint and a wiring key path; at least one routing path satisfying the constraint is generated using a path algorithm.
In some embodiments, after the step of displaying the wiring path in the three-dimensional scene and the wire length corresponding to the wiring path by the display module 1201, the calculation module 1204 is further configured to: displaying a wiring adjustment interface; acquiring an adjustment operation performed by a user on a wiring adjustment interface; analyzing and adjusting operation, determining wiring adjustment requirements, generating at least one wiring adjustment path according to the wiring adjustment requirements, and calculating the length of a wire rod corresponding to the wiring adjustment path based on the distance parameter value.
It can be seen that by implementing the three-dimensional scene-based wiring device shown in fig. 12, it is possible to generate wiring paths in a virtual three-dimensional scene in combination with wiring demands, and calculate corresponding wiring lengths, thereby providing sufficient and accurate data support for wiring schemes in an actual scene. In addition, the wiring device based on the three-dimensional scene can also realize virtual ranging based on a virtual three-dimensional scene and combining an AR technology and a SLAM technology.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
Fig. 13 shows a block diagram of a wiring computer device based on a three-dimensional scene in an embodiment of the present disclosure. It should be noted that the illustrated electronic device is only an example, and should not impose any limitation on the functions and application scope of the embodiments of the present invention.
An electronic device 1300 according to this embodiment of the invention is described below with reference to fig. 13. The electronic device 1300 shown in fig. 13 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 13, the electronic device 1300 is embodied in the form of a general purpose computing device. The components of the electronic device 1300 may include, but are not limited to: the at least one processing unit 1310, the at least one memory unit 1320, and a bus 1330 connecting the different system components (including the memory unit 1320 and the processing unit 1310).
Wherein the storage unit stores program code that is executable by the processing unit 1310 such that the processing unit 1310 performs steps according to various exemplary embodiments of the present invention described in the above section of the "exemplary method" of the present specification. For example, the processing unit 1310 may perform step S201 shown in fig. 2, determine a building scene to be wired, and display a three-dimensional scene of the building scene to be wired; step S203, obtaining wiring requirements of a scene to be wired; step S205, determining a parameter to be measured according to wiring requirements, and calculating a distance parameter value corresponding to the parameter to be measured based on a three-dimensional scene; step S207, marking the three-dimensional scene according to wiring requirements, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene; step S209, generating a wiring path according to the wiring starting point, the wiring ending point and the wiring key point, and calculating the length of a wire rod corresponding to the wiring path based on the distance parameter value; step S211, displaying the wiring path in the three-dimensional scene and the wire length corresponding to the wiring path.
The storage unit 1320 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 13201 and/or cache memory 13202, and may further include Read Only Memory (ROM) 13203.
The storage unit 1320 may also include a program/utility 13204 having a set (at least one) of program modules 13205, such program modules 13205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 1330 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 1300 may also communicate with one or more external devices 1400 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1300, and/or any device (e.g., router, modem, etc.) that enables the electronic device 1300 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 1350. Also, the electronic device 1300 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, for example, the Internet, through a network adapter 1360. As shown, the network adapter 1360 communicates with other modules of the electronic device 1300 over the bus 1330. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 1300, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
A program product for implementing the above-described method according to an embodiment of the present invention may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (11)

1. A wiring method based on a three-dimensional scene, comprising:
determining a building scene to be wired, and displaying a three-dimensional scene of the building scene to be wired;
acquiring wiring requirements of the scene to be wired;
determining a parameter to be measured according to the wiring requirement, and calculating a distance parameter value corresponding to the parameter to be measured based on the three-dimensional scene;
marking the three-dimensional scene according to the wiring requirement, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene;
generating a wiring path according to the wiring starting point, the wiring ending point and the wiring key point, and calculating the length of a wire rod corresponding to the wiring path based on the distance parameter value;
And displaying the wiring path in the three-dimensional scene and the length of the wire corresponding to the wiring path.
2. The method of claim 1, wherein prior to the step of displaying the three-dimensional scene of the building scene to be wired, the method further comprises:
acquiring an initial three-dimensional scene of the building scene to be wired;
and carrying out rasterization processing on the initial three-dimensional scene to obtain the three-dimensional scene.
3. The method of claim 2, wherein prior to the step of acquiring the initial three-dimensional scene of the building scene to be wired, the method further comprises:
acquiring scene data of a building scene to be wired, equipment position information of equipment in the building scene to be wired and equipment attribute data of the equipment;
constructing a scene three-dimensional model according to the scene data; constructing an equipment model according to the equipment attribute data;
and placing the equipment model into the scene three-dimensional model based on the equipment position information to generate the initial three-dimensional scene.
4. A method according to claim 3, wherein the step of rasterizing the initial three-dimensional scene to obtain the three-dimensional scene comprises:
Performing rasterization processing on the three-dimensional scene model to enable a horizontal line in the three-dimensional scene model to be parallel to a preset reference horizontal line, so as to obtain a three-dimensional corrected scene model;
adding a reference grid into the corrected scene three-dimensional model, and correcting the placement position and the placement direction of the equipment model according to the reference grid to obtain a corrected equipment model;
and determining the three-dimensional scene according to the corrected scene three-dimensional model and the corrected equipment model.
5. The method according to claim 1, further comprising, prior to the step of calculating a distance parameter value corresponding to the distance parameter to be measured based on the three-dimensional scene: confirming that the scene data of the building scene to be wired does not comprise the distance parameter value corresponding to the distance parameter to be measured; the method comprises the steps of,
the step of calculating the distance parameter value corresponding to the distance parameter to be measured based on the three-dimensional scene comprises the following steps:
displaying the three-dimensional scene in an augmented reality AR environment;
adding an auxiliary line for measuring the distance parameter to be measured into the three-dimensional scene in an AR mode;
and calculating a distance parameter value corresponding to the distance parameter to be measured based on the auxiliary line by using a synchronous positioning and mapping SLAM technology.
6. The method of claim 1, wherein the marking the three-dimensional scene according to the wiring requirement, determining a wiring starting point, a wiring ending point, and a wiring key point in the three-dimensional scene comprises:
displaying a wiring input interface;
acquiring marking operation performed by a user on the wiring input interface according to the wiring requirement;
analyzing the labeling operation, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene; wherein the routing key points include necessary route points and/or forbidden route points.
7. The method of claim 6, wherein the generating a routing path from the routing start point, the routing end point, and the routing key point comprises:
obtaining wiring direction constraint, wire quantity constraint, wire type constraint and wiring critical path from the wiring requirement; wherein the wiring critical path includes a necessary path and/or a wiring prohibited path;
generating a graph structure according to edges formed by all equipment points and adjacent communicable equipment points in the three-dimensional scene;
determining constraint conditions according to the wiring starting point, the wiring ending point, the wiring key point, the wiring direction constraint, the wire quantity constraint, the wire type constraint and the wiring key path;
At least one of the routing paths satisfying the constraint is generated using a path algorithm.
8. The method of claim 1, wherein after the step of exhibiting the routing path in the three-dimensional scene and the wire length corresponding to the routing path, the method further comprises:
displaying a wiring adjustment interface;
acquiring an adjustment operation performed by a user on the wiring adjustment interface;
analyzing the adjustment operation, determining wiring adjustment requirements, generating at least one wiring adjustment path according to the wiring adjustment requirements, and calculating the length of a wire rod corresponding to the wiring adjustment path based on the distance parameter value.
9. A wiring device based on a three-dimensional scene, comprising:
the display module is used for determining a building scene to be wired and displaying a three-dimensional scene of the building scene to be wired;
the acquisition module is used for acquiring the wiring requirements of the scene to be wired;
the determining module is used for determining a parameter to be measured according to the wiring requirement, and calculating a distance parameter value corresponding to the parameter to be measured based on the three-dimensional scene;
the determining module is further used for marking the three-dimensional scene according to the wiring requirement, and determining a wiring starting point, a wiring ending point and a wiring key point in the three-dimensional scene;
The calculation module is used for generating a wiring path according to the wiring starting point, the wiring ending point and the wiring key point and calculating the length of a wire rod corresponding to the wiring path based on the distance parameter value;
the display module is also used for displaying the wiring path in the three-dimensional scene and the wire length corresponding to the wiring path.
10. A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the three-dimensional scene-based wiring method according to any one of claims 1 to 8.
11. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which when executed by the one or more processors cause the one or more processors to implement the three-dimensional scene-based routing method of any of claims 1 to 8.
CN202111483993.9A 2021-12-07 2021-12-07 Wiring method and device based on three-dimensional scene, storage medium and electronic equipment Pending CN116305382A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111483993.9A CN116305382A (en) 2021-12-07 2021-12-07 Wiring method and device based on three-dimensional scene, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111483993.9A CN116305382A (en) 2021-12-07 2021-12-07 Wiring method and device based on three-dimensional scene, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116305382A true CN116305382A (en) 2023-06-23

Family

ID=86794654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111483993.9A Pending CN116305382A (en) 2021-12-07 2021-12-07 Wiring method and device based on three-dimensional scene, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116305382A (en)

Similar Documents

Publication Publication Date Title
CN109432777B (en) Path generation method and device, electronic equipment and storage medium
CN110808855B (en) Internet technology architecture, management method and device, electronic equipment and medium
US20210182983A1 (en) Method and system for automated generation of a floor joist 2d drawings from a 3d model
JP6768123B2 (en) Augmented reality methods and equipment
CN113010945A (en) BIM model linkage method and system
CN111597628B (en) Model marking method and device, storage medium and electronic equipment
US8902219B1 (en) Maintaining connection to embedded content using graphical elements
US11010013B2 (en) Providing visual control guidance on a display
CN110209748A (en) The method and apparatus for indexing geography fence
US11120171B2 (en) System and method for construction cost estimation for non-computer aided design (CAD) files
CN113034603B (en) Method and device for determining calibration parameters
CN112785746A (en) Intelligent inspection method, device, equipment and storage medium
CN113532266A (en) Box volume measuring method, system, equipment and storage medium based on three-dimensional vision
CN116305382A (en) Wiring method and device based on three-dimensional scene, storage medium and electronic equipment
CN111272186A (en) Robot path configuration method and device and readable storage medium
US9129318B2 (en) System and method for allocating suppliers using geographical information system and supplier capability
CN113034562B (en) Method and apparatus for optimizing depth information
CN113901051A (en) Method and device for generating WebGL data, storage medium and electronic equipment
CN109840609B (en) Goods picking point data verification method and device, storage medium and electronic equipment
CN109887078B (en) Sky drawing method, device, equipment and medium
CN110647599B (en) Method and apparatus for displaying information
CN112988932A (en) High-precision map labeling method, device, equipment, readable storage medium and product
CN115544622B (en) Urban and rural participated three-dimensional planning design platform, method, equipment and storage medium
CN106443732B (en) Path diagram drawing method and system based on GPS
CN110375752A (en) A kind of method and apparatus generating navigation spots

Legal Events

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