Method and device for configuring automatic figure inspection path in virtual scene
By using visual web pages to obtain and associate inspection content and path coordinates in virtual scenes, the problems of low efficiency and complexity of inspection path configuration in the existing technology are solved, and automatic planning and sending inspection paths are realized, and virtual scenes are improved. The efficiency of automatic inspection of characters and the maintenance of procedures in them.
Patent Information
- Application Number
- CN202411235233.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2025-01-10
AI Technical Summary
In the existing virtual scenes, the automatic patrol path configuration method of characters is inefficient and complex, it is difficult to adapt to dynamic changes, poor maintenance, only professionals can modify it, and lack flexibility.
By obtaining inspection content and path coordinates based on visual web pages, automatically correlating, sending them to the server, and using background visual configuration to realize automatic inspection path planning in virtual scenes, improving configuration efficiency and reducing thresholds.
It improves the efficiency of patrol path configuration, reduces configuration complexity, enhances the maintainability and scalability of programs, and adapts to complex and changeable virtual scene requirements.
Smart Images

Figure CN119294628A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual reality technology, and in particular to a method and device for configuring an automatic inspection path of a person in a virtual scene. Background Art
[0002] In traditional virtual scene character inspection paths, scene designers and programmers manually set the character's starting point, inspection point, and end point, as well as their connection paths, through programming tools. Alternatively, configuration files are used in the program to store configuration-related parameter points, so that character inspections are performed according to the parameters in the configuration files when the program is running.
[0003] The configuration methods of existing technologies are relatively inefficient, often difficult to adapt to dynamic changes in virtual scenes, and the program maintainability is poor; when the inspection path changes, it is necessary to modify it in the program or manually modify the complex configuration file. Only relevant programmers or professional technicians know how to modify it, which is not intuitive enough. In addition, the existing configuration methods lack flexibility. They often rely on fixed rules or preset parameters and are difficult to cope with complex and changeable virtual scenes and inspection requirements. Therefore, the existing automatic inspection path configuration methods have the disadvantages of low configuration efficiency and complex configuration methods. Summary of the invention
[0004] In view of this, it is necessary to provide a method and device for configuring an automatic inspection path for a character in a virtual scene, so as to solve the technical problems of low configuration efficiency and complex configuration methods in the existing automatic inspection path configuration methods.
[0005] In order to solve the above problems, on the one hand, the present invention provides a method for configuring an automatic inspection path of a person in a virtual scene, comprising: Obtain inspection content, inspection path coordinates and starting position based on visual web pages; Associating the inspection content with the inspection path coordinates and the starting position to obtain an automatic inspection path for the person; The character automatic inspection path is sent to the server, so that the character automatic inspection path is sent to the virtual scene terminal through the server.
[0006] In a possible implementation, obtaining inspection content and inspection path coordinates and a starting position based on a visualization web page includes: The inspection content, inspection path coordinates and starting position are obtained based on the visualization web page on the configuration terminal.
[0007] In a possible implementation, sending the automatic inspection path of the person to the server includes: Set the IP address and port number for the configuration terminal; Establishing a communication connection between the configuration terminal and the server based on the IP address and the port number; After the configuration terminal is connected to the server via a communication connection, the automatic inspection path of the person is sent from the configuration terminal to the server.
[0008] On the other hand, the present invention also provides a method for configuring an automatic inspection path of a character in a virtual scene, comprising: Acquire the automatic inspection path of the person sent by the configuration terminal; the automatic inspection path of the person is configured by the configuration terminal after associating the inspection content obtained from the visualization webpage and the inspection path coordinates with the starting position; The automatic person inspection path is sent to the virtual scene end, so that the automatic person inspection is performed according to the automatic person inspection path based on the virtual scene end.
[0009] In a possible implementation, sending the character automatic inspection path to the virtual scene end includes: After the virtual scene end establishes a communication connection with the server end, receiving request data sent by the virtual scene end; When it is determined that the request data verification is passed, the character automatic inspection path is sent from the service end to the virtual scene end.
[0010] In a possible implementation, the server and the virtual scene end communicate with each other based on a websocket.
[0011] On the other hand, the present invention also provides a device for configuring an automatic inspection path of a person in a virtual scene, comprising: The first acquisition module is used to acquire the inspection content and the inspection path coordinates and the starting position based on the visual web page; An association module, used to associate the inspection content with the inspection path coordinates and the starting position to obtain an automatic inspection path for a person; The first sending module is used to send the character automatic inspection path to the server end, so as to send the character automatic inspection path to the virtual scene end through the server end.
[0012] On the other hand, the present invention also provides a device for configuring an automatic inspection path of a person in a virtual scene, comprising: The second acquisition module is used to acquire the automatic inspection path of the person sent by the configuration terminal; the automatic inspection path of the person is configured by the configuration terminal after associating the inspection content obtained from the visualization webpage and the inspection path coordinates and the starting position; The second sending module is used to send the automatic person inspection path to the virtual scene end, so as to perform automatic person inspection according to the automatic person inspection path based on the virtual scene end.
[0013] On the other hand, the present invention also provides an electronic device, including a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps of the method for configuring an automatic inspection path of a person in a virtual scene as described in any one of the above.
[0014] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for configuring an automatic inspection path of a character in a virtual scene as described in any of the above items.
[0015] The beneficial effects of adopting the above implementation are: the configuration method and device of the automatic patrol path of the characters in the virtual scene provided by the present invention obtains the patrol content and the patrol path coordinates and the starting position based on the visual web page; associates the patrol content with the patrol path coordinates and the starting position to obtain the automatic patrol path of the characters; sends the automatic patrol path of the characters to the server end, so as to send the automatic patrol path of the characters to the virtual scene end through the server end. The present invention realizes the configuration and association of the patrol path in the virtual scene by introducing a web page with background visual configuration, automatically plans the patrol path of the characters, and enables the virtual scene to automatically patrol the characters according to the requirements of the background configuration, thereby improving the patrol path configuration efficiency, lowering the threshold for character configuration, improving the maintainability and extensibility of the program, and solving the technical problems of low configuration efficiency and complex configuration methods in the existing automatic patrol path configuration methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 A flowchart of an embodiment of a method for configuring an automatic inspection path of a person in a virtual scene provided by the present invention; Figure 2 A flowchart of another embodiment of a method for configuring an automatic inspection path of a person in a virtual scene provided by the present invention; Figure 3A flowchart of another embodiment of a method for configuring an automatic inspection path of a person in a virtual scene provided by the present invention; Figure 4 A principle block diagram of an embodiment of a device for configuring an automatic inspection path of a person in a virtual scene provided by the present invention; Figure 5 A principle block diagram of another embodiment of a device for configuring an automatic inspection path for a person in a virtual scene provided by the present invention; Figure 6 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technical personnel in this field without making creative work are within the scope of protection of the present invention.
[0019] In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more than two.
[0020] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product or equipment comprising a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules not clearly listed or inherent to these processes, methods, products or equipment.
[0021] The naming or numbering of the steps in the embodiments of the present invention does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0022] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0023] The present invention provides a method and device for configuring an automatic inspection path of a person in a virtual scene, which are respectively described below.
[0024] like Figure 1 As shown, the present invention provides a method for configuring an automatic inspection path of a person in a virtual scene, comprising: S101, obtaining inspection content and inspection path coordinates and starting position based on a visualized web page; S102, associating the inspection content with the inspection path coordinates and the starting position to obtain an automatic inspection path for a person; S103, sending the character automatic inspection path to a server, so that the character automatic inspection path is sent to a virtual scene terminal through the server.
[0025] The present invention automatically plans the inspection path of the person by dynamically configuring and associating the inspection route and the relevant coordinates and starting position of the inspection path in the background visualization interface. The virtual scene communicates with the background service to obtain the relevant information of the current inspection path in real time, so that the person in the virtual scene can automatically inspect. The specific steps are as follows: It can be understood that the execution subject of the configuration method in this embodiment is the configuration terminal, and the inspection content may include information such as the object to be inspected and the location of the area to be inspected.
[0026] During the automatic inspection of people, multiple objects need to be inspected in sequence, so it is necessary to plan the corresponding inspection path and connect multiple inspection objects in series.
[0027] The configuration method provided in this embodiment obtains the inspection content and the inspection path coordinates and the starting position based on the visualization web page; associates the inspection content with the inspection path coordinates and the starting position to obtain the automatic inspection path of the person; sends the automatic inspection path of the person to the server, so that the automatic inspection path of the person is sent to the virtual scene end through the server. The present invention realizes the configuration and association of the inspection path in the virtual scene by introducing a background visualization configuration web page, automatically plans the inspection path of the person, and enables the virtual scene to automatically inspect the person according to the requirements of the background configuration, thereby improving the inspection path configuration efficiency, lowering the threshold for person configuration, improving the maintainability and extensibility of the program, and solving the technical problems of low configuration efficiency and complex configuration methods in the existing automatic inspection path configuration methods.
[0028] In some embodiments, obtaining inspection content and inspection path coordinates and starting position based on a visualized web page includes: The inspection content, inspection path coordinates and starting position are obtained based on the visualization web page on the configuration terminal.
[0029] In some embodiments, sending the automatic inspection path of the person to the server includes: Set the IP (Internet Protocol) address and port number for the configuration terminal; Establishing a communication connection between the configuration terminal and the server based on the IP address and the port number; After the configuration terminal is connected to the server via a communication connection, the automatic inspection path of the person is sent from the configuration terminal to the server.
[0030] It is understandable that in order to realize a configuration method of an automatic inspection path of a character in a virtual scene, the inspection path configuration terminal of the present invention is a B / S architecture, the background server mainly adopts the .net core platform + mysql database, and the front-end interface mainly adopts technologies such as HTML5+JQuery. The configuration terminal is accessed in the form of a web page, and the configuration and association of the automatic inspection path are realized through the background visual configuration interface. After the relevant configuration is completed, the virtual scene end establishes a communication link with the server end, and communicates in a websocket manner. WebSocket is a protocol for full-duplex communication on a single TCP (Transmission Control Protocol) connection. The virtual scene end sends a request, and the server end returns the automatic inspection path data.
[0031] In some embodiments, Figure 2 As shown, the configuration method of the automatic inspection path of a person in a virtual scene provided by the present invention can be summarized into the following steps: 1. Configure the inspection content and related coordinates of the inspection path, starting position and other information in the visual interface of the background configuration terminal; 2. Associate the inspection content with the inspection path; 3. Process the configuration content and generate the inspection path of the character; 4. The background server establishes a communication connection with the virtual scene end; 5. The communication link is established successfully, the virtual scene end sends a request message, the background server receives the request from the virtual scene end and sends the automatic inspection path data to the virtual scene end in real time; 6. After the virtual scene end receives the automatic inspection path data in real time, it drives the character model to perform automatic inspection.
[0032] like Figure 3 As shown, the present invention also provides a method for configuring an automatic inspection path of a person in a virtual scene, comprising: S301, obtaining a person's automatic inspection path sent by a configuration terminal; the person's automatic inspection path is configured by the configuration terminal after associating the inspection content obtained from the visualization webpage and the inspection path coordinates with the starting position; S302: Send the automatic person inspection path to the virtual scene end, so as to perform automatic person inspection according to the automatic person inspection path based on the virtual scene end.
[0033] It can be understood that the execution subject of the configuration method in this embodiment is the server.
[0034] In some embodiments, sending the character automatic inspection path to the virtual scene end includes: After the virtual scene end establishes a communication connection with the server end, receiving request data sent by the virtual scene end; When it is determined that the request data verification is passed, the character automatic inspection path is sent from the service end to the virtual scene end.
[0035] In some embodiments, the server and the virtual scene end communicate with each other based on websocket.
[0036] In some embodiments, the specific implementation steps of the method for configuring the automatic inspection path of a character in a virtual scene are as follows: 1. Build the service environment for backend configuration, install .net core platform, mysql database, and nginx middleware.
[0037] 2. Deploy the backend configuration terminal to the server and set the IP address and port number of the access page.
[0038] 3. The user accesses the configuration terminal through the web page, configures the inspection content and the inspection path related coordinates, starting position and other information, and associates it with the inspection content.
[0039] 4. Through the above configuration, the configuration data is processed into an automatic person inspection path.
[0040] 5. According to the set IP address and port number, the virtual scene terminal actively connects to the server and establishes a communication link.
[0041] 6. After the communication link is successfully established, the virtual scene end sends the request data information in the json format.
[0042] 7. The server receives the request data from the virtual scene end and verifies the data. After successful verification, it returns the corresponding automatic inspection path data, where the returned data is in JSON format.
[0043] 8. After the virtual scene end receives the automatic inspection path data returned by the server, the virtual scene end splits and processes the data, and then drives the characters in the virtual scene in real time to inspect according to the configured automatic inspection path.
[0044] Specifically, the virtual scene end and the server end communicate using the TCP / IP protocol and the websocket method, and the data transmission format is the json format.
[0045] like Figure 4As shown, the present invention also provides a configuration device 400 for automatically inspecting a path of a person in a virtual scene, comprising: The first acquisition module 401 is used to acquire inspection content and inspection path coordinates and starting position based on the visualization web page; An association module 402 is used to associate the inspection content with the inspection path coordinates and the starting position to obtain an automatic inspection path for a person; The first sending module 403 is used to send the character automatic inspection path to the server, so as to send the character automatic inspection path to the virtual scene terminal through the server.
[0046] like Figure 5 As shown, the present invention also provides a configuration device 500 for automatically inspecting a path of a person in a virtual scene, comprising: The second acquisition module 501 is used to acquire the automatic inspection path of the person sent by the configuration terminal; the automatic inspection path of the person is configured by the configuration terminal after associating the inspection content obtained from the visualization webpage and the inspection path coordinates with the starting position; The second sending module 502 is used to send the automatic person inspection path to the virtual scene end, so that the virtual scene end performs automatic person inspection according to the automatic person inspection path.
[0047] The device for configuring the automatic patrol path of a person in a virtual scene provided in the above-mentioned embodiment can implement the technical solution described in the embodiment of the method for configuring the automatic patrol path of a person in a virtual scene. The specific implementation principles of the above-mentioned modules or units can be found in the corresponding contents in the embodiment of the method for configuring the automatic patrol path of a person in a virtual scene, which will not be repeated here.
[0048] like Figure 6 As shown, the present invention also provides an electronic device 600. The electronic device 600 includes a processor 601, a memory 602 and a display 603. Figure 6 Only some components of the electronic device 600 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0049] In some embodiments, the memory 602 may be an internal storage unit of the electronic device 600, such as a hard disk or memory of the electronic device 600. In other embodiments, the memory 602 may also be an external storage device of the electronic device 600, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the electronic device 600.
[0050] Furthermore, the memory 602 may include both an internal storage unit of the electronic device 600 and an external storage device. The memory 602 is used to store application software installed in the electronic device 600 and various data.
[0051] In some embodiments, the processor 601 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 602, such as the method for configuring the automatic inspection path of a person in a virtual scene in the present invention.
[0052] In some embodiments, the display 603 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 603 is used to display information on the electronic device 600 and to display a visual user interface. The components 601-603 of the electronic device 600 communicate with each other via a system bus.
[0053] In some embodiments of the present invention, when the processor 601 executes the configuration program of the automatic inspection path of the character in the virtual scene in the memory 602, the following steps may be implemented: Obtain inspection content, inspection path coordinates and starting position based on visual web pages; Associating the inspection content with the inspection path coordinates and the starting position to obtain an automatic inspection path for the person; The automatic inspection path of the person is sent to the server end, so that the automatic inspection path of the person is sent to the virtual scene end through the server end; Alternatively, implement the following steps: Acquire the automatic inspection path of the person sent by the configuration terminal; the automatic inspection path of the person is configured by the configuration terminal after associating the inspection content obtained from the visualization webpage and the inspection path coordinates with the starting position; The automatic person inspection path is sent to the virtual scene end, so that the automatic person inspection is performed according to the automatic person inspection path based on the virtual scene end.
[0054] It should be understood that: when the processor 601 executes the configuration program of the automatic inspection path of the characters in the virtual scene in the memory 602, in addition to the above functions, other functions can also be realized. For details, please refer to the description of the corresponding method embodiment above.
[0055] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 600 mentioned, and the electronic device 600 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 600 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0056] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the method for configuring an automatic inspection path of a person in a virtual scene provided by the above methods, the method comprising: Obtain inspection content, inspection path coordinates and starting position based on visual web pages; Associating the inspection content with the inspection path coordinates and the starting position to obtain an automatic inspection path for the person; The automatic inspection path of the person is sent to the server end, so that the automatic inspection path of the person is sent to the virtual scene end through the server end; Or, include: Acquire the automatic inspection path of the person sent by the configuration terminal; the automatic inspection path of the person is configured by the configuration terminal after associating the inspection content obtained from the visualization webpage and the inspection path coordinates with the starting position; The automatic person inspection path is sent to the virtual scene end, so that the automatic person inspection is performed according to the automatic person inspection path based on the virtual scene end.
[0057] It is understood by those skilled in the art that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0058] The above is a detailed introduction to the configuration method and device for the automatic inspection path of characters in the virtual scene provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for configuring an automatic inspection path of a character in a virtual scene, characterized in that: include: Obtain inspection content, inspection path coordinates and starting position based on visual web pages; Associating the inspection content with the inspection path coordinates and the starting position to obtain an automatic inspection path for the person; The character automatic inspection path is sent to the server, so that the character automatic inspection path is sent to the virtual scene terminal through the server.
2. The method for configuring an automatic inspection path of a character in a virtual scene according to claim 1, characterized in that: Obtain inspection content, inspection path coordinates and starting position based on the visualization web page, including: The inspection content, inspection path coordinates and starting position are obtained based on the visualization web page on the configuration terminal.
3. The method for configuring an automatic inspection path of a person in a virtual scene according to claim 1 or 2, characterized in that: Sending the automatic inspection path of the person to the server includes: Set the IP address and port number for the configuration terminal; Establishing a communication connection between the configuration terminal and the server based on the IP address and the port number; After the configuration terminal is connected to the server via a communication connection, the automatic inspection path of the person is sent from the configuration terminal to the server.
4. A method for configuring an automatic inspection path of a person in a virtual scene, characterized in that: include: Get the automatic inspection path of people sent by the configuration terminal; The automatic inspection path of the person is obtained by the configuration terminal configuring after associating the inspection content obtained from the visualization webpage with the inspection path coordinates and the starting position; The automatic person inspection path is sent to the virtual scene end, so that the automatic person inspection is performed according to the automatic person inspection path based on the virtual scene end.
5. The method for configuring the automatic inspection path of a person in a virtual scene according to claim 4, characterized in that: The automatic inspection path of the person is sent to the virtual scene end, including: After the virtual scene end establishes a communication connection with the server end, receiving request data sent by the virtual scene end; When it is determined that the request data verification is passed, the character automatic inspection path is sent from the service end to the virtual scene end.
6. The method for configuring an automatic inspection path of a person in a virtual scene according to claim 4 or 5, characterized in that: The server and the virtual scene end communicate with each other based on the websocket method.
7. A device for configuring an automatic inspection path of a person in a virtual scene, characterized in that: include: The first acquisition module is used to acquire the inspection content and the inspection path coordinates and the starting position based on the visual web page; An association module, used to associate the inspection content with the inspection path coordinates and the starting position to obtain an automatic inspection path for a person; The first sending module is used to send the character automatic inspection path to the server end, so as to send the character automatic inspection path to the virtual scene end through the server end.
8. A device for configuring an automatic inspection path of a person in a virtual scene, characterized in that: include: The second acquisition module is used to acquire the automatic inspection path of the person sent by the configuration terminal; The automatic inspection path of the person is obtained by the configuration terminal configuring after associating the inspection content obtained from the visualization webpage with the inspection path coordinates and the starting position; The second sending module is used to send the automatic person inspection path to the virtual scene end, so as to perform automatic person inspection according to the automatic person inspection path based on the virtual scene end.
9. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps of the method for configuring an automatic inspection path of a character in a virtual scene as described in any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for configuring an automatic inspection path of a person in a virtual scene as described in any one of claims 1 to 6 are implemented.