Virtual-real fitting positioning method and device

By acquiring the motion trajectory of the target gesture on the real object and using marker points and lines to determine the spatial position data of the real object, the problem of low efficiency in manual interaction fitting between virtual and real objects is solved, and efficient and accurate virtual-real fitting positioning is achieved.

CN120803269BActive Publication Date: 2026-11-24BEIJING RUNKE GENERAL TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510938288.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-08
Publication Date
2026-11-24
Estimated Expiration
2045-07-08

AI Technical Summary

Technical Problem

The existing method of manually fitting virtual and real objects is cumbersome, resulting in low efficiency and poor stability in virtual-real fitting and positioning.

Method used

By acquiring the motion trajectory of the target gesture on a real object, the spatial position data of the real object is determined using the first marker point and the first marker line, and the position and posture of the virtual object are transformed according to the data, simplifying user operation and improving fitting efficiency and accuracy.

Benefits of technology

It eliminates the need for repeated operation of interactive controls, simplifies user operation, improves the efficiency of virtual-real fitting and positioning, reduces errors caused by user movement or changes in perspective, and ensures fitting accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803269B_ABST
    Figure CN120803269B_ABST
Patent Text Reader

Abstract

This application discloses a virtual-real fitting positioning method and apparatus. The method, applied to a mixed reality device, includes: acquiring the motion trajectory of a target gesture moving on a real object, wherein the real object includes a first marker point and a first marker line with the first marker point as an endpoint, the first marker point being a point on an edge of the real object, the edge line including the first marker line, and the motion trajectory including a motion trajectory starting from the first marker point and moving along the first marker line; determining spatial position data of the real object based on the motion trajectory; and transforming the position and posture of a virtual object displayed in a virtual scene of the mixed reality device based on the spatial position data, wherein the shape contours of the virtual object and the real object satisfy a preset similarity condition. The virtual-real fitting positioning method according to the embodiments of this application can improve the efficiency of virtual-real fitting positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of virtual-real fusion technology, and in particular relates to a virtual-real fitting and positioning method and apparatus. Background Technology

[0002] With the development of science and technology, the application of virtual-real fusion technology is becoming increasingly widespread. The application process of virtual-real fusion technology usually involves first obtaining a virtual object that is almost identical to the real object through technologies such as 3D scanning, and then accurately fitting the position and posture of the virtual object to the real object.

[0003] Currently, methods for matching the position and posture of virtual objects with real objects include manual interaction. This typically involves first displaying the real object, the virtual object, and multiple interactive controls for adjusting the position and posture of the virtual object. Then, the user performs multiple, repeated operations on these interactive controls to change the position and posture of the virtual object, making the virtual object completely overlap with the real object.

[0004] However, the above manual interaction method is cumbersome and results in low efficiency of virtual-real fitting and positioning. Summary of the Invention

[0005] This application provides a virtual-real fitting positioning method, apparatus, device, computer-readable storage medium, and computer program product, which can simplify user operation and improve the efficiency of virtual-real fitting positioning.

[0006] In a first aspect, embodiments of this application provide a virtual-real fitting positioning method applied to a mixed reality device, the method comprising:

[0007] The motion trajectory of the target gesture on a real object is obtained. The real object includes a first marker point and a first marker line with the first marker point as the endpoint. The first marker point is a point on the edge of the real object. The edge line includes the first marker line. The motion trajectory includes the motion trajectory starting from the first marker point and moving along the first marker line.

[0008] Based on the motion trajectory, determine the spatial location data of the real object;

[0009] Based on the spatial location data, the position and posture of the virtual objects displayed in the virtual scene of the mixed reality device are transformed, and the shape contours of the virtual objects and the real objects satisfy a preset similarity condition.

[0010] In one possible implementation, obtaining the motion trajectory of the target gesture on the real object includes:

[0011] Recognize user gestures;

[0012] When the user gesture is the target gesture, the motion trajectory of the target gesture on the real object is obtained.

[0013] In one possible implementation, when the user gesture is a target gesture, acquiring the motion trajectory of the target gesture on a real object includes:

[0014] If the user's gesture is a target gesture, determine the target position of the target gesture;

[0015] By tracking the position of the target location, the motion trajectory of the target gesture on the real object is obtained.

[0016] In one possible implementation, determining the target location of the target gesture when the user gesture is a target gesture includes:

[0017] If the user's gesture is the target gesture, acquire the target gesture image;

[0018] The target gesture image is identified to obtain the target position of the target gesture.

[0019] In one possible implementation, the spatial location data includes first location data of the first marker point and a first spatial location vector corresponding to the first marker line. Determining the spatial location data of the real object based on the motion trajectory includes:

[0020] Obtain the first location data of the target location;

[0021] The first location data of the target location is determined as the first location data of the first marker point;

[0022] Based on the first location data and the motion trajectory, determine the first spatial position vector corresponding to the first marker line.

[0023] In one possible implementation, the virtual object includes a second marker point and a second marker line, wherein the position of the second marker point in the virtual object corresponds to the position of the first marker point in the real object, and the position of the second marker line in the virtual object corresponds to the position of the first marker line in the real object; determining the spatial position data of the real object based on the motion trajectory includes:

[0024] A Cartesian coordinate system is constructed with the second marker point as the origin, the second marker line as the first axis, and two lines that are perpendicular to the second marker line and to each other as the second and third axes, respectively.

[0025] Based on the motion trajectory, determine the spatial position data of the real object in the target space Cartesian coordinate system;

[0026] The step of transforming the position and posture of virtual objects displayed in the virtual scene of the mixed reality device based on the spatial location data includes:

[0027] Determine the second position data of the second marker point and the second spatial position vector corresponding to the second marker line based on the target space rectangular coordinate system;

[0028] Based on the first location data and the second location data, the second marker in the virtual object is moved to the location of the first marker.

[0029] Based on the first spatial position vector and the second spatial position vector, the second marker line in the virtual object is transformed to the posture of the first marker line.

[0030] In one possible implementation, the real object includes at least a polyhedron composed of multiple edges, the first marker point is a vertex of the polyhedron, and the first marker line is an edge line with the first marker point as its endpoint.

[0031] In one possible implementation, the real object is placed horizontally, with the first marker line parallel to the horizontal line.

[0032] In one possible implementation, before transforming the position and pose of the virtual object displayed in the virtual scene of the mixed reality device based on the spatial location data, the method further includes:

[0033] The shape contour of the real object is scanned to obtain shape contour information;

[0034] The virtual object is obtained by reconstructing the shape and contour information in three dimensions.

[0035] Secondly, embodiments of this application provide a virtual-real fitting positioning device applied to a mixed reality device, the device comprising:

[0036] The acquisition module is used to acquire the motion trajectory of the target gesture on a real object. The real object includes a first marker point and a first marker line with the first marker point as the endpoint. The first marker point is a point on the edge of the real object. The edge line includes the first marker line. The motion trajectory includes the motion trajectory starting from the first marker point and moving along the first marker line.

[0037] The determining module is used to determine the spatial location data of the real object based on the motion trajectory;

[0038] The transformation module is used to transform the position and posture of virtual objects displayed in the virtual scene of the mixed reality device according to the spatial position data, wherein the shape contours of the virtual objects and the real objects satisfy a preset similarity condition.

[0039] Thirdly, embodiments of this application provide an electronic device, which includes: a processor and a memory storing computer program instructions;

[0040] When the processor executes the computer program instructions, it implements any of the possible implementations of the first aspect described above.

[0041] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the method in any of the possible implementations of the first aspect described above.

[0042] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform a method as described in any of the possible implementations of the first aspect above.

[0043] In the virtual-real fitting positioning method and apparatus of this application embodiment, if a first marker point of a real object and a first marker line with the first marker point as the endpoint are determined, the position and posture of the real object can be determined. Then, if the shape contours of the virtual object and the real object meet the preset similarity conditions, the position and posture of the virtual object to be transformed can be determined by the first marker point and the first marker line. Thus, by acquiring the motion trajectory of the target gesture on the real object starting from the first marker point and moving along the first marker line, the spatial position data of the real object is determined according to the motion trajectory, and the position and posture of the virtual object displayed in the virtual scene of the mixed reality device are transformed according to the spatial position data. That is, virtual-real fitting positioning can be achieved by the motion trajectory of the target gesture based on the first marker point and the first marker line, without requiring the user to perform multiple and repeated operations on multiple interactive controls, thereby simplifying user operation and improving the efficiency of virtual-real fitting positioning. Attached Figure Description

[0044] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0045] Figure 1 This is a flowchart illustrating a virtual-real fitting positioning method provided in an embodiment of this application;

[0046] Figure 2 This is a schematic diagram of the first type of real object provided in the embodiments of this application;

[0047] Figure 3 This is a schematic diagram of the second type of real object provided in the embodiments of this application;

[0048] Figure 4 This is a schematic diagram of a user interaction operation provided in an embodiment of this application;

[0049] Figure 5 This is a schematic diagram of the display screen of an MR device provided in an embodiment of this application;

[0050] Figure 6 This is a schematic diagram of a target space rectangular coordinate system provided in an embodiment of this application;

[0051] Figure 7 This is a schematic diagram of a virtual-real fitting positioning process provided in an embodiment of this application;

[0052] Figure 8 This is a schematic diagram of a virtual-real fitting positioning result provided in an embodiment of this application;

[0053] Figure 9 This is a schematic diagram of the structure of a virtual-real fitting positioning device provided in an embodiment of this application;

[0054] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0055] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0056] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0057] Virtual-real fusion technology is mainly applied in simulation scenarios that combine virtual and real elements, aiming to fit and match virtual objects with real objects in spatial coordinates. By using this technology, high-precision and high-efficiency fitting and positioning of virtual and real objects can be achieved, thereby assisting users in conducting more accurate virtual simulation activities and completing various scientific research activities more efficiently and precisely.

[0058] As described in the background section, with the development of science and technology, the application of virtual-real fusion technology is becoming increasingly widespread. This development benefits from the support of various technologies such as artificial intelligence, big data, the Internet of Things, mobile communication, edge computing, and extended reality. These technologies help break down the boundaries between virtual and reality, promoting the development of real-world perception towards a hybrid, experiential approach that combines the virtual and real worlds. In recent years, the application of virtual-real fusion technology has become increasingly widespread, finding applications in multiple scenarios and industries, including virtual reality (VR) / augmented reality (AR) industrial empowerment, VR / AR immersive tourism experiences, VR / AR fitness for the public, VR / AR online performances, and VR / AR smart business districts. These application scenarios demonstrate the broad application potential of virtual-real fusion technology. Researchers can now also use VR / AR devices to blend virtual and real scenes. They can use computer technology to create a three-dimensional virtual environment, drive scene updates and changes based on data, and then compare it with the real physical state to achieve purposes such as guidance, training, and design. The virtual-real fusion technology aims to achieve seamless integration between people, the real environment, and the virtual environment, providing a brand-new technical approach for high-end equipment development, complex mission planning and training, and innovative digital entertainment and education.

[0059] In the application of virtual-real fusion technology, although virtual objects that are almost identical to real objects can be obtained, it is a complex process to accurately fit the virtual objects and real objects in terms of position and posture according to the requirements.

[0060] Based on the hierarchical relationship of position fitting, there are generally two methods: fitting from real objects to virtual objects and fitting from virtual objects to real objects. For relatively lightweight and easy-to-move types of real objects, fitting from real objects to virtual objects is more convenient. However, when such parts interact with users, their easy-to-move characteristics often lead to displacement of the parts, resulting in a decrease in the fitting accuracy.

[0061] Fitting virtual objects to real objects avoids the aforementioned problems. However, current common fitting methods also have their issues. Common methods include automatic matching and manual matching. Automatic matching involves using image recognition or multi-view localization technology to locate the virtual object spatially, but this often incurs high technical costs and suffers from insufficient matching accuracy or stability.

[0062] Manual matching refers to adjusting the position of virtual or real objects through manual interaction, but it also suffers from low efficiency and poor stability. For example, manual matching might involve first displaying a real object, a virtual object, and multiple interactive controls for adjusting the position and posture of the virtual object. Then, it receives multiple, repeated user actions on these controls to change the position and posture of the virtual object, ultimately achieving complete overlap with the real object. However, this manual interaction method is cumbersome, resulting in low efficiency and poor stability in virtual-real fitting positioning. Poor stability can manifest as the inability to consistently maintain a seamless connection between the virtual and real objects. This instability can be caused by user movement or changes in perspective. Due to these factors, the final adjusted virtual and real objects may not perfectly overlap, leading to low accuracy in virtual-real fitting positioning.

[0063] Based on this, the inventive concept of this application is as follows:

[0064] Assuming the spatial position of the real object is fixed, fitting the spatial position of a virtual object to the real object typically requires acquiring the real object's spatial position data and applying this data to the virtual object. This spatial position data can include six sets of data in a Cartesian coordinate system: the coordinates of the position on the three axes and the rotation angles of the orientation on those axes. However, if the shape and spatial position of the real object remain unchanged, and we obtain the coordinates of a point on the real object (such as the first marker point) and the spatial position vector of a line with that point as its endpoint (such as the first marker line), the spatial position of the real object can be determined. Therefore, it is unnecessary to acquire six sets of data; acquiring only two sets is sufficient for virtual-real fitting and positioning.

[0065] Thus, virtual-real fitting positioning can be achieved based on the first marker point and the first marker line, eliminating the need for users to perform multiple, repetitive operations on various interactive controls. This simplifies user operations and improves the efficiency of virtual-real fitting positioning. Furthermore, since the first marker point and the first marker line are real structures existing within the actual object, virtual-real fitting positioning based on these marker points and lines, rather than on user control of interactive controls, avoids errors caused by user movement or changes in perspective, ensuring the accuracy of virtual-real fitting positioning.

[0066] Therefore, to address the problems of the prior art, embodiments of this application provide a virtual-real fitting positioning method, apparatus, device, computer-readable storage medium, and computer program product. The virtual-real fitting positioning method can be applied to Mixed Reality (MR) scenes.

[0067] As described above, the virtual-real fitting positioning method in this application embodiment is an interactive spatial positioning method. The interaction method can be manual.

[0068] The virtual-real fitting positioning method provided in the embodiments of this application is described below.

[0069] Figure 1 A schematic flowchart of a virtual-real fitting positioning method provided in an embodiment of this application is shown. This virtual-real fitting positioning method can be executed by an MR device. The MR device may include a head-mounted MR device, a glasses-type MR device, a tethered MR device, a flip-down MR device, etc.

[0070] like Figure 1 As shown, the virtual-real fitting positioning method provided in this application embodiment includes steps S110 to S130.

[0071] S110, obtain the motion trajectory of the target gesture on the real object. The real object includes a first marker point and a first marker line with the first marker point as the endpoint. The first marker point is a point on the edge of the real object. The edge line includes the first marker line. The motion trajectory includes the motion trajectory starting from the first marker point and moving along the first marker line.

[0072] A real-world object can be a physical object existing in a real-world scene. A real-world object may include at least one edge. A real-world object may be a polyhedron composed of at least multiple edges. Examples of real-world objects include mobile phones, computers, tables, chairs, cabinets, and workbenches. A schematic diagram of a real-world object provided in this application embodiment is shown below. Figure 2 As shown.

[0073] Specifically, the real object may include a first marker point and a first marker line with the first marker point as its endpoint. The first marker point can be a point on the edge of the real object. The first marker point may be an endpoint of the edge or any point in the middle of the edge; this is not limited here.

[0074] When the real object is a polyhedron, the first marker point can be a vertex of the polyhedron. If the side of the polyhedron facing the user is defined as the outer side, and the side away from the user is defined as the inner side, then the vertices can include outward-protruding vertices and inward-protruding vertices. Since the user can move on the real object based on the first marker point using target gestures during subsequent virtual-real fitting positioning, in some embodiments, to avoid operational errors caused by the user's hand colliding with the polyhedron, the first marker point can be defined as an outward-protruding vertex of the polyhedron. Typically, there are no obvious obstructions around the outward-protruding vertex of the polyhedron. Therefore, by defining the first marker point as an outward-protruding vertex of the polyhedron, operational errors caused by the user's hand colliding with the polyhedron can be avoided, ensuring the smoothness and effectiveness of the motion trajectory, and thus ensuring the accuracy of virtual-real fitting positioning.

[0075] Furthermore, one endpoint of the first marker line can be a first marker point. Since the first marker point is located on an edge, the edge can include the first marker line. That is, the first marker line can be a part of the edge or the entire edge, without limitation. Since the user can move on the real object based on the first marker line through the target gesture, in some embodiments, in order to facilitate the target gesture movement and ensure the smoothness and effectiveness of the movement trajectory, when the real object is a polyhedron, the first marker line can be a complete edge of the polyhedron with the first marker point as one endpoint. By determining the first marker line as an edge with the first marker point as an endpoint, the two endpoints of the first marker point and the direction of the line can be determined simultaneously, thereby facilitating the target gesture movement, ensuring the smoothness and effectiveness of the movement trajectory, and thus ensuring the accuracy of the virtual-real fitting positioning.

[0076] This application provides a schematic diagram of a real object including a first marker point and a first marker line, which can be seen as follows: Figure 3 As shown.

[0077] Furthermore, the target gesture can be a pre-defined gesture whose movement trajectory can be identified. The target gesture can be easy to implement and can be maintained for a long time. For example, the target gesture can be any gesture such as pinching the index finger and thumb together, extending the index finger, or extending the palm.

[0078] As an example, after wearing a MR device, a user can observe real objects in a real scene, as well as their own hands, through the MR device. The user can also clearly observe the first marker point and the first marker line on the real object through the MR device. Based on this, if the target gesture is the user pinching their index finger and thumb together, the user can pinch their index finger and thumb at the first marker point of the real object, maintain the pinched state, and slide their hand along the first marker line to obtain the motion trajectory.

[0079] The schematic diagram of a user interaction operation provided in this application embodiment can be as follows: Figure 4 As shown.

[0080] Based on this, in order to further simplify the interaction process and improve the efficiency of virtual-real fitting positioning, in some embodiments, the real object can be placed horizontally, and the first marker line can be parallel to the horizontal line.

[0081] By adding a horizontal state constraint to the virtual-real fitting localization process, only a first set of spatial position vectors needs to be provided when performing pose fitting, thus simplifying the interaction process. Furthermore, if the first marker line is parallel to the horizontal line, the user's gestures can move horizontally, further simplifying the interaction process and improving the efficiency of virtual-real fitting localization.

[0082] Typically, MR devices have built-in gesture recognition capabilities, allowing users to interact with both real and virtual objects using their hands.

[0083] Therefore, in order to ensure the accuracy of the motion trajectory and thus the accuracy of the subsequent virtual-real fitting positioning, in some embodiments, the above-mentioned S110 may specifically include:

[0084] Recognize user gestures;

[0085] When the user's gesture is the target gesture, obtain the motion trajectory of the target gesture on the real object.

[0086] Here, user gestures can include clapping, waving, pinching the index finger and thumb together, extending the index finger, and extending the palm. When the user is wearing the MR device and the device is operating normally, the built-in gesture recognition function can identify the user's gestures. Furthermore, if the user's gesture is identified as the target gesture, the system automatically triggers the acquisition of the motion trajectory of the target gesture on a real object. The motion trajectory of the target gesture can be the motion trajectory of the entire hand corresponding to the target gesture, or it can be the motion trajectory of a specific hand position corresponding to the target gesture; no limitation is made here.

[0087] This application embodiment, by determining that the user's gesture is the target gesture, obtains the motion trajectory of the target gesture on a real object, which can ensure the accuracy of the motion trajectory and thus ensure the accuracy of subsequent virtual-real fitting positioning.

[0088] Therefore, to further improve the accuracy of motion trajectories, in some embodiments, when the user's gesture is the target gesture, obtaining the motion trajectory of the target gesture on the real object may specifically include:

[0089] When the user's gesture is the target gesture, determine the target location of the target gesture;

[0090] By tracking the position of the target location, the trajectory of the target gesture on the real object is obtained.

[0091] Here, the target position can be a pre-determined hand position used to acquire the movement trajectory. The target position can be different for different target gestures. For example, if the target gesture is the index finger and thumb pinching together, the target position can be the point where the index finger and thumb are pinched together. If the target gesture is the index finger extended, the target position can be the fingertip of the index finger. If the target gesture is the palm extended, the target position can be the center of the palm or the fingertip of the index finger.

[0092] As an example, when an MR device recognizes a user's gesture as the target gesture, it can locate the target position within the target gesture based on its built-in gesture recognition function. Furthermore, while the user maintains the target gesture and moves it, the position of the target position is tracked to obtain the motion trajectory of the target gesture on the real object. In other words, the motion trajectory of the target gesture on the real object can specifically be the motion trajectory of the target position on the real object.

[0093] The embodiments of this application determine the motion trajectory by tracking the position of the target location (i.e., a certain point), which can further improve the accuracy of the motion trajectory compared to determining the motion trajectory by tracking the position of the entire hand.

[0094] Furthermore, to ensure the accuracy of the target location, in some embodiments, determining the target location of the target gesture when the user's gesture is the target gesture may specifically include:

[0095] If the user's gesture is the target gesture, obtain the target gesture image;

[0096] The target gesture image is identified to obtain the target position of the gesture.

[0097] Here, the target gesture image can be a two-dimensional image or a three-dimensional image. When the MR device recognizes the user's gesture as the target gesture, it can take a picture of the target gesture to obtain a two-dimensional image, or it can reconstruct the target gesture in three dimensions to obtain a three-dimensional image. Additionally, the MR device may include an image recognition module. This module may include a target neural network model based on image recognition algorithms. The target neural network model can recognize the target gesture image and determine the target location of the gesture. The target neural network model can be trained using gesture image samples and their corresponding target location samples.

[0098] In this way, by first acquiring the target gesture image and then recognizing the target gesture image to obtain the target position of the target gesture, the accuracy of the target position can be guaranteed.

[0099] S120: Determine the spatial location data of the real object based on the motion trajectory.

[0100] After obtaining an accurate motion trajectory, the spatial location data of the real object can be determined based on the trajectory to locate the real object. The spatial location data may include the first position data of the first marker point and the first spatial location vector corresponding to the first marker line. The first position data may be the position coordinates of the first marker point in the world coordinate system. The first spatial location vector may be a spatial location vector determined in the world coordinate system. It should be noted that, in this embodiment, the first marker line may only have magnitude and no direction, but the first spatial location vector corresponding to the first marker line may include both magnitude and direction.

[0101] In addition, most mainstream MR devices currently possess stable spatial positioning capabilities. The built-in processing system of MR devices can effectively identify environmental features, thereby establishing a stable spatial Cartesian coordinate system, providing a foundation for the digitization of the first marker point and the first marker line. Different MR devices may establish different spatial Cartesian coordinate systems, resulting in slight variations in the spatial position data of the real object, but this does not affect the virtual-real fitting positioning effect in the embodiments of this application. The reasoning can be found in the description of the virtual object below.

[0102] It should be noted that, for both spatial positioning and gesture recognition functions, the developers of MR devices only provide API interfaces that can be used for development, and have not open-sourced all the functional code. However, this does not affect the use of the relevant black-box functions as a component of the methods involved in the invention.

[0103] Therefore, in order to ensure the accuracy of spatial location data, in some embodiments, the above-mentioned S120 may specifically include:

[0104] Obtain the first location data of the target location;

[0105] The first location data of the target location is determined as the first location data of the first marker point;

[0106] Based on the first position data and the motion trajectory, determine the first spatial position vector corresponding to the first marker line.

[0107] Here, since gesture recognition automatically matches virtual gestures with real gestures through image recognition, the spatial coordinates of the first marker point can be obtained from the position of the virtual gesture in the spatial coordinate system. That is, after obtaining the first position data of the target location, the first position data of the target location can be determined as the first position data of the first marker point.

[0108] Furthermore, the motion trajectory can include the starting point, ending point, and direction of motion. Since the first marker point is the endpoint of the first marker line, the spatial coordinates (i.e., the first position data) of the first endpoint of the first marker line can be determined after the first position data is determined. During the movement of the target gesture along the first marker line, the direction of the target gesture can be acquired in real time. Upon completion of the movement, the spatial coordinates of the second endpoint of the first marker line can be acquired. Thus, based on the coordinates of the starting point (i.e., the first position data) and the coordinates of the ending point (i.e., the spatial coordinates of the second endpoint of the first marker line), the spatial coordinates of the motion trajectory can be determined, and the spatial coordinates of the motion trajectory can be defined as the first spatial position vector corresponding to the first marker line.

[0109] Of course, since the first spatial position vector can be determined based on the coordinates of the starting point and the ending point of the movement, it is not necessary to obtain the movement direction of the target gesture in real time during the movement of the target gesture along the first marker line, so as to save the computing resources of the MR device.

[0110] As an example, after wearing a MR device, a user can observe real objects in a real scene, as well as their own hands, through the MR device. The user can also clearly observe the first marker point and the first marker line on the real object through the MR device. Based on this, if the target gesture is the user pinching their index finger and thumb together, the user can pinch their index finger and thumb at the first marker point on the real object. When the MR device detects the user pinching their index finger and thumb, it can obtain the spatial coordinates of the pinch point, thus obtaining the first position data of the first marker point. While the user keeps their fingers in a pinched state and slides their hand along the first marker line, the sliding direction of the hand can be obtained in real time. If the duration of the hand stopping sliding is longer than a preset duration, the hand movement can be determined to have ended, and the position where the hand movement ended can be determined as the second endpoint of the first marker line. The spatial coordinates of the second endpoint can be obtained, and then the first spatial position vector can be determined based on the first position data and the spatial coordinates of the second endpoint of the first marker line. The preset duration can be, for example, 0.5s, 1s, etc.

[0111] It should be noted that since the first marking line is all or part of the edge of the real object, when the hand slides on the edge while maintaining a pinching posture, the straight structure of the edge can give the hand a stable path dependency, thereby calibrating an accurate first spatial position vector.

[0112] The embodiments of this application can ensure the accuracy of spatial location data by determining the first location data of the target location as the first location data of the first marker point, and by determining the first spatial location vector corresponding to the first marker line based on the first location data and the movement trajectory.

[0113] After obtaining the spatial location data of the real object, the spatial location data can be temporarily stored in the MR device.

[0114] S130, based on spatial location data, transform the position and posture of virtual objects displayed in the virtual scene of the mixed reality device, and ensure that the shape outlines of virtual objects and real objects meet preset similarity conditions.

[0115] Here, the virtual object can be an object to be used for virtual-real fitting and positioning with a real object. The shapes and outlines of the virtual object and the real object can be basically the same. That is, the shapes and outlines of the virtual object and the real object can meet a preset similarity condition. Specifically, the preset similarity condition can be met if the difference rate between the shape and outline information of the virtual object and the shape and outline information of the real object is less than a preset threshold.

[0116] As an example, when a user wears an MR device, on the one hand, they can observe real objects in a real scene through the MR device; on the other hand, they can observe virtual objects corresponding to real objects in the virtual scene of the MR device.

[0117] A schematic diagram of the display screen of an MR device provided in this application embodiment can be shown as follows: Figure 5 As shown. Figure 5 As shown, the left side can be a real object, and the right side can be a virtual object whose shape and outline meet preset similarity conditions with the real object.

[0118] As an example, after obtaining the spatial location data of the real object, the accurate location of the real object can be determined based on the control location data. Then, by transforming the position and posture of the virtual object according to the spatial location data, the virtual object can be transformed to the position of the real object and coincide with the real object, thereby completing the virtual-real fitting positioning process and realizing the spatial position fitting between the real object and the virtual object.

[0119] Based on this, in order to obtain a virtual object whose shape and contour meet preset similarity conditions with the real object and to ensure the virtual-real fitting and positioning effect, in some embodiments, before the above-mentioned S130, the following may be included:

[0120] The shape outline of the real object is scanned to obtain shape outline information;

[0121] The shape and contour information are reconstructed in three dimensions to obtain a virtual object.

[0122] This application embodiment uses laser scanning to scan the shape contour of a real object, which can obtain the shape contour information of the real object. Then, the shape contour information is reconstructed in three dimensions to obtain a virtual object that meets the preset similarity conditions with the shape contour of the real object, thus ensuring the virtual-real fitting and positioning effect.

[0123] For example, virtual objects that correspond to real objects can be created using 3D production tools such as 3Ds Max, Blender, Maya, and Rhino.

[0124] After determining the first marker point and the first marker line on the real object, marking processing can be performed at the corresponding positions in the virtual object to obtain the second marker point and the second marker line. That is, the virtual object can include the second marker point and the second marker line. The position of the second marker point in the virtual object corresponds to the position of the first marker point in the real object, and the position of the second marker line in the virtual object corresponds to the position of the first marker line in the real object.

[0125] It should be noted that virtual objects and real objects can exist in the same Cartesian coordinate system. Therefore, regardless of how the Cartesian coordinate system is established—that is, regardless of the position coordinates of the first marker point, the position coordinates of the second marker point, the spatial position vectors of the first and second marker lines—the relative spatial position data between the virtual and real objects remains unchanged.

[0126] Based on this, in order to further improve the efficiency of virtual-real fitting and positioning, in some embodiments, the above-mentioned S120 may specifically include:

[0127] A rectangular coordinate system for the target space is constructed with the second marker point as the origin, the second marker line as the first axis, and two lines that are perpendicular to the second marker line and to each other as the second and third axes, respectively.

[0128] Based on the motion trajectory, determine the spatial position data of the real object in the target space rectangular coordinate system.

[0129] Based on this, the aforementioned S130 may specifically include:

[0130] Determine the second position data of the second marker point and the second spatial position vector corresponding to the second marker line based on the target space rectangular coordinate system;

[0131] Based on the first and second position data, move the second marker point in the virtual object to the position of the first marker point;

[0132] Based on the first spatial position vector and the second spatial position vector, the second marker line in the virtual object is transformed to the posture of the first marker line.

[0133] Here, the first axis can be the x-axis, y-axis, or z-axis, without limitation. If the first axis is the x-axis, the second and third axes can be the y-axis and z-axis, respectively. Furthermore, if the first axis is the x-axis, the positive direction of the x-axis can be from the second marker point to the second marker line. Since the second marker point corresponds to the first marker point, and the second marker line corresponds to the first marker line, the positive direction of the x-axis can be the same as the direction of the first spatial position vector.

[0134] MR devices can construct a Cartesian coordinate system for the target space based on their spatial recognition capabilities, with the second marker point as the origin, the second marker line as the first axis, and two lines that are perpendicular to the second marker line and to each other as the second and third axes.

[0135] Therefore, to further improve the efficiency of virtual-real fitting and positioning, in some embodiments, the virtual object can be constrained to be vertically positioned. In this case, the second marker line can be a horizontal line. When the virtual object is constrained to be vertically positioned, the virtual object provides a plumb line that can serve as a coordinate axis, thus defining the vertical direction perpendicular to the horizontal plane as a coordinate axis. Therefore, given the origin and two coordinate axes in a three-dimensional coordinate system, the third axis can be determined.

[0136] A schematic diagram of a target space rectangular coordinate system provided in this application embodiment can be seen as follows: Figure 6 As shown.

[0137] After determining the target space rectangular coordinate system, on the one hand, the spatial position data of the real object in the target space rectangular coordinate system can be determined according to the motion trajectory; on the other hand, the second position data of the second marker point can be determined as (0,0,0). If the first axis is the x-axis, then the second spatial position vector corresponding to the second marker line can be (x,0,0).

[0138] This embodiment of the application improves the efficiency of determining the first difference between the first and second position data, and the second difference between the first and second spatial position vectors, by defining the second position data as (0,0,0) and the second spatial position vector as (x,0,0). Thus, by moving the second marker point in the virtual object to the position of the first marker point based on the first and second position data, and by transforming the second marker line in the virtual object to the posture of the first marker line based on the first and second spatial position vectors, the efficiency of virtual-real fitting positioning can be further improved.

[0139] The software implements the above logic through code, thus completing the virtual-real fitting and positioning.

[0140] Based on the above embodiments, a specific example will be given.

[0141] In the realization of a virtual-real integrated flight simulation cabin, the above-mentioned methods can be used to achieve the complete integration of the digital twin simulation cabin and the physical simulation cabin, thereby helping test personnel or users to complete their work.

[0142] A schematic diagram of a virtual-real fitting positioning process provided in this application embodiment can be seen as follows: Figure 7 As shown. Figure 7 It can include a virtual 3D model of the simulated cockpit and interactive actions during the virtual-real fitting and positioning process.

[0143] A schematic diagram of a virtual-real fitting positioning result provided in this application embodiment can be seen as follows: Figure 8 As shown. In Figure 7In this scenario, the virtual 3D model is positioned directly above the seat, mirroring the user's relative position to the flight simulator cockpit in a real-world setting.

[0144] In the virtual-real fitting positioning method of this application embodiment, if a first marker point of the real object and a first marker line with the first marker point as the endpoint are determined, the position and posture of the real object can be determined. Then, if the shape contours of the virtual object and the real object meet the preset similarity conditions, the position and posture of the virtual object to be transformed can be determined by the first marker point and the first marker line. Thus, by acquiring the motion trajectory of the target gesture on the real object starting from the first marker point and moving along the first marker line, the spatial position data of the real object is determined according to the motion trajectory, and the position and posture of the virtual object displayed in the virtual scene of the mixed reality device are transformed according to the spatial position data. That is, virtual-real fitting positioning can be achieved by the motion trajectory of the target gesture based on the first marker point and the first marker line, without requiring the user to perform multiple and repeated operations on multiple interactive controls, thereby simplifying user operation and improving the efficiency of virtual-real fitting positioning.

[0145] In addition, the embodiments of this application perform virtual-real fitting positioning based on the first marker point and the first marker line, rather than based on the user's control of the interactive control, which can avoid errors caused by user movement or changes in perspective and ensure the accuracy of virtual-real fitting positioning.

[0146] In addition, the embodiments of this application only need to utilize the original functions of the MR device itself, combined with the above-mentioned virtual-real fitting positioning method, to achieve virtual-real fitting positioning without additional investment, thus making the implementation cost of virtual-real fitting positioning low.

[0147] In summary, this application's embodiments utilize the structural features of real objects and the flexible and stable interaction features of the hand, innovatively proposing an interactive virtual-real fitting positioning method. As described above, this virtual-real fitting positioning method features high execution efficiency, low production cost, ease of operation, and high precision. It is a low-cost, effective, and simple way to implement virtual-real fusion positioning functionality.

[0148] Based on the virtual-real fitting positioning method provided in the above embodiments, this application also provides a specific implementation of a virtual-real fitting positioning device. The virtual-real fitting positioning device can be applied to mixed reality devices. Please refer to the following embodiments for details.

[0149] like Figure 9 As shown, the virtual-real fitting positioning device 900 provided in this application embodiment includes the following modules:

[0150] The acquisition module 910 is used to acquire the motion trajectory of the target gesture on a real object. The real object includes a first marker point and a first marker line with the first marker point as the endpoint. The first marker point is a point on the edge of the real object. The edge line includes the first marker line. The motion trajectory includes the motion trajectory starting from the first marker point and moving along the first marker line.

[0151] The determination module 920 is used to determine the spatial position data of the real object based on the motion trajectory;

[0152] The transformation module 930 is used to transform the position and posture of virtual objects displayed in the virtual scene of the mixed reality device according to spatial location data, and the shape contours of the virtual objects and real objects meet preset similarity conditions.

[0153] The virtual-real fitting positioning device 900 described above will be explained in detail below:

[0154] In some embodiments, the acquisition module 910 may specifically include:

[0155] The recognition submodule is used to recognize user gestures;

[0156] The first acquisition submodule is used to acquire the motion trajectory of the target gesture on a real object when the user's gesture is the target gesture.

[0157] In some embodiments, the first acquisition submodule may specifically include:

[0158] The determining unit is used to determine the target position of the target gesture when the user gesture is the target gesture;

[0159] The tracking unit is used to track the position of the target and obtain the motion trajectory of the target gesture on the real object.

[0160] In some embodiments, the determining unit may specifically include:

[0161] The acquisition sub-unit is used to acquire the target gesture image when the user gesture is the target gesture;

[0162] The recognition subunit is used to recognize the target gesture image and obtain the target position of the target gesture.

[0163] In some embodiments, the spatial location data includes first location data of the first marker point and a first spatial location vector corresponding to the first marker line. Based on this, the determining module 920 may specifically include:

[0164] The second acquisition submodule is used to acquire the first location data of the target location;

[0165] The first determining submodule is used to determine the first location data of the target location as the first location data of the first marker point;

[0166] The second determining submodule is used to determine the first spatial position vector corresponding to the first marker line based on the first position data and the motion trajectory.

[0167] In some embodiments, the virtual object includes a second marker point and a second marker line, the position of the second marker point in the virtual object corresponding to the position of the first marker point in the real object, and the position of the second marker line in the virtual object corresponding to the position of the first marker line in the real object.

[0168] Based on this, module 920 may specifically include:

[0169] Construct a submodule to build a Cartesian coordinate system in the target space with the second marker point as the origin, the second marker line as the first axis, and two lines that are perpendicular to the second marker line and to each other as the second and third axes, respectively.

[0170] The third determination submodule is used to determine the spatial position data of the real object in the target space rectangular coordinate system based on the motion trajectory.

[0171] Based on this, the transformation module 930 may specifically include:

[0172] The fourth determination submodule is used to determine the second position data of the second marker point and the second spatial position vector corresponding to the second marker line based on the target space rectangular coordinate system;

[0173] The moving submodule is used to move the second marker point in the virtual object to the position of the first marker point based on the first position data and the second position data.

[0174] The transformation submodule is used to transform the second marker line in the virtual object to the pose of the first marker line based on the first spatial position vector and the second spatial position vector.

[0175] In some embodiments, the real object includes at least a polyhedron composed of multiple edges, the first marker point is the vertex of the polyhedron, and the first marker line is the edge line with the first marker point as its endpoint.

[0176] In some embodiments, the real object is placed horizontally, and the first marker line is parallel to the horizontal line.

[0177] In some embodiments, the virtual-real fitting positioning device 900 may further include:

[0178] The scanning module is used to scan the shape outline of the real object before transforming the position and posture of the virtual object displayed in the virtual scene of the mixed reality device based on spatial location data, so as to obtain the shape outline information.

[0179] The building module is used to reconstruct the shape and contour information in three dimensions to obtain a virtual object.

[0180] In the virtual-real fitting positioning device of this application embodiment, if a first marker point of a real object and a first marker line with the first marker point as the endpoint are determined, the position and posture of the real object can be determined. Then, if the shape contours of the virtual object and the real object meet the preset similarity conditions, the position and posture of the virtual object to be transformed can be determined by the first marker point and the first marker line. Thus, by acquiring the motion trajectory of the target gesture on the real object starting from the first marker point and moving along the first marker line, the spatial position data of the real object is determined according to the motion trajectory, and the position and posture of the virtual object displayed in the virtual scene of the mixed reality device are transformed according to the spatial position data. That is, virtual-real fitting positioning can be achieved by the motion trajectory of the target gesture based on the first marker point and the first marker line, without requiring the user to perform multiple and repeated operations on multiple interactive controls, thereby simplifying user operation and improving the efficiency of virtual-real fitting positioning.

[0181] Based on the virtual-real fitting positioning method provided in the above embodiments, this application also provides specific implementation methods for electronic devices. Figure 10 A schematic diagram of an electronic device 1000 provided in an embodiment of this application is shown.

[0182] Electronic device 1000 may include processor 1010 and memory 1020 storing computer program instructions.

[0183] Specifically, the processor 1010 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0184] Memory 1020 may include mass storage for data or instructions. For example, and not limitingly, memory 1020 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 1020 may include removable or non-removable (or fixed) media. Where appropriate, memory 1020 may be internal or external to electronic device 1000. In a particular embodiment, memory 1020 is a non-volatile solid-state memory.

[0185] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of this application.

[0186] The processor 1010 reads and executes computer program instructions stored in the memory 1020 to implement any of the virtual-real fitting positioning methods in the above embodiments.

[0187] In one example, the electronic device 1000 may also include a communication interface 1030 and a bus 1040. For example, Figure 10 As shown, the processor 1010, memory 1020, and communication interface 1030 are connected through bus 1040 and complete communication with each other.

[0188] The communication interface 1030 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0189] Bus 1040 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 1040 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.

[0190] For example, the electronic device 1000 can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc.

[0191] The electronic device can perform the virtual-real fitting positioning method in the embodiments of this application, thereby achieving a combination of Figure 1 and Figure 9 The virtual-real fitting positioning method and apparatus are described.

[0192] Furthermore, in conjunction with the virtual-real fitting localization method in the above embodiments, this application embodiment can provide a computer-readable storage medium for implementation. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the virtual-real fitting localization methods in the above embodiments.

[0193] Based on the virtual-real fitting positioning method in the above embodiments, this application embodiment can provide a computer program product for implementation. When the instructions in this computer program product are executed by the processor of an electronic device, they implement any of the virtual-real fitting positioning methods in the above embodiments.

[0194] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0195] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0196] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0197] The aspects of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0198] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A virtual-real fitting positioning method, characterized in that, Applied to mixed reality devices, the method includes: The motion trajectory of the target gesture on a real object is obtained. The real object includes a first marker point and a first marker line with the first marker point as the endpoint. The first marker point is a point on the edge of the real object. The edge line includes the first marker line. The motion trajectory includes the motion trajectory starting from the first marker point and moving along the first marker line. Based on the motion trajectory, the spatial position data of the real object is determined, and the spatial position data includes the first position data of the first marker point and the first spatial position vector corresponding to the first marker line; Based on the spatial location data, the position and posture of the virtual objects displayed in the virtual scene of the mixed reality device are transformed. The shape contours of the virtual objects and the real objects meet the preset similarity conditions. The virtual objects include a second marker point and a second marker line. The position of the second marker point in the virtual object corresponds to the position of the first marker point in the real object. The position of the second marker line in the virtual object corresponds to the position of the first marker line in the real object. The step of transforming the position and posture of virtual objects displayed in the virtual scene of the mixed reality device based on the spatial location data includes: Based on the target space rectangular coordinate system where the virtual object and the real object both reside, determine the second position data of the second marker point and the second spatial position vector corresponding to the second marker line; Based on the first location data and the second location data, the second marker in the virtual object is moved to the location of the first marker. Based on the first spatial position vector and the second spatial position vector, the second marker line in the virtual object is transformed to the posture of the first marker line.

2. The method according to claim 1, characterized in that, The acquisition of the motion trajectory of the target gesture on the real object includes: Recognize user gestures; When the user gesture is the target gesture, the motion trajectory of the target gesture on the real object is obtained.

3. The method according to claim 2, characterized in that, When the user gesture is the target gesture, obtaining the motion trajectory of the target gesture on a real object includes: If the user's gesture is a target gesture, determine the target position of the target gesture; By tracking the position of the target location, the motion trajectory of the target gesture on the real object is obtained.

4. The method according to claim 3, characterized in that, Determining the target location of the target gesture when the user's gesture is the target gesture includes: If the user's gesture is the target gesture, acquire the target gesture image; The target gesture image is identified to obtain the target position of the target gesture.

5. The method according to claim 3, characterized in that, The step of determining the spatial location data of the real object based on the motion trajectory includes: Obtain the first location data of the target location; The first location data of the target location is determined as the first location data of the first marker point; Based on the first location data and the motion trajectory, determine the first spatial position vector corresponding to the first marker line.

6. The method according to claim 5, characterized in that, The step of determining the spatial location data of the real object based on the motion trajectory includes: A Cartesian coordinate system is constructed with the second marker point as the origin, the second marker line as the first axis, and two lines that are perpendicular to the second marker line and to each other as the second and third axes, respectively. Based on the motion trajectory, the spatial position data of the real object is determined in the target space rectangular coordinate system.

7. The method according to any one of claims 1-6, characterized in that, The real object includes at least a polyhedron composed of multiple edges, the first marker point is the vertex of the polyhedron, and the first marker line is the edge line with the first marker point as its endpoint.

8. The method according to any one of claims 1-6, characterized in that, The real object is placed horizontally, and the first marking line is parallel to the horizontal line.

9. The method according to any one of claims 1-6, characterized in that, Before transforming the position and posture of the virtual objects displayed in the virtual scene of the mixed reality device based on the spatial location data, the method further includes: The shape contour of the real object is scanned to obtain shape contour information; The virtual object is obtained by reconstructing the shape and contour information in three dimensions.

10. A virtual-real fitting positioning device, characterized in that, Applied to a mixed reality device, the device includes: The acquisition module is used to acquire the motion trajectory of the target gesture on a real object. The real object includes a first marker point and a first marker line with the first marker point as the endpoint. The first marker point is a point on the edge of the real object. The edge line includes the first marker line. The motion trajectory includes the motion trajectory starting from the first marker point and moving along the first marker line. The determining module is used to determine the spatial position data of the real object based on the motion trajectory. The spatial position data includes the first position data of the first marker point and the first spatial position vector corresponding to the first marker line. The transformation module is used to transform the position and posture of virtual objects displayed in the virtual scene of the mixed reality device according to the spatial position data. The shape contours of the virtual objects and the real objects meet the preset similarity conditions. The virtual objects include a second marker point and a second marker line. The position of the second marker point in the virtual object corresponds to the position of the first marker point in the real object. The position of the second marker line in the virtual object corresponds to the position of the first marker line in the real object. The transformation module is used to determine the second position data of the second marker point and the second spatial position vector corresponding to the second marker line based on the target space rectangular coordinate system where the virtual object and the real object are located; to move the second marker point in the virtual object to the position of the first marker point based on the first position data and the second position data; and to transform the second marker line in the virtual object to the posture of the first marker line based on the first spatial position vector and the second spatial position vector.

Citation Information

Patent Citations

  • Method and device for recognizing gesture

    CN103164696A

  • Alignment method and alignment device for display equipment, and vehicle-mounted display system

    CN114022565A