Parameter adjustment method, device and extended reality XR device

By obtaining target parameters in the XR device and automatically adjusting the focal length or size, the cumbersome operation problem caused by multiple manual adjustments by users is solved, and the convenience of using the device is improved.

CN116055875BActive Publication Date: 2025-09-19VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310087384.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-18
Publication Date
2025-09-19
Estimated Expiration
2043-01-18

AI Technical Summary

Technical Problem

In extended reality (XR) devices, users need to adjust the focal length of the camera device and the size of the shooting area multiple times to match them, which makes the operation cumbersome and time-consuming, affecting the convenience of use.

Method used

The XR device obtains the target size parameters of the target area or the target focal length parameters of the target camera device, determines the adjustment amount based on these parameters, and directly adjusts the corresponding target parameters, avoiding multiple manual adjustments by the user.

Benefits of technology

The process of adjusting focal length and size is simplified, which reduces user operation steps and time, and improves the ease of use of XR devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116055875B_ABST
    Figure CN116055875B_ABST
Patent Text Reader

Abstract

This application discloses a parameter adjustment method, apparatus, and extended reality (XR) device, belonging to the field of terminal technology. The method includes: an XR device acquiring a first parameter; the first parameter including any one of the following: a target size parameter of a target area, a target focal length parameter of a target camera device; the target camera device being configured to acquire posture information of a user within the target area; the XR device determining a target adjustment amount based on the first parameter; the XR device adjusting the target parameter based on the target adjustment amount; if the first parameter includes a target size parameter, the target parameter including a target focal length parameter; if the first parameter includes a target focal length parameter, the target parameter including a target size parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of terminal technology, and specifically relates to a parameter adjustment method, apparatus, and extended reality (XR) device. Background Art

[0002] Typically, a user can set the size of a shooting area (or the focal length of a camera device) in an extended reality (XR) device, and adjust the focal length (or the size) according to the size (or the focal length) so that the adjusted size and focal length match; in this way, the user can adjust the posture of the body in the shooting area so that the camera device can shoot the entire shooting area according to the adjusted focal length to obtain a complete and clear user image, and obtain the user's posture information based on the user image, so that the XR device can perform corresponding operations.

[0003] However, since the user needs to adjust the focal length of the camera device (or the size of the shooting area) multiple times to match the adjusted size and focal length, the user's operation in the process of adjusting the size (or the focal length) is cumbersome and time-consuming, resulting in poor user convenience of XR devices. Summary of the Invention

[0004] The purpose of the embodiments of the present application is to provide a parameter adjustment method, apparatus, XR device, and readable storage medium, which can solve the problem of poor ease of use of XR devices.

[0005] In a first aspect, an embodiment of the present application provides a parameter adjustment method, which includes: an XR device obtains a first parameter; the first parameter includes any one of the following: a target size parameter of a target area, a target focal length parameter of a target camera device; the target camera device is used to obtain posture information of a user in the target area; the XR device determines a target adjustment amount based on the first parameter; the XR device adjusts the target parameter according to the target adjustment amount; when the first parameter includes a target size parameter, the target parameter includes a target focal length parameter; when the first parameter includes a target focal length parameter, the target parameter includes a target size parameter.

[0006] In a second aspect, an embodiment of the present application provides a parameter adjustment device, which includes: an acquisition module, a determination module, and an adjustment module. The acquisition module is used to acquire a first parameter; the first parameter includes any one of the following: a target size parameter of the target area, a target focal length parameter of the target camera device; the target camera device is used to acquire the posture information of the user in the target area. The determination module is used to determine the target adjustment amount based on the first parameter acquired by the acquisition module. The adjustment module is used to adjust the target parameter according to the target adjustment amount determined by the determination module. When the first parameter includes a target size parameter, the target parameter includes a target focal length parameter; when the first parameter includes a target focal length parameter, the target parameter includes a target size parameter.

[0007] In a third aspect, an embodiment of the present application provides an XR device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the method described in the first aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect.

[0011] In an embodiment of the present application, the XR device may first obtain a first parameter, which includes any one of a target size parameter of a target area (used by a target camera device to obtain posture information of a user) and a target focal length parameter of a target camera device, and then determine a target adjustment amount based on the first parameter, so that the XR device may adjust the target parameter according to the target adjustment amount; wherein, in the case where the first parameter includes a target size parameter, the target parameter includes a target focal length parameter; in the case where the first parameter includes a target focal length parameter, the target parameter includes a target size parameter. Since the XR device can first obtain the target size parameter of the target area, and then determine the target adjustment amount based on the target size parameter, and directly adjust the target focal length parameter according to the target adjustment amount, without the user having to adjust the target focal length parameter multiple times, the user's operation in the process of adjusting the target focal length parameter can be simplified and the time consumption can be reduced; or, since the XR device can first obtain the target focal length parameter of the target camera device, and then determine the target adjustment amount based on the target focal length parameter, and directly adjust the target size parameter according to the target adjustment amount, without the user having to adjust the target size parameter multiple times, the user's operation in the process of adjusting the target size parameter can be simplified and the time consumption can be reduced; in this way, the convenience of using the XR device can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is one of the flow charts of the parameter adjustment method provided in the embodiment of the present application;

[0013] Figure 2 This is one of the schematic diagrams of the relationship between the target camera device and the target area provided in the embodiments of the present application;

[0014] Figure 3 This is the second flow chart of the parameter adjustment method provided in the embodiment of the present application;

[0015] Figure 4 This is the second schematic diagram of the relationship between the target camera device and the target area provided in the embodiment of the present application;

[0016] Figure 5 This is the third schematic diagram of the relationship between the target camera device and the target area provided in the embodiment of the present application;

[0017] Figure 6 This is the fourth schematic diagram of the relationship between the target camera device and the target area provided in the embodiment of the present application;

[0018] Figure 7 This is the fifth schematic diagram of the relationship between the target camera device and the target area provided in the embodiment of the present application;

[0019] Figure 8 This is the sixth schematic diagram of the relationship between the target camera device and the target area provided in the embodiment of the present application;

[0020] Figure 9 This is the third flow chart of the parameter adjustment method provided in the embodiment of the present application;

[0021] Figure 10 This is the seventh schematic diagram of the relationship between the target camera device and the target area provided in the embodiment of the present application;

[0022] Figure 11 is a structural diagram of a parameter adjustment device provided in an embodiment of the present application;

[0023] Figure 12 is a schematic structural diagram of an XR device provided in an embodiment of the present application;

[0024] Figure 13 This is a schematic diagram of the hardware structure of the XR device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0026] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0027] The parameter adjustment method, apparatus, XR device, and readable storage medium provided in the embodiments of the present application are described in detail below with reference to specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0028] In the related art, in a scenario where a user uses an XR device, the user can first place one of multiple thermal imagers (for example, two thermal imagers) on one wall of the room, and place the other thermal imager on an adjacent wall. Then, the user can set the size parameters of the safe area (i.e., the area without obstacles) in the room and the focal length parameters of the two thermal imagers on the XR device, and adjust the size parameters and the focal length parameters respectively so that the two thermal imagers can capture high-definition images of the entire safe area, that is, the size parameters and the focal length parameters match; in this way, the user can move to the safe area and adjust the body posture in the safe area so that the two thermal imagers can capture the entire safe area according to the adjusted focal length parameters to obtain a safe and clear user image, and obtain the user's posture information based on the user image, so that the XR device can perform corresponding operations. However, since the user needs to adjust the size parameters of the safety area (or the focal length parameters of the two thermal imagers) multiple times to match the adjusted size parameters and focal length parameters, the user's operation is cumbersome and time-consuming during the process of adjusting the size parameters and focal length parameters.

[0029] However, in an embodiment of the present application, after the user places the two thermal imagers on the adjacent walls of the room, the XR device can directly obtain the size parameters of the safety area (or the focal length parameters of any thermal imager), and determine the adjustment amount based on the size parameters of the safety area (or the focal length parameters of any thermal imager), so that the XR device can directly adjust the focal length parameters of any thermal imager (or the size parameters of the safety area) according to the adjustment amount, without the user having to adjust the focal length parameters of the two thermal imagers (or the size parameters of the safety area) multiple times. Therefore, the user's operation in the process of adjusting the size parameters and focal length parameters can be simplified and time can be reduced.

[0030] Figure 1 FIG. 1 shows a flow chart of a parameter adjustment method provided in an embodiment of the present application. Figure 1 As shown, the parameter adjustment method provided in the embodiment of the present application may include the following steps 101 to 103.

[0031] Step 101: The XR device obtains a first parameter.

[0032] In the embodiment of the present application, the above-mentioned first parameter includes any one of the following: a target size parameter of the target area, a target focal length parameter of the target camera device; the target camera device is used to obtain the posture information of the user in the target area.

[0033] Optionally, in an embodiment of the present application, the XR device may be any one of the following: a virtual reality (VR) device, an augmented reality (AR) device, or a mixed reality (MR) device.

[0034] Optionally, in an embodiment of the present application, the XR device may include multiple camera devices, which can be wirelessly connected to the XR device. Each camera device can specifically be any of the following: a thermal imager, a camera.

[0035] Each of the multiple camera devices can respectively capture a body image of the user in one direction in the target area, so as to obtain corresponding posture information of the user in the one direction based on the body image in the one direction, and further obtain the posture information of the user.

[0036] For example, Figure 2 Schematic diagram showing the relationship between the target area and multiple camera devices of the XR device. Figure 2 As shown, the multiple camera devices include a camera 10 and a camera 11, so that the camera 10 can capture a body image of a user in a target area (e.g., area 12) in one direction (e.g., direction 13) to obtain the corresponding posture information of the user in the direction 13 based on the body image in the direction 13; and the camera 11 can capture a body image of the user in another direction (e.g., direction 14) in the target area (e.g., area 12) to obtain the corresponding posture information of the user in the direction 14 based on the body image in the direction 14 to obtain the posture information of the user.

[0037] It should be noted that, for the description of obtaining the user's posture information based on the body image, reference may be made to the specific description in the relevant technology, which will not be elaborated in detail in the embodiments of the present application.

[0038] In the embodiment of the present application, the target camera device can be any one of the multiple camera devices of the XR device. The target camera device can capture the body image of the user located in the target area to obtain the user's posture information.

[0039] In the embodiment of the present application, the target area is located on the plane (ground) where the user stands in the physical space.

[0040] Optionally, in the embodiment of the present application, the shape of the target area can be any one of the following: rectangle, square, polygon.

[0041] Optionally, in the embodiment of the present application, the target size parameter may specifically be: a length parameter of an edge line of the target area close to the target camera device.

[0042] Optionally, in an embodiment of the present application, when the XR device is in working state, the user can place multiple camera devices of the XR device on different planes of the physical space (the planes are parallel to the edge lines of the target area) and input the XR device so that the XR device can display the setting interface, so that the user can input the "safe area setting" control in the setting interface, so that the XR device can display the "safe area setting" interface, and then the XR device can obtain the first parameter.

[0043] Optionally, in an embodiment of the present application, the XR device may obtain the first parameter based on information input by the user; or, the XR device may obtain the first parameter from information stored in the XR device.

[0044] Specifically, when the first parameter includes a target size parameter, the XR device can obtain the target size parameter based on information input by the user; when the first parameter includes a target focal length parameter, the XR device can obtain the target focal length parameter from information stored in the XR device.

[0045] Step 102: The XR device determines a target adjustment amount based on the first parameter.

[0046] Optionally, in the embodiment of the present application, the target adjustment amount may specifically include any one of the following: a size adjustment amount, a focal length adjustment amount.

[0047] Wherein, when the first parameter includes a target size parameter, the target adjustment amount may include a focal length adjustment amount; when the first parameter includes a target focal length parameter, the target adjustment amount may include a size adjustment amount.

[0048] Optionally, in an embodiment of the present application, the XR device may use a preset algorithm to calculate a target adjustment amount based on the first parameter.

[0049] It should be noted that the description of the preset algorithm will be specifically described in the following embodiments, and will not be repeated in the embodiments of the present application.

[0050] Step 103: The XR device adjusts the target parameters according to the target adjustment amount.

[0051] In the embodiment of the present application, when the first parameter includes a target size parameter, the target parameter includes a target focal length parameter; when the first parameter includes a target focal length parameter, the target parameter includes a target size parameter.

[0052] Optionally, in an embodiment of the present application, the XR device may adjust the target parameter to a target adjustment amount; or, the XR device may reduce (or increase) the target parameter according to the target adjustment amount.

[0053] It can be understood that when the first parameter includes a target size parameter, the target size parameter matches the adjusted target focal length parameter; when the first parameter includes a target focal length parameter, the target focal length parameter matches the adjusted target size parameter.

[0054] In an embodiment of the present application, since different focal length parameters correspond to different viewing angle parameters for the target camera device, the XR device can adjust the target focal length parameter (or target size parameter) according to the target adjustment amount so that the target size parameter (or target focal length parameter) matches the adjusted target focal length parameter (or target size parameter), thereby making the entire area of ​​the target area within the viewing angle range of the target camera device, so that the target camera device can obtain the user's posture information.

[0055] It should be noted that when the XR device includes multiple camera devices, the XR device can perform the above steps 101 to 103 multiple times to adjust the target size parameters of the target area (i.e., the length parameters of multiple edge lines close to multiple camera devices, or adjust the target focal length parameters of multiple camera devices).

[0056] In the parameter adjustment method provided in the embodiment of the present application, the XR device can first obtain a first parameter, where the first parameter includes any one of a target size parameter of a target area (used by a target camera device to obtain posture information of a user) and a target focal length parameter of a target camera device, and then determine a target adjustment amount based on the first parameter, so that the XR device can adjust the target parameter according to the target adjustment amount; wherein, when the first parameter includes a target size parameter, the target parameter includes a target focal length parameter; when the first parameter includes a target focal length parameter, the target parameter includes a target size parameter. Since the XR device can first obtain the target size parameter of the target area, and then determine the target adjustment amount based on the target size parameter, and directly adjust the target focal length parameter according to the target adjustment amount, without the user having to adjust the target focal length parameter multiple times, the user's operation in the process of adjusting the target focal length parameter can be simplified and the time consumption can be reduced; or, since the XR device can first obtain the target focal length parameter of the target camera device, and then determine the target adjustment amount based on the target focal length parameter, and directly adjust the target size parameter according to the target adjustment amount, without the user having to adjust the target size parameter multiple times, the user's operation in the process of adjusting the target size parameter can be simplified and the time consumption can be reduced; in this way, the convenience of using the XR device can be improved.

[0057] The following uses an example in which the first parameter includes different parameters to illustrate how the XR device determines the target adjustment amount.

[0058] Example 1: The first parameter includes the target size parameter

[0059] Optionally, in an embodiment of the present application, the first parameter includes a target size parameter, which includes a length parameter of a first edge line; the first edge line is: an edge line of the target area close to the target camera device; the target adjustment amount is a target focal length adjustment amount. Specifically, in combination Figure 1 ,like Figure 3 As shown, the above step 102 can be specifically implemented through the following steps 102a and 102b.

[0060] Step 102a: The XR device determines a target viewing angle parameter of the target camera device according to the first length parameter.

[0061] In an embodiment of the present application, when the length parameter of the first edge line is less than or equal to the preset length parameter, the first length parameter is the length parameter of the first edge line; when the length parameter of the first edge line is greater than the preset length parameter, the first length parameter is the preset length parameter.

[0062] Specifically, the preset length parameter may be a maximum length parameter supported by the XR device.

[0063] Specifically, the XR device may use a preset algorithm to calculate the target viewing angle parameter according to the first length parameter.

[0064] The following uses different situations as examples to illustrate how the XR device calculates the target viewing angle parameter based on the first length parameter.

[0065] Case 1: The target area is located at the intersection of the viewing angle bisectors of multiple cameras of the XR device.

[0066] In this case, if Figure 4 As shown, the multiple camera devices of the XR device include two camera devices (e.g., a first camera device 15 and a second camera device 16), and the center point 171 of the target area (e.g., area 17) is located at the intersection of the angle bisectors of the viewing angles of the first camera device 15 and the second camera device 16 (e.g., the angle bisector 151 and the angle bisector 161).

[0067] Optionally, in an embodiment of the present application, the first parameter further includes a fifth distance parameter. The fifth distance parameter is a distance parameter between the first plane and the first edge line; the first plane is a plane parallel to the first edge line in the plane where the target camera device is located in physical space. Thus, the XR device can use a first preset algorithm to calculate the target viewing angle parameter based on the first length parameter and the fifth distance parameter.

[0068] Specifically, the fifth distance parameter may be a parameter input by the user.

[0069] For example, in combination Figure 4 , assuming that the target camera device is the first camera device 15, at this time, the fifth distance parameter (for example, d2) is: the distance parameter between the first plane (for example, plane 17) and the first edge line (for example, edge line 18); the first plane (that is, plane 17) is: the plane in which the target camera device (that is, the first camera device 15) is located in the physical space, and is parallel to the first edge line (that is, edge line 18).

[0070] Thus, the XR device can use a first preset algorithm to calculate the target viewing angle parameter based on the first length parameter (e.g., the length parameter of the first edge line (i.e., edge line 18), i.e., X) and the fifth distance parameter. The first preset algorithm can be specifically:

[0071]

[0072] Here, A is the target viewing angle parameter, X is the length parameter of the first edge line, and d2 is the fifth distance parameter.

[0073] Again illustratively, in combination Figure 4 , assuming that the target camera device is the second camera device 16, at this time, the fifth distance parameter (for example, d1) is: the distance parameter between the first plane (for example, plane 19) and the first edge line (for example, edge line 20); the first plane (that is, plane 19) is: the plane in the physical space where the target camera device (that is, the second camera device 16) is located, and is parallel to the first edge line (that is, edge line 20).

[0074] Thus, the XR device can use a first preset algorithm to calculate the target viewing angle parameter based on the first length parameter (e.g., the length parameter of the first edge line (i.e., edge line 20), i.e., Y) and the fifth distance parameter. The first preset algorithm can be specifically:

[0075]

[0076] Here, B is the target viewing angle parameter, Y is the length parameter of the first edge line, and d1 is the fifth distance parameter.

[0077] Case 2: The target area is not located at the intersection of the viewing angle bisectors of multiple cameras of the XR device.

[0078] In this case, if Figures 5 to 8 As shown, the multiple camera devices of the XR device include two camera devices (for example, a first camera device 15 and a second camera device 16), and the center point of the target area (for example, area 17) is not located at the intersection of the viewing angle bisectors of the first camera device 15 and the second camera device 16.

[0079] Optionally, in an embodiment of the present application, the first parameter further includes a first distance parameter, a second distance parameter, and a third distance parameter; the first distance parameter is the distance parameter between the first plane and the first edge line; the first plane is the plane parallel to the first edge line in the plane where the target imaging device is located in physical space; the second distance parameter is the distance parameter between the second plane and the target imaging device; the second plane is perpendicular to the first plane; the third distance parameter is the distance parameter between the second plane and the second edge line; the second edge line is the edge line of the target area adjacent to the first edge line. Specifically, step 102a can be implemented by any one of steps 102a1, 102a2, and 102a3.

[0080] Step 102a1: When the second distance parameter is greater than the third distance parameter, if the second parameter matches the first length parameter, the XR device calculates the target viewing angle parameter based on the first length parameter and the first distance parameter.

[0081] Specifically, the first distance parameter, the second distance parameter, and the third distance parameter may be parameters input by a user.

[0082] In the embodiment of the present application, the second parameter is determined according to the difference between the second distance parameter and the third distance parameter.

[0083] Specifically, the parameter value of the second parameter is the difference between the second distance parameter and the third distance parameter.

[0084] Specifically, in an embodiment of the present application, the XR device may use a second preset algorithm to calculate a target viewing angle parameter based on the first length parameter and the first distance parameter.

[0085] For example, in combination Figure 5 Assuming that the target camera device is the first camera device 15, the first distance parameter (e.g., d3) is: the distance parameter between the first plane (e.g., plane 21) and the first edge line (e.g., edge line 22); the first plane (i.e., plane 21) is: the plane parallel to the first edge line (i.e., edge line 22) in the plane where the target camera device (i.e., the first camera device 15) is located in the physical space. The second distance parameter is (e.g., d4): the distance parameter between the second plane (e.g., plane 23) and the target camera device (i.e., the first camera device 15); the second plane (i.e., plane 23) is perpendicular to the first plane (i.e., plane 21). The third distance parameter (e.g., d5) is: the distance parameter between the second plane (i.e., plane 23) and the second edge line (e.g., edge line 24); the second edge line (i.e., edge line 24) is: the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 22).

[0086] Thus, when the second distance parameter (i.e., d4) is greater than the third distance parameter (i.e., d5), if the second parameter (i.e., d4-d5) matches (e.g., is the same as) the first length parameter (e.g., the length parameter X of the first edge line (i.e., edge line 22), the XR device can use a second preset algorithm to calculate the target viewing angle parameter based on the length parameter of the first edge line and the first distance parameter. The second preset algorithm can specifically be:

[0087]

[0088] Wherein, A is the target viewing angle parameter, X is the length parameter of the first edge line, and d3 is the first distance parameter.

[0089] Again illustratively, in combination Figure 5 Assuming that the target camera device is the second camera device 16, the first distance parameter (e.g., d5) is the distance parameter between the first plane (e.g., plane 23) and the first edge line (e.g., edge line 24); the first plane (i.e., plane 23) is the plane parallel to the first edge line (i.e., edge line 24) in the plane where the target camera device (i.e., second camera device 16) is located in the physical space. The second distance parameter is (e.g., d6) the distance parameter between the second plane (e.g., plane 21) and the target camera device (i.e., second camera device 16); the second plane (i.e., plane 21) is perpendicular to the first plane (i.e., plane 23). The third distance parameter (e.g., d3) is the distance parameter between the second plane (i.e., plane 21) and the second edge line (e.g., edge line 22); the second edge line (i.e., edge line 22) is the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 24).

[0090] Thus, when the second distance parameter (i.e., d6) is greater than the third distance parameter (i.e., d3), if the second parameter (i.e., d6-d3) matches (e.g., is the same as) the first length parameter (e.g., the length parameter Y of the first edge line (i.e., edge line 24), the XR device can use a second preset algorithm to calculate the target viewing angle parameter based on the length parameter of the first edge line and the first distance parameter. The second preset algorithm can specifically be:

[0091]

[0092] Wherein, B is the target viewing angle parameter, Y is the length parameter of the first edge line, and d5 is the first distance parameter.

[0093] Thus, it can be seen that the XR device can accurately calculate the target viewing angle parameter based on the first length parameter and the first distance parameter when the second distance parameter is greater than the third distance parameter and the second parameter matches the first length parameter.

[0094] Step 102a2: When the second distance parameter is greater than the third distance parameter, if the second parameter does not match the first length parameter, the XR device calculates the target viewing angle parameter based on the first length parameter, the first distance parameter, the second distance parameter, and the third distance parameter.

[0095] In the embodiment of the present application, the second parameter is determined according to the difference between the second distance parameter and the third distance parameter.

[0096] Specifically, in a possible implementation of an embodiment of the present application, if the second parameter is less than the first length parameter, the XR device can adopt a third preset algorithm to calculate the target viewing angle parameter based on the first length parameter, the first distance parameter, the second distance parameter and the third distance parameter.

[0097] For example, in combination Figure 6 Assuming that the target imaging device is the first imaging device 15, the first distance parameter (e.g., d3) is the distance parameter between the first plane (e.g., plane 25) and the first edge line (e.g., edge line 26); the first plane (i.e., plane 25) is the plane parallel to the first edge line (i.e., edge line 26) in the plane where the target imaging device (i.e., first imaging device 15) is located in physical space. The second distance parameter is (e.g., d4) the distance parameter between the second plane (e.g., plane 27) and the target imaging device (i.e., first imaging device 15); the second plane (i.e., plane 27) is perpendicular to the first plane (i.e., plane 25). The third distance parameter (e.g., d5) is the distance parameter between the second plane (i.e., plane 27) and the second edge line (e.g., edge line 28); the second edge line (i.e., edge line 28) is the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 26).

[0098] Thus, when the second distance parameter (i.e., d4) is greater than the third distance parameter (i.e., d5), if the second parameter (d4-d5) is less than the first length parameter (e.g., the length parameter of the first edge line (i.e., edge line 26), i.e., X), the XR device can use a third preset algorithm to calculate the target viewing angle parameter based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, and the third distance parameter. The third preset algorithm can be specifically:

[0099]

[0100] Wherein, A is the target viewing angle parameter, X is the length parameter of the first edge line, d4 is the second distance parameter, d5 is the third distance parameter, and d3 is the first distance parameter.

[0101] Again illustratively, in combination Figure 6 Assuming that the target imaging device is the second imaging device 16, the first distance parameter (e.g., d5) is the distance parameter between a first plane (e.g., plane 27) and a first edge line (e.g., edge line 28). The first plane (i.e., plane 27) is a plane parallel to the first edge line (i.e., edge line 28) in the plane where the target imaging device (i.e., second imaging device 16) is located in physical space. The second distance parameter is (e.g., d6) the distance parameter between a second plane (e.g., plane 25) and the target imaging device (i.e., second imaging device 16). The second plane (i.e., plane 25) is perpendicular to the first plane (i.e., plane 27). The third distance parameter (e.g., d3) is the distance parameter between the second plane (i.e., plane 25) and a second edge line (e.g., edge line 26). The second edge line (i.e., edge line 26) is the edge line of the target region (e.g., region 17) adjacent to the first edge line (i.e., edge line 28).

[0102] Thus, when the second distance parameter (i.e., d6) is greater than the third distance parameter (i.e., d3), if the second parameter (d6-d3) is less than the first length parameter (e.g., the length parameter of the first edge line (i.e., edge line 28), i.e., X), the XR device can use a third preset algorithm to calculate the target viewing angle parameter based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, and the third distance parameter. The third preset algorithm can specifically be:

[0103] Wherein, B is the target viewing angle parameter, Y is the length parameter of the first edge line, d6 is the second distance parameter, d3 is the third distance parameter, and d5 is the first distance parameter.

[0104] Specifically, in another possible implementation of the embodiment of the present application, if the second parameter is greater than the first length parameter, the XR device can adopt a fourth preset algorithm to calculate the target viewing angle parameter based on the first length parameter, the first distance parameter, the second distance parameter and the third distance parameter.

[0105] For example, in combination Figure 7Assuming that the target imaging device is the first imaging device 15, the first distance parameter (e.g., d3) is the distance parameter between the first plane (e.g., plane 29) and the first edge line (e.g., edge line 30); the first plane (i.e., plane 29) is the plane parallel to the first edge line (i.e., edge line 30) in the plane where the target imaging device (i.e., first imaging device 15) is located in the physical space. The second distance parameter is (e.g., d4) the distance parameter between the second plane (e.g., plane 31) and the target imaging device (i.e., first imaging device 15); the second plane (i.e., plane 31) is perpendicular to the first plane (i.e., plane 29). The third distance parameter (e.g., d5) is the distance parameter between the second plane (i.e., plane 31) and the second edge line (e.g., edge line 32); the second edge line (i.e., edge line 32) is the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 30).

[0106] Thus, when the second distance parameter (i.e., d4) is greater than the third distance parameter (i.e., d5), if the second parameter (d4-d5) is greater than the first length parameter (e.g., the length parameter of the first edge line (i.e., edge line 30), i.e., X), the XR device can use a fourth preset algorithm to calculate the target viewing angle parameter based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, and the third distance parameter. The fourth preset algorithm can be specifically:

[0107]

[0108] Wherein, A is the target viewing angle parameter, X is the length parameter of the first edge line, d4 is the second distance parameter, d5 is the third distance parameter, and d3 is the first distance parameter.

[0109] Again illustratively, in combination Figure 7 Assuming that the target camera device is the second camera device 16, the first distance parameter (e.g., d5) is the distance parameter between the first plane (e.g., plane 31) and the first edge line (e.g., edge line 32); the first plane (i.e., plane 31) is the plane parallel to the first edge line (i.e., edge line 32) in the plane where the target camera device (i.e., second camera device 16) is located in the physical space. The second distance parameter is (e.g., d6) the distance parameter between the second plane (e.g., plane 29) and the target camera device (i.e., second camera device 16); the second plane (i.e., plane 29) is perpendicular to the first plane (i.e., plane 31). The third distance parameter (e.g., d3) is the distance parameter between the second plane (i.e., plane 29) and the second edge line (e.g., edge line 30); the second edge line (i.e., edge line 30) is the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 32).

[0110] Thus, when the second distance parameter (i.e., d6) is greater than the third distance parameter (i.e., d3), if the second parameter (d6-d3) is greater than the first length parameter (e.g., the length parameter of the first edge line (i.e., edge line 32), i.e., Y), the XR device can use a fourth preset algorithm to calculate the target viewing angle parameter based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, and the third distance parameter. The fourth preset algorithm can be specifically:

[0111]

[0112] Wherein, B is the target viewing angle parameter, Y is the length parameter of the first edge line, d6 is the second distance parameter, d3 is the third distance parameter, and d5 is the first distance parameter.

[0113] It can be seen that the XR device can accurately calculate the target viewing angle parameter based on the first length parameter, the first distance parameter, the second distance parameter and the third distance parameter when the second distance parameter is greater than the third distance parameter and the second parameter does not match the first length parameter.

[0114] Step 102a3: When the second distance parameter is less than or equal to the third distance parameter, the XR device calculates the target viewing angle parameter according to the first length parameter, the first distance parameter, the second distance parameter, and the third distance parameter.

[0115] Specifically, in an embodiment of the present application, the XR device can adopt the fifth preset algorithm to calculate the target viewing angle parameter based on the first length parameter, the first distance parameter, the second distance parameter and the third distance parameter.

[0116] For example, in combination Figure 8 Assuming that the target imaging device is the first imaging device 15, the first distance parameter (e.g., d3) is the distance parameter between the first plane (e.g., plane 33) and the first edge line (e.g., edge line 34); the first plane (i.e., plane 33) is the plane parallel to the first edge line (i.e., edge line 34) in the plane where the target imaging device (i.e., first imaging device 15) is located in the physical space. The second distance parameter is (e.g., d4) the distance parameter between the second plane (e.g., plane 35) and the target imaging device (i.e., first imaging device 15); the second plane (i.e., plane 35) is perpendicular to the first plane (i.e., plane 33). The third distance parameter (e.g., d5) is the distance parameter between the second plane (i.e., plane 35) and the second edge line (e.g., edge line 36); the second edge line (i.e., edge line 36) is the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 34).

[0117] Thus, when the second distance parameter (i.e., d4) is less than or equal to the third distance parameter (i.e., d5), the XR device may use a fifth preset algorithm to calculate the target viewing angle parameter based on the first length parameter (e.g., the length parameter of the first edge line (e.g., edge line 34), i.e., X), the first distance parameter, the second distance parameter, and the third distance parameter. The fifth preset algorithm may specifically be:

[0118]

[0119] Wherein, A is the target viewing angle parameter, X is the length parameter of the first edge line, d4 is the second distance parameter, d5 is the third distance parameter, and d3 is the first distance parameter.

[0120] Again illustratively, in combination Figure 8 Assuming that the target imaging device is the second imaging device 16, the first distance parameter (e.g., d5) is the distance parameter between the first plane (e.g., plane 35) and the first edge line (e.g., edge line 36); the first plane (i.e., plane 35) is the plane parallel to the first edge line (i.e., edge line 36) in the plane where the target imaging device (i.e., second imaging device 16) is located in physical space. The second distance parameter is (e.g., d6) the distance parameter between the second plane (e.g., plane 33) and the target imaging device (i.e., second imaging device 16); the second plane (i.e., plane 33) is perpendicular to the first plane (i.e., plane 35). The third distance parameter (e.g., d3) is the distance parameter between the second plane (i.e., plane 33) and the second edge line (e.g., edge line 34); the second edge line (i.e., edge line 34) is the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 36).

[0121] Thus, when the second distance parameter (i.e., d6) is less than or equal to the third distance parameter (i.e., d3), the XR device may use a fifth preset algorithm to calculate the target viewing angle parameter based on the first length parameter (e.g., the length parameter of the first edge line (e.g., edge line 36), i.e., Y), the first distance parameter, the second distance parameter, and the third distance parameter. The fifth preset algorithm may specifically be:

[0122]

[0123] Wherein, B is the target viewing angle parameter, Y is the length parameter of the first edge line, d6 is the second distance parameter, d3 is the third distance parameter, and d5 is the first distance parameter.

[0124] As can be seen, the XR device can accurately calculate the target viewing angle parameter based on the first length parameter, the first distance parameter, the second distance parameter and the third distance parameter when the second distance parameter is less than or equal to the third distance parameter.

[0125] Step 102b: The XR device determines a target focal length adjustment amount based on the first viewing angle parameter.

[0126] In the embodiment of the present application, the first viewing angle parameter is any one of the following: a target viewing angle parameter, a preset viewing angle parameter.

[0127] Specifically, the preset viewing angle parameter may be a maximum viewing angle parameter supported by the XR device.

[0128] Specifically, when the target viewing angle parameter is less than or equal to the preset viewing angle parameter, the first viewing angle parameter is the target viewing angle parameter; when the target viewing angle parameter is greater than the preset viewing angle parameter, the first viewing angle parameter is the preset viewing angle parameter.

[0129] Specifically, the XR device can determine a target focal length adjustment amount corresponding to the first viewing angle parameter based on a target correspondence relationship, wherein the target correspondence relationship is a correspondence relationship between the camera viewing angle and the focal length, and the target correspondence relationship includes at least one correspondence relationship.

[0130] Optionally, in the embodiment of the present application, the above step 102b can be specifically implemented through the following step 102b1.

[0131] Step 102b1: The XR device uses N corresponding relationships to determine the target focal length adjustment amount according to the first viewing angle parameter.

[0132] In the embodiment of the present application, each of the above N corresponding relationships is a corresponding relationship between a viewing angle parameter and a focal length adjustment amount, and N is a positive integer.

[0133] It can be understood that the N corresponding relationships are corresponding relationships in the target corresponding relationships.

[0134] Specifically, when the target camera device is a camera device with continuously adjustable focal length parameters, the XR device can directly use N corresponding relationships to determine the target focal length adjustment amount corresponding to the first viewing angle parameter.

[0135] Among them, the XR device can first determine a viewing angle parameter that matches (for example, is the same as) the first viewing angle parameter from the N viewing angle parameters of the N corresponding relationships, and then determine a focal length adjustment amount corresponding to the viewing angle parameter as the target focal length adjustment amount.

[0136] Specifically, in the case where the target camera device is a camera device with non-continuously adjustable focal length parameters, the above step 102b1 can be specifically implemented through the following steps 102b1a and 102b1b.

[0137] Step 102b1a: The XR device determines a maximum second viewing angle parameter from the M viewing angle parameters based on the first viewing angle parameter.

[0138] In the embodiment of the present application, the above-mentioned M viewing angle parameters are: the viewing angle parameters of the N corresponding relationships, which are smaller than the first viewing angle parameter, and M is a positive integer less than or equal to N.

[0139] Specifically, the XR device may respectively compare the first viewing angle parameter with each of the N viewing angle parameters to determine M viewing angle parameters from the N viewing angle parameters, thereby determining the second viewing angle parameter from the M viewing angle parameters.

[0140] Step 102b1b: The XR device determines the focal length adjustment amount corresponding to the second viewing angle parameter as the target focal length adjustment amount.

[0141] It can be seen that in the case where the target camera device is a camera device with non-continuously adjustable focal length parameters, the XR device can first determine the second viewing angle parameter, and then determine the focal length adjustment amount corresponding to the second viewing angle parameter as the target focal length adjustment amount. Therefore, it can avoid the situation where the target camera device cannot adjust the target focal length parameter according to the target focal length adjustment amount. In this way, the success rate of the target camera device adjusting the target focal length parameter can be improved.

[0142] Optionally, in an embodiment of the present application, the first parameter further includes a first distance parameter, a second distance parameter, and a third distance parameter; the first distance parameter is the distance parameter between the first plane and the first edge line; the first plane is the plane in the physical space where the target imaging device is located and parallel to the first edge line; the second distance parameter is the distance parameter between the second plane and the target imaging device; the second plane is perpendicular to the first plane; the third distance parameter is the distance parameter between the second plane and the second edge line; the second edge line is the edge line of the target area adjacent to the first edge line. Specifically, after step 102b1b above, the parameter adjustment method provided in an embodiment of the present application may further include the following steps 201 and 202.

[0143] Step 201: The XR device calculates a second adjustment amount according to a length parameter of a first edge line, a first distance parameter, a second distance parameter, a third distance parameter, a first viewing angle parameter, and a second viewing angle parameter.

[0144] Specifically, the second adjustment amount may include a first sub-adjustment amount and a second sub-adjustment amount, so that the XR device can adopt a first target algorithm to calculate the first sub-adjustment amount based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, the third distance parameter, the first viewing angle parameter and the second viewing angle parameter, and adopt a second target algorithm to calculate the second sub-adjustment amount based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, the third distance parameter, the first viewing angle parameter and the second viewing angle parameter.

[0145] For example, in combination Figure 8 Assuming that the target imaging device is the first imaging device 15, the first distance parameter (e.g., d3) is the distance parameter between the first plane (e.g., plane 33) and the first edge line (e.g., edge line 34); the first plane (i.e., plane 33) is the plane parallel to the first edge line (i.e., edge line 34) in the plane where the target imaging device (i.e., first imaging device 15) is located in the physical space. The second distance parameter is (e.g., d4) the distance parameter between the second plane (e.g., plane 35) and the target imaging device (i.e., first imaging device 15); the second plane (i.e., plane 35) is perpendicular to the first plane (i.e., plane 33). The third distance parameter (e.g., d5) is the distance parameter between the second plane (i.e., plane 35) and the second edge line (e.g., edge line 36); the second edge line (i.e., edge line 36) is the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 34).

[0146] Therefore, the XR device can use a first target algorithm to calculate the first sub-adjustment amount based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, the third distance parameter, the first viewing angle parameter, and the second viewing angle parameter. The first target algorithm can be specifically:

[0147]

[0148] Wherein, X2 is the first sub-adjustment amount, d4 is the second distance parameter, d5 is the third distance parameter, d3 is the first distance parameter, A is the first viewing angle parameter, and A1 is the second viewing angle parameter.

[0149] The XR device may use a second target algorithm to calculate the second sub-adjustment amount based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, the third distance parameter, the first viewing angle parameter, and the second viewing angle parameter. The second target algorithm may be specifically:

[0150]

[0151] Wherein, X3 is the second sub-adjustment amount, d4 is the second distance parameter, d5 is the third distance parameter, d3 is the first distance parameter, A is the first viewing angle parameter, and A1 is the second viewing angle parameter.

[0152] Step 202: The XR device reduces the length parameter of the first edge line according to the second adjustment amount.

[0153] Specifically, the XR device may use a first sub-adjustment amount to reduce one end of the first edge line, and use a second sub-adjustment amount to reduce the other end of the first edge line, so as to reduce the length parameter of the first edge line.

[0154] For example, Figure 8 As shown, the XR device can use the first sub-adjustment amount X2 to reduce one end of the first edge line (for example, the edge line 34) (for example, the end close to the plane 35), and use the second sub-adjustment amount X3 to reduce the other end of the first edge line (that is, the edge line 34) (for example, the end away from the plane 35) to reduce the length parameter of the first edge line.

[0155] It can be seen that after the XR device determines the focal length adjustment amount corresponding to the smaller viewing angle parameter as the target focal length adjustment amount, the XR device can adjust the length parameter of the first edge line according to the calculated second adjustment amount to reduce the size parameter of the target area. Therefore, it can avoid the situation where the target camera device can only shoot part of the target area. In this way, the probability of obtaining the user's posture information can be increased.

[0156] Optionally, in the embodiment of the present application, the first viewing angle parameter is a preset viewing angle parameter. Specifically, after the above step 102a, the parameter adjustment method provided in the embodiment of the present application may further include the following steps 301 and 302.

[0157] Step 301: The XR device calculates a first adjustment amount based on a length parameter of a first edge line, a first distance parameter, a second distance parameter, a third distance parameter, a target viewing angle parameter, and a preset viewing angle parameter.

[0158] It can be understood that, in this embodiment, the target viewing angle parameter is greater than the preset viewing angle parameter.

[0159] In an embodiment of the present application, the above-mentioned first distance parameter is: the distance parameter between the first plane and the first edge line; the first plane is: the plane parallel to the first edge line in the plane where the target camera device is located in the physical space; the above-mentioned second distance parameter is: the distance parameter between the second plane and the target camera device; the second plane is perpendicular to the first plane; the above-mentioned third distance parameter is: the distance parameter between the second plane and the second edge line; the second edge line is: the edge line of the target area adjacent to the first edge line.

[0160] Specifically, the first adjustment amount may include a third sub-adjustment amount and a fourth sub-adjustment amount, so that the XR device can adopt a first target algorithm to calculate the third sub-adjustment amount based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, the third distance parameter, the target viewing angle parameter and the preset viewing angle parameter, and adopt a second target algorithm to calculate the fourth sub-adjustment amount based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, the third distance parameter, the target viewing angle parameter and the preset viewing angle parameter.

[0161] It should be noted that, for the description of the first target algorithm and the second target algorithm, reference can be made to the specific description in the above embodiments, and the embodiments of the present application will not be repeated here.

[0162] Step 302: The XR device reduces the length parameter of the first edge line according to the first adjustment amount.

[0163] Specifically, the XR device may use the third sub-adjustment amount to reduce one end of the first edge line, and use the fourth sub-adjustment amount to reduce the other end of the first edge line, so as to reduce the length parameter of the first edge line.

[0164] It can be seen that, since when the target viewing angle parameter is greater than the preset viewing angle parameter, the XR device will determine the focal length adjustment amount corresponding to the preset viewing angle parameter (i.e., the smaller viewing angle parameter) as the target focal length adjustment amount, the XR device can reduce the length parameter of the first edge line according to the calculated first adjustment amount to reduce the size parameter of the target area. Therefore, it can avoid the situation where the target camera device can only shoot part of the target area, thereby increasing the probability of obtaining the user's posture information.

[0165] Of course, in order to further avoid the situation where the target camera device can only shoot a part of the target area, the XR device can also control the target camera device to rotate, which will be explained with an example below.

[0166] Optionally, in an embodiment of the present application, the first parameter further includes a first distance parameter, a second distance parameter, and a third distance parameter; the first distance parameter is the distance parameter between the first plane and the first edge line; the first plane is the plane parallel to the first edge line in the plane where the target camera device is located in physical space; the second distance parameter is the distance parameter between the second plane and the target camera device; the second plane is perpendicular to the first plane; the third distance parameter is the distance parameter between the second plane and the second edge line; the second edge line is the edge line of the target area adjacent to the first edge line. Specifically, after step 102a above, the parameter adjustment method provided in an embodiment of the present application may further include the following steps 401 and 402.

[0167] Step 401: The XR device calculates a target angle parameter based on a first viewing angle parameter, a first distance parameter, a second distance parameter, and a third distance parameter.

[0168] Specifically, when the second distance parameter is greater than the third distance parameter, the XR device may adopt a third target algorithm to calculate the target angle parameter according to the first viewing angle parameter, the first distance parameter, the second distance parameter, and the third distance parameter.

[0169] For example, in combination Figure 5 Assuming that the target camera device is the first camera device 15, the first distance parameter (e.g., d3) is: the distance parameter between the first plane (e.g., plane 21) and the first edge line (e.g., edge line 22); the first plane (i.e., plane 21) is: the plane parallel to the first edge line (i.e., edge line 22) in the plane where the target camera device (i.e., the first camera device 15) is located in the physical space. The second distance parameter is (e.g., d4): the distance parameter between the second plane (e.g., plane 23) and the target camera device (i.e., the first camera device 15); the second plane (i.e., plane 23) is perpendicular to the first plane (i.e., plane 21). The third distance parameter (e.g., d5) is: the distance parameter between the second plane (i.e., plane 23) and the second edge line (e.g., edge line 24); the second edge line (i.e., edge line 24) is: the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 22).

[0170] Therefore, when the second distance parameter (i.e., d4) is greater than the third distance parameter (i.e., d5), the XR device can use a third target algorithm to calculate the target angle parameter based on the first viewing angle parameter, the first distance parameter, the second distance parameter, and the third distance parameter. The third target algorithm can be specifically:

[0171]

[0172] Wherein, A' is the target angle parameter, A is the first viewing angle parameter, d4 is the second distance parameter, d5 is the third distance parameter, and d3 is the first distance parameter.

[0173] In this example, if A' is greater than 0, the XR device needs to control the first camera device 15 to the left (ie Figure 5 If A' is less than 0, the XR device needs to control the first camera device 15 to the right (ie Figure 5 Rotate A' in the clockwise direction).

[0174] Again illustratively, in combination Figure 5Assuming that the target camera device is the second camera device 16, the first distance parameter (e.g., d5) is the distance parameter between the first plane (e.g., plane 23) and the first edge line (e.g., edge line 24); the first plane (i.e., plane 23) is the plane parallel to the first edge line (i.e., edge line 24) in the plane where the target camera device (i.e., second camera device 16) is located in the physical space. The second distance parameter is (e.g., d6) the distance parameter between the second plane (e.g., plane 21) and the target camera device (i.e., second camera device 16); the second plane (i.e., plane 21) is perpendicular to the first plane (i.e., plane 23). The third distance parameter (e.g., d3) is the distance parameter between the second plane (i.e., plane 21) and the second edge line (e.g., edge line 22); the second edge line (i.e., edge line 22) is the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 24).

[0175] Therefore, when the second distance parameter (i.e., d6) is greater than the third distance parameter (i.e., d3), the XR device can use a third target algorithm to calculate the target angle parameter based on the first viewing angle parameter, the first distance parameter, the second distance parameter, and the third distance parameter. The third target algorithm can be specifically:

[0176]

[0177] Wherein, B' is the target angle parameter, B is the first viewing angle parameter, d6 is the second distance parameter, d3 is the third distance parameter, and d5 is the first distance parameter.

[0178] In this example, if B' is greater than 0, the XR device needs to control the second camera device 16 to move upward (ie Figure 5 If B' is less than 0, the XR device needs to control the second camera 16 to move downward (ie Figure 5 Rotate B' in the counterclockwise direction).

[0179] Specifically, when the second distance parameter is less than or equal to the third distance parameter, the XR device may adopt a fourth target algorithm to calculate the target angle parameter according to the first viewing angle parameter, the first distance parameter, the second distance parameter, and the third distance parameter.

[0180] For example, in combination Figure 8Assuming that the target imaging device is the first imaging device 15, the first distance parameter (e.g., d3) is the distance parameter between the first plane (e.g., plane 33) and the first edge line (e.g., edge line 34); the first plane (i.e., plane 33) is the plane parallel to the first edge line (i.e., edge line 34) in the plane where the target imaging device (i.e., first imaging device 15) is located in the physical space. The second distance parameter is (e.g., d4) the distance parameter between the second plane (e.g., plane 35) and the target imaging device (i.e., first imaging device 15); the second plane (i.e., plane 35) is perpendicular to the first plane (i.e., plane 33). The third distance parameter (e.g., d5) is the distance parameter between the second plane (i.e., plane 35) and the second edge line (e.g., edge line 36); the second edge line (i.e., edge line 36) is the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 34).

[0181] Thus, when the second distance parameter (i.e., d4) is less than or equal to the third distance parameter (i.e., d5), the XR device may use a fourth target algorithm to calculate the target angle parameter based on the first viewing angle parameter, the first distance parameter, the second distance parameter, and the third distance parameter. The fourth target algorithm may specifically be:

[0182]

[0183] Wherein, A' is the target angle parameter, A is the first viewing angle parameter, d4 is the second distance parameter, d5 is the third distance parameter, and d3 is the first distance parameter.

[0184] In this example, if A' is greater than 0, the XR device needs to control the first camera device 15 to the left (ie Figure 8 If A' is less than 0, the XR device needs to control the first camera device 15 to the right (ie Figure 8 Rotate A' in the clockwise direction).

[0185] Again illustratively, in combination Figure 8Assuming that the target imaging device is the second imaging device 16, the first distance parameter (e.g., d5) is the distance parameter between the first plane (e.g., plane 35) and the first edge line (e.g., edge line 36); the first plane (i.e., plane 35) is the plane parallel to the first edge line (i.e., edge line 36) in the plane where the target imaging device (i.e., second imaging device 16) is located in physical space. The second distance parameter is (e.g., d6) the distance parameter between the second plane (e.g., plane 33) and the target imaging device (i.e., second imaging device 16); the second plane (i.e., plane 33) is perpendicular to the first plane (i.e., plane 35). The third distance parameter (e.g., d3) is the distance parameter between the second plane (i.e., plane 33) and the second edge line (e.g., edge line 34); the second edge line (i.e., edge line 34) is the edge line of the target area (e.g., area 17) adjacent to the first edge line (i.e., edge line 36).

[0186] Thus, when the second distance parameter (i.e., d6) is less than or equal to the third distance parameter (i.e., d3), the XR device may use a fourth target algorithm to calculate the target angle parameter based on the first viewing angle parameter, the first distance parameter, the second distance parameter, and the third distance parameter. The fourth target algorithm may specifically be:

[0187]

[0188] Wherein, B' is the target angle parameter, B is the first viewing angle parameter, d6 is the second distance parameter, d3 is the third distance parameter, and d5 is the first distance parameter.

[0189] In this example, if B' is greater than 0, the XR device needs to control the second camera device 16 to move upward (ie Figure 8 If B' is less than 0, the XR device needs to control the second camera 16 to move downward (ie Figure 8 Rotate B' in the counterclockwise direction).

[0190] Step 402: The XR device controls the target camera device to rotate according to the target angle parameter.

[0191] Specifically, the XR device can determine the target rotation direction according to the target angle parameter, and then control the target camera device to rotate the target angle parameter according to the target rotation direction.

[0192] It should be noted that, for the description of the XR device determining the target rotation direction based on the target angle parameter, please refer to the specific description in step 401, and the embodiment of the present application will not be repeated here.

[0193] Specifically, after the target camera device is controlled to rotate, the viewing angle bisector of the target camera device intersects with the midpoint of the first edge line.

[0194] It can be seen that since the XR device can first determine the target angle parameters and then control the target camera device to rotate according to the target angle parameters, it can avoid the situation where the target camera device can only shoot part of the target area. In this way, the probability of obtaining the user's posture information can be increased.

[0195] Example 2: The first parameter includes the target focal length parameter

[0196] Optionally, in the embodiment of the present application, the first parameter includes a target focal length parameter, which is: a minimum focal length parameter of the target camera device; and the target adjustment amount is a target size adjustment amount. Figure 1 ,like Figure 9 As shown, the above step 102 can be specifically implemented through the following steps 102c and 102d.

[0197] Step 102c: The XR device determines the third viewing angle parameter based on the target focal length parameter.

[0198] It should be noted that, for the description of the XR device determining the third viewing angle parameter based on the target focal length parameter, reference can be made to the specific description of the XR device determining the target focal length adjustment amount based on the first viewing angle parameter in the above embodiment, which will not be repeated in the embodiments of the present application.

[0199] Specifically, the third viewing angle parameter is the maximum viewing angle parameter of the target camera device.

[0200] Step 102d: The XR device determines the target size adjustment amount based on the third viewing angle parameter.

[0201] Specifically, in a scenario where the size of the physical space is unlimited, the XR device can determine the maximum length parameter supported by the XR device under the third viewing angle parameter as the target size adjustment amount; or, in a scenario where the size of the physical space is limited, the XR device can calculate the target size adjustment amount based on the third viewing angle parameter.

[0202] The "Safe Zone Settings" interface also includes a target control, so that the XR device can determine whether the physical space size is limited based on the input parameters of the user's input to the target control. The input parameters can include at least one of the following: input location, input direction, and input duration.

[0203] Here, in scenarios where the physical space size is unlimited, the center point of the adjusted target area is located at the intersection of the bisectors of the viewing angles of the multiple cameras of the XR device. In scenarios where the physical space size is limited, the center point of the adjusted target area is not located at the intersection of the bisectors of the viewing angles of the multiple cameras of the XR device.

[0204] The following example illustrates how an XR device calculates the target size adjustment amount based on third-view parameters.

[0205] Optionally, in this embodiment of the present application, the first parameter further includes a length parameter of a second plane and a fourth distance parameter; the second plane is perpendicular to the first plane, the first plane being a plane parallel to the first edge line in the plane where the target imaging device is located in physical space; and the fourth distance parameter is a distance parameter between the second plane and the target imaging device. Specifically, step 102d can be implemented via step 102d1 described below.

[0206] Step 102d1: The XR device calculates the target size adjustment amount based on the third viewing angle parameter, the length parameter of the second plane, and the fourth distance parameter.

[0207] Specifically, the length parameter of the second plane and the fourth distance parameter are parameters input by the user.

[0208] like Figure 10 As shown, the multiple camera devices of the XR device include two camera devices (for example, a first camera device 15 and a second camera device 16), and the center point of the target area (for example, area 17) is not located at the intersection of the viewing angle bisectors of the first camera device 15 and the second camera device 16.

[0209] Exemplarily, assuming that the target camera device is the first camera device 15, at this time, the second plane (for example, plane 37) is perpendicular to the first plane, and the first plane is: the plane in which the target camera device (that is, the first camera device 15) is located in the physical space, and is parallel to the first edge line (for example, edge line 39); the fourth distance parameter is: the distance parameter between the second plane (that is, plane 37) and the target camera device (that is, the first camera device 15).

[0210] Therefore, the XR device can use the fifth target algorithm to calculate the target size adjustment amount based on the third viewing angle parameter, the length parameter of the second plane, and the fourth distance parameter. The fifth target algorithm can be specifically:

[0211]

[0212] Wherein, Y is the target size adjustment amount, d7 is the length parameter of the second plane, d8 is the fourth distance parameter, and A is the third viewing angle parameter.

[0213] In this example, the XR device may determine the target size adjustment amount as a length parameter of the second edge line (eg, edge line 40 ) to adjust the target size parameter.

[0214] As another example, assume that the target camera device is the second camera device 16. At this time, the second plane (for example, plane 38) is perpendicular to the first plane. The first plane is: the plane in the physical space where the target camera device (that is, the second camera device 16) is located, and is parallel to the first edge line (for example, edge line 40); the fourth distance parameter is: the distance parameter between the second plane (that is, plane 38) and the target camera device (that is, the second camera device 16).

[0215] Therefore, the XR device can use the fifth target algorithm to calculate the target size adjustment amount based on the third viewing angle parameter, the length parameter of the second plane, and the fourth distance parameter. The fifth target algorithm can be specifically:

[0216]

[0217] Wherein, X is the target size adjustment amount, d9 is the length parameter of the second plane, d10 is the fourth distance parameter, and B is the third viewing angle parameter.

[0218] In this example, the XR device may determine the target size adjustment amount as a length parameter of the second edge line (eg, edge line 39 ) to adjust the target size parameter.

[0219] Thus, it can be seen that the XR device can accurately calculate the target size adjustment amount based on the third viewing angle parameter, the length parameter of the second plane, and the fourth distance parameter.

[0220] The parameter adjustment method provided in the embodiment of the present application can be executed by a parameter adjustment device. In the embodiment of the present application, the parameter adjustment device provided in the embodiment of the present application is described by taking the parameter adjustment device executing the parameter adjustment method as an example.

[0221] Figure 11 FIG. 1 shows a possible structural diagram of a parameter adjustment device involved in an embodiment of the present application. Figure 11 As shown, the parameter adjustment device 50 may include: an acquisition module 51 , a determination module 52 and an adjustment module 53 .

[0222] The acquisition module 51 is configured to acquire a first parameter; the first parameter may include any of the following: a target size parameter of the target area, a target focal length parameter of the target camera device, and the target camera device may be configured to acquire posture information of a user within the target area. The determination module 52 is configured to determine a target adjustment amount based on the first parameter acquired by the acquisition module 51. The adjustment module 53 is configured to adjust the target parameter based on the target adjustment amount determined by the determination module 52. If the first parameter includes a target size parameter, the target parameter may include a target focal length parameter; if the first parameter includes a target focal length parameter, the target parameter may include a target size parameter.

[0223] In one possible implementation, the first parameter includes a target size parameter, which includes a length parameter of a first edge line; the first edge line is an edge line of the target area proximate to the target imaging device; and the target adjustment amount is a target focal length adjustment amount. The determination module 52 is specifically configured to determine a target viewing angle parameter of the target imaging device based on the first length parameter; and to determine the target focal length adjustment amount based on the first viewing angle parameter. If the length parameter of the first edge line is less than or equal to a preset length parameter, the first length parameter is the length parameter of the first edge line; and the first viewing angle parameter is any one of the following: a target viewing angle parameter and a preset viewing angle parameter.

[0224] In one possible implementation, the first parameter further includes a first distance parameter, a second distance parameter, and a third distance parameter; the first distance parameter is a distance parameter between a first plane and a first edge line; the first plane is a plane parallel to the first edge line in a plane where the target camera device is located in physical space; the second distance parameter is a distance parameter between a second plane and the target camera device; the second plane is perpendicular to the first plane; the third distance parameter is a distance parameter between the second plane and a second edge line; the second edge line is an edge line of the target area adjacent to the first edge line. The determination module 52 is specifically configured to perform any of the following: when the second distance parameter is greater than the third distance parameter, if the second parameter matches the first length parameter, then calculate the target viewing angle parameter based on the first length parameter and the first distance parameter; when the second distance parameter is greater than the third distance parameter, if the second parameter does not match the first length parameter, then calculate the target viewing angle parameter based on the first length parameter, the first distance parameter, the second distance parameter, and the third distance parameter; when the second distance parameter is less than or equal to the third distance parameter, then calculate the target viewing angle parameter based on the first length parameter, the first distance parameter, the second distance parameter, and the third distance parameter. The second parameter is determined according to the difference between the second distance parameter and the third distance parameter.

[0225] In a possible implementation, the above-mentioned first parameter also includes a first distance parameter, a second distance parameter and a third distance parameter; the first distance parameter is: the distance parameter between the first plane and the first edge line; the first plane is: the plane parallel to the first edge line in the plane where the target camera device is located in the physical space; the second distance parameter is: the distance parameter between the second plane and the target camera device; the second plane is perpendicular to the first plane; the third distance parameter is: the distance parameter between the second plane and the second edge line; the second edge line is: the edge line of the target area adjacent to the first edge line. The parameter adjustment device 50 provided in the embodiment of the present application may also include: a calculation module and a control module. Among them, the calculation module is used to calculate the target angle parameter based on the first viewing angle parameter, the first distance parameter, the second distance parameter and the third distance parameter. The control module is used to control the target camera device to rotate according to the target angle parameter calculated by the calculation module.

[0226] In a possible implementation, the first viewing angle parameter is a preset viewing angle parameter. The parameter adjustment device 50 provided in the embodiment of the present application may further include: a calculation module. The calculation module is used to calculate the first adjustment amount based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, the third distance parameter, the target viewing angle parameter and the preset viewing angle parameter. The adjustment module 53 is also used to reduce the length parameter of the first edge line according to the first adjustment amount calculated by the calculation module. The first distance parameter is: the distance parameter between the first plane and the first edge line; the first plane is: the plane parallel to the first edge line in the plane where the target camera device is located in the physical space; the second distance parameter is: the distance parameter between the second plane and the target camera device; the second plane is perpendicular to the first plane; the third distance parameter is: the distance parameter between the second plane and the second edge line; the second edge line is: the edge line of the target area adjacent to the first edge line.

[0227] In one possible implementation, the determination module 52 is specifically configured to use N corresponding relationships to determine the target focal length adjustment amount based on the first viewing angle parameter. Each of the N corresponding relationships is a corresponding relationship between a viewing angle parameter and a focal length adjustment amount, and N is a positive integer.

[0228] In one possible implementation, the target camera device is a camera device with a non-continuously adjustable focal length parameter. The determination module 52 is specifically configured to determine, based on the first viewing angle parameter, a maximum second viewing angle parameter from M viewing angle parameters; the M viewing angle parameters being those viewing angle parameters smaller than the first viewing angle parameter among the N corresponding viewing angle parameters, where M is a positive integer less than or equal to N; and determine the focal length adjustment amount corresponding to the second viewing angle parameter as the target focal length adjustment amount.

[0229] In a possible implementation, the first parameter further includes a first distance parameter, a second distance parameter, and a third distance parameter; the first distance parameter is: a distance parameter between the first plane and the first edge line; the first plane is: a plane parallel to the first edge line in the plane where the target camera device is located in the physical space; the second distance parameter is: a distance parameter between the second plane and the target camera device; the second plane is perpendicular to the first plane; the third distance parameter is: a distance parameter between the second plane and the second edge line; the second edge line is: an edge line of the target area adjacent to the first edge line. The parameter adjustment device 50 provided in the embodiment of the present application may further include: a calculation module. The calculation module is used to calculate the second adjustment amount based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, the third distance parameter, the first viewing angle parameter, and the second viewing angle parameter. The adjustment module 53 is also used to reduce the length parameter of the first edge line according to the second adjustment amount calculated by the calculation module.

[0230] In one possible implementation, the first parameter includes a target focal length parameter, which is a minimum focal length parameter of the target camera device; and the target adjustment amount is a target size adjustment amount. The determination module 52 is specifically configured to determine a third viewing angle parameter based on the target focal length parameter; and further determine the target size adjustment amount based on the third viewing angle parameter.

[0231] In one possible implementation, the first parameter also includes a length parameter of a second plane and a fourth distance parameter; the second plane is perpendicular to the first plane, and the first plane is a plane parallel to the first edge line in the plane where the target camera is located in physical space; the fourth distance parameter is a distance parameter between the second plane and the target camera. The determination module 52 includes a first sub-calculation module. The first sub-calculation module is configured to calculate the target size adjustment amount based on the third viewing angle parameter, the length parameter of the second plane, and the fourth distance parameter.

[0232] The parameter adjustment device provided in the embodiment of the present application can first obtain the target size parameter of the target area, and then determine the target adjustment amount based on the target size parameter, and directly adjust the target focal length parameter according to the target adjustment amount, without the user having to adjust the target focal length parameter multiple times. Therefore, the user's operation in the process of adjusting the target focal length parameter can be simplified and the time consumption can be reduced; or, the parameter adjustment device can first obtain the target focal length parameter of the target camera device, and then determine the target adjustment amount based on the target focal length parameter, and directly adjust the target size parameter according to the target adjustment amount, without the user having to adjust the target size parameter multiple times. Therefore, the user's operation in the process of adjusting the target size parameter can be simplified and the time consumption can be reduced; in this way, the convenience of use of the parameter adjustment device can be improved.

[0233] The parameter adjustment device in the embodiment of the present application can be an XR device, or a component in the XR device, such as an integrated circuit or a chip. The XR device can be a terminal, or a device other than a terminal. Exemplarily, the XR device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted XR device, a mobile internet device (mobile internet device, MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

[0234] The parameter adjustment device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0235] The parameter adjustment device provided in the embodiment of the present application can achieve Figures 1 to 10 To avoid repetition, the various processes implemented in the method embodiment are not described here.

[0236] Optionally, in the embodiment of the present application, Figure 12As shown, an embodiment of the present application further provides an XR device 60, including a processor 61 and a memory 62, wherein the memory 62 stores a program or instruction that can be run on the processor 61. When the program or instruction is executed by the processor 61, the various process steps of the above-mentioned parameter adjustment method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0237] It should be noted that the XR device in the embodiment of the present application can be the mobile device and non-mobile device mentioned above.

[0238] Figure 13 A schematic diagram of the hardware structure of an XR device implementing an embodiment of the present application.

[0239] The XR device 100 includes but is not limited to components such as a radio frequency unit 101 , a network module 102 , an audio output unit 103 , an input unit 104 , a sensor 105 , a display unit 106 , a user input unit 107 , an interface unit 108 , a memory 109 , and a processor 110 .

[0240] Those skilled in the art will appreciate that the XR device 100 may further include a power source (such as a battery) for powering various components. The power source may be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management to be managed through the power management system. Figure 13 The XR device structure shown in the figure does not constitute a limitation of the XR device. The XR device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.

[0241] Among them, the processor 110 is used to obtain a first parameter; the first parameter includes any one of the following: a target size parameter of the target area, a target focal length parameter of the target camera device; the target camera device is used to obtain the posture information of the user in the target area; and based on the first parameter, determine the target adjustment amount; and adjust the target parameter according to the target adjustment amount; when the first parameter includes a target size parameter, the target parameter includes a target focal length parameter; when the first parameter includes a target focal length parameter, the target parameter includes a target size parameter.

[0242] The XR device provided in the embodiment of the present application can first obtain the target size parameter of the target area, and then determine the target adjustment amount based on the target size parameter, and directly adjust the target focal length parameter according to the target adjustment amount, without the user having to adjust the target focal length parameter multiple times. Therefore, the user's operation in the process of adjusting the target focal length parameter can be simplified and the time consumption can be reduced; or, the XR device can first obtain the target focal length parameter of the target camera device, and then determine the target adjustment amount based on the target focal length parameter, and directly adjust the target size parameter according to the target adjustment amount, without the user having to adjust the target size parameter multiple times. Therefore, the user's operation in the process of adjusting the target size parameter can be simplified and the time consumption can be reduced; in this way, the convenience of use of the XR device can be improved.

[0243] Optionally, in an embodiment of the present application, the above-mentioned first parameter includes a target size parameter, which includes a length parameter of a first edge line; the first edge line is: an edge line of the target area close to the target camera device; the above-mentioned target adjustment amount is a target focal length adjustment amount.

[0244] The processor 110 is specifically configured to determine a target viewing angle parameter of a target camera device according to the first length parameter; and determine a target focal length adjustment amount according to the first viewing angle parameter.

[0245] Among them, when the length parameter of the first edge line is less than or equal to the preset length parameter, the first length parameter is the length parameter of the first edge line; when the length parameter of the first edge line is greater than the preset length parameter, the first length parameter is the preset length parameter; the first viewing angle parameter is any one of the following: target viewing angle parameter, preset viewing angle parameter.

[0246] Optionally, in an embodiment of the present application, the above-mentioned first parameter also includes a first distance parameter, a second distance parameter and a third distance parameter; the first distance parameter is: the distance parameter between the first plane and the first edge line; the first plane is: the plane in the physical space where the target camera device is located, parallel to the first edge line; the second distance parameter is: the distance parameter between the second plane and the target camera device; the second plane is perpendicular to the first plane; the third distance parameter is: the distance parameter between the second plane and the second edge line; the second edge line is: the edge line of the target area adjacent to the first edge line.

[0247] The processor 110 is specifically configured to:

[0248] In the case where the second distance parameter is greater than the third distance parameter, if the second parameter matches the first length parameter, the target viewing angle parameter is calculated based on the first length parameter and the first distance parameter;

[0249] In the case where the second distance parameter is greater than the third distance parameter, if the second parameter does not match the first length parameter, then the target viewing angle parameter is calculated based on the first length parameter, the first distance parameter, the second distance parameter and the third distance parameter;

[0250] When the second distance parameter is less than or equal to the third distance parameter, the target viewing angle parameter is calculated according to the first length parameter, the first distance parameter, the second distance parameter and the third distance parameter.

[0251] The second parameter is determined according to the difference between the second distance parameter and the third distance parameter.

[0252] Optionally, in an embodiment of the present application, the above-mentioned first parameter also includes a first distance parameter, a second distance parameter and a third distance parameter; the first distance parameter is: the distance parameter between the first plane and the first edge line; the first plane is: the plane in the physical space where the target camera device is located, parallel to the first edge line; the second distance parameter is: the distance parameter between the second plane and the target camera device; the second plane is perpendicular to the first plane; the third distance parameter is: the distance parameter between the second plane and the second edge line; the second edge line is: the edge line of the target area adjacent to the first edge line.

[0253] The processor 110 is further configured to calculate a target angle parameter based on the first viewing angle parameter, the first distance parameter, the second distance parameter, and the third distance parameter; and control the target camera device to rotate according to the target angle parameter.

[0254] Optionally, in an embodiment of the present application, the first viewing angle parameter is a preset viewing angle parameter.

[0255] The processor 110 is further configured to calculate a first adjustment amount based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, the third distance parameter, the target viewing angle parameter, and the preset viewing angle parameter; and to reduce the length parameter of the first edge line based on the first adjustment amount.

[0256] Among them, the above-mentioned first distance parameter is: the distance parameter between the first plane and the first edge line; the first plane is: the plane parallel to the first edge line in the plane where the target camera device is located in the physical space; the above-mentioned second distance parameter is: the distance parameter between the second plane and the target camera device; the second plane is perpendicular to the first plane; the above-mentioned third distance parameter is: the distance parameter between the second plane and the second edge line; the second edge line is: the edge line of the target area adjacent to the first edge line.

[0257] Optionally, in an embodiment of the present application, the processor 110 is specifically configured to adopt N corresponding relationships and determine a target focal length adjustment amount according to the first viewing angle parameter.

[0258] Each of the N corresponding relationships is a corresponding relationship between a viewing angle parameter and a focal length adjustment amount, and N is a positive integer.

[0259] Optionally, in an embodiment of the present application, the target camera device is a camera device with a non-continuously adjustable focal length parameter.

[0260] Processor 110 is specifically used to determine the largest second viewing angle parameter from M viewing angle parameters based on the first viewing angle parameter; the M viewing angle parameters are: the viewing angle parameters of N corresponding relationships, which are smaller than the first viewing angle parameter, and M is a positive integer less than or equal to N; and the focal length adjustment amount corresponding to the second viewing angle parameter is determined as the target focal length adjustment amount.

[0261] Optionally, in an embodiment of the present application, the above-mentioned first parameter also includes a first distance parameter, a second distance parameter and a third distance parameter; the first distance parameter is: the distance parameter between the first plane and the first edge line; the first plane is: the plane in the physical space where the target camera device is located, parallel to the first edge line; the second distance parameter is: the distance parameter between the second plane and the target camera device; the second plane is perpendicular to the first plane; the third distance parameter is: the distance parameter between the second plane and the second edge line; the second edge line is: the edge line of the target area adjacent to the first edge line.

[0262] The processor 110 is further configured to calculate a second adjustment amount based on the length parameter of the first edge line, the first distance parameter, the second distance parameter, the third distance parameter, the first viewing angle parameter, and the second viewing angle parameter; and to reduce the length parameter of the first edge line based on the second adjustment amount.

[0263] Optionally, in an embodiment of the present application, the first parameter includes a target focal length parameter, which is: a minimum focal length parameter of the target camera device; and the target adjustment amount is a target size adjustment parameter.

[0264] The processor 110 is specifically configured to determine a third viewing angle parameter according to the target focal length parameter; and determine a target size adjustment amount based on the third viewing angle parameter.

[0265] Optionally, in an embodiment of the present application, the above-mentioned first parameter also includes a length parameter of a second plane and a fourth distance parameter; the second plane is perpendicular to the first plane, and the first plane is: a plane in the plane where the target camera device is located in the physical space, and parallel to the first edge line; the fourth distance parameter is: a distance parameter between the second plane and the target camera device.

[0266] The processor 110 is specifically configured to calculate a target size adjustment amount according to the third viewing angle parameter, the length parameter of the second plane, and the fourth distance parameter.

[0267] It should be understood that in an embodiment of the present application, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0268] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct rambus RAM (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0269] Processor 110 may include one or more processing units. Optionally, processor 110 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 110.

[0270] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned parameter adjustment method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0271] The processor is the processor in the XR device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0272] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned parameter adjustment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0273] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0274] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned parameter adjustment method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0275] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0276] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0277] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A parameter adjustment method, characterized in that: The method comprises: The extended reality XR device acquires a first parameter; the first parameter includes a target size parameter of the target area; The XR device determines a target adjustment amount based on the first parameter; The XR device adjusts the target parameter according to the target adjustment amount; Wherein, the target parameter includes a target focal length parameter of a target camera device; the target camera device is used to obtain the posture information of the user in the target area; The target size parameter includes a length parameter of a first edge line; the first edge line is: an edge line of the target area close to the target camera device; the target adjustment amount is a target focal length adjustment amount; The XR device determines a target adjustment amount based on the first parameter, including: The XR device determines a target viewing angle parameter of the target camera device according to the first length parameter; The XR device determines the target focal length adjustment amount according to the first viewing angle parameter; Wherein, when the length parameter of the first edge line is less than or equal to the preset length parameter, the first length parameter is the length parameter of the first edge line; when the length parameter of the first edge line is greater than the preset length parameter, the first length parameter is the preset length parameter; The first viewing angle parameter is any one of the following: the target viewing angle parameter, the preset viewing angle parameter; The first parameter also includes a first distance parameter, a second distance parameter, and a third distance parameter; the first distance parameter is a distance parameter between a first plane and the first edge line; the first plane is a plane in the physical space where the target imaging device is located and parallel to the first edge line; the second distance parameter is a distance parameter between a second plane and the target imaging device; the second plane is perpendicular to the first plane; the third distance parameter is a distance parameter between the second plane and a second edge line; the second edge line is an edge line of the target area adjacent to the first edge line and close to the second plane; The XR device determines, based on the first length parameter, a target viewing angle parameter of the target camera device, including: When the second distance parameter is less than or equal to the third distance parameter, the XR device calculates the target viewing angle parameter according to the first length parameter, the first distance parameter, the second distance parameter, and the third distance parameter.

2. The method according to claim 1, characterized in that The first viewing angle parameter is the preset viewing angle parameter; After the XR device determines the target viewing angle parameter of the target camera device based on the first length parameter, the method further includes: The XR device calculates a first adjustment amount according to the length parameter of the first edge line, the first distance parameter, the second distance parameter, the third distance parameter, the target viewing angle parameter, and the preset viewing angle parameter; The XR device reduces the length parameter of the first edge line according to the first adjustment amount.

3. The method according to claim 1, characterized in that The XR device determines the target focal length adjustment amount according to the first viewing angle parameter, including: The XR device uses N corresponding relationships to determine the target focal length adjustment amount according to the first viewing angle parameter; Each of the N corresponding relationships is a corresponding relationship between a viewing angle parameter and a focal length adjustment amount, and N is a positive integer.

4. The method according to claim 3, characterized in that The target camera device is: a camera device with a non-continuously adjustable focal length parameter; The XR device uses N corresponding relationships to determine the target focal length adjustment amount according to the first viewing angle parameter, including: The XR device determines, based on the first viewing angle parameter, a maximum second viewing angle parameter from M viewing angle parameters, wherein the M viewing angle parameters are viewing angle parameters smaller than the first viewing angle parameter among the N viewing angle parameters of the N corresponding relationships, and M is a positive integer smaller than or equal to N. The XR device determines the focal length adjustment amount corresponding to the second viewing angle parameter as the target focal length adjustment amount.

5. A parameter adjustment method, characterized in that: The method comprises: The extended reality XR device obtains a first parameter; the first parameter includes a target focal length parameter of a target camera device; the target camera device is used to obtain posture information of a user in a target area; The XR device determines a target adjustment amount based on the first parameter; The XR device adjusts the target parameter according to the target adjustment amount; Wherein, the target parameters include target size parameters of the target area; The target focal length parameter is: the minimum focal length parameter of the target camera device; the target adjustment amount is the target size adjustment amount; The XR device determines a target adjustment amount based on the first parameter, including: The XR device determines a third viewing angle parameter according to the target focal length parameter; The XR device determines the target size adjustment amount based on the third viewing angle parameter; The first parameter also includes a length parameter of a second plane and a fourth distance parameter; the second plane is perpendicular to the first plane, the first plane is: a plane in the plane where the target camera device is located in physical space and parallel to the first edge line; the first edge line is: an edge line of the target area close to the target camera device; the fourth distance parameter is: a distance parameter between the second plane and the target camera device; The XR device determines, based on the third viewing angle parameter, an amount of adjusting the target size, including: The XR device calculates the target size adjustment amount based on the third viewing angle parameter, the length parameter of the second plane and the fourth distance parameter; the target size adjustment amount is used to determine the length parameter of the second edge line to adjust the target size parameter, and the second edge line is: the edge line of the target area adjacent to the first edge line.

6. A parameter adjustment device, characterized in that: The parameter adjustment device includes: an acquisition module, a determination module and an adjustment module; The acquisition module is used to acquire a first parameter; the first parameter includes a target size parameter of the target area; The determining module is configured to determine a target adjustment amount based on the first parameter acquired by the acquiring module; The adjustment module is configured to adjust the target parameter according to the target adjustment amount determined by the determination module; Wherein, the target parameter includes a target focal length parameter of a target camera device; the target camera device is used to obtain the posture information of the user in the target area; The target size parameter includes a length parameter of a first edge line; the first edge line is: an edge line of the target area close to the target camera device; the target adjustment amount is a target focal length adjustment amount; The determining module is specifically configured to determine a target viewing angle parameter of the target camera device according to the first length parameter; and determine the target focal length adjustment amount according to the first viewing angle parameter; Wherein, when the length parameter of the first edge line is less than or equal to the preset length parameter, the first length parameter is the length parameter of the first edge line; when the length parameter of the first edge line is greater than the preset length parameter, the first length parameter is the preset length parameter; The first viewing angle parameter is any one of the following: the target viewing angle parameter, the preset viewing angle parameter; The first parameter also includes a first distance parameter, a second distance parameter, and a third distance parameter; the first distance parameter is a distance parameter between a first plane and the first edge line; the first plane is a plane in the physical space where the target imaging device is located and parallel to the first edge line; the second distance parameter is a distance parameter between a second plane and the target imaging device; the second plane is perpendicular to the first plane; the third distance parameter is a distance parameter between the second plane and a second edge line; the second edge line is an edge line of the target area adjacent to the first edge line and close to the second plane; The determining module is specifically configured to: When the second distance parameter is less than or equal to the third distance parameter, the target viewing angle parameter is calculated according to the first length parameter, the first distance parameter, the second distance parameter and the third distance parameter.

7. An XR device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the parameter adjustment method according to any one of claims 1 to 4 are implemented, or the steps of the parameter adjustment method according to claim 5 are implemented.

Citation Information

Patent Citations

  • Focusing method and electronic equipment

    CN111405181A