Gas pipeline auxiliary detection method and system based on augmented reality
Through the gas pipeline auxiliary detection method based on augmented reality, using virtual simulation technology and virtual and real integration, the problems of high manual detection cost, low efficiency and inaccurate positioning in the existing gas leak detection technology are solved, and high-precision and fast-response are achieved. Gas leak detection capability.
Patent Information
- Application Number
- CN202410847586.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing gas leakage detection technology suffers from high manual detection costs, low efficiency, incomplete coverage, and poor real-time performance. It is difficult to accurately locate the leakage location, and the detection technology is insufficient for enterprises that require high precision, fast response speed, and high reliability.
The gas pipeline auxiliary detection method based on augmented reality is used to obtain pipeline longitude and latitude data, generate world coordinates in the virtual simulation development platform, identify the environmental grid and generate augmented reality content, and combine virtual and real fusion technology to intuitively display underground and in-building pipelines. , improve the ability to detect leak points.
It effectively improves the ability to detect gas leaks, breaks space restrictions, allows staff to visually see buried and in-building pipelines in reality, improves detection accuracy and efficiency, and meets the needs for high precision and fast response.
Smart Images

Figure CN118757692A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of gas detection, and in particular relates to a gas pipeline auxiliary detection method and system based on augmented reality. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] While gas leak detection technology is developing, the Internet of Things, big data, 3D (three-dimensional), XR extended reality technology (including VR virtual reality, AR augmented reality, MR mixed reality, etc.), and artificial intelligence technology are also developing rapidly, bringing unprecedented changes to gas safety production. In particular, three-dimensional visualization technology and intelligent digital operation and maintenance management concepts are rapidly expanding in the energy field. More and more companies have accepted and carried out research and application of digital technology in safety, operation, maintenance and other aspects.
[0004] At present, there are some industrial equipment fault auxiliary detection systems based on augmented reality. However, according to the inventors' understanding, the problems of the current gas pipeline auxiliary detection systems based on augmented reality are mainly manifested in:
[0005] (1) In enterprises, gas leak detection work has the problems of high manual detection cost, low efficiency and incomplete coverage.
[0006] (2) Gas leakage incidents are characterized by large losses and high randomness, requiring real-time operation and maintenance and security inspections, but most systems are not very real-time.
[0007] (3) There are currently a large number of areas with aging gas pipelines that need to be replaced. The construction site needs to be monitored and the location of the gas pipelines needs to be accurately located. Traditional detection equipment cannot accurately locate the leakage location.
[0008] (4) Enterprises that require high accuracy, fast response speed, and high reliability in testing need to update their testing and operation and maintenance technologies.
[0009] In summary, the current gas leak detection has problems such as inaccuracy, inconvenience in detecting pipeline leaks in residential buildings, and untimely treatment of gas leaks. Summary of the invention
[0010] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides a gas pipeline auxiliary detection method and system based on augmented reality, which utilizes augmented reality and pipeline data to intuitively see scenes that cannot be actually observed, such as buried pipelines and pipelines inside buildings, thereby effectively improving the ability to detect leakage points.
[0011] To achieve the above object, the first aspect of the present invention provides: a gas pipeline auxiliary detection method based on augmented reality, the method comprising:
[0012] Obtain the latitude and longitude data of the underground pipeline in the prototype file, and convert the obtained latitude and longitude data of the underground pipeline into world coordinates in the virtual simulation development platform;
[0013] Identify pipeline environment information and generate a grid, extract coordinates of the identified grid and convert them into world coordinates in the virtual simulation development platform;
[0014] Based on the intersection of the grid corresponding to the environment and the location of the underground pipeline, generating augmented reality content corresponding to the environment pipeline, the augmented reality content includes the generated underground virtual pipeline;
[0015] In response to a first trigger operation by a user, determining a virtual space corresponding to a real space of an underground pipeline to be detected, and detecting the underground virtual pipeline in the augmented reality content in the virtual space;
[0016] Based on the location and identification of the pipeline outside the building, in response to the user's second trigger operation, the gas entry location mark is determined, and a virtual pipeline inside the building is generated with the gas entry location mark as the starting position. The generated virtual pipeline inside the building is detected based on the virtual-reality fusion method.
[0017] A second aspect of the present invention provides a gas pipeline auxiliary detection system based on augmented reality, the system comprising:
[0018] A first conversion unit is used to obtain the latitude and longitude data of the underground pipeline in the prototype file, and convert the obtained latitude and longitude data of the underground pipeline into world coordinates in the virtual simulation development platform;
[0019] The second conversion unit is used to identify the pipeline environment information and generate a grid, extract the coordinates of the identified grid and convert them into world coordinates in the virtual simulation development platform;
[0020] An augmented reality module, used to generate augmented reality content corresponding to the environment pipeline based on the intersection of the grid corresponding to the environment and the underground pipeline position, wherein the augmented reality content includes the generated underground virtual pipeline;
[0021] A first response module, configured to determine, in response to a first trigger operation by a user, a virtual space corresponding to the real space of the underground pipeline to be detected, and detect the underground virtual pipeline in the augmented reality content in the virtual space;
[0022] The second response module is used to determine the gas entry location mark based on the location and identification of the pipeline outside the building and in response to the second trigger operation of the user, generate a virtual pipeline in the building with the gas entry location mark as the starting position, and detect the generated virtual pipeline in the building based on the virtual-real fusion method. The third aspect of the present invention provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, when the computer device is running, the processor communicates with the memory through the bus, and when the machine-readable instructions are executed by the processor, a gas pipeline auxiliary detection method based on augmented reality is executed.
[0023] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, an augmented reality-based gas pipeline auxiliary detection method is executed.
[0024] One or more of the above technical solutions have the following beneficial effects:
[0025] The present invention generates underground virtual pipelines and virtual pipelines in buildings based on pipeline data and environmental information, and uses enhanced display and user interaction to view underground pipelines and pipelines in buildings within a certain range. By using augmented reality combined with pipeline information data, underground pipelines and gas pipelines in buildings are intuitively presented, breaking the limitations of space. Workers can intuitively see scenes that cannot be observed in reality, such as buried pipelines and pipelines in buildings. By studying and analyzing the model to solve the problem, the ability to find leaks can be effectively improved.
[0026] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0028] Figure 1 This is a diagram of the gas pipeline auxiliary detection architecture based on augmented reality in the first embodiment of the present invention;
[0029] Figure 2 This is a flow chart of gas pipeline auxiliary detection based on augmented reality in Embodiment 1 of the present invention;
[0030] Figure 3 This is a schematic diagram of the Hololens 2 hardware wearing in the first embodiment of the present invention;
[0031] Figure 4 This is a panel diagram of a control interface in Embodiment 1 of the present invention;
[0032] Figure 5 This is a schematic diagram of the information reporting panel of the building pipeline identification interface in the first embodiment of the present invention;
[0033] Figure 6 This is a schematic diagram of an information reporting panel of an underground pipeline generation interface in the first embodiment of the present invention;
[0034] Figure 7 This is a schematic diagram of scanning a QR code in Embodiment 1 of the present invention;
[0035] Figure 8 It is a schematic diagram of an underground pipeline model of the present invention;
[0036] Fig. 9 This is a schematic diagram of a building pipeline model in Embodiment 1 of the present invention. DETAILED DESCRIPTION
[0037] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0038] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0039] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0040] Embodiment 1
[0041] This embodiment discloses a gas pipeline auxiliary detection method based on augmented reality, including:
[0042] Obtain the latitude and longitude data of the underground pipeline in the prototype file, and convert the obtained latitude and longitude data of the underground pipeline into world coordinates in the virtual simulation development platform;
[0043] Identify pipeline environment information and generate a grid, extract coordinates of the identified grid and convert them into world coordinates in the virtual simulation development platform;
[0044] Based on the intersection of the grid corresponding to the environment and the location of the underground pipeline, generating augmented reality content corresponding to the environment pipeline, the augmented reality content includes the generated underground virtual pipeline;
[0045] In response to a first trigger operation by a user, determining a virtual space corresponding to a real space of an underground pipeline to be detected, and detecting the underground virtual pipeline in the augmented reality content in the virtual space;
[0046] Based on the location and identification of the pipeline outside the building, in response to the user's second trigger operation, the gas entry location mark is determined, and a virtual pipeline inside the building is generated with the gas entry location mark as the starting position. The generated virtual pipeline inside the building is detected based on the virtual-reality fusion method.
[0047] The present invention utilizes the augmented reality function of Hololens2, cooperates with the pipeline information data of the gas company, and uses spatial three-dimensional technology and electronic information technology at the inspection site to present the state of things that are not present through the three-dimensional model, which is more intuitive and three-dimensional, breaking the limitation of space. The staff can intuitively see the buried pipelines, pipelines in buildings and other scenes that cannot be observed in reality, and can also check the properties of the pipelines, maintenance records and predict hidden dangers, etc. By studying and analyzing the model to solve the problem, the ability to find leakage points can be effectively improved.
[0048] HoloLens 2 is a mixed reality headset developed by Microsoft. It is based on augmented reality technology and provides users with a sensory experience beyond reality. Hololens 2 can use computer graphics technology and visualization technology to generate virtual objects that do not exist in the real environment, and register virtual objects to the augmented reality system through sensing technology, accurately "placing" them in the real environment.
[0049] With the help of display devices, virtual objects are integrated with the real environment, thus presenting users with a new environment with real sensory effects. Therefore, the augmented reality system implemented by Hololens2 has many characteristics such as virtual-real combination, real-time interaction, and three-dimensional registration. It can be used as an auxiliary tool for detecting industrial equipment failures and provide real-time industrial equipment status information for inspection personnel.
[0050] The method of this embodiment mainly consists of two hardware parts: a host and a Hololens2 implementation.
[0051] In order to achieve accurate alignment between virtual and real space, it is necessary to develop environmental mesh construction technology and calibration algorithms, including building environmental meshes in the real world to facilitate positioning and tracking, and developing calibration algorithms to correct any deviations and errors.
[0052] To achieve the virtual-reality fusion effect, we need to solve how to perfectly integrate virtual objects with actual scenes in extended reality technology. We need to develop advanced visual positioning and tracking algorithms to ensure that virtual objects are accurately aligned with actual pipelines, and we need to consider factors such as lighting and materials to make the fusion effect more realistic.
[0053] In terms of data processing, we need to solve the problem of how to effectively process a large amount of gas pipeline data and convert it into a format that can be used for visualization. This involves data cleaning, processing and analysis technology, as well as the development of visualization tools and methods suitable for pipeline data.
[0054] Real-time pipeline model generation, this technical challenge involves how to apply digital twin technology to the generation of real-time pipeline models. This requires considering how to obtain real-time information from sensor data or other data sources and accurately map it to the pipeline model. It involves technologies in data processing, model update algorithms, real-time data transmission and storage, etc.
[0055] User experience optimization requires consideration of how to design an intuitive and easy-to-use user interface and interaction method to ensure that users can easily understand and operate the system. This includes work in user interface design, interaction design, user feedback mechanism, etc.
[0056] In order to ensure the security and privacy protection of gas pipeline data, strict data security measures need to be implemented, such as data encryption, access control, identity authentication, etc. In addition, it is also necessary to consider how to embed privacy protection functions in the system design to ensure that user data is not leaked or abused.
[0057] Based on the above considerations, the Hololens2 of this embodiment uses the basic version package. Hololens2 combines immersion, optimized ergonomic design, and no cable constraints to create a virtual world that integrates with reality. Hololens2 uses a new TOF depth sensor to obtain the grid of the real environment in real time through spatial mapping. Using the hand tracking algorithm, users can directly control the holographic image using the same gestures used when interacting with objects in the real world. In addition, Hololens2 also supports voice commands, allowing users to interact with the virtual world more conveniently, improving work efficiency and user experience.
[0058] The host in this embodiment is the ASUS ROG Zephyrus G4 13th generation Intel Core i7 laptop.
[0059] It should be noted that the augmented reality device and host can also choose other models according to needs.
[0060] In this embodiment, the spatial mapping function provided by Hololens2 is used. This function uses the camera of Hololens2 to scan the wearer's surrounding environment in real time, and attaches a grid composed of triangles to the surface of surrounding objects to provide the user with grid information of the surrounding environment. The grid recognition observer provided by MRTK can manually adjust the opening and closing of grid recognition, and pass the grid data to the variables in Unity for other parts to call.
[0061] The following describes the four parts of data processing and visualization, real-time pipeline model generation, user experience optimization, and data security and privacy protection in this embodiment.
[0062] 1. Data processing and visualization are divided into data prototype file reading and longitude and latitude coordinate conversion.
[0063] The data prototype file reading part can read, write and analyze the prototype file that stores the longitude, latitude, length and other data of the gas pipeline, and extract the key longitude and latitude data for the actual location of the pipeline from the prototype file. These files may appear in various file types, such as csv, kml, and the data prototype file reading part can extract data from each specific type of prototype data file and save it in a csv type file.
[0064] The longitude and latitude coordinate conversion part can convert the pipeline longitude and latitude data generated by the data prototype file into world coordinate data in Unity through the Vincentry formula based on the great circle distance algorithm, and save it in a csv file for reading by the real-time pipeline model generation part.
[0065] 2. The real-time pipeline model generation part is divided into data reading part, spatial positioning part and model generation part.
[0066] The data reading part can read the QR code and gas pipeline location data after Unity coordinate conversion stored in the specified location in the file explorer of Hololens2, and store it in the cache.
[0067] The spatial positioning part uses QRCode technology to obtain the QR code information placed in the real space. After scanning the QR code, the World Locking Tools technology is used to fix the virtual space with the QR code in the real space as the anchor point, and read the pipeline position data within the specified range based on the stored QR code position information.
[0068] The model generation part is divided into two modes. The first mode is the generation of underground pipelines. This mode uses the pipeline location information provided by the spatial positioning part and the real environment grid information provided by the environment grid construction and calibration part to generate pipelines in the fixed virtual space. The second mode is the generation of pipelines inside the building. This mode uses the gas pipeline entry mark provided by the virtual-real fusion effect realization part as a benchmark, generates pipelines inside the building at the gas pipeline entry position, and gives floor labels for easy observation by inspection personnel.
[0069] 3. User experience optimization is divided into four parts, including interface design, information reporting, voice recognition, and gesture operation.
[0070] The interface design provides users with an aesthetically pleasing and easy-to-operate interface. The initial interface provides users with the option to jump to two different functional scenarios: underground pipelines and building pipelines. The underground pipeline interface uses the Hololens2 GPS chip to provide the latitude and longitude data of the current location, and provides a return to home page and information reporting button; the building pipeline interface provides users with an information reporting button, a return to home page button, and a gas entry location mark generation button.
[0071] Information reporting identifies the information that needs to be reported in the current panel, and writes it to the csv reporting information data file stored in the Hololens2 file system after clicking the relevant button.
[0072] Voice recognition is divided into two parts. The first part is applied to underground pipeline scenarios. In this scenario, the voice recognition part provides voice recognition for opening and closing the menu panel. The second part is applied to pipeline scenarios within buildings. In this scenario, in addition to providing voice recognition for opening and closing the menu panel, the voice recognition part also provides voice recognition for reporting building information. Users can say the community, unit, and floor information where the gas leakage pipeline is located and report it.
[0073] The gesture operation part uses the hand recognition algorithm provided by MRTK, providing two button selection methods: click and air tap. Clicking requires the user to directly touch the button in the interface with the virtual hand, while air tapping requires the user to aim the ray emitted by the hand at the button, and then use the thumb and index finger to make a tapping action to activate the button function.
[0074] 4. The data security and privacy protection part uses the security verification function of Hololens 2. When the user wakes up Hololens 2 from sleep mode, the Pin code is used as the security verification for login. When data is transmitted between Hololens 2 and the host, the account plus password method is used for identity authentication to ensure the security of data files.
[0075] This embodiment is designed based on Hololens2 and uses Unity as the coding environment, providing users with three different operation interface modules: control interface module, underground pipeline generation module, and building pipeline identification module.
[0076] The control interface unit provides three sub-functions: scene switching, voice recognition, and gesture recognition.
[0077] Specifically, the scene switching function provides switching between three different operation interfaces. This function is implemented using the scene switching code in Unity and sets some indestructible objects to ensure that important functions are not destroyed after the scene is switched and can still be used normally.
[0078] The speech recognition function uses the speech recognition input provided by MRTK and the speech recognition interface provided by Microsoft. The speech recognition input provided by MRTK can be modified in the configuration file. The content for modification includes the content of the recognized speech and the behavior generated after the speech recognition. In this function, the Chinese "Menu" command is used as the command to wake up the menu panel, and the Chinese "Close" command is used as the command to close the menu panel; the speech recognition interface provided by Microsoft provides users with online speech recognition services. After enabling the speech monitor, the application transmits the voice information captured by the microphone to the Microsoft server through the network. After the server's recognition processing, the recognized text is returned to the application and stored in the text variable of the menu panel for display on the panel.
[0079] Gesture recognition uses the camera provided by Hololens and the hand recognition function provided by MRTK to add a grid model to the hand recognized by the camera, and emits a ray at the index finger position of the hand, setting the tapping of the index finger and thumb as the selected operation. The user can activate the function by directly touching the button in the panel with the virtual hand, or by aiming the ray at the button in the panel and tapping it to activate the same button function as touching.
[0080] In this embodiment, the underground pipeline generation module mainly includes three parts: longitude and latitude conversion, underground pipeline generation and situation reporting.
[0081] A file reading script written in Python is used to read csv files and kml files according to the file structure, read the longitude and latitude data of underground pipelines contained in the data prototype file, and use the Vincentry formula to convert the longitude and latitude of the underground pipeline and the longitude and latitude of the QR code into the world coordinate system in Unity, according to the east longitude corresponding to the positive direction of the x-axis in Unity and the north latitude corresponding to the positive direction of the z-axis in Untiy, so as to place virtual objects in Unity.
[0082] Specifically, the environmental mesh object stored in the mesh identifier is obtained in real time, the mesh triangles are taken out one by one, the local coordinate system is converted into the world coordinate system through coordinate transformation, and then the virtual pipeline is arranged at the location where the grid and pipeline data intersect according to the currently stored pipeline position data, and a certain depth information is given for the user to observe.
[0083] The pipeline position data includes the x and z coordinates of the starting point and the x and z coordinates of the end point, and the pipeline plane perpendicular to the xoz plane is constructed with these coordinates.
[0084] When a line segment intersects a plane, the two end points of the line segment form two vectors with the same point in the plane. The inner products of these two vectors and the normal vector of the plane should be of opposite signs. Based on this mathematical theory, we can judge whether the pipeline and the grid intersect. The three sides of all triangles in the pipeline plane and the environmental grid are used to judge the intersection. If they intersect, the intersection formula is used to find the intersection point, and the underground virtual pipeline is drawn based on the starting intersection point and the ending intersection point.
[0085] In this embodiment, a corresponding QR code is placed in the real space: (1) For each QR code configured as an object in the virtual space, the Position of the QR code under Transform in the space is modified by the stored QR code coordinate data; (2) The angle of the QR code is rotated by -90° along the x-axis, -90° along the y-axis, and 0° along the z-axis, so that the positive x-axis of the fixed virtual space corresponds to the east longitude, and the positive z-axis corresponds to the north latitude; (3) An identification prompt box is provided. When the camera scans the QR code, the prompt box appears and slowly fixes in a posture from large to small and in a color from green to yellow, providing the user with a successful sign of QR code recognition; (4) After recognizing the QR code, the World Locking Tools object is called to read the coordinates of the QR code, translate and rotate the space according to the QR code, and fix the virtual space in the real space; (5) After recognizing the QR code, the grid identifier and pipeline generation script are called to generate a virtual pipeline within a certain range of the QR code.
[0086] The virtual space and the real space are fixed, with the QR code as a fixed reference anchor point and a grid that can recognize the environment in real time. In Update, the newly generated pipeline is placed on the recognized environment grid at a frequency of once every 10 seconds.
[0087] The situation report uses the GPS chip to obtain the latitude and longitude information of the current location and provides writing to the Hololens2 file. The user can click a button to report the latitude and longitude information of the current abnormal situation to the Hololens2 file.
[0088] The building pipeline identification module includes three parts: identifying pipelines outside the building, drawing pipelines, and reporting situations. The yolov7 model placed in Hololens2 is used to identify the gas pipelines outside the building with yellow as the main color feature. After the identification is completed, a gas entry location mark is generated at the location where the gas pipeline enters the house. The mark can be placed on the grid recognized by Hololens2. After selecting it, the user can freely control its movement. By tapping, the mark can be switched between moving and fixed states, so that the pipeline generation position can be further calibrated manually to ensure the accuracy of the pipeline generation position inside the building.
[0089] The pipeline drawing starts from the gas inlet position mark, and the Position coordinates of the gas inlet position mark are passed to the pipeline drawing script as the initial pipeline generation position coordinates. A certain offset is generated with the camera orientation as the offset direction, and the offset is superimposed with the initial pipeline generation position coordinates to calculate the final pipeline generation position coordinates inside the building.
[0090] Specifically, the pipeline generation coordinates correspond to the coordinates of the "gas entry location mark". The x and z coordinates of the pipeline generation location coordinates are used as the x and z coordinates of the pipeline model Position coordinates. The required internal pipeline length of the building is calculated according to the set number of floors and the height of each floor (such as 2.8 meters). The length value is divided by 2 and added to the y coordinate of the pipeline generation location coordinates to take the y coordinate of the pipeline model Position. Then, according to the Position coordinates of the pipeline model and the pipeline length value, a virtual pipeline inside the building is generated vertically upward, and the gas entry location mark is used as the first floor to be counted. A label with the floor is generated on the side of the virtual pipeline to provide convenience for the inspector to observe the floor.
[0091] The situation reporting uses the function of the voice recognition module. Users can use voice to report the specific location information of the building where the abnormality occurs, providing a basis for entering the floor for internal inspection.
[0092] This embodiment also includes account and password permission verification for accessing Hololens 2, as well as Pin code verification each time the device is turned on.
[0093] like Figure 2 As shown in the figure, after the user opens the application in Hololens2, he first comes to the control interface, and chooses to jump to the two operation scenes of underground pipelines and building pipelines in the panel of this interface. In the underground pipeline generation scene, the user first scans the QR code to determine the current spatial position, and then the application generates underground pipelines within a certain range based on the scanned QR code information. After the user uses the gas detection equipment to detect these pipelines, the abnormal location will be reported to the server, and then choose to return to the control interface or end the application.
[0094] In the building pipeline recognition scene, users can choose whether to use gas pipeline placement marks. If necessary, click the Generate Pipeline button, run the recognition code in Unity, and after completing the recognition of the gas pipeline entry location, the application will create a gas pipeline entry location mark at the pipeline entry location. Users can manually fine-tune the position of the mark, and then click the Generate Pipeline button in the new panel to generate the internal building pipeline at the gas pipeline entry location, and then return. After that, the user clicks the Start Dictation button to report the abnormal location information through voice. After the report is completed, choose to return to the control interface or end the application.
[0095] like Figure 3 The figure shows the schematic diagram of the Hololens2 hardware wearing. Hololens2 supports wireless wearing. Users only need to put it on their heads and adjust the position of the lens to easily see the virtual world built by Hololens2. When users put their hands in the camera's field of view, Hololens2 will automatically recognize its shape through algorithms and build a hand model in the virtual world to provide users with interactive hand operations.
[0096] like Figure 4 The following is a schematic diagram of the control panel. The control panel has three buttons. The first button is an unused interface. The second button can jump to the underground pipeline interface. The third button can switch to the building pipeline interface. The panel will usually move with the movement of Hololens2. Users can fix the panel in space with the pin button in the upper right corner, or drag the panel by tapping the side of the panel.
[0097] like Figure 5 The figure shows the schematic diagram of the information reporting panel of the building pipeline recognition interface. In the information reporting interface, after the user clicks Start Voice, the application will try to start the voice listener and display "Voice is initializing" on the panel. After the voice listener is successfully started, the panel displays "Dictation is in progress...". The user uses voice input, and the voice listener transmits the acquired voice data to the Microsoft speech recognition server. The server translates the voice data into text, returns it to the application, and displays the voice recognition content on the panel. The user clicks the Report button, and the application reports the currently displayed text content to the specified storage location of Hololens2. The user clicks the Home button to return to the initial control interface. The user clicks the Generate Pipeline button to evoke the gas pipeline placement sign and gas pipeline placement panel, and close the original information reporting panel. The user can open or close the information reporting panel through the voice "Menu" and "Close".
[0098] like Figure 6 The following is a schematic diagram of the information reporting panel of the underground pipeline generation interface. When the panel is opened, the text in the panel will display the longitude and latitude information obtained from the GPS chip. Click the Report button to report the longitude and latitude to the specified storage location of Hololens2. Click the home page to return to the control interface. Users can also open or close the main panel through voice "Menu" and "Close".
[0099] like Figure 7The figure shows a schematic diagram of scanning a QR code. When the user points the Hololens2 camera at the QR code, a box from large to small will be seen in the lens, indicating that the QR code has been successfully recognized. The system then reads the position data of the QR code, and gives it to the World Locking Tools component with the coordinates of the QR code in the virtual space, fixes the virtual space in the real space, and obtains the pipeline data within a certain range based on the QR code data, and stores them in the pipeline variable.
[0100] like Figure 8 The figure shows a schematic diagram of an underground pipeline model. The application uses a network identifier to obtain the grid information in the current environment in real time. These grids are composed of many small triangles. The system must first convert the vertex coordinates of these triangles into the world coordinate system before using them. After obtaining the pipeline data, the pipeline data contains the location and end position of each pipeline. The application determines whether each pipeline has an intersection with the triangular grid. If there is an intersection, the pipeline is placed on the grid and slightly offset underground to give a certain depth state.
[0101] like Fig. 9 The figure shows a schematic diagram of the building pipeline model. The gas entry location sign will automatically fit on the environmental grid recognized by Hololens2. The user can move it and place it at the gas pipeline entry location outside the building, and then click the Generate Pipeline button. The application obtains the coordinates of the sign in Unity, and uses the coordinates as the starting position, plus an offset in the direction the user is facing, to generate pipelines and labels for each floor inside the building. If the user clicks Close on the panel, the pipeline will be deleted, the panel will be closed, and the information reporting panel of the building pipeline identification interface will be called up.
[0102] Embodiment 2
[0103] The purpose of this embodiment is to provide a gas pipeline auxiliary detection system based on augmented reality.
[0104] The system comprises:
[0105] A first conversion unit is used to obtain the latitude and longitude data of the underground pipeline in the prototype file, and convert the obtained latitude and longitude data of the underground pipeline into world coordinates in the virtual simulation development platform;
[0106] The second conversion unit is used to identify the pipeline environment information and generate a grid, extract the coordinates of the identified grid and convert them into world coordinates in the virtual simulation development platform;
[0107] An augmented reality module, used to generate augmented reality content corresponding to the environment pipeline based on the intersection of the grid corresponding to the environment and the underground pipeline position, wherein the augmented reality content includes the generated underground virtual pipeline;
[0108] A first response module, configured to determine, in response to a first trigger operation by a user, a virtual space corresponding to the real space of the underground pipeline to be detected, and detect the underground virtual pipeline in the augmented reality content in the virtual space;
[0109] The second response module is used to determine the gas entry location mark based on the location and identification of the pipeline outside the building and in response to the user's second trigger operation, generate a virtual pipeline inside the building with the gas entry location mark as the starting position, and detect the generated virtual pipeline inside the building based on the virtual-reality fusion method.
[0110] Embodiment 3
[0111] The purpose of this embodiment is to provide a computing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the program.
[0112] Embodiment 4
[0113] The purpose of this embodiment is to provide a computer-readable storage medium.
[0114] A computer-readable storage medium stores a computer program, which executes the steps of the above method when executed by a processor.
[0115] The steps involved in the apparatuses of the above embodiments 2, 3 and 4 correspond to the method embodiment 1, and the specific implementation methods can refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.
[0116] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.
[0117] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A gas pipeline auxiliary detection method based on augmented reality, characterized in that: The method comprises: Obtain the latitude and longitude data of the underground pipeline in the prototype file, and convert the obtained latitude and longitude data of the underground pipeline into world coordinates in the virtual simulation development platform; Identify pipeline environment information and generate a grid, extract coordinates of the identified grid and convert them into world coordinates in the virtual simulation development platform; Based on the intersection of the grid corresponding to the environment and the location of the underground pipeline, generating augmented reality content corresponding to the environment pipeline, the augmented reality content includes the generated underground virtual pipeline; In response to a first trigger operation by a user, determining a virtual space corresponding to a real space of an underground pipeline to be detected, and detecting the underground virtual pipeline in the augmented reality content in the virtual space; Based on the location and identification of the pipeline outside the building, in response to the user's second trigger operation, the gas entry location mark is determined, and a virtual pipeline inside the building is generated with the gas entry location mark as the starting position. The generated virtual pipeline inside the building is detected based on the virtual-reality fusion method.
2. A gas pipeline auxiliary detection method based on augmented reality as claimed in claim 1, characterized in that: Obtain the latitude and longitude data of the underground pipeline in the prototype file, and convert the obtained latitude and longitude data of the underground pipeline into world coordinates in the virtual simulation development platform, specifically: The Vincentry formula is used to convert the latitude and longitude data of the underground pipeline and the latitude and longitude data of the QR code into world coordinates in the virtual simulation development platform, according to the east longitude corresponding to the positive direction of the x-axis in the virtual simulation development platform and the north latitude corresponding to the positive direction of the z-axis in the virtual simulation development platform.
3. A gas pipeline auxiliary detection method based on augmented reality as claimed in claim 2, characterized in that: Call the World Locking Tools object, read the coordinates of the QR code, translate and rotate the space according to the QR code, and fix it in the real space; The grid identifier and pipeline generation script are called to generate an underground virtual pipeline within the range corresponding to the QR code.
4. A gas pipeline auxiliary detection method based on augmented reality as claimed in claim 1, characterized in that: At the intersection of the grid corresponding to the environment and the underground pipeline position, an underground virtual pipeline is generated. Specifically, the mathematical method of the intersection of a line segment and a plane is used to determine whether the pipeline plane and the three sides of all triangles in the environmental network intersect. If they do intersect, the intersection point is determined; the underground virtual pipeline is drawn based on the starting intersection point and the ending intersection point.
5. The gas pipeline auxiliary detection method based on augmented reality as claimed in claim 1, characterized in that: The neural network model is used to identify the pipeline outside the building, and the gas entry position is determined according to the identified pipeline outside the building. In response to the second trigger operation of the user, the gas entry position is fixed.
6. A gas pipeline auxiliary detection method based on augmented reality as described in claim 1 or 5, characterized in that: The generation of the virtual pipeline in the building is specifically as follows: The x and z coordinates of the gas inlet location are used as the x and z coordinates of the location of the pipeline model in the building; Set floor height; The y coordinate of the position coordinate of the pipeline model in the building is obtained by calculating the set floor height and the y coordinate of the gas inlet position coordinate; Generate virtual pipelines in the building according to the location of the pipeline model and the length of the pipeline in the building.
7. A gas pipeline auxiliary detection method based on augmented reality as claimed in claim 1, characterized in that: Get the user's hands within the field of view of Hololens2, identify the user's hands, build a hand model, and perform interactive operations on the hands.
8. A gas pipeline auxiliary detection system based on augmented reality, characterized in that: The system comprises: A first conversion unit is used to obtain the latitude and longitude data of the underground pipeline in the prototype file, and convert the obtained latitude and longitude data of the underground pipeline into world coordinates in the virtual simulation development platform; The second conversion unit is used to identify the pipeline environment information and generate a grid, extract the coordinates of the identified grid and convert them into world coordinates in the virtual simulation development platform; An augmented reality module, used to generate augmented reality content corresponding to the environment pipeline based on the intersection of the grid corresponding to the environment and the underground pipeline position, wherein the augmented reality content includes the generated underground virtual pipeline; A first response module, configured to determine, in response to a first trigger operation by a user, a virtual space corresponding to the real space of the underground pipeline to be detected, and detect the underground virtual pipeline in the augmented reality content in the virtual space; The second response module is used to determine the gas entry location mark based on the location and identification of the pipeline outside the building and in response to the user's second trigger operation, generate a virtual pipeline inside the building with the gas entry location mark as the starting position, and detect the generated virtual pipeline inside the building based on the virtual-reality fusion method.
9. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, an augmented reality-based gas pipeline auxiliary detection method as described in any one of claims 1 to 7 is performed.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the gas pipeline auxiliary detection method based on augmented reality as described in any one of claims 1 to 7 is executed.
Citation Information
Patent Citations
True three-dimensional design method based on augmented reality interactive technology
CN102142055A
True 3D modeling system and method based on video perspective type augmented reality
CN102945564A
OSG-based construction method of self-adaptive virtual fixture
CN106625661A
Mobile type multi-modal interaction method and device based on enhanced reality
CN108334199A
Gas pipeline leakage detection system based on augmented reality technology
CN108954017A
