Display method and device based on meta universe and computer program product
By receiving control instructions from VR devices and images returned by drones, it calculates and integrates physical models, solving the problem of lack of realism in scenes and images in the metaverse, and improving user experience and the attraction of the metaverse space.
Patent Information
- Application Number
- CN202410662817.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-08-30
AI Technical Summary
The scenes in the metaverse based on VR equipment lack a sense of reality and cannot truly display dynamically changing real scenes.
By receiving control instructions from the VR device, sending instructions to the real drone and receiving the returned images, the entity model of the key object is obtained, and the target position is calculated based on the drone's position, perspective and distance, and the entity model is integrated into the metaverse display. In the pre-made scene, the three-dimensional sense and dynamics of the scene are enhanced.
It improves users' immersive VR experience, provides a more realistic and natural gaming experience, attracts more users to participate in the Metaverse space for personal experience, and increases the popularity and traffic of the Metaverse space.
Smart Images

Figure CN118570422A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of metaverse technology, and specifically relates to a display method, device and computer program product based on the metaverse. Background Art
[0002] Currently, the scene images in the metaverse based on VR devices (virtual reality devices) are all pre-made scene images, that is, they imitate things in real scenes, digitize real objects, and display them in the VR environment.
[0003] However, things in real scenes are changing dynamically. If they are simply imitated, they will lack a sense of reality and will not allow players to experience the authenticity of the scene. For example, in the Gulangyu VR metaverse, for example, the real Gulangyu is experiencing an east wind, and there are weddings being held on the beach, etc., but these are not shown in the VR metaverse. Summary of the invention
[0004] The present application proposes a display method, device and computer program product based on the metaverse, which can alleviate the technical problem in the related art that the prefabricated scene images displayed in the metaverse based on VR devices lack a sense of reality.
[0005] The first embodiment of the present application proposes a display method based on the metaverse, which is applied to a cloud server. The method includes:
[0006] Receive control instructions for real drones from VR devices;
[0007] Sending the control command to the real drone, and receiving a returned image from the real drone in response to the control command;
[0008] For the target frame image including the key object in the returned image, obtain the entity model of the key object, and calculate the target position of the key object in the metaverse based on the drone position when the real drone collects the target frame image, the viewing angle and distance from the real drone to the key object;
[0009] Based on the target position, the entity model is integrated into the prefabricated scene screen displayed in the metaverse, and the prefabricated scene screen is a screen of the area that the real drone can patrol.
[0010] In one or more embodiments, obtaining the entity model of the key object includes:
[0011] Using a pre-trained neural network to infer the key object to obtain a semantic label of the key object;
[0012] Searching for a solid color entity model matching the semantic label from a preset entity model library;
[0013] Determining the model color of each area in the solid color entity model based on the actual color of each area of the key object in the target frame image;
[0014] The material of the solid color entity model is adjusted according to the model color to obtain the entity model.
[0015] In one or more embodiments, determining the model color of each area in the solid color entity model based on the actual color of each area of the key object in the target frame image includes:
[0016] Obtaining the red mean, green mean and blue mean of each area of the key object in the target frame image;
[0017] A weighted sum is performed on the red mean value, the green mean value and the blue mean value to obtain the model color of each area in the pure color entity model.
[0018] In one or more embodiments, calculating the target position of the key object in the metaverse based on the drone position when the real drone collects the target frame image, the viewing angle and distance from the real drone to the key object includes:
[0019] Based on the drone position, the viewing angle and the distance, a first distance and a second distance are calculated; the first distance is the distance between the reference point and the real drone, the second distance is the distance between the reference point and the key object, and a line segment expressed by the first distance is perpendicular to a line segment expressed by the second distance;
[0020] Calculating the position of the reference point based on the drone position and the first distance;
[0021] Calculating the actual position of the key object based on the position of the reference point, the first distance, and the second distance;
[0022] The target position is calculated according to a preset ratio and the actual position, wherein the preset ratio is used to reflect the scaling ratio with the scene in the metaverse.
[0023] In one or more embodiments, before integrating the entity model into the prefabricated scene screen displayed by the metaverse based on the target position, the method further includes:
[0024] In the case where it is determined that the user of the VR device is a new user, determining a style scene suitable for the user based on the target user information of the user;
[0025] In the case where it is determined that the user is an old user, based on the user's online behavior data this time and the historical behavior data of the virtual character used by the user in the metaverse, a style scene suitable for the user is determined, and the virtual character is the character used by the user in the metaverse;
[0026] Based on the target position, the entity model is integrated into a prefabricated scene screen displayed by the metaverse, including:
[0027] Based on the target position, the entity model is integrated into the prefabricated scene screen displayed by the metaverse according to the style scene.
[0028] In one or more embodiments, determining a style scene suitable for the user based on the target user information of the user includes:
[0029] Acquire query keywords from the target user information, wherein the user information is used to characterize the user's favorite style;
[0030] Using a preset fuzzy query algorithm, querying a plurality of user data matching the query keyword from a user database, each of the user data including user information and style scene;
[0031] Obtaining target user data whose user information has the highest similarity with the target user information from the multiple user data;
[0032] The style scene included in the target user data is used as the style scene suitable for the user.
[0033] The second embodiment of the present application proposes a display device based on the metaverse, which is applied to a cloud server. The device includes:
[0034] A receiving module, used to receive control instructions for a real drone from a VR device;
[0035] A sending module, used to send the control instruction to the real drone, and receive a returned image returned by the real drone in response to the control instruction;
[0036] A processing module, for obtaining a physical model of a key object for a target frame image including the key object in the returned image, and calculating a target position of the key object in the metaverse based on a drone position when the real drone acquires the target frame image, and a viewing angle and a distance from the real drone to the key object;
[0037] A fusion module is used to fuse the entity model into a prefabricated scene screen displayed in the metaverse based on the target position, and the prefabricated scene screen is a screen of the area that the real drone can patrol.
[0038] The third aspect of the present application provides a display system based on the metaverse, including:
[0039] Virtual reality devices, cloud servers, and real drones;
[0040] The cloud server is used to execute the method described in the first aspect.
[0041] A fourth aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect.
[0042] A fifth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the method described in the first aspect.
[0043] The sixth aspect embodiment of the present application proposes a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying a computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the method described in the first aspect.
[0044] The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages:
[0045] In the embodiment of the present application, the user controls the real drone through the VR device, and integrates the key objects in the target frame image into the prefabricated scene image through the drone position, viewing angle and distance when the real drone collects the target frame image, presenting a rich three-dimensional picture to the user in the metaverse space. That is, by assisting the user to control the real drone, it is more convenient to present the real scene to the user without any sense of violation, thereby improving the user's immersive VR experience; in addition, the cloud is equipped with collision avoidance capabilities, making it easier and more assured for users to control the flight in the VR metaverse space. Thereby attracting more ordinary users, real drone enthusiasts and travel enthusiasts to participate in the personal experience of the metaverse space, and increasing the popularity and traffic of the metaverse space.
[0046] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] By reading the detailed description of the preferred embodiment below, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used for the purpose of illustrating the preferred embodiment and are not considered to be limitations of the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings.
[0048] In the attached picture:
[0049] Figure 1 A flow chart of a display method based on the metaverse provided in one embodiment of the present application is shown;
[0050] Figure 2 A schematic diagram of a mapping aircraft represented by a large white bird provided in an embodiment of the present application is shown;
[0051] Figure 3 A schematic diagram showing a method of controlling the flight direction of a real drone by turning the head with a VR device provided in an embodiment of the present application is shown;
[0052] Figure 4 A schematic diagram of a solid color entity model of a dog provided by an embodiment of the present application is shown;
[0053] Figure 5 A schematic diagram showing a physical model of a dog displayed in the metaverse space after mapping provided by an embodiment of the present application is shown;
[0054] Figure 6 A schematic diagram showing the calculation of the actual position of a key object in a world coordinate system provided by an embodiment of the present application is shown;
[0055] Figure 7 A schematic diagram of the structure of a display device based on the Metaverse provided in one embodiment of the present application is shown;
[0056] Figure 8 A schematic diagram of the structure of a display system based on the metaverse provided in one embodiment of the present application is shown;
[0057] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;
[0058] Fig.10 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0059] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0060] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0061] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0062] VR or virtual reality is the ultimate application form of multimedia technology. It connects and contacts the scenes built by the metaverse through the VR system. With the development of virtual reality technology, the true realization of virtual reality will cause great changes in the life and development of the entire human race. People wear special sensing equipment such as stereo glasses and data gloves, facing a three-dimensional simulated reality, and seem to be in a sensory world with three-dimensional vision, hearing, touch and even smell. People can interact with this environment through human natural skills and corresponding facilities, and the user can feel the touch close to the real geographical environment during the simulation process.
[0063] Currently, the scene images in the metaverse based on VR devices are all pre-made scene images, that is, they imitate things in real scenes, digitize real objects, and display them in the VR environment.
[0064] However, things in real scenes are changing dynamically. If they are simply imitated, they will lack a sense of reality and will not allow players to experience the authenticity of the scene. For example, in the Gulangyu VR metaverse, the real Gulangyu may be experiencing an easterly wind, or someone may be holding a wedding on the beach, etc., but these are not reflected in the VR metaverse.
[0065] In order to alleviate the problems existing in the related art, the embodiments of the present application provide a display method, device, equipment and computer program product based on the metaverse. In this method, the user controls the real drone through the VR device, and integrates the key objects in the target frame image into the prefabricated scene image through the drone position, viewing angle and distance when the real drone collects the target frame image, and presents a rich three-dimensional picture to the user in the metaverse space. That is, by assisting the user to control the real drone, it is more convenient to present the real scene to the user without any sense of violation, thereby improving the user's immersive VR experience; in addition, the cloud is equipped with collision avoidance capabilities, which makes the user more relaxed and assured during the flight control process of the VR metaverse space. Thereby attracting more ordinary users, real drone enthusiasts and travel enthusiasts to participate in the personal experience of the metaverse space, and increasing the popularity and traffic of the metaverse space.
[0066] To facilitate understanding of this embodiment, a metaverse-based display method disclosed in an embodiment of the present application is first introduced in detail. The executor of the metaverse-based display method provided in the embodiment of the present application is a server, which includes but is not limited to a cloud server.
[0067] See also Figure 1 As shown, it is a flow chart of the display method based on the metaverse provided in an embodiment of the present application, such as Figure 1 As shown, the method may include the following steps:
[0068] Step 101: Receive control instructions for a real drone from a VR device.
[0069] In this embodiment, in the Metaverse, a rental portal for real drones in different areas is provided. After the user enters the Metaverse space through a VR device, he can rent a real drone in the area he wants to watch through the portal. In the application, the areas where real drones are placed include but are not limited to scenic spots, parks and other areas.
[0070] At the same time, in order to make players feel like they are flying a drone in the Metaverse, the Metaverse is equipped with mapping aircraft of real drones. After renting a real drone, users can choose a mapping aircraft as the aircraft of the real drone in the Metaverse according to their personal preferences. As an example, Figure 2 The mapped aircraft is shown as a large white bird.
[0071] After the real drone is determined, a communication connection is established between the user and the real drone so that the user can control the real drone through the communication connection, providing the user with real-time and realistic images of the area of interest, thereby enhancing the realistic and natural gaming experience.
[0072] When establishing a communication connection, it is considered that the real drone may be far away from the user's VR device, for example, the real drone is thousands of miles away, and the effective communication distance of the drone is limited, so the drone and the player cannot directly establish a communication connection. In addition, the integration of the panoramic video images shot by the drone and the prefabricated scene images of the metaverse space requires relatively high computing power. Therefore, the communication connection between the player and the drone is achieved by connecting the player to the cloud server of the metaverse, and the cloud server to the rented drone.
[0073] It should be understood that after determining the drone used by the user, the cloud server can obtain the regional identifier of the area where the drone is located, obtain the prefabricated scene screen of the area where the drone is located based on the regional identifier, and display the prefabricated scene screen to the user in the Metaverse space. For example, if the user uses a drone located in the Gulangyu scenic area, then the Metaverse space will display the prefabricated scene screen of Gulangyu.
[0074] Step 102: Send a control command to the real drone, and receive a feedback image returned by the real drone in response to the control command.
[0075] In this embodiment, the cloud server establishes a communication connection between the user and the real drone, and the user controls the drone, so that the user can control the real drone to fly to the area the user wants to play. The user sends the control command to the cloud server in the metaverse space, and controls the flight of the drone through the cloud server.
[0076] When controlling the drone, the user will wear a VR device and a matching handle, integrating existing technical software. The user can not only watch the scenery in the metaverse space through the VR device, but also control the flight direction of the real drone by turning the head to drive the VR device. As an example, Figure 3 The diagram shown is a schematic diagram of controlling the flight direction of a real drone by turning the head with a VR device.
[0077] In addition, the user can use the handle to manipulate various controls of the real drone, such as moving forward, hovering, backward, landing, etc. During the flight control process, the user can see that the surrounding environment is gradually changing through the fused picture rendered by the solution of this embodiment, as if really flying from one place to another. This immersive feeling is impressive, as if you have really taken a trip.
[0078] Step 103: For the target frame image that includes the key object in the returned picture, obtain the physical model of the key object, and calculate the target position of the key object in the metaverse based on the drone position when the real drone collects the target frame image, the viewing angle and distance from the real drone to the key object.
[0079] In this embodiment, the key objects are pre-configured objects of interest to the user, such as a dog in a real scene, a wedding at the beach, the sky changing over time, etc., which can all be key objects in this application.
[0080] In this embodiment, feature information can be extracted from the image frame in the returned image, and the semantics of each object included in the image frame can be obtained based on the extracted feature information, so as to determine whether the image frame is a target frame image including a key object based on the semantics.
[0081] In this embodiment, a cloud server is configured with an entity model library, which stores entity models of objects with various semantics. For example, the entity model library stores an entity model with the semantics of a dog, an entity model with the semantics of a kite, etc. Therefore, when obtaining the entity model of a key object, it is necessary to obtain the semantics of the key object, and then obtain the entity model of the key object from the entity model library based on the semantics.
[0082] In this embodiment, in order to reduce the amount of computing of the cloud server and improve the processing efficiency of the cloud server, each entity model in the entity model library can be a model with color, and the color of the entity model can be based on big data statistical analysis of the color that the user expects the entity model to have when he owns the entity model.
[0083] In this embodiment, in order to match the color of the key objects photographed by the real drone, each entity model configured in the entity model library can also be a model without color, that is, the entity models in the entity model library are all solid color entity models. In this way, after obtaining the solid color entity model of the key object from the entity model library based on semantics, it is also necessary to color the solid color entity model based on the actual color of the key object included in the target frame image.
[0084] In a specific implementation, in an optional embodiment, obtaining the entity model of the key object in step 103 may include the following steps:
[0085] Use pre-trained neural networks to infer key objects and obtain semantic labels of key objects;
[0086] From a pre-set entity model library, search for a solid color entity model that matches the semantic label;
[0087] Determine the model color of each area in the solid color solid model based on the actual color of each area of the key object in the target frame image;
[0088] The material of the solid color solid model is adjusted according to the model color to obtain the solid model.
[0089] In this embodiment, the area division method of the key object is different based on the type of the key object. For example, if the type of the key object is an animal, then each body part of the key object can correspond to a region. For example, if the type of the key object is a vehicle, then the area division can be based on the overall vehicle structure, and so on.
[0090] In this embodiment, when determining the model color of each area in the solid color entity model, each area can be divided into sub-areas based on the actual color of each area in the target frame image, and then the actual color of each sub-area is obtained based on the actual color of the pixel points included in each sub-area, and the actual color of each sub-area is obtained by integrating the actual color of each sub-area. Taking the key object as a dog as an example, the dog includes the head, body, limbs, tail and other areas. Assuming that the dog's head in the target frame image has black and white colors, when determining the color of the head of the entity model dog, the black and white of the dog's head in the target frame image are obtained, and then the obtained black and white are merged to obtain the final color of the head of the entity model dog. Among them, the black color of the dog's head in the target frame image can be determined based on the color of the pixel at any point in the sub-area corresponding to the black color, and the same is true for white.
[0091] In order to improve the model color of each area in the obtained solid color solid model, in one or more embodiments, the following steps are also provided:
[0092] Obtain the red mean, green mean and blue mean of each area of the key object in the target frame image;
[0093] The red mean, green mean and blue mean are weightedly summed to obtain the model color of each area in the pure color solid model.
[0094] Taking the red mean as an example, the red mean of each region can be obtained by adding and averaging the red values of the pixels in each region, and the same is true for the green mean and the blue mean.
[0095] In this embodiment, the calculation formula of the model color of each area is as follows:
[0096]
[0097] Among them, r is the model color of each area, Δβ, Δγ, and Δμ are the customized weight values based on the three primary color components of red, green, and blue, respectively, β is the red parameter of a single pixel point in each area, γ is the green parameter of a single pixel point in each area, and μ is the blue parameter of a single pixel point in each area.
[0098] As an example, given Figure 4 Solid color models of dogs as shown, and Figure 5 The physical model of the dog shown in the metaverse space after mapping.
[0099] In this embodiment, the real drone will carry the drone position and camera parameters (such as camera angle, etc.) when it collects each frame of image in the returned image. By establishing a pixel coordinate system in the image frame, marking the position of the pixel points of the key object in the image frame, and determining the camera coordinate system of the camera according to the camera parameters, and the imaging coordinate system of the projection mapping of the photographed object, and obtaining the world coordinate system in the real scene at the same time, the perspective θ of the camera of the real drone to the key object and the distance AC from the real drone to the key object can be finally obtained through the mutual conversion between the pixel coordinate system, the imaging coordinate system, the camera coordinate system, and the world coordinate system. It should be understood that this part of the solution for calculating the perspective and distance is a prior art and will not be described in detail here.
[0100] In this embodiment, calculating the target position of the key object in the metaverse may specifically include two processes: one is the process of calculating the actual position of the key object in the actual scene, and the other is mapping the actual position to the metaverse to obtain the target position of the key object in the metaverse.
[0101] The calculation process of the actual position of the key object may include the following steps:
[0102] Based on the drone position, viewing angle and distance, a first distance and a second distance are calculated; the first distance is the distance between the reference point and the real drone, the second distance is the distance between the reference point and the key object, and the line segment expressed by the first distance is perpendicular to the line segment expressed by the second distance;
[0103] Calculate the position of the reference point based on the drone position and the first distance;
[0104] Based on the position of the reference point, the first distance, and the second distance, an actual position of the key object is calculated.
[0105] The process of mapping the actual position and obtaining the target position of the key object in the metaverse may include the following steps:
[0106] The target position is calculated according to the preset ratio and the actual position. The preset ratio is used to reflect the scaling ratio of the scene in the metaverse.
[0107] The following formula is combined to give the calculation process of the target position of the key object:
[0108] Please refer to Figure 6 , Figure 6 Figure 1 is a schematic diagram of calculating the actual position of key objects in the world coordinate system. Figure 6 As shown, point A is the position of the drone when the real drone collects the target frame image, point C is the position of the key object when the real drone collects the target frame image in the real scene, and point B is the reference point.
[0109] ∠ABC=90°, so the lengths of AB and BC are
[0110] AB=ACcosθ
[0111] BC=ACsinθ
[0112] Then we can get the coordinates of B and C as follows:
[0113] B(x2,y2,z2)=B(x1,y1,z1+AB)
[0114] C(x,y,z)=C(x,y,z1+AB)
[0115] Thus, we can establish the relationship
[0116]
[0117] Through the simultaneous equations, the coordinate position of the key object in the actual scene can be obtained as follows:
[0118]
[0119] Assume that the objects in the real scene are restored and displayed in the metaverse at a ratio of δ, then the target position of the key objects in the real scene in the metaverse is
[0120]
[0121] Step 104: Based on the target position, the physical model is integrated into the prefabricated scene screen displayed in the metaverse. The prefabricated scene screen is a screen of the area that the real drone can patrol.
[0122] In this embodiment, in order to improve the user's viewing experience, the Metaverse also supports displaying prefabricated scene images to users in various styles. Therefore, the cloud server is pre-configured with multiple style scenes that users are interested in, such as fairy style or Christmas style. The scenes of different styles are dynamically loaded from the json data script of the scene, and each json data script will be marked with a regional identification and style label by the scene builder.
[0123] When determining the style scene that best suits the user, this application breaks away from the traditional user-selected style scene and determines the style scene adapted to the user in real time. When implemented specifically, the following process steps may be included:
[0124] When it is determined that the user of the VR device is a new user, a style scene suitable for the user is determined based on the target user information of the user;
[0125] If the user is determined to be an old user, based on the user's online behavior data and the historical behavior data of the virtual character used by the user in the Metaverse, determine the style and scene that is suitable for the user. The virtual character is the character used by the user in the Metaverse.
[0126] Accordingly, based on the target position, the entity model is integrated into the prefabricated scene screen displayed in the metaverse, which may include:
[0127] Based on the target position, the physical model is integrated into the pre-made scene screen displayed in the metaverse according to the style scene.
[0128] It should be understood that the target user information of a user may represent the user's favorite style, and the target user information includes but is not limited to name, age, gender, interests, hobbies, photos, etc.
[0129] In this embodiment, a new user refers to a user who has newly registered in the Metaverse through a VR device. Therefore, when determining that the user has entered the Metaverse space based on the registration information, it can be determined that the user is a new user. In the application, after obtaining the target user information for user registration, the VR device stores the target user information in the target user information library of the cloud server, so that the cloud server can determine the style scene suitable for the user based on the target user information.
[0130] In specific implementation, the process of the cloud server determining the style scene suitable for the user based on the target user information may include the following steps:
[0131] Obtain query keywords from target user information, where the target user information is used to characterize the user's favorite style;
[0132] Using a preset fuzzy query algorithm, multiple user data matching the query keyword are searched from the user database, each user data including user information and style scene;
[0133] Obtaining target user data whose user information has the highest similarity with the target user information from the multiple user data;
[0134] The style scene included in the target user data is regarded as the style scene suitable for the user.
[0135] It should be understood that the user data in the user database includes user information and a style scene corresponding to the user information.
[0136] In this embodiment, the query keyword may be one or more information included in the target user information. The query keyword may be indicated by the user, or may be randomly obtained from the target user information by the cloud server, or the information in the target user information that can be used as the query keyword may be pre-configured in the cloud server. For example, the age, gender, and hobbies in the target user information may be used as the query keyword.
[0137] In this embodiment, each user data in the user database includes two types of data, one is user information, and the other is style scene corresponding to the target user information. The user data matched with the query keyword queried from the user database may be user data whose user information includes the query keyword.
[0138] In this embodiment, when the target user data is obtained from multiple user data, a first information vector of the user information included in the user data is generated, and a second information vector of the target user information is generated. The similarity between the user information included in the user data and the target user information is calculated based on the first information vector and the second information vector, and then based on the similarity, the target user data with the highest similarity is obtained.
[0139] It should be understood that when a user logs in to the VR metaverse space, the virtual character (also called virtual digital intelligent being) used by the user in the metaverse space is controlled by the user's own consciousness; when the user exits the metaverse space, the virtual digital intelligent being in the space will not disappear when the user goes offline, but will act autonomously by its own instinctive consciousness. When acting autonomously, it will autonomously learn the user's real behavior through existing technologies, and then after the user goes offline, it will still act according to the user's real behavior characteristics. For example, after the user goes offline, his virtual digital intelligent being can still communicate with other virtual digital intelligent beings in the space, and can also see things and make comments in the space, etc.
[0140] When the user is online, the virtual digital human will be controlled, so the user's current online behavior data can reflect the user's current characteristics (such as user preferences). When the user is offline, the virtual digital human will conduct autonomous activities based on the overall characteristics of the user it has learned, so the historical behavior data of the virtual digital human when the user is offline can reflect the basic characteristics of the user. For old users, the style scene is determined based on the behavior data of their virtual digital human when they are online and the historical behavior data of the virtual digital human when they are offline. This can ensure that the final selected style scene satisfies both the user's own preferences and the user's current preferences, and is the most suitable scenery scene for the user.
[0141] When the user is not online, the virtual digital person moves in the central hall of the metaverse space, interacts with other virtual digital people and things in the hall, and expresses his or her ideas through public or private chats. By tracking the behavior of the virtual digital person, the historical behavior data of the digital person is extracted in real time; the behavior i of the virtual digital person is defined, and the cloud server pre-prepare the key behavior dictionary G = {g1, g2, ..., g n},if
[0142] i∈G
[0143] Then, the behavior i of the virtual digital intelligent being belongs to the key behavior, which records the historical behavior set of the virtual digital intelligent being within a period of time.
[0144] I={i1,i2,…,i n}
[0145] Build a favorite style scene model based on the historical behavior of virtual digital people
[0146] y=w0+w1i1+w2i2+…+w n i n
[0147] Among them, y is the favorite style scene label predicted based on historical behavior data; w0, w1, w2, ..., w2 are weight parameters. As the behavior of the virtual digital intelligent person continues to change, the favorite style scene will also change dynamically.
[0148] When the user is online, the control of the virtual digital human is controlled by the user. The user enters the central hall, participates in the interaction in the hall, and generates user behavior data. The cloud server will record the user's behavior since the login. The user's online behavior data is defined as u, and compared with the key behavior dictionary G pre-made by the cloud server. If
[0149] u∈G
[0150] Then, the user's online behavior can be represented by a set:
[0151] U={u1,u2,…,u n}
[0152] Build a favorite style scene model based on the user's online behavior data
[0153] t=w0+w1u1+w2u2+…+w n u n
[0154] Among them, t is the favorite style scene label predicted based on the online behavior data; w0, w1, w2, ..., w2 are weight parameters. As the user's behavior continues to change, the favorite style scene will also change dynamically.
[0155] Finally, the style scenario suitable for the user can be:
[0156] ρ=αy+βt
[0157] Among them, α and β are the style model coefficients of the virtual digital human and the user respectively. By adjusting the coefficients, the purpose of outputting the final favorite style scene based on the user's real behavior can be achieved.
[0158] In the solution provided by this embodiment, the user controls the real drone through the VR device, and integrates the key objects in the target frame image into the prefabricated scene image through the drone position, viewing angle and distance when the real drone collects the target frame image, presenting a rich three-dimensional image to the user in the metaverse space. That is, by assisting the user to control the real drone, it is more convenient to present the real scene to the user without any sense of violation, thereby improving the user's immersive VR experience; in addition, the cloud is equipped with collision avoidance capabilities, making it easier and more assured for users to control the flight in the VR metaverse space. Thereby attracting more ordinary users, real drone enthusiasts and travel enthusiasts to participate in the personal experience of the metaverse space, and increasing the popularity and traffic of the metaverse space.
[0159] The present application also provides a display device based on the Metaverse, which is used to execute the display method based on the Metaverse provided in any of the above embodiments. The device can be applied to a cloud server, such as Figure 7 As shown, the device comprises:
[0160] A receiving module 71 is used to receive control instructions for a real drone from a VR device;
[0161] A sending module 72, configured to send the control command to the real drone, and receive a returned image from the real drone in response to the control command;
[0162] The processing module 73 is used to obtain a physical model of the key object for the target frame image including the key object in the returned image, and calculate the target position of the key object in the metaverse based on the drone position when the real drone collects the target frame image, the viewing angle and distance from the real drone to the key object;
[0163] The fusion module 74 is used to fuse the entity model into the prefabricated scene picture displayed in the metaverse based on the target position, and the prefabricated scene picture is a picture of the area that the real drone can patrol.
[0164] In one or more embodiments, the processing module 73 is used to:
[0165] Using a pre-trained neural network to infer the key object to obtain a semantic label of the key object;
[0166] Searching for a solid color entity model matching the semantic label from a preset entity model library;
[0167] Determining the model color of each area in the solid color entity model based on the actual color of each area of the key object in the target frame image;
[0168] The material of the solid color entity model is adjusted according to the model color to obtain the entity model.
[0169] In one or more embodiments, the processing module 73 is used to:
[0170] Obtaining the red mean, green mean and blue mean of each area of the key object in the target frame image;
[0171] A weighted sum is performed on the red mean value, the green mean value and the blue mean value to obtain the model color of each area in the pure color entity model.
[0172] In one or more embodiments, the processing module 73 is used to:
[0173] Based on the drone position, the viewing angle and the distance, a first distance and a second distance are calculated; the first distance is the distance between the reference point and the real drone, the second distance is the distance between the reference point and the key object, and a line segment expressed by the first distance is perpendicular to a line segment expressed by the second distance;
[0174] Calculating the position of the reference point based on the drone position and the first distance;
[0175] Calculating the actual position of the key object based on the position of the reference point, the first distance, and the second distance;
[0176] The target position is calculated according to a preset ratio and the actual position, wherein the preset ratio is used to reflect the scaling ratio with the scene in the metaverse.
[0177] In one or more embodiments, the device is also used to:
[0178] Based on the target position, before integrating the entity model into the prefabricated scene screen displayed by the metaverse, when it is determined that the user of the VR device is a new user, determining a style scene suitable for the user based on the target user information of the user;
[0179] In the case where it is determined that the user is an old user, based on the user's online behavior data this time and the historical behavior data of the virtual character used by the user in the metaverse, a style scene suitable for the user is determined, and the virtual character is the character used by the user in the metaverse;
[0180] Based on the target position, the entity model is integrated into a prefabricated scene screen displayed by the metaverse, including:
[0181] Based on the target position, the entity model is integrated into the prefabricated scene screen displayed by the metaverse according to the style scene.
[0182] In one or more embodiments, the device is used to:
[0183] Acquire query keywords from the target user information, wherein the user information is used to characterize the user's favorite style;
[0184] Using a preset fuzzy query algorithm, querying a plurality of user data matching the query keyword from a user database, each of the user data including user information and style scene;
[0185] Obtaining target user data whose user information has the highest similarity with the target user information from the multiple user data;
[0186] The style scene included in the target user data is used as the style scene suitable for the user.
[0187] The display device based on the metaverse provided in the embodiment of the present application and the display method based on the metaverse provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.
[0188] The present application also provides a display system based on the metaverse, such as Figure 8 As shown, the system may include:
[0189] Virtual reality device 81, cloud server 82 and real drone 83;
[0190] The cloud server is used in the display method based on the metaverse in the aforementioned embodiment.
[0191] The present application also provides an electronic device to perform the above-mentioned display method based on the metaverse. Fig. 9 It shows a schematic diagram of an electronic device provided by some embodiments of the present application. Fig. 9As shown, the electronic device 9 includes: a processor 900, a memory 901, a bus 902 and a communication interface 903, and the processor 900, the communication interface 903 and the memory 901 are connected via the bus 902; the memory 901 stores a computer program that can be run on the processor 900, and when the processor 900 runs the computer program, it executes the metaverse-based display method provided in any of the aforementioned embodiments of the present application.
[0192] The memory 901 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is realized through at least one communication interface 903 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0193] The bus 902 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 901 is used to store programs, and the processor 900 executes the programs after receiving execution instructions. The display method based on the metaverse disclosed in any implementation of the aforementioned embodiment of the present application may be applied to the processor 900, or implemented by the processor 900.
[0194] The processor 900 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 900. The above processor 900 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 901, and the processor 900 reads the information in the memory 901 and completes the steps of the above method in combination with its hardware.
[0195] The electronic device provided in the embodiment of the present application and the display method based on the metaverse provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.
[0196] The present application also provides a computer-readable storage medium corresponding to the display method based on the metaverse provided in the above embodiment. Fig.10 The computer-readable storage medium shown is a CD 30 on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it will execute the metaverse-based display method provided by any of the aforementioned embodiments.
[0197] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0198] The computer-readable storage medium provided by the above-mentioned embodiments of the present application and the metaverse-based display method provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0199] It should be noted that:
[0200] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.
[0201] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0202] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0203] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A display method based on the metaverse, characterized in that: Applied to a cloud server, the method includes: Receive control instructions for real drones from virtual reality devices; Sending the control command to the real drone, and receiving a returned image from the real drone in response to the control command; For the target frame image including the key object in the returned image, obtain the entity model of the key object, and calculate the target position of the key object in the metaverse based on the drone position when the real drone collects the target frame image, the viewing angle and distance from the real drone to the key object; Based on the target position, the entity model is integrated into the prefabricated scene screen displayed in the metaverse, and the prefabricated scene screen is a screen of the area that the real drone can patrol.
2. The method according to claim 1, characterized in that Obtaining the entity model of the key object includes: Using a pre-trained neural network to infer the key object to obtain a semantic label of the key object; Searching for a solid color entity model matching the semantic label from a preset entity model library; Determining the model color of each area in the solid color entity model based on the actual color of each area of the key object in the target frame image; The material of the solid color entity model is adjusted according to the model color to obtain the entity model.
3. The method according to claim 2, characterized in that Determining the model color of each area in the solid color entity model based on the actual color of each area of the key object in the target frame image includes: Obtaining the red mean, green mean and blue mean of each area of the key object in the target frame image; A weighted sum is performed on the red mean value, the green mean value and the blue mean value to obtain the model color of each area in the pure color entity model.
4. The method according to claim 1, characterized in that Calculating the target position of the key object in the metaverse based on the position of the real drone when the real drone collects the target frame image, the viewing angle and distance from the real drone to the key object, including: Based on the drone position, the viewing angle and the distance, a first distance and a second distance are calculated; the first distance is the distance between the reference point and the real drone, the second distance is the distance between the reference point and the key object, and a line segment expressed by the first distance is perpendicular to a line segment expressed by the second distance; Calculating the position of the reference point based on the drone position and the first distance; Calculating the actual position of the key object based on the position of the reference point, the first distance, and the second distance; The target position is calculated according to a preset ratio and the actual position, wherein the preset ratio is used to reflect the scaling ratio with the scene in the metaverse.
5. The method according to claim 1, characterized in that Based on the target position, before integrating the entity model into the prefabricated scene screen displayed by the metaverse, the method further includes: In a case where it is determined that the user of the virtual reality device is a new user, determining a style scene suitable for the user based on the target user information of the user; In the case where it is determined that the user is an old user, based on the user's online behavior data this time and the historical behavior data of the virtual character used by the user in the metaverse, a style scene suitable for the user is determined, and the virtual character is the character used by the user in the metaverse; Based on the target position, the entity model is integrated into a prefabricated scene screen displayed by the metaverse, including: Based on the target position, the entity model is integrated into the prefabricated scene screen displayed by the metaverse according to the style scene.
6. The method according to claim 5, characterized in that Determining a style scene suitable for the user based on the target user information of the user includes: Acquire query keywords from the target user information, wherein the user information is used to characterize the user's favorite style; Using a preset fuzzy query algorithm, querying a plurality of user data matching the query keyword from a user database, each of the user data including user information and style scene; Obtaining target user data whose user information has the highest similarity with the target user information from the multiple user data; The style scene included in the target user data is used as the style scene suitable for the user.
7. A display device based on the metaverse, characterized in that: Applied to a cloud server, the device comprises: A receiving module, used for receiving control instructions for a real drone from a virtual reality device; A sending module, used to send the control instruction to the real drone, and receive a returned image returned by the real drone in response to the control instruction; A processing module, for obtaining a physical model of a key object for a target frame image including the key object in the returned image, and calculating a target position of the key object in the metaverse based on a drone position when the real drone acquires the target frame image, and a viewing angle and a distance from the real drone to the key object; A fusion module is used to fuse the entity model into a prefabricated scene screen displayed in the metaverse based on the target position, and the prefabricated scene screen is a screen of the area that the real drone can patrol.
8. A display system based on the metaverse, characterized in that: include: Virtual reality devices, cloud servers, and real drones; The cloud server is used to execute the method according to any one of claims 1 to 6.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor runs the computer program to implement the method according to any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 6.
11. A computer program product, characterized in that The invention comprises a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the method as claimed in any one of claims 1 to 6.
