Device posture calibration method and device, object parameter measurement method and device

By using a device attitude calibration method with a built-in accelerometer and an external camera, the problem of inaccurate measurement data caused by inaccurate device attitude was solved, thus achieving device attitude calibration and improving the accuracy of measurement data.

CN116399367BActive Publication Date: 2026-04-24ALIBABA (CHINA) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ALIBABA (CHINA) CO LTD
Filing Date
2022-12-07
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

The inability to accurately grasp the current posture when holding the device results in the captured images of the object being measured not accurately reflecting the actual body size data of the object being measured, thus reducing the accuracy of the measurement data of the smart body measurement mini-program.

Method used

The device obtains its current attitude data through a built-in accelerometer and an external camera, matches it with preset attitude data, and outputs attitude adjustment guidance information to guide the user to adjust the device attitude until calibration is successful.

Benefits of technology

After ensuring successful device posture calibration, it can accurately capture measurement subjects that match real body proportions and values, thus improving the accuracy of measurement data from the intelligent body measurement mini-program.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116399367B_ABST
    Figure CN116399367B_ABST
Patent Text Reader

Abstract

The application discloses a device posture calibration method, an object parameter measurement method, a device and an apparatus, and relates to the technical field of computers. The device posture calibration method comprises the following steps: obtaining current posture data of a device; determining whether the current posture data matches preset posture data; if the current posture data does not match the preset posture data, outputting posture adjustment guidance information for guiding adjustment of the current posture of the device to the preset posture; in response to a first posture adjustment operation of the device, obtaining first adjusted posture data of the device; determining whether the first adjusted posture data matches the preset posture data; and if the first adjusted posture data matches the preset posture data, determining that posture calibration of the device is successful. In this way, an operation object can accurately grasp the current posture of the device when holding the device, and the calibration of the posture of the device can be completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, specifically to a device attitude calibration method, apparatus, electronic device and storage medium, and an object parameter measurement method, apparatus, electronic device and storage medium. Background Technology

[0002] With the rapid development of information technology, the apparel industry is also gradually becoming digitalized and intelligent. Many users are unsure of their body measurements and often face the problem of not knowing how to choose the right size when buying clothes online. To address this, e-commerce platforms have launched intelligent body measurement mini-programs to facilitate online measurements and clothing selection for users.

[0003] Because the operator cannot accurately control the shooting angle when using a handheld device to capture images of the subject, the resulting images cannot accurately reflect the subject's actual body measurements, including but not limited to the three body measurements (chest, waist, and hips), head circumference, neck circumference, shoulder width, arm length, and leg length. Therefore, the accuracy of data obtained using a smart body measurement app is significantly reduced.

[0004] Therefore, how to accurately grasp the current posture of the device while holding it, and capture images of the subject to be measured that match the actual body proportions and values, in order to further improve the accuracy of the measurement data of the smart body measurement mini-program, has become an urgent problem to be solved. Summary of the Invention

[0005] In view of this, embodiments of this application provide a device posture calibration method, apparatus, electronic device, and storage medium, as well as an object parameter measurement method, apparatus, electronic device, and readable storage medium. The methods provided in these embodiments can solve the problem in the prior art where the current posture of the held device cannot be accurately grasped, resulting in the inability to capture measurement objects that conform to true body proportions and values, thus causing low accuracy of measurement data in intelligent body measurement apps.

[0006] The first aspect of this application provides a device attitude calibration method, the method comprising:

[0007] Obtain the current attitude data of the device;

[0008] Determine whether the current attitude data matches the preset attitude data;

[0009] If the current attitude data does not match the preset attitude data, attitude adjustment guidance information is output to guide the device to adjust its current attitude to the preset attitude.

[0010] In response to a first attitude adjustment operation for the device, first adjusted attitude data of the device is obtained;

[0011] Determine whether the first adjusted posture data matches the preset posture data;

[0012] If the first adjusted attitude data matches the preset attitude data, then the attitude calibration for the device is considered successful.

[0013] Optionally, obtain the device's current attitude data, including:

[0014] Obtain the acceleration force value of the accelerometer in the device in physical space;

[0015] The current attitude data of the device is obtained based on the acceleration force value.

[0016] Optionally, obtaining the acceleration force value of the accelerometer in the device in physical space includes:

[0017] The acceleration force values ​​of the accelerometer in the device along the Y-axis and Z-axis directions are obtained respectively;

[0018] The current attitude data of the device is obtained based on the acceleration force values, including: obtaining the current attitude data of the device based on the acceleration force values ​​of the accelerometers in the device along the Y-axis and Z-axis directions;

[0019] Among them, the upward and downward directions along the device's screen are set as the Y-axis direction;

[0020] Set the left and right directions along the device's screen to be along the X-axis;

[0021] Set the screen orientation of the vertical device to be along the Z-axis.

[0022] Optionally, the current attitude data of the device can be obtained based on the acceleration force value, including:

[0023] The angle between the device and the current reference plane is obtained based on the acceleration force value;

[0024] Use this included angle as the current attitude data of the device;

[0025] The current reference plane is the plane formed by the Z-axis and X-axis directions of the accelerometer.

[0026] Optionally, the angle between the device and the current reference plane can be obtained based on the acceleration force value, including:

[0027] The parameter quotient is obtained by dividing the acceleration force value of the accelerometer in the Z-axis direction by the acceleration force value of the accelerometer in the Y-axis direction.

[0028] By using the parametric quotient as the parameter of the arctangent function, the arctangent value in radians can be obtained;

[0029] Convert the arctangent value in radians to the arctangent value in degrees;

[0030] Convert the arctangent value of the angle into the angle between the device and the current reference plane.

[0031] Optionally, preset attitude data indicates that the angle between the device and the current reference plane is 90 degrees.

[0032] Optionally, the posture adjustment guidance information includes at least one of posture adjustment text information and posture adjustment image information.

[0033] Optionally, the pose adjustment image information consists of multiple guide objects with the same shape and size;

[0034] The distance between the geometric centers of multiple guided objects is proportional to the current attitude data of the device.

[0035] Optionally, the method further includes: if the current attitude data matches the preset attitude data, then determining that the attitude calibration for the device is successful.

[0036] A second aspect of this application provides a method for measuring object parameters, the method comprising:

[0037] In response to detecting a measurement command in the device that instructs the execution of parameter measurement operations on the object to be measured, it is determined whether the current posture of the device matches the preset posture;

[0038] If the current posture of the device does not match the preset posture, posture adjustment guidance information is output to guide the device to adjust its current posture to the preset posture.

[0039] In response to the first attitude adjustment operation for the device, determine whether the first adjusted attitude of the device matches the preset attitude;

[0040] If the device's first adjusted posture matches the preset posture, then a parameter measurement operation is performed on the object to be measured.

[0041] Optionally, a measurement instruction is detected in the device to instruct the execution of a parameter measurement operation on the object to be measured, including:

[0042] The device detected that a parameter measurement application used to perform parameter measurement operations was running;

[0043] Alternatively, the device may obtain confirmation information for confirming the execution of a parameter measurement operation, wherein the confirmation information is a response to a parameter measurement query that asks whether to perform the parameter measurement operation.

[0044] Optionally, the current orientation of the device includes the current angle between the screen plane of the device and the current reference plane, where the current reference plane is the plane that the object to be measured is currently perpendicular to in physical space;

[0045] The preset posture includes a preset reference angle between the screen plane of any device and the plane perpendicular to the object being measured in physical space. The object to be measured is the object targeted by the parameter measurement operation performed using any device.

[0046] Optionally, output posture adjustment guidance information for guiding the device to adjust its current posture to a preset posture, including: displaying a first guidance object, a second guidance object, and posture object adjustment prompt information on the device to prompt the device to adjust its current posture to a preset posture so that the current relative positional relationship between the first guidance object and the second guidance object is adjusted to the preset relative positional relationship;

[0047] In response to a first attitude adjustment operation on the device, determine whether the device's first adjusted attitude matches a preset attitude, including:

[0048] In response to the detection of a first posture adjustment operation for the device, it is determined whether the adjusted relative position relationship between the first guide object and the second guide object matches the preset relative position relationship.

[0049] Optionally, the shape of the first guide object is the same as the shape of the second guide object, and the size of the first guide object is the same as the size of the second guide object;

[0050] The first attitude adjustment operation for the device includes: adjusting the state of the device so that the first guided object and the second guided object move toward each other;

[0051] Determining whether the adjusted relative positions of the first guide object and the second guide object match the preset relative position relationship includes: determining whether the display position of the first guide object on the device coincides with the display position of the second guide object on the device.

[0052] Optionally, adjusting the current posture of the device to a preset posture includes: providing a prompt message that adjusts the screen plane of the device to be perpendicular to the plane that the object to be measured is currently perpendicular to in physical space.

[0053] Optionally, the method further includes: if the first adjusted posture of the device matches the preset posture, then outputting a posture matching prompt message to indicate that the posture of the device matches the preset posture.

[0054] Optionally, perform parameter measurement operations on the object to be measured, including:

[0055] Outputs a prompt message for the specified operation to be performed;

[0056] In response to the detection of a specified operation, the parameters of the object to be measured are measured, and the measurement results of the parameters of the object to be measured are obtained.

[0057] Optionally, the output of a specified operation prompt message to indicate the need to perform the specified operation includes:

[0058] Display a contour object on the device, which is used to place the object image of the object to be measured, and output a prompt message to indicate that the object image of the object to be measured is placed into the contour object.

[0059] The specified operation detected includes: the object image of the object to be measured is placed into the contour object.

[0060] Optionally, the method further includes:

[0061] Obtain a service object that can be provided to the object to be measured and matches the parameter measurement results for the object to be measured;

[0062] Output the service object.

[0063] Optionally, the object to be measured is the user whose body part size is to be measured, and the service target is clothing.

[0064] Optionally, the method may also include: outputting the parameter measurement results for the object to be measured.

[0065] A third aspect of this application provides a device attitude calibration apparatus, the apparatus comprising:

[0066] The first acquisition unit is used to acquire the current attitude data of the device;

[0067] The first judgment unit is used to determine whether the current attitude data matches the preset attitude data;

[0068] The output unit is used to output attitude adjustment guidance information to guide the device to adjust its current attitude to the preset attitude if the current attitude data does not match the preset attitude data.

[0069] The second acquisition unit is configured to acquire the first adjusted attitude data of the device in response to the first attitude adjustment operation of the device.

[0070] The second judgment unit is used to determine whether the first adjusted posture data matches the preset posture data.

[0071] The determination unit is used to determine that the attitude calibration for the device is successful if the first adjusted attitude data matches the preset attitude data.

[0072] A fourth aspect of this application provides an object parameter measuring device, the device comprising:

[0073] The first judgment unit is used to determine whether the current posture of the device matches the preset posture in response to the detection of a measurement command in the device that instructs the execution of parameter measurement operations on the object to be measured.

[0074] The output unit is used to output attitude adjustment guidance information to guide the device to adjust its current attitude to the preset attitude if the current attitude of the device does not match the preset attitude.

[0075] The second judgment unit is used to respond to the first posture adjustment operation of the device and determine whether the first adjusted posture of the device matches the preset posture.

[0076] The measurement operation unit is used to perform parameter measurement operations on the object to be measured if the first adjusted posture of the device matches the preset posture.

[0077] A fifth aspect of this application provides an electronic device comprising a processor, a memory, and a computer program, configured to be executed by the processor to implement the method described in any of the first aspects of this application, or the method described in any of the second aspects of this application.

[0078] A sixth aspect of this application provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor to implement the method described in any of the first aspects of this application, or the method described in any of the second aspects of this application.

[0079] This application provides a device posture calibration method. The method includes: obtaining the device's current posture data; determining whether the current posture data matches preset posture data; if the current posture data does not match the preset posture data, outputting posture adjustment guidance information to guide the device's current posture to the preset posture; responding to a first posture adjustment operation on the device, obtaining the device's first adjusted posture data; determining whether the first adjusted posture data matches the preset posture data; if the first adjusted posture data matches the preset posture data, then the posture calibration for the device is determined to be successful. The device can obtain its current posture data in real time, compare the current posture data with the preset posture data, determine whether they match, and adjust the device's posture data if they do not match until the adjusted posture data matches the preset posture data, thus achieving successful posture calibration for the device. In this way, when an operator holds the device, they can accurately grasp the current posture of the held device and successfully calibrate the device's current posture.

[0080] This application also provides a method for measuring object parameters. The method includes: responding to detecting a measurement command in the device indicating a parameter measurement operation for the object to be measured; determining whether the current posture of the device matches a preset posture; if the current posture does not match the preset posture, outputting posture adjustment guidance information to guide the adjustment of the current posture to the preset posture; responding to a first posture adjustment operation on the device, determining whether the first adjusted posture of the device matches the preset posture; if the first adjusted posture matches the preset posture, performing a parameter measurement operation on the object to be measured. By setting a preset posture in the device and detecting the current posture, determining in real time whether the current posture matches the preset posture, and displaying posture adjustment guidance information to guide the user to complete the current posture adjustment operation, the parameter measurement operation is performed on the object to be measured only after the adjustment operation is completed. In this way, before performing a parameter measurement operation on the object to be measured, the current posture of the measuring device is adjusted according to the guidance on the device's display interface, improving the accuracy of the parameter measurement results for the object to be measured. Attached Figure Description

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

[0082] Figure 1A This is a schematic diagram of the shooting scene for the object parameter measurement method provided in the embodiments of this application;

[0083] Figure 1B This is a schematic diagram of another shooting scenario for the object parameter measurement method provided in the embodiments of this application;

[0084] Figure 2 This is a schematic flowchart of the device attitude calibration method provided in the embodiments of this application;

[0085] Figure 3 This is a schematic diagram of a scenario for the device attitude calibration method provided in the embodiments of this application;

[0086] Figure 4 This is a flowchart illustrating the object parameter measurement method provided in an embodiment of this application;

[0087] Figures 5A-5C This is a schematic diagram of the measurement scenario of the object to be measured provided in the embodiments of this application;

[0088] Figure 6 This is a schematic diagram of the attitude adjustment guidance information provided in the embodiments of this application;

[0089] Figures 7A-7C This is a schematic diagram of the attitude adjustment process of the device provided in the embodiments of this application;

[0090] Figure 8 This is a schematic diagram of the outline object provided in the embodiments of this application;

[0091] Figure 9 This is a schematic diagram of placing an object image of the object to be measured into a contour object according to an embodiment of this application;

[0092] Figure 10 This is a block diagram of the device attitude calibration apparatus provided in the embodiments of this application;

[0093] Figure 11 This is a block diagram of the object parameter measuring device provided in the embodiments of this application;

[0094] Figure 12 This is a schematic diagram of the logical structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0095] This application provides a method and apparatus for calibrating device posture, as well as a method and apparatus for measuring object parameters. Therefore, it is more conducive to the operator accurately grasping the current posture of holding the device, capturing the measurement object that conforms to the real body proportions and values, and further improving the accuracy of measurement data of the intelligent body measurement applet.

[0096] To enable those skilled in the art to better understand the technical solutions of this application, the application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. However, this application can be implemented in many other ways different from those described above (below). Therefore, based on the embodiments provided in this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.

[0097] It should be noted that the terms "first," "second," "third," etc., in the claims, specification, and drawings of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. Such data are interchangeable where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown or described herein. Furthermore, the terms "comprising," "having," and their variations are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or apparatuses.

[0098] Figure 1A This is a schematic diagram of a shooting scene for the object parameter measurement method provided in an embodiment of this application. Figure 1A In the shooting scenario shown, user A is the object of operation, and user B is the object to be measured. User A holds the terminal device 101 and uses the measurement command in the terminal device 101 to instruct the parameter measurement operation to be performed on the object to be measured and calls the external camera of the terminal device 101 to take an image for user B using the prompt information of the terminal device 101, and perform parameter measurement operation on the object to be measured.

[0099] Figure 1B This is a schematic diagram of another shooting scenario for the object parameter measurement method provided in the embodiments of this application. Figure 1B In this process, the user B, who is the object to be measured, completes the operation independently. User B places the terminal device 101 on an object such as a table, or fixes the terminal device 101 at a suitable height by adjusting the bracket. Before performing the parameter measurement operation, user B adjusts the current posture of the device so that the adjusted posture matches the preset posture.

[0100] We know that captured images follow the imaging principle of objects appearing larger when closer and smaller when farther away. In the same image, objects closer to the device will appear larger than objects farther away. Furthermore, when the external camera on the device is tilted, the image captured of the object will differ in scale from its actual size.

[0101] by Figure 1A Taking a shooting scenario as an example, when user A tilts the top of the terminal device towards user B, the head-to-body ratio in the photo taken by user A for user B is smaller than user B's actual head-to-body ratio; conversely, when user A tilts the top of the terminal device towards user A, the head-to-body ratio in the photo taken by user A for user B is larger than user B's actual head-to-body ratio. Therefore, regardless of whether the top of the terminal device is tilted towards user B or user A, the final head-to-body ratio of user B in the resulting photo is distorted and differs from user B's actual head-to-body ratio. If the smart body measurement app uses photos taken in either of these two ways, then the accuracy of the smart body measurement data measured based on these photos will be affected. This body measurement data includes, but is not limited to, the three measurements (chest, waist, hip), head circumference, neck circumference, shoulder width, arm length, and leg length. Therefore, using photos that accurately reflect the actual body proportions and data can improve the accuracy of the data measured by the smart body measurement app.

[0102] However, since the shooting is done by the subject or the object being measured, they cannot accurately know whether there is a tilt angle between the terminal device and the object during the shooting process; they can only observe it with the naked eye. Therefore, how to accurately grasp the shooting angle while holding the device to capture images that conform to the actual body proportions and values, and further improve the accuracy of the measurement data from the smart body measurement mini-program, has become an urgent problem to be solved.

[0103] The terminal devices used in this application are smartphones, tablets, personal digital assistants (PDAs), etc., equipped with accelerometers and external cameras.

[0104] A terminal application can be an application client installed on a terminal device, or it can be a mini-program on an application client.

[0105] To better address the problems existing in the prior art, this application provides a device attitude calibration method and apparatus, and an object parameter measurement method and apparatus. The device attitude calibration method is described from the perspective of processing within the terminal device, and the object parameter measurement method is described from the perspective of the terminal device's display. The solutions proposed in this application are described below from these two perspectives.

[0106] The first embodiment of this application provides a device attitude calibration method, which will be described below in conjunction with... Figure 2 This application provides a detailed description of a device attitude calibration method provided in its embodiments. Figure 2 This is a flowchart illustrating a device attitude calibration method provided in an embodiment of this application. It should be noted that the steps shown in this flowchart can be executed in a computer system such as a set of computer-executable instructions, and in some cases, the steps shown can be executed in a logical order different from that shown in the flowchart.

[0107] like Figure 2 As shown, the device attitude calibration method provided in this application includes the following steps:

[0108] Step S201: Obtain the current attitude data of the device.

[0109] This step is used to obtain the current attitude data of the device.

[0110] In this embodiment, the device's built-in accelerometer and external camera are required to complete the task. Therefore, the device in this application can be a smartphone, tablet computer, personal digital assistant (PDA), etc., equipped with an accelerometer and external camera.

[0111] The terminal device has a terminal application installed. The terminal application can be an application client or a mini-program on an application client. The terminal device can respond to detecting that the target object has opened the terminal application, or it can respond to confirmation information from the target object confirming the execution of parameter measurement operations.

[0112] An accelerometer is an electronic device used to detect the acceleration force acting on a device. An accelerometer can measure the acceleration force on a device in a specific direction. We use the acceleration force in a specific direction to obtain the current attitude data of the device equipped with the accelerometer.

[0113] In this embodiment, obtaining the current attitude data of the device includes: obtaining the acceleration force values ​​of the accelerometer in the device in physical space, and then obtaining the current attitude data of the device based on the acceleration force values. Specifically, obtaining the acceleration force values ​​of the accelerometer in the device in physical space involves obtaining the acceleration force values ​​of the accelerometer along the Y-axis and Z-axis directions, respectively. Obtaining the current attitude data of the device based on the acceleration force values ​​includes obtaining the current attitude data of the device based on the acceleration force values ​​of the accelerometer along the Y-axis and Z-axis directions.

[0114] The three-axis coordinates in the accelerometer are defined as follows: when the screen of the device is facing the standing object to be measured, the upward and downward directions along the screen of the device are set as the Y-axis; the left and right directions along the screen of the device are set as the X-axis; and the direction perpendicular to the screen of the device is set as the Z-axis.

[0115] You can set the upward direction along the device screen as the positive Y-axis and the downward direction along the device screen as the negative Y-axis; set the rightward direction along the device screen as the positive X-axis and the leftward direction along the device screen as the negative X-axis; set the outward direction perpendicular to the device screen as the positive Z-axis and the inward direction perpendicular to the device screen as the negative Z-axis.

[0116] The current attitude data of the device is obtained based on the acceleration force value, including:

[0117] The angle between the device and the current reference plane is obtained based on the acceleration force value; this angle is used as the current attitude data of the device. The current reference plane is the plane formed by the Z-axis and X-axis directions of the accelerometer.

[0118] Figure 3 This is a schematic diagram illustrating a scenario for the device attitude calibration method provided in an embodiment of this application. Specifically, Figure 3 for Figure 1A A partial schematic diagram of the abstract terminal device 101. Figure 3The current attitude of the device is shown in the y0z plane. In the y0z plane, the Z-axis is an abstract line of the current reference plane, and the current attitude data is the angle between the device and the current reference plane, that is, 301 is the angle between the device and the current reference plane.

[0119] Specifically, obtaining the angle between the device and the current reference plane based on the acceleration force value includes: dividing the acceleration force value of the accelerometer in the device along the Z-axis direction by the acceleration force value of the accelerometer in the device along the Y-axis direction to obtain a parameter quotient; using the parameter quotient as a parameter of the arctangent function to obtain the arctangent value in radians; converting the arctangent value in radians to an arctangent value in degrees; and converting the arctangent value in degrees to the angle between the device and the current reference plane.

[0120] Obtain the acceleration force values ​​y on the Y-axis and z on the Z-axis of the device's accelerometer. Divide these acceleration force values ​​to obtain the parameter quotient z / y. Calculate the arctangent value of the parameter quotient z / y using Math.atan2(y, z). The arctangent value obtained using the Math.atan2(y, z) function is in radians. Convert the obtained Math.atan2(y, z) to arctangent in degrees by multiplying it by 180 / π. Finally, convert the arctangent value in degrees to the angle between the device and the current reference plane.

[0121] Specifically, the angle between the device and the current reference plane can be calculated using the following algorithm. Let the angle be beta, then const beta = 180 + Math.atan2(y, z) * 57.3.

[0122] This step is used to obtain the current attitude data of the device based on the built-in accelerometer. The current attitude data reflects the current attitude of the device, laying the foundation for the next step of determining whether the current attitude data matches the preset attitude data.

[0123] Step S202: Determine whether the current posture data matches the preset posture data.

[0124] This step is used to determine whether the current attitude data matches the preset attitude data. In order to make the device perpendicular to the current reference plane, the preset attitude data indicates that the angle between the device and the current reference plane is 90 degrees.

[0125] Step S203: If the current posture data does not match the preset posture data, then output posture adjustment guidance information to guide the device to adjust its current posture to the preset posture.

[0126] This step is used to output attitude adjustment guidance information to guide the device to adjust its current attitude to the preset attitude if the obtained current attitude data does not match the preset attitude data.

[0127] When the object being operated holds the device, if the current attitude data obtained by the device's accelerometer does not match the preset attitude data, attitude adjustment guidance information will be output on the device's display interface to guide the device's current attitude to be adjusted to the preset attitude.

[0128] The posture adjustment guidance information can be text information, image information, or a combination of both.

[0129] The posture adjustment image information consists of multiple guide objects with the same shape and size; the geometric center distance between the multiple guide objects is proportional to the current posture data of the device.

[0130] Step S204: In response to the first attitude adjustment operation for the device, obtain the first adjusted attitude data of the device.

[0131] This step is used in response to the first attitude adjustment operation for the device to obtain the first adjusted attitude data of the device.

[0132] The object being operated on can perform a first attitude adjustment operation by being prompted by the attitude adjustment guidance information on the device. The device responds to the first attitude adjustment operation and obtains the first adjusted attitude data of the device.

[0133] Step S205: Determine whether the first adjusted posture data matches the preset posture data.

[0134] This step is used by the device to determine in real time whether the adjusted posture data matches the preset posture data.

[0135] Step S206: If the first adjusted posture data matches the preset posture data, then the posture calibration for the device is determined to be successful.

[0136] This step is used to determine that the attitude calibration for the device is successful if it is determined that the first adjusted attitude data matches the preset attitude data.

[0137] If the current attitude data of the device is obtained and it is determined that the current attitude data matches the preset attitude data, then the attitude calibration of the device is successful.

[0138] This application provides a device posture calibration method applied within a terminal device. The terminal device pre-sets preset posture data to be achieved. Simultaneously, the terminal device obtains its current posture data using a built-in accelerometer and a pre-defined algorithm. This current posture data is compared with the pre-set posture data to determine if they match. If they do not match, posture adjustment guidance information is output on the terminal device's display interface to guide the user to adjust the current posture to the preset posture. The user then performs a first posture adjustment operation on the terminal device according to the guidance information. Based on this first posture adjustment operation, the user obtains the adjusted posture data in real time. The user further determines if the adjusted posture data matches the pre-set posture data. If they match, the posture calibration of the terminal device is successful, and the user completes the posture calibration process. This provides a basis for subsequently using the terminal device's external camera to capture images that conform to the actual body proportions and values ​​of the object being measured.

[0139] The second embodiment of this application also provides a method for measuring object parameters, which will be described below in conjunction with... Figure 4 This application provides a detailed description of an object parameter measurement method according to an embodiment. Figure 4 This is a flowchart illustrating an object parameter measurement method provided in an embodiment of this application. It should be noted that the steps shown in this flowchart can be executed in a computer system such as a set of computer-executable instructions, and in some cases, the steps shown can be executed in a logical order different from that shown in this flowchart.

[0140] like Figure 4 As shown, the object parameter measurement method provided in this application includes the following steps:

[0141] Step S401: In response to detecting a measurement command in the device for instructing the execution of parameter measurement operations on the object to be measured, determine whether the current posture of the device matches the preset posture.

[0142] This step is used to determine whether the current posture of the device matches the preset posture in response to the detection of a measurement command in the device that instructs the execution of parameter measurement operations on the object to be measured.

[0143] Detecting a measurement instruction in the device to instruct the execution of a parameter measurement operation for the object to be measured includes: detecting that a parameter measurement application for performing the parameter measurement operation is opened in the device; or obtaining confirmation information in the device to confirm the execution of the parameter measurement operation, wherein the confirmation information is response information to a parameter measurement query message used to ask whether to perform the parameter measurement operation.

[0144] Specifically, when the object to be measured needs to perform parameter measurement operations, it can seek assistance from the operator. After the operator opens the parameter measurement application installed on the device, the process begins to determine whether the device's current posture matches the preset posture. Alternatively, on a product page offering online purchases, after the object to be measured adds the product to its shopping cart or clicks "buy," if the product has different sizes, all sizes will generally be displayed for the object to select. If the object to be measured does not complete the size selection within the predetermined time, a pop-up window can ask if the object needs to measure the size. If the object clicks "confirm," the device receives confirmation information to confirm the execution of the parameter measurement operation. Upon receiving this confirmation information, the object to be measured can seek assistance from the operator, entering the process of determining whether the device's current posture matches the preset posture.

[0145] The current orientation of the device includes the current angle between the device's screen plane and the current reference plane, which is the plane that the object to be measured is currently perpendicular to in physical space.

[0146] The preset orientation of the device includes a preset reference angle between the screen plane of any device and the plane perpendicular to the object to be measured in physical space.

[0147] The object to be measured is the object on which parameter measurement operations are performed using any device.

[0148] Figures 5A-5C This is a schematic diagram of the measurement scenario for the object to be measured in an embodiment of this application. The following is in conjunction with... Figures 5A-5C The preset posture of the object to be measured in the measurement scenario of the embodiments of this application will be introduced.

[0149] like Figure 5A As shown, the object to be measured stands vertically on a plane. The current reference plane is the plane on which the object stands vertically, i.e., plane 5-1 is the current reference plane. The preset posture of the device is the preset reference angle between the screen plane and the current reference plane, which can be 90 degrees. Figure 5A The orientation of the device screen plane shown in 5-2 is the preset orientation of the device.

[0150] like Figure 5B As shown, the object to be measured stands on a slope, but at an angle perpendicular to the plane. The current reference plane is the plane that the object to be measured is currently perpendicular to in physical space, i.e. Figure 5B The dashed line 5-3 shown represents the current reference plane. The device's preset orientation is the preset reference angle between the screen plane and the current reference plane; this preset reference angle can be 90 degrees. Figure 5B The device screen plane orientation shown in 5-4 is the device's preset orientation.

[0151] like Figure 5C As shown, the object to be measured stands on a slope. Because it is supported by support 5-5, the object can stand vertically on the slope. The current reference plane is slope 5-6. The preset posture of the device is the preset reference angle between the screen plane and the current reference plane, which can be 90 degrees. Figure 5C The device screen plane orientations shown in 5-7 are the device's preset orientations.

[0152] Because the position of the object being measured is different, the current reference plane is also different, and consequently the preset posture of the device will also be different.

[0153] Figures 5A-5C The object standing upright is the object to be measured, which is the object to which the parameter measurement operation is performed using the equipment.

[0154] In response to a measurement command detected in the device instructing the execution of parameter measurement operations on the object under test, the device determines whether its current posture matches a preset posture. The preset posture of the device varies depending on the standing position of the object under test. The preset posture of the device must always remain parallel to the standing direction of the object under test.

[0155] Step S402: If the current posture of the device does not match the preset posture, then output posture adjustment guidance information to guide the device to adjust its current posture to the preset posture.

[0156] This step is used to output attitude adjustment guidance information to guide the device to adjust its current attitude to the preset attitude if it is determined that the current attitude of the device does not match the preset attitude.

[0157] In this embodiment, the output posture adjustment guidance information for guiding the device's current posture to a preset posture includes: displaying a first guidance object, a second guidance object, and posture object adjustment prompt information on the device's display interface to prompt the device's current posture to be adjusted to a preset posture, so that the current relative positions of the first guidance object and the second guidance object are adjusted to a preset relative positional relationship. The first guidance object has the same shape as the second guidance object, and the first guidance object has the same size as the second guidance object.

[0158] like Figure 6 The diagram shown is a schematic diagram of the attitude adjustment guidance information provided in an embodiment of this application. Figure 6 The first guide object 601 and the second guide object 602 are both circular, and they are the same size. Figure 6 The posture adjustment prompt in the program is the text message "Keep the device vertical and make the two circles coincide".

[0159] In this embodiment, the first and second guiding objects can be set to any shape, such as triangles, rectangles, hexagons, or pattern icons. The posture object adjustment prompts in this embodiment can also be directional arrow indicators, or a combination of text and directional arrow indicators.

[0160] This step determines that the device's current posture does not match the preset posture, and then outputs posture adjustment guidance information on the device's display interface to guide the user to adjust the device's current posture to the preset posture. This posture adjustment guidance information guides the user to adjust the device's posture.

[0161] Step S403: In response to the first posture adjustment operation for the device, determine whether the first adjusted posture of the device matches the preset posture.

[0162] This step is used in response to the first attitude adjustment operation for the device to determine whether the first adjusted attitude of the device matches the preset attitude.

[0163] The operation object performs a first posture adjustment operation on the device. After detecting the first posture adjustment operation on the device, it determines whether the adjusted relative position relationship between the first guide object and the second guide object on the device's display interface matches the preset relative position relationship.

[0164] The first attitude adjustment operation for the device includes: adjusting the state of the device so that the first guided object and the second guided object move toward each other.

[0165] Determining whether the adjusted relative positions of the first and second guide objects on the device match the preset relative positions includes: determining whether the display positions of the first guide object and the second guide object on the device overlap.

[0166] When the operating object performs a first posture adjustment operation on the device, the first guide object and the second guide object move towards each other on the device's display interface. When the display positions of the first guide object and the second guide object on the device coincide, the first adjusted posture of the device matches the preset posture.

[0167] like Figures 7A-7C The diagram shown is a schematic representation of the attitude adjustment process of the device provided in this embodiment of the application. Figure 7AThis diagram illustrates the device display interface before the initial posture adjustment operation. At this point, the display positions of the first and second guided objects are far apart, indicating a significant difference between the current posture of the device held by the operator and the preset posture. The operator adjusts the device's current posture according to the posture adjustment guidance information. During this adjustment, the first and second guided objects on the display interface move. To quickly match the current posture with the preset posture, the device's state is adjusted so that the first and second guided objects move towards each other. For example... Figure 7B This is a schematic diagram of the device's display interface during the first posture adjustment operation. At this time, the display positions of the first and second guided objects are closer together, and the difference between the current posture of the device held by the operator and the preset posture has decreased. The operator can continue to perform the first posture adjustment operation until the display positions of the first and second guided objects coincide.

[0168] This step is used in response to a first attitude adjustment operation on the device to determine whether the device's first adjusted attitude matches a preset attitude. This determination can be made by displaying a first guide object, a second guide object, and attitude object adjustment prompts on the device's display interface. The user performs the first attitude adjustment operation on the device based on the information displayed on the interface, and the system continuously checks whether the device's first adjusted attitude matches the preset attitude.

[0169] S404, if the first adjusted posture of the device matches the preset posture, then a parameter measurement operation is performed on the object to be measured.

[0170] This step is used to perform parameter measurement operations on the measurement object if it is determined that the first adjusted posture of the device matches the preset posture.

[0171] If the first adjusted posture of the device matches the preset posture, then a posture matching prompt message is output to indicate that the posture of the device matches the preset posture.

[0172] like Figure 7C The diagram shows the device's first adjusted posture matching the preset posture. At this time, the device's current posture is adjusted to the preset posture, and a prompt message is displayed on the device's screen plane indicating that the device's screen plane is now perpendicular to the plane that the object being measured is currently perpendicular to in physical space, such as "The device is now perpendicular, and the two circles coincide."

[0173] After determining that the first adjusted posture of the device matches the preset posture, a specified operation prompt message is output to prompt the user to perform a specified operation; in response to detecting the specified operation, the parameters of the object to be measured are measured to obtain the parameter measurement results for the object to be measured.

[0174] The output of specified operation prompt information for prompting the execution of a specified operation includes: displaying a contour object on the device, the contour object being used to place the object image of the object to be measured, and outputting operation prompt information for prompting the object image of the object to be measured to be placed into the object image of the contour object;

[0175] The detection of the specified operation includes: detecting that the object image of the object to be measured is placed into the contour object.

[0176] Since the physical characteristics of people of different genders are different, you can select the gender before displaying the outline object. In response to the gender selection operation on the display interface, the outline object of the selected gender will be displayed.

[0177] like Figure 8 The diagram shown is a schematic representation of a contour object provided in an embodiment of this application. After the current posture of the device matches a preset posture, the selection of a contour object is displayed on the device's display interface, and the operator selects a suitable contour object.

[0178] After selecting a suitable contour object, it is displayed on the device. This contour object is used to place the image of the object to be measured into it; that is, it is captured by the device's external camera, placing the image of the object to be measured into the contour object on the display interface. The device's display interface also needs to show prompts indicating the object image placement operation.

[0179] The device adjusts its straight-line distance from the object to be measured to place the object image of the object to be measured in the outline object of the display interface. During the adjustment process, the device needs to maintain the current posture after the first adjustment at all times.

[0180] like Figure 9 The diagram shown illustrates the placement of an object image of a measured object into a contour object according to an embodiment of this application. The contour object is provided in response to a selection operation by an operating object. The object image placement operation prompt information prompts the operating object to place the object image of the measured object into the contour object. For example, the object image placement operation prompt information may be... Figure 9 The image shown is "Place the object image of the object to be measured into the shown area".

[0181] Once the object image of the object to be measured is completely placed into the contour object, the parameters of the object to be measured are measured to obtain the parameter measurement results for the object to be measured, and then the parameter measurement results of the object to be measured are output.

[0182] This step is used to match the first adjusted posture of the device with the preset posture, and then perform parameter measurement operations on the object to be measured. The contour object is displayed on the device's display interface. The operation object places the object image of the object to be measured into the contour object. After placement, the device measures the parameters of the object to be measured, obtains the parameter measurement results for the object to be measured, and further outputs the parameter measurement results of the object to be measured.

[0183] After obtaining the parameter measurement results for the object to be measured, a service object that can be provided to the object to be measured and matches the parameter measurement results for the object to be measured is obtained; the service object is then output.

[0184] The object to be measured is the user whose body part dimensions are to be measured, and the service target is clothing.

[0185] After obtaining the parameter measurement results for the object to be measured, the system provides the object with clothing that matches the parameter measurement results and outputs the clothing size. In other words, after obtaining the parameter measurement results, the system provides the object with clothing of a suitable size that matches the object's parameter results and outputs the size of the clothing. For example, if the size of the clothing that matches the parameter measurement results of the object is M, then the system outputs a suggested size M for the clothing to the object.

[0186] Therefore, this application provides a method for measuring object parameters. In response to detecting a measurement command in the device instructing the execution of a parameter measurement operation on the object to be measured, the method determines whether the current posture of the device matches a preset posture. If they do not match, posture adjustment guidance information is output to guide the user to adjust the current posture of the device to the preset posture. In response to a first posture adjustment operation on the device, the method determines whether the first adjusted posture of the device matches the preset posture. If they match, a parameter measurement operation is performed on the object to be measured. A preset posture is set in the device, and the current posture is detected. The method determines in real time whether the current posture matches the preset posture and displays posture adjustment guidance information to guide the user to complete the current posture adjustment operation. After the adjustment operation is completed, a parameter measurement operation is performed on the object to be measured. In this way, before performing a parameter measurement operation on the object to be measured, the current posture of the measuring device is adjusted according to the guidance on the device's display interface, improving the accuracy of the parameter measurement results for the object to be measured.

[0187] The third embodiment of this application provides a device attitude calibration apparatus. Please refer to [link / reference]. Figure 10This is a block diagram of the device attitude calibration apparatus provided in the third embodiment of this application. This block diagram corresponds to the device attitude calibration method provided in the first embodiment of this application, and is briefly described here. For any unclear aspects of the implementation scheme in this embodiment, please refer to the first embodiment.

[0188] The device includes:

[0189] The first acquisition unit 1001 is used to acquire the current attitude data of the device;

[0190] The first judgment unit 1002 is used to determine whether the current attitude data matches the preset attitude data;

[0191] The output unit 1003 is used to output attitude adjustment guidance information to guide the current attitude of the device to be adjusted to the preset attitude if the current attitude data does not match the preset attitude data.

[0192] The second obtaining unit 1004 is used to obtain the first adjusted attitude data of the device in response to the first attitude adjustment operation of the device.

[0193] The second judgment unit 1005 is used to determine whether the first adjusted posture data matches the preset posture data.

[0194] The determination unit 1006 is used to determine that the attitude calibration for the device is successful if the first adjusted attitude data matches the preset attitude data.

[0195] Optionally, obtain the device's current attitude data, including:

[0196] Obtain the acceleration force value of the accelerometer in the device in physical space;

[0197] The current attitude data of the device is obtained based on the acceleration force value.

[0198] Optionally, obtaining the acceleration force value of the accelerometer in the device in physical space includes:

[0199] The acceleration force values ​​of the accelerometer in the device along the Y-axis and Z-axis directions are obtained respectively;

[0200] The current attitude data of the device is obtained based on the acceleration force values, including: obtaining the current attitude data of the device based on the acceleration force values ​​of the accelerometers in the device along the Y-axis and Z-axis directions;

[0201] Among them, the upward and downward directions along the device's screen are set as the Y-axis direction;

[0202] Set the left and right directions along the device's screen to be along the X-axis;

[0203] Set the screen orientation of the vertical device to be along the Z-axis.

[0204] Optionally, the current attitude data of the device can be obtained based on the acceleration force value, including:

[0205] The angle between the device and the current reference plane is obtained based on the acceleration force value;

[0206] Use this included angle as the current attitude data of the device;

[0207] The current reference plane is the plane formed by the Z-axis and X-axis directions of the accelerometer.

[0208] Optionally, the angle between the device and the current reference plane can be obtained based on the acceleration force value, including:

[0209] The parameter quotient is obtained by dividing the acceleration force value of the accelerometer in the Z-axis direction by the acceleration force value of the accelerometer in the Y-axis direction.

[0210] By using the parametric quotient as the parameter of the arctangent function, the arctangent value in radians can be obtained;

[0211] Convert the arctangent value in radians to the arctangent value in degrees;

[0212] Convert the arctangent value of the angle into the angle between the device and the current reference plane.

[0213] Optionally, preset attitude data indicates that the angle between the device and the current reference plane is 90 degrees.

[0214] Optionally, the posture adjustment guidance information includes at least one of posture adjustment text information and posture adjustment image information.

[0215] Optionally, the pose adjustment image information consists of multiple guide objects with the same shape and size;

[0216] The distance between the geometric centers of multiple guided objects is proportional to the current attitude data of the device.

[0217] Optionally, the method further includes: if the current attitude data matches the preset attitude data, then determining that the attitude calibration for the device is successful.

[0218] The fourth embodiment of this application provides an object parameter measuring device. Please refer to... Figure 11 This is a block diagram of an object parameter measuring device provided in the fourth embodiment of this application. This block diagram corresponds to the object parameter measuring method provided in the second embodiment of this application, and is briefly described here. For any unclear aspects of the implementation scheme of this embodiment, please refer to the second embodiment.

[0219] The device includes:

[0220] The first judgment unit 1101 is used to determine whether the current posture of the device matches the preset posture in response to detecting a measurement command in the device that instructs the execution of parameter measurement operations for the object to be measured.

[0221] The output unit 1102 is used to output attitude adjustment guidance information to guide the device to adjust its current attitude to the preset attitude if the current attitude of the device does not match the preset attitude.

[0222] The second judgment unit 1103 is used to respond to the first posture adjustment operation of the device and determine whether the first adjusted posture of the device matches the preset posture.

[0223] The measurement operation unit 1104 is used to perform parameter measurement operations on the object to be measured if the first adjusted posture of the device matches the preset posture.

[0224] Optionally, a measurement instruction is detected in the device to instruct the execution of a parameter measurement operation on the object to be measured, including:

[0225] The device detected that a parameter measurement application used to perform parameter measurement operations was running;

[0226] Alternatively, the device may obtain confirmation information for confirming the execution of a parameter measurement operation, wherein the confirmation information is a response to a parameter measurement query that asks whether to perform the parameter measurement operation.

[0227] Optionally, the current orientation of the device includes the current angle between the screen plane of the device and the current reference plane, where the current reference plane is the plane that the object to be measured is currently perpendicular to in physical space;

[0228] The preset posture includes a preset reference angle between the screen plane of any device and the plane perpendicular to the object being measured in physical space. The object to be measured is the object targeted by the parameter measurement operation performed using any device.

[0229] Optionally, output posture adjustment guidance information for guiding the device to adjust its current posture to a preset posture, including: displaying a first guidance object, a second guidance object, and posture object adjustment prompt information on the device to prompt the device to adjust its current posture to a preset posture so that the current relative positional relationship between the first guidance object and the second guidance object is adjusted to the preset relative positional relationship;

[0230] In response to a first attitude adjustment operation on the device, determine whether the device's first adjusted attitude matches a preset attitude, including:

[0231] In response to the detection of a first posture adjustment operation for the device, it is determined whether the adjusted relative position relationship between the first guide object and the second guide object matches the preset relative position relationship.

[0232] Optionally, the shape of the first guide object is the same as the shape of the second guide object, and the size of the first guide object is the same as the size of the second guide object;

[0233] The first attitude adjustment operation for the device includes: adjusting the state of the device so that the first guided object and the second guided object move toward each other;

[0234] Determining whether the adjusted relative positions of the first guide object and the second guide object match the preset relative position relationship includes: determining whether the display position of the first guide object on the device coincides with the display position of the second guide object on the device.

[0235] Optionally, adjusting the current posture of the device to a preset posture includes: providing a prompt message that adjusts the screen plane of the device to be perpendicular to the plane that the object to be measured is currently perpendicular to in physical space.

[0236] Optionally, the method further includes: if the first adjusted posture of the device matches the preset posture, then outputting a posture matching prompt message to indicate that the posture of the device matches the preset posture.

[0237] Optionally, perform parameter measurement operations on the object to be measured, including:

[0238] Outputs a prompt message for the specified operation to be performed;

[0239] In response to the detection of a specified operation, the parameters of the object to be measured are measured, and the measurement results of the parameters of the object to be measured are obtained.

[0240] Optionally, the output of a specified operation prompt message to indicate the need to perform the specified operation includes:

[0241] Display a contour object on the device, which is used to place the object image of the object to be measured, and output a prompt message to indicate that the object image of the object to be measured is placed into the contour object.

[0242] The specified operation detected includes: the object image of the object to be measured is placed into the contour object.

[0243] Optionally, the method further includes:

[0244] Obtain a service object that can be provided to the object to be measured and matches the parameter measurement results for the object to be measured;

[0245] Output the service object.

[0246] Optionally, the object to be measured is the user whose body part size is to be measured, and the service target is clothing.

[0247] Optionally, the method may also include: outputting the parameter measurement results for the object to be measured.

[0248] The fifth embodiment of this application provides an electronic device, which includes a processor 1201, a memory 1202, and a computer program, and is configured to be executed by the processor 1201 to implement the method described in any of the first embodiments of this application, or the method described in any of the second embodiments of this application.

[0249] Optionally, the memory 1202 can be either standalone or integrated with the processor 1201. When the memory 1202 is a device independent of the processor 1201, the electronic device also includes a system bus 1203 for connecting the processor 1201 and the memory 1202.

[0250] A sixth aspect of this application provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor to implement the method described in any of the first embodiments of this application, or the method described in any of the second embodiments of this application.

[0251] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0252] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0253] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0254] 1. Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include non-transitory computer-readable media, such as modulated data signals and carrier waves.

[0255] 2. Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0256] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope defined in the claims of the present invention.

Claims

1. A method for calibrating the attitude of a device, characterized in that, include: Obtaining the current attitude data of the device includes: obtaining the acceleration force values ​​of the accelerometer in the device along the Y-axis and Z-axis directions respectively; obtaining the current angle between the screen plane of the device and the current reference plane based on the acceleration force values ​​of the accelerometer in the device along the Y-axis and Z-axis directions; and using the current angle as the current attitude data of the device. Specifically, when the screen plane of the device is facing the standing object to be measured, the upward and downward directions along the screen are defined as the Y-axis direction, the left and right directions along the screen are defined as the X-axis direction, and the direction perpendicular to the screen is defined as the Z-axis direction. The current reference plane is the plane formed by the Z-axis and X-axis directions of the accelerometer, the current reference plane is the slope on which the object to be measured is standing perpendicularly, and the object to be measured is the user whose body part dimensions are to be measured. Determine whether the current posture data matches the preset posture data, wherein the preset posture data includes a preset reference angle between the screen plane of the device and the current reference plane; If the current posture data does not match the preset posture data, posture adjustment guidance information is output to guide the device to adjust its current posture to the preset posture. In response to a first attitude adjustment operation for the device, first adjusted attitude data of the device is obtained; Determine whether the first adjusted posture data matches the preset posture data; If the first adjusted posture data matches the preset posture data, then the posture calibration for the device is determined to be successful, and a contour object is displayed on the device. The contour object is used to place the object image of the object to be measured. An object image placement operation prompt message is output to prompt that the object image of the object to be measured is placed into the contour object. In response to detecting that the object image of the object to be measured is placed into the contour object, the parameters of the object to be measured are measured to obtain the parameter measurement results for the object to be measured.

2. The method according to claim 1, characterized in that, The step of obtaining the angle between the device and the current reference plane based on the acceleration force value includes: The parameter quotient is obtained by dividing the acceleration force value of the accelerometer in the device along the Z-axis direction by the acceleration force value of the accelerometer in the device along the Y-axis direction. The quotient of the parameters is used as the parameter of the arctangent function to obtain the arctangent value in radians; Convert the arctangent value in radians to the arctangent value in degrees; The arctangent value of the angle is converted into the angle between the device and the current reference plane.

3. The method according to claim 1, characterized in that, The preset attitude data indicates that the angle between the device and the current reference plane is 90 degrees.

4. The method according to claim 1, characterized in that, The posture adjustment guidance information includes at least one of posture adjustment text information and posture adjustment image information.

5. The method according to claim 4, characterized in that, The posture adjustment image information consists of multiple guide objects with the same shape and size; The geometric center distance between the plurality of guided objects is proportional to the current attitude data of the device.

6. The method according to claim 1, characterized in that, The method further includes: If the current attitude data matches the preset attitude data, then the attitude calibration for the device is considered successful.

7. A method for measuring object parameters, characterized in that, include: In response to detecting a measurement command in the device for instructing the execution of parameter measurement operations on the object to be measured, it is determined whether the current attitude data of the device matches preset attitude data, wherein the preset attitude data includes a preset reference angle between the screen plane of the device and the current reference plane; If the current attitude data of the device does not match the preset attitude data, attitude adjustment guidance information is output to guide the device to adjust its current attitude to the preset attitude. In response to a first attitude adjustment operation for the device, it is determined whether the first adjusted attitude data of the device matches the preset attitude data. If the first adjusted posture data of the device matches the preset posture data, a contour object is displayed on the device. The contour object is used to place the object image of the object to be measured. An object image placement operation prompt message is output to prompt that the object image of the object to be measured is placed into the contour object. In response to detecting that the object image of the object to be measured is placed into the contour object, the parameters of the object to be measured are measured to obtain the parameter measurement results for the object to be measured. The current attitude data of the device is obtained according to the following steps: The acceleration force values ​​of the accelerometer in the device along the Y-axis and Z-axis are obtained respectively. Based on the acceleration force values ​​of the accelerometer in the device along the Y-axis and Z-axis, the current angle between the screen plane of the device and the current reference plane is obtained, and the current angle is used as the current attitude data of the device. Wherein, when the screen plane of the device is facing the standing object to be measured, the upward and downward directions along the screen of the device are set as the Y-axis direction, the leftward and rightward directions along the screen of the device are set as the X-axis direction, and the direction perpendicular to the screen of the device is set as the Z-axis direction. The current reference plane is the plane formed by the Z-axis and X-axis directions of the accelerometer, the current reference plane is the slope on which the object to be measured is standing vertically, and the object to be measured is the user whose body part size is to be measured.

8. The method according to claim 7, characterized in that, The detection of a measurement command in the device to instruct the execution of a parameter measurement operation on the object to be measured includes: The device detected that a parameter measurement application used to perform parameter measurement operations was running; Alternatively, confirmation information can be obtained in the device to confirm the execution of a parameter measurement operation, wherein the confirmation information is a response to a parameter measurement query that asks whether to perform the parameter measurement operation.

9. The method according to claim 7, characterized in that, The output is used to guide the device to adjust its current posture to a preset posture. The output includes: displaying a first guide object, a second guide object, and posture object adjustment prompt information on the device to prompt the device to adjust its current posture to the preset posture so that the current relative positional relationship between the first guide object and the second guide object is adjusted to the preset relative positional relationship. The step of determining whether the first adjusted posture data of the device matches the preset posture data in response to the first posture adjustment operation of the device includes: In response to detecting a first attitude adjustment operation for the device, it is determined whether the adjusted relative position relationship between the first guide object and the second guide object matches the preset relative position relationship.

10. The method according to claim 9, characterized in that, The shape of the first guide object is the same as the shape of the second guide object, and the size of the first guide object is the same as the size of the second guide object; The first posture adjustment operation for the device includes: adjusting the state of the device so that the first guide object and the second guide object move toward each other; The step of determining whether the adjusted relative positions of the first guide object and the second guide object match the preset relative position relationship includes: determining whether the display position of the first guide object on the device coincides with the display position of the second guide object on the device.

11. The method according to claim 10, characterized in that, The step of adjusting the current posture of the device to the preset posture includes: providing a prompt message that adjusts the screen plane of the device to be perpendicular to the plane that is currently perpendicular to the object to be measured in physical space.

12. The method according to claim 7, characterized in that, The method further includes: if the first adjusted posture data of the device matches the preset posture data, then outputting posture matching prompt information to indicate that the posture of the device matches the preset posture.

13. The method according to claim 7, characterized in that, The parameter measurement operation performed on the object to be measured includes: Outputs a prompt message for the specified operation to be performed; In response to the detection of the specified operation, the parameters of the object to be measured are measured to obtain the parameter measurement results for the object to be measured.

14. The method according to claim 7, characterized in that, The method further includes: Obtain a service object that can be provided to the object to be measured and matches the parameter measurement results for the object to be measured; Output the service object.

15. The method according to claim 14, characterized in that, The service is for clothing.

16. The method according to claim 7, characterized in that, The method further includes: outputting the parameter measurement results for the object to be measured.

17. A device for calibrating the attitude of an equipment, characterized in that, The device includes: The first obtaining unit is used to obtain the current posture data of the device, including: obtaining the acceleration force values ​​of the accelerometer in the device along the Y-axis and Z-axis directions respectively; obtaining the current angle between the screen plane of the device and the current reference plane based on the acceleration force values ​​of the accelerometer in the device along the Y-axis and Z-axis directions; and using the current angle as the current posture data of the device; wherein, when the screen plane of the device is facing the standing object to be measured, the upward and downward directions along the screen of the device are set as the Y-axis direction, the left and right directions along the screen of the device are set as the X-axis direction, and the direction perpendicular to the screen of the device is set as the Z-axis direction; the current reference plane is the plane formed by the Z-axis and X-axis directions of the accelerometer, the current reference plane is the slope on which the object to be measured is standing vertically, and the object to be measured is the user whose body part size is to be measured; The first judgment unit is used to determine whether the current posture data matches the preset posture data, wherein the preset posture data includes a preset reference angle between the screen plane of the device and the current reference plane. The output unit is configured to output attitude adjustment guidance information to guide the device to adjust its current attitude to the preset attitude if the current attitude data does not match the preset attitude data. The second obtaining unit is configured to obtain first adjusted attitude data of the device in response to a first attitude adjustment operation for the device. The second judgment unit is used to determine whether the first adjusted posture data matches the preset posture data. A determining unit is configured to determine that the attitude calibration for the device is successful if the first adjusted attitude data matches the preset attitude data. The device is further configured to: display a contour object on the device, the contour object being used to place an object image of an object to be measured, output an object image placement operation prompt message for prompting the object image of the object to be measured to be placed into the contour object, and, in response to detecting that the object image of the object to be measured is placed into the contour object, measure the parameters of the object to be measured, and obtain parameter measurement results for the object to be measured.

18. An object parameter measuring device, characterized in that, The device includes: The first judgment unit is used to respond to the detection of a measurement command in the device for instructing the execution of parameter measurement operations on the object to be measured, and to determine whether the current posture data of the device matches the preset posture data, wherein the preset posture data includes a preset reference angle between the screen plane of the device and the current reference plane; The output unit is configured to output attitude adjustment guidance information to guide the device to adjust its current attitude to the preset attitude if the current attitude data of the device does not match the preset attitude data. The second judgment unit is used to determine, in response to the first attitude adjustment operation of the device, whether the first adjusted attitude data of the device matches the preset attitude data. The measurement operation unit is configured to display a contour object on the device if the first adjusted posture data of the device matches the preset posture data, the contour object being used to place an object image of the object to be measured, outputting an object image placement operation prompt message to prompt the object image of the object to be measured to be placed into the contour object, and in response to detecting that the object image of the object to be measured is placed into the contour object, measuring the parameters of the object to be measured, and obtaining the parameter measurement results for the object to be measured. The current attitude data of the device is obtained according to the following steps: The acceleration force values ​​of the accelerometer in the device along the Y-axis and Z-axis are obtained respectively. Based on the acceleration force values ​​of the accelerometer in the device along the Y-axis and Z-axis, the current angle between the screen plane of the device and the current reference plane is obtained, and the current angle is used as the current attitude data of the device. Wherein, when the screen plane of the device is facing the standing object to be measured, the upward and downward directions along the screen of the device are set as the Y-axis direction, the left and right directions along the screen of the device are set as the X-axis direction, and the direction perpendicular to the screen of the device is set as the Z-axis direction. The current reference plane is the plane formed by the Z-axis and X-axis directions of the accelerometer, the current reference plane is the slope on which the object to be measured is standing vertically, and the object to be measured is the user whose body part size is to be measured.

19. An electronic device, characterized in that, include: A processor, a memory, and computer program instructions stored in the memory and executable on the processor; the processor, when executing the computer program instructions, implements the device attitude calibration method as described in any one of claims 1-6 or the object parameter measurement method as described in any one of claims 7-16.

20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the device attitude calibration method as described in any one of claims 1-6 or the object parameter measurement method as described in any one of claims 7-16.

Citation Information

Patent Citations

  • Photographic method and electronic device

    CN103945043A

  • Photographing posture prompting method, device and equipment and computer readable storage medium

    CN114339020A

  • Human body measurement data acquisition method, human body measurement data processing method and human body measurement data processing equipment

    CN114519866A