Pose determination method and device and electronic equipment

By using the pose determination method in the extended realistic headset, using preset images and target images to determine the pose of the target object, the problem of poor user interaction convenience in real scenes is solved, and the accurate tracking and model of the target object is achieved Build, improve interactive experience.

CN119027489APending Publication Date: 2024-11-26BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310609205.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In the use scenarios of extending real-life headsets, users need to manually turn on full-screen perspective or open a perspective window to view the live scene, resulting in poor interaction convenience.

Method used

By using a pose determination method in the headset device, the pose of the target object is determined using preset images and target images, and combined with the current pose of the headset device, the tracking and model construction of the target object are achieved, thereby improving interaction convenience.

Benefits of technology

It realizes accurate detection and tracking of target objects in extended real-life scenarios, improves the convenience of interaction between users and target objects, and reduces the need for manual operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119027489A_ABST
    Figure CN119027489A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a pose determination method and device and electronic equipment. The pose determination method is applied to the head-mounted device, and the pose determination method comprises the following steps: determining a preset image corresponding to a target image collected by the head-mounted device; wherein the target image comprises a target object; determining a first pose of the target object according to the pose corresponding to the preset image, the target image and the preset image; the first pose is a pose under a camera coordinate system; and determining a second pose of the target object according to the first pose and a current pose of the head-mounted device. According to the method, pose tracking of the target object is realized, interaction with the target object can be realized based on the tracked pose, and the interaction convenience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of positioning technology, and in particular to a method, device and electronic device for determining a position and posture. Background Art

[0002] In the usage scenario of the extended reality head-mounted device, after the user wears the head-mounted device, if he wants to see the live scene, the user needs to manually turn on the full-screen perspective, or manually open the perspective window, etc. Summary of the invention

[0003] This disclosure section is provided to introduce concepts in a brief form, which will be described in detail in the detailed description section below. This disclosure section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] The embodiments of the present disclosure provide a posture determination method, device and electronic device, which can realize posture tracking of a target object, and then interact with the target object based on the tracked posture, thereby improving the convenience of interaction.

[0005] In a first aspect, an embodiment of the present disclosure provides a posture determination method, which is applied to a head-mounted device. The posture determination method includes: determining a preset image corresponding to a target image captured by the head-mounted device; wherein the target image includes a target object; determining a first posture of the target object according to the posture corresponding to the preset image, the target image and the preset image; the first posture is a posture in a camera coordinate system; determining a second posture of the target object according to the first posture and the current posture of the head-mounted device.

[0006] In a second aspect, an embodiment of the present disclosure provides a posture determination device, comprising: an image determination unit, used to determine a preset image corresponding to a target image captured by the head-mounted device; wherein the target image includes a target object; a posture determination unit, used to determine a first posture of the target object according to the posture corresponding to the preset image, the target image and the preset image; the first posture is a posture in a camera coordinate system; and the second posture of the target object is determined according to the first posture and the current posture of the head-mounted device.

[0007] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the posture determination method as described in the first aspect.

[0008] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the posture determination method as described in the first aspect.

[0009] The posture determination method, device and electronic device provided by the embodiments of the present disclosure determine the first posture through the posture corresponding to the preset image, the target image and the preset image, and then determine the second posture of the target object in combination with the first posture and the current posture of the head-mounted device. The second posture can be used to track the target object, thereby building a model corresponding to the target object. Therefore, the technical solution can realize the posture tracking of the target object, and then can interact with the target object based on the tracked posture, thereby improving the convenience of interaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0011] Figure 1 is a flow chart of an embodiment of a method for determining a posture according to the present disclosure;

[0012] Figure 2 is an example diagram of another embodiment of the method for determining a posture according to the present disclosure;

[0013] Figure 3A-3B is an exemplary diagram of another embodiment of the method for determining a posture according to the present disclosure;

[0014] Figure 4 is a structural schematic diagram of an embodiment of a posture determination device according to the present disclosure;

[0015] Figure 5 is an exemplary system architecture in which a posture determination method according to an embodiment of the present disclosure can be applied;

[0016] Figure 6 It is a schematic diagram of the basic structure of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0018] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0019] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0020] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0021] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0023] The posture determination solution provided in the embodiments of the present disclosure can be applied to various extended reality scenarios to achieve detection and tracking of target objects.

[0024] In these extended reality scenarios, head-mounted devices are involved, such as VR (Virtual Reality) head-mounted devices and MR (Mixed Reality) head-mounted devices.

[0025] In these extended reality scenarios, the objects in the real scene that need to be located and tracked may be objects that need to be modeled or objects that need to be interacted with. Taking the office scene as an example, keyboards, mice, etc. can all be objects that need to be located and tracked.

[0026] When the user wears the head-mounted device, the relevant objects are detected and located, and based on the detection and location results, an object model that is consistent with the position of the real scene is projected in front of the user's eyes, or a perspective area is provided so that the user can see the object in the real scene through the perspective area; thus, the user can interact accordingly based on the object model. For example, by pressing the corresponding key on the keyboard, the corresponding information can be input.

[0027] In the related art, in the usage scenario of the extended reality head-mounted device, after the user wears the head-mounted device, if the user wants to see the live scene, the user needs to manually turn on the full-screen perspective, or manually open the perspective window, etc.; thus, the interaction convenience is poor.

[0028] Based on this, an embodiment of the present disclosure provides a posture determination scheme, in which posture tracking is achieved based on the posture corresponding to a preset image, combined with the target image and the preset image; based on the tracked posture, interaction with the target object is performed, thereby improving the convenience of interaction.

[0029] Please refer to Figure 1 , which shows a process of an embodiment of a posture determination method according to the present disclosure. The posture determination method can be applied to a head-mounted device. Figure 1 The posture determination method shown includes the following steps:

[0030] Step 101: Determine a preset image corresponding to a target image captured by a head mounted device, wherein the target image includes a target object.

[0031] In some embodiments, the target object can be understood as the object that needs to be tracked currently. For example, in an office scene, the target object is a keyboard, a mouse, etc. In a game scene, the target object is a player, a prop, etc.

[0032] In some embodiments, the preset image is an image in a preset image library. The preset image library may store some original images, which are pre-collected by a device or image acquisition device of the same model and configuration as the current head-mounted device. These original images may correspond to different scenes and contain target objects from various perspectives. In the subsequent application of the preset image library, the most suitable original image may be determined as the preset image corresponding to the target image based on the degree of fit between the current scene and the target objects in the scene corresponding to these original images.

[0033] In some embodiments, multiple preset image libraries may be provided, and these multiple preset image libraries correspond to different target objects. Therefore, in step 101, the preset image library corresponding to the current target object is first determined according to the preset corresponding relationship, and then the target image is matched with the preset image in the corresponding preset image library.

[0034] In other embodiments, when matching the target image with the images in the preset image library, the target image may be matched with multiple original images one by one, and the preset image may be determined based on multiple matching results. Alternatively, a portion of images may be first screened out from multiple preset images, and then the screened portion of images may be matched with the target image. Alternatively, other matching methods may be used to determine the preset image, which is not limited here.

[0035] Step 102, determining the first pose of the target object according to the pose corresponding to the preset image, the target image and the preset image, wherein the first pose is the pose in the camera coordinate system.

[0036] In some embodiments, the process of solving the posture corresponding to the preset image includes: determining the three-dimensional information of the target object, such as length and width data; determining the 3D relationship between the key points of the target object based on the three-dimensional information; and finally, determining the posture of the target object in the preset image using the three-dimensional information and the 3D relationship between the key points.

[0037] In some embodiments, the first pose may be the overall pose of the target object; or may be a set of position coordinates of multiple key points of the target object.

[0038] Furthermore, the first pose of the target object in the target image can be determined by combining the pose of the preset image, the target image and the preset image.

[0039] In some embodiments, the pose data of the original image in the preset image library may include: 2D coordinates and 3D coordinates, wherein the 2D coordinates are the position coordinates of the key points of the target object in the original image, and the 3D coordinates are the 3D coordinates of the key points of the target object relative to the camera coordinate system of the original image, and there is a corresponding relationship between the 2D coordinates and the 3D coordinates. Furthermore, the pose data of the original image can be used to determine the preset image, and then the pose data of the preset image can be used to determine the relevant pose data corresponding to the target image.

[0040] It can be understood that a plurality of original images can be stored in the preset image library, and the pose data of the original images can be calculated in real time during calculation, or the pose data of the original images can be calculated first and stored in association with the plurality of original images.

[0041] In some embodiments, the PNP (Perspective-n-Point, point-to-point) algorithm is used to convert the posture corresponding to the preset image into the first posture of the target image. It can be understood that the PNP algorithm can realize the conversion from 3D points to 2D points. Therefore, the first posture of the target object can be determined based on the posture corresponding to the preset image in combination with the relationship between the target image and the preset image.

[0042] Step 103: Determine a second posture of the target object according to the first posture and the current posture of the head mounted device.

[0043] In some embodiments, the current posture of the head-mounted device is the posture of the head-mounted device in the world coordinate system. Based on this posture and the first posture, the first posture can be converted into the posture of the target object in the current world coordinate system to achieve tracking of the target object.

[0044] In some embodiments, the conversion between the first posture, the current posture and the second posture can refer to the mature technology in the field and will not be described in detail here.

[0045] In some embodiments, the images in the preset image library are pre-configured images. If these images do not contain images corresponding to scenes with dark light or large color temperature changes, it may cause image matching failure, and thus pose tracking failure; or cause image matching errors, and thus pose tracking errors.

[0046] Therefore, as an optional implementation, the preset image includes an image constructed based on the current scene.

[0047] Therefore, further reference Figure 2 , is an example diagram of a posture determination process provided by an embodiment of the present disclosure, in Figure 2 In the process, the input data includes: the current frame binocular image, the previous frame binocular image and the head-mounted device posture of the current frame. Based on the input data, the intermediate processing process includes: the image update process of the image library and the posture solution process.

[0048] Among them, the update process of the image library is based on the matching of multiple frames of binocular images, which involves matching, triangulation, and ICP solution, so that the final preset image is an image constructed based on the current scene.

[0049] And, the pose solving process includes: image matching, external point filtering and pose solving. Among them, there are two types of image matching: one is to match the current frame with the previous frame image, that is, the previous frame image meets the conditions (i.e. Figure 2 The other is to match the current frame with the preset image, that is, the previous frame image does not meet the conditions. In different application scenarios, different matching methods can be used according to specific situations.

[0050] Therefore, assuming that the target image is the current frame image, it is not necessary to perform the matching process of the current frame image with the preset images in the preset image library. In some embodiments, if the number of matches between the previous frame image of the current frame image and the preset images in the preset image library is greater than a certain threshold, the previous frame image can be directly determined as the preset image (i.e., using the optical flow tracking method). Therefore, in addition to the images in the preset image library, the preset image can also be the previous frame image that meets the conditions.

[0051] based on Figure 2 In the posture determination process shown, the preset image in the aforementioned step 101 includes an image constructed based on the current scene.

[0052] In some embodiments, the current scene can be understood as the scene in which the head mounted device is currently located, in which the scene includes the entity of the target object and the entities of other objects.

[0053] Therefore, as an optional implementation, the posture determination method further includes: determining whether the image corresponding to the current scene is included in the preset image library, and if so, performing image matching directly based on the preset image library to determine the preset image. If not, first updating the image in the preset image library, performing image matching based on the updated preset image library to determine the preset image. Thus, it can be ensured that the preset image is an image constructed based on the current scene.

[0054] In some embodiments, the posture determination method further includes: updating a preset image library according to images captured by the head mounted device in the current scene; correspondingly, step 101 includes: determining a preset image corresponding to the target image according to the updated preset image library.

[0055] As an optional implementation, updating a preset image library according to images captured by a head-mounted device in a current scene includes: determining multiple postures based on multiple frames of binocular images captured by the head-mounted device in the current scene; determining a posture transformation relationship between the multiple frames of binocular images and original images in a preset image library based on the multiple postures; and updating the preset image library based on the posture transformation relationship and the multiple frames of binocular images.

[0056] In some embodiments, the head-mounted device is configured with a binocular camera that can capture binocular images; based on multiple frames of binocular images captured by the binocular camera, image matching is performed to determine multiple postures corresponding to the multiple frames of binocular images.

[0057] In some embodiments, the binocular images are matched and triangulated to determine multiple 3D points of the target object, and multiple positions and postures can be determined based on the multiple 3D points. The triangulation technology can refer to mature technologies in the art and will not be described in detail here.

[0058] In some embodiments, the determined plurality of poses may be optimized poses.

[0059] In some embodiments, multiple poses are optimized by subjecting multiple frames of images to observation constraints. It can be understood that poses with higher accuracy are retained among the multiple poses, and poses with lower accuracy are screened out.

[0060] In some embodiments, the original images in the preset image library correspond to postures, that is, the postures of the target objects corresponding to the original images. Based on the postures and the postures calculated based on the binocular images, the posture transformation relationship between the binocular images and the original images can be determined.

[0061] Furthermore, based on the posture transformation relationship, multiple preset images can be determined from the binocular image, and the multiple preset images can be used to replace the corresponding original images. Then, when updating the preset image library, the corresponding original images are replaced with the preset images.

[0062] In some embodiments, based on the posture transformation relationship, if the posture of an original image matches the posture corresponding to the binocular image (the overlap is high), the binocular image can be determined as the preset image corresponding to the original image.

[0063] In some embodiments, the posture transformation relationship is implemented based on ICP (Iterative Closest Point) solution.

[0064] In some embodiments, when determining the posture transformation relationship, cross-validation and RANSAC (Random Sample Consensus, an outlier removal algorithm) can also be used to remove incorrectly associated posture transformation relationships.

[0065] Through the introduction of the aforementioned implementation methods, on the one hand, the posture is determined online in real time by using the matching of binocular images, and the final posture is determined based on the correlation between the postures. On the other hand, based on the determined final posture, the original image in the preset image library is replaced with the real-time image to increase the generalization of the image in the preset image library.

[0066] Furthermore, compared with images in a fixed image library, images constructed based on the current scene can ensure the matching between the target image and the preset image, improve the stable and accurate posture determination, and thus improve the accuracy and stability of object tracking (positioning).

[0067] In some embodiments, the first pose can be understood as a preliminarily calculated pose, which may still have errors due to the characteristics of the target object. For example, when the 2D-3D points of the target object are too concentrated, the pose solution is prone to errors.

[0068] At this time, some constraints can be added to improve the accuracy of the pose. Therefore, in some embodiments, the first pose can also be an optimized pose. The optimization of the first pose is suitable for target objects with relatively concentrated 2D-3D point distribution and outer contour lines, such as keyboards.

[0069] Therefore, in some embodiments, the posture determination method also includes: determining the optimized first posture based on the projection error of the target object and a preset projection error constraint; the projection error includes: point projection error and / or line projection error; thus, step 103 includes: determining the second posture of the target object based on the optimized first posture and the current posture of the head-mounted device.

[0070] In some embodiments, if the accuracy requirement is high, both the point projection error constraint and the line projection error constraint are used. In other embodiments, if the accuracy requirement is not so high, only the point projection error constraint or the line projection error constraint may be used.

[0071] In some embodiments, if the projection error includes: a point projection error and a line projection error, the preset projection error constraint includes: a sum constraint of the point projection error and the line projection error. That is, in the preset projection error constraint, the sum of the point projection error and the line projection error is required to meet certain conditions.

[0072] The point projection error can be determined using mature technologies in the field, which will not be introduced in detail here.

[0073] For the line projection error, as an optional implementation, the determination process includes: determining the target line in the target object; determining the line projection error based on the projection relationship and the detection line; wherein the projection relationship is based on the first pose, and the target line is projected onto the target image to determine, and the detection line is the line detected in the target image.

[0074] In some embodiments, the target line may be an outer contour line of the target object, such as the four sides of a keyboard.

[0075] In some embodiments, the projection relationship may represent a projection relationship between images, and based on the projection relationship, the projection coordinates of corresponding pixel points may be determined.

[0076] Therefore, as an optional implementation, determining the line projection error includes: based on the first pose, projecting the two endpoints of the target line into the target image, and determining the projection coordinates of the two endpoints in the target image based on the projection result; determining the line projection error based on the projection coordinates of the two endpoints in the target image and the detected line.

[0077] In some embodiments, a line projection error is determined based on the projection coordinates of two endpoints in a target image and a detection line, including: determining a line coefficient of the detection line based on the detection line; and determining the line projection error based on the projection coordinates of the two endpoints of the target line in the target image, camera intrinsic parameters and line coefficients.

[0078] In some embodiments, the target line can be represented by two endpoints of the target line, so it is only necessary to determine the projection coordinates of the two endpoints.

[0079] In some embodiments, the line coefficient may be a normalized line coefficient determined based on the coordinates of the two endpoints of the detected line, which may be expressed as: Among them, p d and q d are the pixel coordinates of the two endpoints of the detected target line, and Represents homogeneous coordinate form, that is, normalized coordinate form.

[0080] Furthermore, the line reprojection error can be expressed as: E line =E line (P,T init ,I,K)+E line (Q, T init , I, K), E line (P,T init ,I,K)=I T π(P,T init ,K); where P and Q are the two endpoints of the target line, K is the intrinsic parameter of the camera, and I is the line coefficient.

[0081] Furthermore, the projection error constraint can be expressed as: E = E line +E point , where E point Represents the point projection error.

[0082] In some embodiments, based on the aforementioned projection error constraint, the least squares method is used to continuously optimize the projection error constraint E. When the final projection error constraint E satisfies the corresponding conditions, the pose at this time is the final optimized first pose.

[0083] In some embodiments, the corresponding conditions can be configured according to different application scenarios. For example, the difference between the constraints determined twice meets the preset conditions; another example is that the error constraint determined this time is basically the same as the previous error constraint.

[0084] Further references Figure 3A and Figure 3B , which is an example diagram of the posture determination and posture optimization process provided in an embodiment of the present disclosure.

[0085] exist Figure 3A In the paper, the whole process of posture determination based on posture optimization is covered. Figure 2 Based on the posture determination process shown, a posture optimization process is added.

[0086] exist Figure 3B In the figure, it is the process of pose optimization, which includes: initial pose, line detection, line projection, establishment of reprojection error constraints and output pose.

[0087] Furthermore, the pose optimization process combines point constraints and line constraints to minimize the distance from point to line, reduce pose errors, and achieve pose optimization. In addition, a multi-feature fusion solution is used to increase the robustness of pose solution.

[0088] That is, the projection error of the target object and the preset projection error constraint are used to optimize the initial posture and solve the problem that the initial posture is prone to errors; thereby improving the accuracy of posture determination.

[0089] Further references Figure 4 , as a response to the above Figure 1 The present disclosure provides an embodiment of a posture determination device, and the device embodiment is Figure 1 Corresponding to the embodiment of the posture determination method shown, the device can be specifically applied to various electronic devices.

[0090] like Figure 4 As shown, the posture determination device of this embodiment includes: an image determination unit 401, used to determine a preset image corresponding to a target image captured by the head-mounted device; wherein the target image includes a target object; a posture determination unit 402, used to: determine a first posture of the target object according to the posture corresponding to the preset image, the target image and the preset image; the first posture is the posture in the camera coordinate system; and determine a second posture of the target object according to the first posture and the current posture of the head-mounted device.

[0091] In some embodiments, the preset image includes an image constructed based on the current scene.

[0092] In some embodiments, the image determination unit 401 is further used to: update a preset image library based on images captured by the head-mounted device in the current scene; and determine a preset image corresponding to the target image and a posture corresponding to the preset image based on the updated preset image library.

[0093] In some embodiments, the image determination unit 401 is further used to: determine multiple postures based on multiple frames of binocular images collected by the head-mounted device in the current scene; determine the posture transformation relationship between the multiple frames of binocular images and the original images in the preset image library based on the multiple postures; and update the preset image library based on the posture transformation relationship and the multiple frames of binocular images.

[0094] In some embodiments, the posture determination unit 402 is further used to: determine the optimized first posture based on the projection error of the target object and the preset projection error constraint; the projection error includes: point projection error and / or line projection error; determine the second posture of the target object according to the optimized first posture and the current posture of the head-mounted device. .

[0095] In some embodiments, if the projection error includes: a point projection error and a line projection error, the preset projection error constraint includes: a sum constraint of the point projection error and the line projection error.

[0096] In some embodiments, the process of determining the line projection error includes: determining the target line in the target object; determining the line projection error based on the projection relationship and the detection line; wherein the projection relationship is determined based on the first posture, projecting the target line onto the target image, and the detection line is the line detected in the target image.

[0097] In some embodiments, the posture determination unit 402 is further used to: project the two endpoints of the target line into the target image based on the first posture, and determine the projection coordinates of the two endpoints in the target image based on the projection result; determine the line projection error based on the projection coordinates of the two endpoints in the target image and the detected line.

[0098] In some embodiments, the posture determination unit 402 is further used to: determine the line coefficient based on the coordinates of the two endpoints of the detected line; determine the line projection error based on the projection coordinates of the two endpoints in the target image, the camera intrinsic parameters and the line coefficient.

[0099] Please refer to Figure 5 , Figure 5 An exemplary system architecture is shown in which the posture determination method according to an embodiment of the present disclosure can be applied.

[0100] like Figure 5As shown, the system architecture may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 may be used to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0101] The terminal devices 501, 502, and 503 can interact with the server 505 through the network 504 to receive or send messages, etc. Various client applications, such as web browser applications, search applications, and news information applications, can be installed on the terminal devices 501, 502, and 503. The client applications in the terminal devices 501, 502, and 503 can receive user instructions and perform corresponding functions according to the user instructions, such as adding corresponding information to the information according to the user instructions.

[0102] Terminal devices 501, 502, and 503 can be hardware or software. When terminal devices 501, 502, and 503 are hardware, they can be various electronic devices with display screens and support web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptops and desktop computers, extended reality devices, etc., where extended devices include but are not limited to VR glasses, VR helmets, AR (Augmented Reality) glasses, AR helmets, etc. When terminal devices 501, 502, and 503 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0103] The server 505 may be a server that provides various services, such as receiving information acquisition requests sent by the terminal devices 501, 502, and 503, acquiring display information corresponding to the information acquisition requests in various ways according to the information acquisition requests, and sending relevant data of the display information to the terminal devices 501, 502, and 503.

[0104] It should be noted that the posture determination method provided in the embodiment of the present disclosure can be executed by a terminal device, and accordingly, the posture determination device can be set in the terminal devices 501, 502, and 503. In addition, the posture determination method provided in the embodiment of the present disclosure can also be executed by a server 505, and accordingly, the posture determination device can be set in the server 505.

[0105] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0106] Reference below Figure 6 , which shows an electronic device (eg, Figure 5 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as extended reality devices, mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0107] like Figure 6 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 606 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0108] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0109] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0110] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0111] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0112] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0113] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: determines a preset image corresponding to the target image captured by the head-mounted device; wherein the target image includes a target object; determines a first pose of the target object according to the pose corresponding to the preset image, the target image and the preset image; the first pose is the pose in the camera coordinate system; determines a second pose of the target object according to the first pose and the current pose of the head-mounted device.

[0114] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0115] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0116] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the image determination unit 501 may also be described as a "unit for determining a preset image corresponding to a target image captured by a head-mounted device".

[0117] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0118] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0119] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0120] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0121] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for determining a posture, characterized in that: Applied to a head mounted device, the posture determination method includes: Determine a preset image corresponding to a target image captured by the head mounted device; wherein the target image includes a target object; Determine a first pose of the target object according to the pose corresponding to the preset image, the target image and the preset image; the first pose is a pose in a camera coordinate system; A second posture of the target object is determined according to the first posture and the current posture of the head mounted device.

2. The method for determining a posture according to claim 1, characterized in that: The preset image includes an image constructed based on the current scene.

3. The method for determining a posture according to claim 2, characterized in that: The posture determination method also includes: Update a preset image library according to the images collected by the head mounted device in the current scene; The determining a preset image corresponding to the target image captured by the head mounted device includes: According to the updated preset image library, a preset image corresponding to the target image is determined.

4. The method for determining a position and posture according to claim 3, characterized in that: The updating of the preset image library according to the image collected by the head mounted device in the current scene includes: Determine a plurality of postures based on a plurality of binocular images captured by the head mounted device in the current scene; Based on the multiple postures, determining a posture transformation relationship between the multiple frames of binocular images and the original images in the preset image library; Based on the posture transformation relationship and the multiple frames of binocular images, the preset image library is updated.

5. The method for determining a position and posture according to claim 1, characterized in that: The posture determination method also includes: Determine the optimized first pose based on the projection error of the target object and a preset projection error constraint; the projection error includes: a point projection error and / or a line projection error; The step of determining a second posture of the target object according to the first posture and the current posture of the head mounted device includes: A second posture of the target object is determined according to the optimized first posture and the current posture of the head mounted device.

6. The method for determining the position and posture according to claim 5, characterized in that: If the projection error includes: a point projection error and a line projection error, the preset projection error constraint includes: a sum constraint of the point projection error and the line projection error.

7. The method for determining a position and posture according to claim 5, characterized in that: The process of determining the line projection error includes: determining a target line in the target object; The line projection error is determined based on a projection relationship and a detection line; wherein the projection relationship is determined based on the first posture by projecting the target line onto the target image, and the detection line is a line detected in the target image.

8. The method for determining a position and posture according to claim 7, characterized in that: The determining the line projection error based on the projection relationship and the detection line comprises: Based on the first posture, projecting two endpoints of the target line into the target image, and determining projection coordinates of the two endpoints in the target image based on the projection result; The line projection error is determined based on the projection coordinates of the two endpoints in the target image and the detected line.

9. The method for determining a position and posture according to claim 8, characterized in that: The determining the line projection error based on the projection coordinates of the two endpoints in the target image and the detection line comprises: Determining a line coefficient based on the coordinates of the two endpoints of the detection line; The line projection error is determined based on the projection coordinates of the two endpoints in the target image, the camera intrinsic parameters and the line coefficients.

10. A posture determination device, characterized in that: Applied to a head mounted device, the posture determination device comprises: An image determination unit, configured to determine a preset image corresponding to a target image captured by the head mounted device; wherein the target image includes a target object; A posture determination unit is used to determine a first posture of the target object according to the posture corresponding to the preset image, the target image and the preset image; the first posture is the posture in the camera coordinate system; and the second posture of the target object is determined according to the first posture and the current posture of the head-mounted device.

11. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.

12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.