Height measuring method and device, and terminal

The method converts two-dimensional skeletal point coordinates to three-dimensional space using camera pose and point cloud information to accurately measure subject height without a reference object, addressing inaccuracies in conventional methods and enabling multi-subject measurement.

JP7574525B2Active Publication Date: 2024-10-29HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023501759
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-07-15
Filing Date
2021-01-23
Publication Date
2024-10-29
Estimated Expiration
2041-01-23

AI Technical Summary

Technical Problem

Conventional height measurement methods require the subject to be in an upright position and rely on standard scales, infrared, or ultrasound reflections, leading to inaccuracies due to posture requirements and environmental irregularities, and they cannot measure multiple subjects simultaneously.

Method used

A method that involves capturing an image of a subject, detecting key skeletal points, converting their two-dimensional pixel coordinates to three-dimensional coordinates using camera pose and three-dimensional point cloud information, and determining height based on skeletal distances without a reference object, allowing for non-contact measurement of multiple subjects in various postures.

Benefits of technology

Improves measurement accuracy by eliminating errors from posture and environmental factors, enabling simultaneous height measurement of multiple subjects in different positions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007574525000005
    Figure 0007574525000005
  • Figure 0007574525000006
    Figure 0007574525000006
  • Figure 0007574525000007
    Figure 0007574525000007
Patent Text Reader

Abstract

A height measurement method is provided, which relates to the field of image processing technology. The method includes steps of: acquiring (301) an image including an object and a pose of a camera used to capture the image; acquiring (302) pixel coordinates of at least two key skeleton points of the object in the image; acquiring (303) three-dimensional coordinates of the key skeleton points based on the pose of the camera and the pixel coordinates of the key skeleton points; and determining (304) height data of the object based on the three-dimensional coordinates of the at least two key skeleton points. This method allows for rapid and accurate acquisition of height data of the object.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of image processing technology, and in particular to a height measurement method and device, and a terminal. [Background technology]

[0002] Height is an important part of basic data of the human body and has always attracted a lot of attention. How to quickly and accurately obtain height data of a measurement object and how to simultaneously obtain height data of multiple measurement objects have always been hot research topics in related fields.

[0003] Traditional height measurement methods require the measurement target to be in an upright position. The height data is obtained by using a standard scale or infrared or ultrasonic reflection, and the height data can only be measured one by one. In addition, the position requirement is strict. If the upright position is not standard, the height data will be inaccurate.

[0004] In existing height measurement methods, the height of a measurement object may be obtained by proportionally scaling a reference object. For example, as shown in FIG. 1, a virtual ruler is displayed on the preview interface of a terminal, and the distance between a terminal device and a measurement object is obtained by using a distance sensor of the terminal. The height of the measurement object is estimated based on a preset correspondence between the distance value and the ruler.

[0005] Since the measurement results of the height measurement method are obtained by proportionally magnifying the distance between the terminal and the measurement object using a virtual ruler, both the resolution of the terminal device and the accuracy of the distance sensor of the terminal device affect the measurement accuracy, and if the resolution is insufficient or the surrounding environment of the measurement object is irregular, the accuracy of the height measurement results will decrease. Summary of the Invention

[0006] The embodiments of the present application provide a height measurement method for measuring the height of an object, which can improve the accuracy of the measurement result.

[0007] A first aspect of an embodiment of the present application provides a height measurement method including the steps of: acquiring an image including a subject and a posture of a camera used to capture the image; acquiring pixel coordinates of at least two key skeletal points of the subject in the image, where the key skeletal points include skeletal joints and the pixel coordinates indicate two-dimensional position information of the key skeletal points in the image; acquiring three-dimensional coordinates of the at least two key skeletal points based on the posture of the camera and the pixel coordinates of the at least two key skeletal points, where the three-dimensional coordinates indicate three-dimensional position information of the key skeletal points in a coordinate system and the three-dimensional coordinates of the at least two key skeletal points indicate information about a distance between the at least two key skeletal points; and determining height data of the subject based on the three-dimensional coordinates of the at least two key skeletal points.

[0008] According to the height measurement method provided in this embodiment of the present application, a two-dimensional image obtained by photographing an object may be detected according to a skeleton detection algorithm or the like. Pixel coordinates of key skeleton points in the image may be obtained. The pixel coordinates of the key skeleton points may be converted into three-dimensional coordinates in a three-dimensional space based on the pose of the camera corresponding to the two-dimensional image. The three-dimensional coordinates correspond to the position information of the key skeleton points in the real world. Thus, height data of the object may be directly obtained. According to the height measurement method provided in this solution, height data of the object may be obtained in a non-contact manner based on the photographed two-dimensional image of the object. Furthermore, no height reference is required in the photographing scenario. This can reduce errors and improve the accuracy of the measurement.

[0009] In a possible implementation of the first aspect, the step of determining height data of the subject based on the three-dimensional coordinates of the at least two key skeletal points specifically includes the steps of acquiring pixel coordinates of at least three key skeletal points of the subject in the image, acquiring three-dimensional coordinates of the at least three key skeletal points based on the camera pose and the pixel coordinates of the at least three key skeletal points, wherein the three-dimensional coordinates indicate three-dimensional position information of the key skeletal points in a coordinate system, and the three-dimensional coordinates of the at least three key skeletal points indicate information about distances between the at least three key skeletal points, and determining at least two skeletal distances based on the three-dimensional coordinates of the at least three key skeletal points, and determining height data of the subject based on the at least two skeletal distances.

[0010] In a possible implementation of the first aspect, the coordinate system includes a world coordinate system.

[0011] In a possible implementation of the first aspect, the method further includes a step of acquiring three-dimensional point cloud information of the subject, and the step of acquiring three-dimensional coordinates of at least two key skeleton points of the subject based on the camera pose and pixel coordinates of the key skeleton points specifically includes a step of acquiring three-dimensional coordinates of the at least two key skeleton points based on the pixel coordinates of the key skeleton points, the camera pose, and the three-dimensional point cloud information in accordance with an impact detection algorithm.

[0012] The method provides a specific solution for converting the pixel coordinates of the key skeleton points into the three-dimensional coordinates of the key skeleton points, i.e., from two-dimensional information to three-dimensional information. The three-dimensional coordinates of the key skeleton points are obtained based on the three-dimensional point cloud information and the impact detection algorithm. Therefore, compared with the direct calculation performed based on the camera pose, the method can improve the accuracy of the three-dimensional coordinates.

[0013] In a possible implementation of the first aspect, the step of acquiring 3D point cloud information of the subject specifically includes: The method includes acquiring three-dimensional point cloud information of the object based on at least two images of the object taken from different orientations.

[0014] The present method provides a specific method for acquiring three-dimensional point cloud information. Specifically, the three-dimensional point cloud information of an object may be acquired by acquiring multiple images of the object, and detecting and matching feature points of the multiple images of the object. Since the three-dimensional point cloud information is acquired based on information about the multiple images, the three-dimensional point cloud information contains richer information than a single image. This can improve the accuracy of the three-dimensional coordinates.

[0015] In a possible implementation of the first aspect, the step of acquiring the three-dimensional point cloud information of the object specifically includes acquiring the three-dimensional point cloud information of the object collected by a depth sensor. The depth sensor includes a binocular camera, a laser radar, a millimeter wave radar, or a time of flight (TOF) sensor.

[0016] This method provides another specific method for acquiring 3D point cloud information. The 3D point cloud information is collected by using a depth sensor. The 3D point cloud acquired by using a depth sensor can be a high-density point cloud, so it can contain richer information. Based on the high-density 3D point cloud, the acquired 3D coordinates of key skeleton points are more accurate.

[0017] In a possible implementation of the first aspect, the step of acquiring an image of the subject and a camera pose used when the image is captured specifically includes a step of acquiring at least two images of the subject captured from different orientations, the at least two images of the subject captured from different orientations comprising an image, and a step of acquiring the camera pose based on the at least two images of the subject captured from different orientations.

[0018] The method provides a specific way to obtain the camera pose. Specifically, the camera pose used when an image is captured may be estimated by obtaining at least two images of an object captured from different orientations, and detecting and matching feature points.

[0019] In a possible implementation of the first aspect, the step of acquiring an image of the subject and a camera pose used when the image is taken specifically includes a step of acquiring at least two images of the subject taken from different orientations, where the at least two images of the subject taken from different orientations include an image of the subject; acquiring inertial measurement unit data of the camera corresponding to the at least two images of the subject taken from different orientations; and determining the camera pose based on the inertial measurement unit data and the at least two images of the subject taken from different orientations.

[0020] The method provides a specific way to acquire the camera pose. In addition to acquiring at least two images of the object taken from different orientations, inertial measurement unit data may also be collected, which can improve the accuracy of the camera pose calculation.

[0021] In a possible implementation of the first aspect, the step of determining height data of the subject based on the three-dimensional coordinates of at least two key skeleton points specifically includes a step of obtaining a skeleton length of the subject and posture information of the subject based on the three-dimensional coordinates of the at least two key skeleton points, a step of determining a preset weight parameter of the skeleton length based on the posture information, and a step of determining height data of the subject based on the skeleton length and the weight parameter.

[0022] According to the height measurement method provided in this method, considering that the three-dimensional coordinates of key skeleton points are obtained from the body surface of the subject, there is a certain error between the actual height corresponding to the skeleton of the body and the skeleton length obtained based on the three-dimensional coordinates. Therefore, a weight parameter is introduced to correct the calculated skeleton length, which can improve the accuracy of the solution.

[0023] In a possible implementation of the first aspect, the skeletal length includes a head skeletal length and a leg skeletal length. The step of determining the height data of the subject based on the skeletal length and the weighting parameter specifically includes: determining a head height compensation value based on the head skeletal length and a preset head compensation parameter; determining a foot height compensation value based on the leg skeletal length and a preset foot compensation parameter; and determining the height data of the subject based on the skeletal length information, the weighting parameter, the head height compensation value, and the foot height compensation value.

[0024] The height measurement method provided in this invention introduces head and foot compensation, which can further improve the accuracy of the height measurement.

[0025] In a possible implementation of the first aspect, the method further includes performing face detection on the image to obtain head height data of the subject, the head height data being used to correct pixel coordinates of key skeleton points corresponding to the head in the two-dimensional key skeleton point information.

[0026] According to the height measurement method provided in the present invention, the head height data can be further obtained through face detection, and the pixel coordinates of the key skeleton points are corrected, thereby improving the accuracy of the measurement.

[0027] In a possible implementation of the first aspect, the image includes at least two objects. The method further includes performing face detection on the image and determining pixel coordinates of key skeleton points of each of the at least two objects from the pixel coordinates of the key skeleton points according to an image segmentation algorithm.

[0028] The height measuring method provided in this method can measure the heights of multiple objects in an image. Compared with the conventional technology in which the heights are detected one by one, this method can simplify the operation, thereby improving the efficiency of measurement.

[0029] In a possible implementation of the first aspect, the method includes a step of displaying information about at least two subjects to a user, the information about the at least two subjects including at least one of image information of the at least two subjects, image information marked with pixel coordinates of key skeleton points of the at least two subjects, and face detection result information of the at least two subjects; and a step of receiving a user instruction. The user instructions further include instructions to perform height measurements on one or more of the at least two objects.

[0030] The height measuring method provided in the present invention may further include performing an interaction with a user, and selecting an object that the user wants to detect the height of from the objects included in the image according to a user command, thereby improving the user experience.

[0031] In a possible implementation of the first aspect, the key skeleton points are arranged in the direction of gravity. Arranging the key skeleton points in the direction of gravity helps to improve the accuracy of the height measurement.

[0032] In a possible implementation of the first aspect, the subject is in a non-standing posture. The non-standing posture includes a sitting posture, a lying posture, and a kneeling posture. Even when the subject is in a non-standing posture, the height of the subject can be measured in this implementation of the present application.

[0033] In a possible implementation of the first aspect, the step of determining height data of the subject based on the three-dimensional coordinates of at least two key skeleton points specifically includes a step of obtaining skeleton length information of the subject based on the three-dimensional coordinates of at least two key skeleton points, a step of deleting skeleton length information that satisfies a first preset condition, the first preset condition including that the skeleton length in the skeleton length information is outside a preset range or that the difference in skeleton length between symmetrical parts is greater than or equal to a preset threshold range, and a step of determining height data of the subject based on the skeleton length information obtained after the deletion.

[0034] According to the height measurement method provided in the present method, the abnormal data may be deleted, which improves the accuracy of the measurement result. Optionally, based on the symmetry of the human body, the skeletons of the left and right symmetrical parts may be verified. For example, the difference between the skeleton lengths corresponding to the left leg and the right leg should be small. If the difference is larger than a threshold, the abnormal data may be deleted.

[0035] In a possible implementation of the first aspect, the method further includes labeling height data of the object in the image near the object and displaying the height data to a user or broadcasting the height data of the object through audio.

[0036] According to the height measurement method provided in the present invention, the height of the object may be marked on the image displayed in real time, providing real-time feedback, thereby improving the user experience.

[0037] In a possible implementation of the first aspect, the method further includes a step of displaying detection failure information to a user, or presenting detection failure information to a user through audio, or presenting detection failure information to a user through vibration, if the key skeleton points of the subject do not satisfy a second pre-set condition.

[0038] According to the height measurement method provided in the present invention, feedback may be provided to the user in case of failure to detect, thus improving the user experience.

[0039] A second aspect of an embodiment of the present application provides a height measurement device including: an acquisition module configured to acquire an image including an object and a pose of a camera used when capturing the image, the acquisition module being further configured to acquire pixel coordinates of at least two key skeletal points of the object in the image, the key skeletal points including skeletal joints, the pixel coordinates indicating two-dimensional position information of the key skeletal points in the image, the acquisition module being further configured to acquire three-dimensional coordinates of the at least two key skeletal points based on the pose of the camera and the pixel coordinates of the key skeletal points, the three-dimensional coordinates indicating three-dimensional position information of the key skeletal points in a coordinate system, the three-dimensional coordinates of the at least two key skeletal points indicating information about a distance between the at least two key skeletal points; and a determination module configured to determine height data of the object based on the three-dimensional coordinates of the at least two key skeletal points.

[0040] In a possible implementation of the second aspect, the acquisition module is specifically configured to acquire pixel coordinates of at least three key skeleton points of the object in the image, and acquire three-dimensional coordinates of the at least three key skeleton points based on the camera pose and the pixel coordinates of the at least three key skeleton points. The three-dimensional coordinates indicate three-dimensional position information of the key skeleton points in a coordinate system. The three-dimensional coordinates of the at least three key skeleton points indicate information about distances between the at least three key skeleton points.

[0041] The determination module is specifically configured to determine at least two skeleton distances based on the three-dimensional coordinates of the at least three key skeleton points, and determine height data of the subject based on the at least two skeleton distances.

[0042] In a possible implementation of the second aspect, the coordinate system includes a world coordinate system.

[0043] In a possible implementation of the second aspect, the acquisition module is further configured to acquire 3D point cloud information of the object. The step of acquiring 3D coordinates of at least two key skeleton points of the object based on the camera pose and pixel coordinates of the key skeleton points specifically includes acquiring 3D coordinates of the at least two key skeleton points according to an impact detection algorithm based on the pixel coordinates of the key skeleton points, the camera pose, and the 3D point cloud information.

[0044] In a possible implementation of the second aspect, the acquisition module is specifically configured to acquire three-dimensional point cloud information of the object based on at least two images of the object taken from different orientations.

[0045] In a possible implementation of the second aspect, the acquisition module is specifically configured to acquire three-dimensional point cloud information of the object collected by a depth sensor, the depth sensor including a binocular camera, a laser radar, a millimeter wave radar, or a time-of-flight sensor.

[0046] In a possible implementation of the second aspect, the acquisition module is specifically configured to perform a step of acquiring at least two images of the subject taken from different orientations, the at least two images of the subject taken from different orientations including an image, and a step of acquiring a camera pose based on the at least two images of the subject taken from different orientations.

[0047] In a possible implementation of the second aspect, the acquisition module is specifically configured to perform the steps of acquiring at least two images of the subject taken from different orientations, where the at least two images of the subject taken from different orientations include an image of the subject; acquiring inertial measurement unit data of the camera corresponding to the at least two images of the subject taken from different orientations; and determining a pose of the camera based on the inertial measurement unit data and the at least two images of the subject taken from different orientations.

[0048] In a possible implementation of the second aspect, the determination module is specifically configured to perform the steps of obtaining a skeleton length of a subject and posture information of the subject based on three-dimensional coordinates of at least two key skeleton points, determining a preset weight parameter of the skeleton length based on the posture information, and determining height data of the subject based on the skeleton length and the weight parameter.

[0049] In a possible implementation of the second aspect, the skeletal length includes a head skeletal length and a leg skeletal length. The determination module is specifically configured to perform the following steps: determine a head height compensation value based on the head skeletal length and a preset head compensation parameter; determine a foot height compensation value based on the leg skeletal length and a preset foot compensation parameter; and determine height data of the subject based on the skeletal length information, the weight parameter, the head height compensation value, and the foot height compensation value.

[0050] In a possible implementation of the second aspect, the image includes at least two objects. The apparatus further includes a processing module configured to perform face detection on the image and to determine pixel coordinates of key skeleton points of each of the at least two objects from the pixel coordinates of the key skeleton points according to an image segmentation algorithm.

[0051] In a possible implementation of the second aspect, the device further includes an output module configured to display information about the at least two objects to a user. The information about the at least two objects includes at least one of image information of the at least two objects, image information marked with pixel coordinates of key skeleton points of the at least two objects, and face detection result information of the at least two objects. The acquisition module is further configured to acquire a user instruction. The user instruction instructs to perform height measurement on one or more of the at least two objects.

[0052] In a possible implementation of the second aspect, the key skeleton points are arranged in the direction of gravity. Arranging the key skeleton points in the direction of gravity helps to improve the accuracy of the height measurement.

[0053] In a possible implementation of the second aspect, the subject is in a non-standing position. The non-standing positions include a sitting position, a lying position, and a kneeling position. Even when the subject is in a non-standing position, the height of the subject can be measured in this implementation of the present application.

[0054] In a possible implementation of the second aspect, the determination module is specifically configured to perform the following steps: obtaining skeleton length information of the subject based on the three-dimensional coordinates of at least two key skeleton points; deleting skeleton length information that satisfies a first preset condition, the first preset condition including that the skeleton length in the skeleton length information is outside a preset range or that the difference in skeleton length between symmetrical parts is greater than or equal to a preset threshold range; and determining height data of the subject based on the skeleton length information obtained after the deletion.

[0055] In a possible implementation of the second aspect, the device further includes an output module configured to label height data of the object near the object in the image and display the height data to a user or broadcast the height data of the object through audio.

[0056] In a possible implementation of the second aspect, the device further includes an output module configured to display detection failure information to a user, or present detection failure information to a user through audio, or present detection failure information to a user through vibration, if the key skeleton points of the subject do not satisfy a second pre-set condition.

[0057] A third aspect of an embodiment of the present application provides a terminal including one or more processors and a memory, the memory storing computer-readable instructions, the one or more processors reading the computer-readable instructions in the memory, thereby causing the terminal to implement the method according to any one of the first aspect and possible implementations.

[0058] A fourth aspect of an embodiment of the present application provides a computer program product comprising instructions, which when executed on a computer, enables the computer to carry out a method according to the first aspect and any one of the possible implementations.

[0059] A fifth aspect of an embodiment of the present application provides a computer-readable storage medium comprising instructions, which when executed on a computer, cause the computer to perform the method according to the first aspect and any one of the possible implementations.

[0060] A sixth aspect of an embodiment of the present application provides a chip including a processor. The processor is configured to read and execute a computer program stored in a memory, and executes a method according to any one of the possible implementations of the previous aspect. Optionally, the chip includes a memory, and the memory and the processor are connected by using a circuit or a wire. Furthermore, optionally, the chip further includes a communication interface, and the processor is connected to the communication interface. The communication interface is configured to receive data and / or information that needs to be processed. The processor obtains the data and / or information from the communication interface, processes the data and / or information, and outputs the processing result through the communication interface. The communication interface may be an input / output interface.

[0061] For the technical effects provided by any one of the implementations of the second to sixth aspects, please refer to the technical effects provided by the corresponding implementations in the first aspect, and the details will not be described again in this specification.

[0062] From the above technical solutions, it can be seen that the embodiments of the present application have the following advantages:

[0063] According to the height measurement method provided in this embodiment of the present application, an image of an object and the pose of a camera used when the image is taken are obtained, and skeleton detection may be performed on the image to obtain pixel coordinates of at least two key skeleton points of the object in the image, and then the pixel coordinates of the key skeleton points are transformed into a three-dimensional space based on the pose of the camera to obtain the three-dimensional coordinates of the at least two key skeleton points, and finally, height data of the object is determined based on the three-dimensional coordinates of the at least two key skeleton points. In this method, the two-dimensional pixel coordinates of the key skeleton points are transformed into three-dimensional coordinates, and the height data of the object is directly obtained without transforming the reference object. This can avoid measurement errors caused by the transformation of the reference object when the scenario around the object is complex, and can improve the accuracy of the height measurement result.

[0064] Moreover, regardless of the posture of the object, the skeleton information indicated by the key skeleton points of the object remains unchanged. Therefore, the height measurement method provided in this embodiment of the present application may be applied to measure the height of objects in various postures. [Brief description of the drawings]

[0065] [Figure 1] FIG. 2 is a schematic diagram of an embodiment of a height measurement.

[0066] [Figure 2a] 1 is a schematic diagram of an embodiment of an application scenario of a height measurement method according to an embodiment of the present application;

[0067] [Figure 2b] 1 is a schematic diagram of an embodiment of an application scenario of a height measurement method according to an embodiment of the present application;

[0068] [Diagram 3] FIG. 1 is a schematic diagram of an embodiment of a height measurement method according to an embodiment of the present application.

[0069] [Figure 4] FIG. 2 is a schematic diagram of another embodiment of a height measurement method according to an embodiment of the present application.

[0070] [Diagram 5] FIG. 2 is a schematic diagram of converting 2D key skeleton points to 3D key skeleton points according to an embodiment of the present application;

[0071] [Figure 6] FIG. 2 is a schematic diagram of a method for measuring height in an upright position according to an embodiment of the present application.

[0072] [Figure 7] FIG. 1 is a schematic diagram of a height measurement method in a sitting position according to an embodiment of the present application.

[0073] [Figure 8] 1 is a schematic diagram of an application scenario of a height measurement method according to an embodiment of the present application;

[0074] [Figure 9a] FIG. 1 is a schematic diagram of a point cloud of a SLAM system according to an embodiment of the present application.

[0075] [Figure 9b] FIG. 2 is a schematic diagram of a 2D key skeleton point detection result according to an embodiment of the present application;

[0076] [Figure 9c] 1A-1C are schematic diagrams of height detection during measurement at different angles according to an embodiment of the present application;

[0077] [Figure 10] FIG. 1 is a schematic diagram of an embodiment of a height measurement device according to an embodiment of the present application.

[0078] [Figure 11a] FIG. 2 is a schematic diagram of another embodiment of a height measurement device according to an embodiment of the present application.

[0079] [Figure 11b] FIG. 2 is a schematic diagram of another embodiment of a height measurement device according to an embodiment of the present application.

[0080] [Figure 12] FIG. 2 is a schematic diagram of an embodiment of a terminal according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0081] The embodiments of the present application provide a height measurement method for measuring the height of an object in multiple poses, which can improve the accuracy of the height data.

[0082] For ease of understanding, some technical terms in the embodiments of the present application are briefly explained below.

[0083] 1. Human key skeletal point detection: That is, pose estimation, mainly detect some key points of the human body, such as joints and facial features, and provide skeletal information based on the key points. Key skeletal points are also called skeletal joints or joints.

[0084] 2. Intrinsic and extrinsic camera parameters

[0085] Intrinsic camera parameters are parameters relating to the characteristics of the camera itself, including the camera's focal length, pixel size, etc. In configurations of electronic devices with cameras, the intrinsic camera parameters are usually known.

[0086] The extrinsic camera parameters are parameters in the world coordinate system and include the position and rotation of the camera.

[0087] Based on the intrinsic and extrinsic camera parameters, it may be determined that two-dimensional pixels in an image captured by the camera correspond to three-dimensional coordinates in a world coordinate system.

[0088] 3. Camera posture

[0089] The position and orientation of the camera in the world coordinate system when the camera captures the image may be known, and the external camera parameters may be obtained based on the known orientation of the camera. The camera orientation includes six degrees of freedom (DoF). Three degrees of freedom in terms of position are used to determine the position of the camera in the three-dimensional space. Three degrees of freedom in terms of rotation angle are used to determine the orientation of the camera in the three-dimensional space. The camera orientation corresponds to the position and orientation of the camera in the world coordinate system when the image is captured. In the image sequence acquired through continuous shooting, which is used to calculate the camera orientation, a relative movement is required between the camera and the object, including a change in relative position and orientation. Specifically, the object may be stationary and the camera may be moving. Alternatively, the object may be moving and the camera may be stationary. Alternatively, both the object and the camera may be moving, and there is a change in relative orientation between the object and the camera.

[0090] The following describes the embodiments of the present application with reference to the accompanying drawings. It is clear that the described embodiments are only a part of the embodiments of the present application, not all of them. Those skilled in the art will recognize that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application can also be applied to similar technical problems.

[0091] In the present specification, claims, and accompanying drawings, the terms "first", "second", etc. are intended to distinguish between similar objects and do not necessarily indicate a specific order or sequence. It should be understood that data described in such a manner are interchangeable in appropriate circumstances, whereby the embodiments described herein can be implemented in an order different from that shown or described herein. Furthermore, the terms "comprise", "contain" and any other derivatives are intended to cover a non-exclusive inclusion, e.g., a process, method, system, product, or device that includes recited steps or modules is not necessarily limited to those steps or modules, but may include other steps or modules not expressly recited or inherent to such process, method, product, or device. The names or numbers of steps in this application do not imply that the steps in a method procedure must be performed in the temporal / logical order indicated by the names or numbers. The order of execution of steps in a named or numbered procedure can be changed based on the technical goal to be achieved, so long as the same or similar technical effect is achieved.

[0092] According to the height measuring method provided in the embodiment of the present application, the object to be measured may be a vertebrate animal. Specifically, a human is used as an example for explanation in the embodiment of the present application.

[0093] The height measurement method provided in the embodiments of the present application is applicable to multiple height measurement scenarios, and the following uses an example for illustration.

[0094] Scenario 1: In the application of augmented reality (AR) technology or virtual reality (VR) technology, height measurement may be performed by using an intelligent terminal device. For example, as shown in FIG. 2a, a smartphone is used to scan the surrounding environment of a measurement target (or referred to as a subject, measurement target, etc., and may be simply referred to as a target). A simultaneous localization and mapping (SLAM) system is used to estimate the pose of a camera and obtain three-dimensional (3D) point cloud data of the surrounding environment of the measurement target. Two-dimensional (2D) key skeleton points in an image, i.e., pixel coordinates of the key skeleton points, are obtained according to a skeleton detection algorithm and a face recognition algorithm. Three-dimensional coordinates of at least two key skeleton points in a three-dimensional space are obtained based on the 3D point cloud data. Data integration is performed on the three-dimensional information of the key skeleton points to output height data of one or more measurement targets, and measure the heights of multiple users in multiple poses. The height data may be superimposed near the measurement target in the image and output to a display of the smartphone. In the following embodiments, the height measurement method is described by taking scenario 1 as an example.

[0095] Scenario 2: As shown in Figure 2b, the imaging device is fixed. Images are captured when the measurement object walks through a predetermined position. Since the position of the camera in the world coordinate system is known, skeleton detection is performed on the captured image to obtain the 2D key skeleton points, and after the 2D key skeleton points are converted into 3D key skeleton points, the height data of the measurement object can be output through data integration and calculation.

[0096] The height measurement method will now be described in detail. FIG. 3 is a schematic diagram of an embodiment of a height measurement method according to an embodiment of the present application.

[0097] 301: Obtain an image of an object and the pose of the camera that captures the image.

[0098] In this application, the height measurement device may be a terminal. The terminal may acquire an image of the object by using an imaging device such as a camera. The camera may include a general monocular or binocular camera. This is not particularly limited in this specification. The camera may be a component built into the terminal or may be a device external to the terminal. The image data may be transmitted to the terminal through a communication connection. It is noted that the intrinsic camera parameters are known.

[0099] The terminal further obtains a camera pose corresponding to the image. Optionally, the terminal photographs the object from different orientations by using a monocular camera to obtain at least two images of the object, and calculates the camera pose by detecting pairs of similar feature points in the images. Alternatively, the terminal photographs the object by using a binocular camera and obtains the camera pose. An inertial measurement unit (IMU) is a device for measuring three-axis attitude angles (or angular velocities) and accelerations of an object. Optionally, when the terminal includes an IMU and a camera configured to photograph an image of the object, the camera pose may be obtained based on IMU data used in the imaging process of the camera. Optionally, the camera pose is calculated based on at least two photographed images of the object and IMU data used when the image is photographed. It will be understood that the camera pose obtained based on images of multiple objects and IMU data is more accurate.

[0100] Optionally, the image of the object may include one or more measurement objects.

[0101] 302: Obtain pixel coordinates of key skeleton points of an object in an image.

[0102] The key skeleton points include the joints of the skeleton. The key skeleton point recognition is performed on the image according to various existing skeleton detection algorithms to obtain pixel coordinates of at least two key skeleton points of the target in the image. The pixel coordinates may indicate two-dimensional position information of the key skeleton points in the image. The pixel coordinates (u,v) indicate the position of the key skeleton points in the image.

[0103] The key skeleton points may be detected according to a skeleton detection algorithm. Specifically, there are several key skeleton point detection algorithms, such as the regional multi-person pose estimation (RMPE) algorithm and the DeepCut algorithm. The number of key skeleton points may be, for example, 14 or 21.

[0104] Optionally, when the image of the object includes multiple measurement objects, the two-dimensional key skeleton point information of each measurement object may be obtained separately. The two-dimensional key skeleton point information includes pixel coordinates of each key skeleton point in the image, and further includes an identifier of each key skeleton point.

[0105] Optionally, the subject may be in an upright posture, which means that all key skeleton points of the subject are arranged along the gravity direction or vertically in the posture, and the key skeleton points arranged along the gravity direction or vertically in the posture help to improve the accuracy of the height measurement.

[0106] Optionally, the subject may be in a non-upright posture. A non-upright posture means that pixel coordinates of some key skeleton points of the subject are not aligned in the direction of gravity or aligned in the vertical direction of the posture, i.e., all pixel coordinates of key skeleton points in a non-upright posture are not aligned on a straight line in the vertical direction. A non-upright posture includes a sitting posture, a lying posture, a kneeling posture, or another posture. In the present solution, the height can be measured even when the subject is in a non-upright posture.

[0107] 303: Obtain the 3D coordinates of the key skeleton points based on the camera pose and the pixel coordinates of the key skeleton points.

[0108] Since the intrinsic camera parameters are known, pixel coordinates of the two-dimensional key skeleton points in the image may be transformed into three-dimensional coordinates in a world coordinate system based on the camera pose to obtain three-dimensional coordinates of at least two key skeleton points. The three-dimensional coordinates indicate three-dimensional position information of the key skeleton points in the world coordinate system. The three-dimensional coordinates are, for example, (x, y, z). Furthermore, since the three-dimensional coordinates of the at least two key skeleton points are obtained, an identifier of each key skeleton point may be further obtained to distinguish between different key skeleton points.

[0109] The three-dimensional coordinates of the at least two key skeleton points may indicate information about the distance between the at least two key skeleton points. For example, the three-dimensional coordinates of the first key skeleton point are (x1, y1, z1) and the three-dimensional coordinates of the second key skeleton point are (x2, y2, z2), and the distance between the first key skeleton point and the second key skeleton point in the world coordinate system may be calculated. It may be understood that if the first key skeleton point and the second key skeleton point are two end points of the same skeleton, i.e., related key skeleton points, a skeleton length may be calculated based on the three-dimensional coordinates of the two key skeleton points. In other words, the information about the distance between the at least two key skeleton points includes skeleton length information, which may be used to calculate the height of the object.

[0110] 304: Determine height data of the object based on the 3D coordinates of the key skeleton points.

[0111] The skeleton length may be obtained based on the three-dimensional coordinates of at least two key skeleton points. Specifically, the skeleton length may be calculated based on the three-dimensional coordinates of two related key skeleton points. Optionally, at least two skeleton distances may be determined based on the three-dimensional coordinates of at least three key skeleton points, and the skeleton structure of the object may be used to perform a linkage calculation based on the skeleton length information, whereby the height data of the object may be obtained based on the at least two skeleton distances. For example, the skeleton length may be calculated based on the Euclidean distance in three-dimensional space between the 3D coordinates of two joints forming the skeleton.

[0112] To obtain height data of an object, multiple skeleton lengths are usually required. To distinguish between different skeleton length information, a skeleton identifier corresponding to each skeleton length may be further obtained. The skeleton identifier may be the person's torso type (e.g., "arm" or "leg") corresponding to the skeleton, indicating different skeletons. There is a correspondence between the skeleton identifier and the key skeleton point identifier. For example, a key skeleton point identified as a right shoulder and a key skeleton point identified as a right elbow may together form a skeleton identified as a right upper arm.

[0113] A skeleton linking algorithm is used to obtain height data based on skeleton length. There are several specific calculation methods, which are not limited herein.

[0114] According to the height measurement method provided in this embodiment of the present application, the pixel coordinates of the key skeleton points of the object in the image are detected, then the pixel coordinates of the key skeleton points are transformed into a three-dimensional space based on the camera pose to obtain the three-dimensional coordinates of the key skeleton points, and finally, the height data of the object is determined based on the three-dimensional coordinates of at least two key skeleton points. In this method, the two-dimensional pixel coordinates of the key skeleton points are transformed into three-dimensional coordinates, and the height data of the object is directly obtained without transforming the reference object. This can avoid the measurement error caused by the transformation of the reference object when the scenario around the object is complex, and can improve the accuracy of the height measurement result.

[0115] FIG. 4 is a schematic diagram of another embodiment of a height measuring method according to an embodiment of the present application.

[0116] 401: Obtain an image of the target.

[0117] The terminal captures images of at least two objects, the images being captured by using the camera at different orientations.

[0118] Optionally, IMU data used when images of at least two objects are captured may be acquired simultaneously, and the IMU data may indicate the direction and distance of camera movement when the images of at least two objects are captured, since the camera poses are different.

[0119] Note that the image may contain one or more objects whose heights are to be measured. For each object, at least two images of the object must be acquired in order to perform a height measurement.

[0120] 402: Determine the camera pose in the image sequence.

[0121] The camera pose may be calculated based on at least two images of the object by detecting pairs of like feature points in the images. Alternatively, the camera pose is obtained based on IMU data used in the camera imaging process. Alternatively, the camera pose is calculated based on at least two images of the object and the IMU data used when the image is captured. It will be understood that the camera pose obtained based on the images and IMU data of multiple objects is more accurate.

[0122] The terminal may obtain a camera pose corresponding to any one of at least two images of the target.

[0123] 403: Obtain 3D point cloud information.

[0124] The terminal acquires three-dimensional point cloud information. The three-dimensional point cloud information includes three-dimensional coordinates of a visible part of an object in a coordinate system. Optionally, the coordinate system includes a world coordinate system. Optionally, a method for acquiring the three-dimensional point cloud information includes a LiDAR depth imaging method, a computer stereo vision imaging method, a structured light method, etc., which is not particularly limited in this specification.

[0125] For example, the 3D point cloud information is obtained by using a computer stereo vision imaging method. Specifically, feature extraction and matching is performed on at least two images of the object obtained in step 401 to obtain feature point pairs. A 3D point cloud corresponding to pixels in the images of the object is obtained according to a triangulation algorithm and based on the camera pose feature point pairs determined in step 402.

[0126] For example, the 3D point cloud information is obtained by using a LiDAR depth imaging method. If the terminal includes a depth sensor, such as a laser sensor, the 3D point cloud information may be obtained directly. Depending on the specific configuration of the depth sensor, the output of the 3D point cloud information may be a dense 3D point cloud or a semi-dense 3D point cloud.

[0127] Optionally, 3D point cloud information may be obtained in combination with the above two methods. That is, when the 3D point cloud is calculated based on the image of the object and the camera pose, the point cloud depth is directly provided by the depth map acquired by the depth sensor. In this way, the accuracy of the 3D point cloud can be improved. In addition, the camera pose can also be optimized, which makes the camera pose more accurate.

[0128] 404: Perform face detection on the target image.

[0129] It should be noted that the image of the object may include one or more objects whose heights are to be measured. Face information of the one or more measurement objects may be determined by performing face detection on the image of the object.

[0130] Optionally, if the image of the target includes multiple face information, the terminal may further present the face detection result to the user, for example, by presenting the face information of each target on a display, or by outputting the number of targets through audio.

[0131] 405: Perform image segmentation based on face information.

[0132] Facial information of the one or more measurement targets may be determined based on the face detection results of step 404 .

[0133] When the image of the target includes multiple face information, image segmentation may be performed on the image of the target to obtain image portions of multiple measurement targets, which may be used to measure the heights of the multiple measurement targets, respectively.

[0134] It should be noted that steps 404 and 405 are optional and may or may not be performed, which is not a limitation herein.

[0135] 406: Perform skeleton detection based on the image of the object to obtain two-dimensional key skeleton point information of the object.

[0136] The two-dimensional key skeleton point information of the target image is obtained according to a key skeleton point detection algorithm. The two-dimensional key skeleton point information in this specification includes pixel coordinates of the key skeleton points and identifiers of the key skeleton points corresponding to the pixel coordinates.

[0137] The key skeleton points of a person may be detected according to a skeleton detection algorithm. Specifically, there are multiple key skeleton point detection algorithms. For example, the number of key skeleton points of a person may be 14 or 21. For example, 14 points are used as an example. Table 1 shows the meaning and number of the key skeleton points of a person. The pixel coordinates of the key skeleton points of each person in the image may be output according to the skeleton detection algorithm and are identified by a preset number. [Table 1]

[0138] Optionally, when the image includes multiple measurement objects, the two-dimensional key skeleton point information of each measurement object may be obtained according to a key skeleton point detection algorithm. Optionally, when step 404 is performed, skeleton detection is performed on the image of the object to obtain the key skeleton points of the people of all measurement objects in the image, and then the two-dimensional key skeleton point information corresponding to the face detection result of each measurement object is determined. Alternatively, skeleton detection is performed separately on the image determined through the image segmentation of step 405 to obtain the two-dimensional key skeleton point information corresponding to each measurement object.

[0139] Optionally, when the image includes multiple measurement targets, information about all the measurement targets is displayed to the user. The information about the measurement targets includes at least one of image information of the measurement targets, two-dimensional key skeleton point information of the measurement targets, and face detection result information of the measurement targets. Then, a user command is obtained, and one or more of the at least two measurement targets are determined as targets for height measurement based on the user command.

[0140] Optionally, the two-dimensional key skeleton point information of the target is verified based on the face detection result. Specifically, in the two-dimensional key skeleton point information, the key skeleton point corresponding to the head is usually a single joint, and the face information recognized in the face detection indicates information from the chin to the hairline. Therefore, the pixel coordinates of the two-dimensional key skeleton point corresponding to the head may be verified based on the face detection result. This can improve the accuracy of the height measurement result in the present solution.

[0141] Optionally, when the two-dimensional key skeleton point information of the target does not satisfy the second preset condition, a detection failure information is displayed to the user, or the user is presented with the detection failure information through voice, or the user is presented with the detection failure information through vibration, which is not particularly limited in the present specification.

[0142] Optionally, the second preset condition may be that no key skeleton points are detected. Alternatively, the second preset condition may be that the number of key skeleton points is less than or equal to a preset threshold, for example, 5, 6, or 7. Alternatively, the second preset condition is that the number of skeletons indicated by the detected key skeleton points is less than or equal to a preset threshold, for example, 3 or 4. Alternatively, the second preset condition is that the skeleton type and the number indicated by the detected key skeleton points do not meet a preset requirement. For example, the skeleton type indicated by the key skeleton points does not include skeletons corresponding to the upper arm, the forearm, the thigh, and the shin, or the skeleton type indicated by the key skeleton points does not include a head skeleton, or the number of skeletons corresponding to the upper arm, the forearm, the thigh, and the shin indicated by the key skeleton points is less than or equal to 3, etc. The specific content of the second preset condition is not limited in this specification.

[0143] It should be noted that steps 404 and 406 are not limited to an order of execution.

[0144] It should be noted that steps 402, 403, and 404 to 406 are not limited to an order of execution, and steps 402, 403, and 404 to 406 may be executed simultaneously, or steps 402 and 403 may be executed before steps 404 to 406, or steps 404 to 406 may be executed before steps 402 and 403.

[0145] 407: Obtain 3D key skeleton point information based on the camera pose and the 3D point cloud information, and according to the impact detection algorithm.

[0146] The transformed 3D key skeleton point coordinates corresponding to the 2D key skeleton points are obtained according to a hit detection (HitTest) algorithm and based on the camera pose obtained in step 402 and the 3D point cloud information obtained in step 403. The 3D key skeleton point information includes the 3D coordinates of the key skeleton points and the identifiers of the key skeleton points corresponding to the 3D coordinates.

[0147] For the principle of the impact detection (HitTest) algorithm, please refer to the SLAM technology. Figure 5 is a schematic diagram of transforming 2D key skeleton points into 3D key skeleton points according to an embodiment of the present application. The optical center of the camera is used as the starting point of issuing a virtual ray to detect the 2D key skeleton points based on the camera pose and the 3D point cloud information. Impact detection (HitTest) is performed on the ray and the 3D point cloud to obtain the transformed 3D key skeleton point coordinates corresponding to the 2D key skeleton points. The specific method of impact detection is a conventional technology. The details are not described in this specification. It should be noted that when the ray collides with the 3D point cloud, if no impact result is obtained for the ray, a search may be performed within a certain range centered on the ray, and the final impact result is obtained by neighboring 3D point interpolation. Finally, the 3D key skeleton point information corresponding to the 2D key skeleton point is output.

[0148] Optionally, pixel coordinates of the 2D key skeleton points in the images are directly transformed to 3D coordinates in a world coordinate system based on the image of the object and the pose of the camera corresponding to the image. The 3D key skeleton point information includes the 3D coordinates of the key skeleton points and an identifier of the key skeleton point.

[0149] The three-dimensional point cloud information is obtained by using a computer stereo vision imaging method and based on images of multiple objects, or by using a LiDAR depth imaging method, etc. Therefore, the accuracy of the three-dimensional coordinates of the key skeleton points obtained according to the impact detection algorithm and based on the camera pose and the three-dimensional point cloud information is higher than the three-dimensional coordinates obtained by directly converting the two-dimensional coordinates of the key skeleton points based on the camera pose. It can be understood that the three-dimensional point cloud indicates the more accurate obtained three-dimensional coordinates of the key skeleton points.

[0150] 408: Obtain skeleton length information based on the three-dimensional key skeleton point information.

[0151] The skeleton length information is obtained based on the three-dimensional key skeleton point information, and includes a skeleton identifier and a skeleton length.

[0152] Specifically, every two key skeleton points are connected to form one skeleton. The actual length of each skeleton is obtained based on the Euclidean distance in three-dimensional space between the 3D joints. The identifier of the skeleton may be determined based on the identifier of the key skeleton point. The identifier of the skeleton indicates the skeleton type. For example, the length of the left thigh skeleton may be obtained based on the three-dimensional coordinate of the left hip joint and the three-dimensional coordinate of the left knee joint. The length of the left shin skeleton may be obtained based on the three-dimensional coordinate of the left knee joint and the three-dimensional coordinate of the left ankle joint. It should be noted that since the number of detected key skeleton points may be missing, the skeleton length information obtained based on the three-dimensional key skeleton point information may include the length information of only one skeleton, or may include the length information of multiple skeletons. This is not particularly limited in this specification.

[0153] Optionally, if the skeleton length information satisfies a first preset condition, the skeleton length information is deleted. For example, if the first preset condition is that the skeleton length exceeds a preset threshold range, the corresponding skeleton length information is deleted. It is understood that the threshold range of the skeleton length of different types of skeletons is different. For example, the range of the skeleton length of the thigh skeleton is different from that of the forearm. Furthermore, based on the specific type of the measurement object, for example, an adult, a child, or another vertebrate other than a human, the threshold range of the skeleton length of the measurement object of different types may be flexibly set based on statistical information. Alternatively, the first preset condition may be that the difference in the skeleton length between the symmetrical parts is greater than or equal to a preset threshold range. For example, if the ratio of the length of the left arm skeleton to the length of the right arm skeleton is greater than or equal to 2, or less than or equal to 0.5, the skeleton length information corresponding to the arm is deleted.

[0154] 409: Obtain posture information of the object based on the three-dimensional key skeleton point information.

[0155] The posture of the human body is estimated based on the effective bone length information obtained in step 408 to determine posture information of the object. The posture information may be obtained according to a regional multi-person pose estimation (RMPE) algorithm, an instance segmentation (Mask RCNN) algorithm, etc., which are not limited in this application. The posture information indicates the posture of the human body, and may distinguish between a standing posture, a sitting posture, a lying posture, etc.

[0156] If some data in the bone length information is missing, the pose information is an incomplete pose, which may be caused by a part of the torso being occluded in the image of the target, removing some data in the bone length information, etc.

[0157] It should be noted that steps 408 and 409 are not limited to a specific order of execution.

[0158] 410: Determine height data for the object based on the pose information and bone length information.

[0159] Pre-set weighting parameters are determined based on the object's pose information in step 409, and a weighting calculation is performed based on the weighting parameters and the skeleton length information to determine the object's height data.

[0160] Optionally, if the pose information of the object is complete pose, i.e., all bone length information is valid, a weighted height calculation for height is performed according to equation (1).

number

[0161] In formula (1), n ​​is the number of effective skeletons, L i is the length of the i-th skeleton, α i is a weighting coefficient of the length of the i-th skeleton, and β is a compensation parameter. Optionally, weighting coefficients α i may be dynamically adjusted, or the weighting coefficients corresponding to the entire skeleton in different poses may be pre-stored.

[0162] Optionally,

number

[0163] L f1 is a compensation value for the distance between the face and the top of the head. f1 The range of values ​​for L is 2cm to 3cm. f2 is a compensation value for the distance between the ankle joint and the sole of the foot. f2 The range of values ​​for is 3 cm to 5 cm. L1 is the skeletal length corresponding to the head, and L n-1 is the skeletal length corresponding to the thigh, and L n is the skeletal length corresponding to the shin, τ1 is a compensation factor for the distance between the face and the top of the head, and τ2 is a compensation factor for the distance between the ankle joint and the sole of the foot.

[0164] The weighting calculations performed on the bone length in the height data calculation are briefly described below. For example, Figures 6 and 7 are schematic diagrams of the height measurement of a human body in a standing and sitting position, respectively.

[0165] The skeleton length information obtained based on the three-dimensional key skeleton point information corresponds to the dashed line area shown in FIG. 6 or FIG. 7. The length of the dashed line area represents the skeleton length information obtained through calculation. The height data expected to be obtained needs to be calculated based on the solid line area shown in FIG. 6. To implement the conversion from the length of the dashed line area to the length of the solid line area, a calculation is performed based on the weighting coefficient in the present solution. The length of the solid line area represents the actual height calculated based on the weighting coefficient and the skeleton length. For example, La is the length corresponding to the head, La' is the actual head height obtained through weighting calculation, and Lb is the length corresponding to the shin, Lb is the actual shin height obtained through weighting calculation.

[0166] It should be noted that for the setting of each weighting coefficient, parameter adjustment is performed based on experience. Alternatively, each weighting coefficient may be trained by using a neural network. Common models include decision trees, BP (back propagation) neural networks, etc. This is not limited in this application.

[0167] Optionally, when the posture information of the object is an incomplete posture, the weighting coefficient of the skeleton may be adjusted based on the effective skeleton length information, and the height data is calculated. When the acquired effective skeleton length information is incomplete, that is, when the posture information of the object is an incomplete posture, one or more effective skeleton length information may exist. When only one effective skeleton length information exists, a weighting coefficient is determined for the skeleton. When multiple effective skeleton length information exists, a weighting coefficient is determined for each effective skeleton length information in the multiple effective skeleton length information. The value of the weighting coefficient corresponding to the entire effective skeleton may be different. The specific value is not limited in this specification. It will be understood that the error of the height data calculated in the incomplete posture increases. Optionally, when the result is displayed, the user may be presented that the current posture information is an incomplete posture in multiple ways, including a screen display, a voice instruction, a vibration presentation, etc. This is not limited in this specification.

[0168] Optionally, after the height data of the object is obtained, the terminal may output the height data of the user in multiple ways, including screen display, voice instruction, vibration presentation, etc., which are not limited in this specification.

[0169] Optionally, when a measurement is completed, the measurement results are displayed on the screen near the image of the object through a scale, as shown in Figure 8. When multiple objects are measured simultaneously, height data for each object may be displayed separately near the object in the image of the object.

[0170] Hereinafter, as shown in Figs. 9a to 9c, the simulation experiment results of the height measurement method will be described.

[0171] The surrounding environment is scanned. The SLAM system obtains a 3D point cloud corresponding to the measurement object through calculation. The distribution of the 3D point cloud is shown in Figure 9a. When the measurement object is photographed, the skeleton detection module performs 2D skeleton point detection. (In the example, 15 key skeleton points are detected according to the skeleton detection algorithm.) The 2D detection result is shown in Figure 9b. The coordinate conversion module converts the 2D coordinates into 3D coordinates and calculates the length of each 3D skeleton point. The calculation of each skeleton length during actual operation is shown in Figure 9c. Figure 9c shows the two measurement results separately. It can be seen that when the measurement is performed from different distances and different angles, the measured skeleton length may vary. In this case, the data integration module is required to perform weighting. The height is finally calculated. The calculation process is described below. The skeleton lengths obtained by the two measurements are shown in Table 2. The unit is centimeters (cm). [Table 2]

[0172] The weight and height are calculated as follows:

[0173] (1) During height measurement, the posture is a standard sitting posture, with the entire skeleton intact. Skeleton lengths corresponding to left / right shoulder, left / right elbow, left / right wrist, and hip bones are not used in height calculation. Therefore, their weights are set to 0.

[0174] (2) Different weights are assigned to the skeletal lengths from the top of the head to the neck, from the neck to the hip bone, from the left / right knee to the left / right hip, and from the left / right ankle to the left / right knee due to perspective relationships. (The weights are related to the camera's shooting angle and the distance between the camera and the measurement object, and the details of the calculation process are not described in this specification.)

[0175] (3) The head compensation value is obtained by weighting based on the skeletal length from the top of the head to the neck, and the ankle compensation value is obtained by weighting based on the average skeletal length of the skeletal lengths from the left / right hip to the left / right knee and left / right ankle.

[0176] (4) In the example, the actual height of the object to be measured is 172 cm. In this method, the calculated heights after the two measurements are weighted are 175.7 cm and 171.3 cm, respectively, with error percentages of 2.15% and -0.42%, respectively, and the average measurement error is 1.28%.

[0177] The above describes the height measurement method provided in this application. In the following, a terminal implementing the height measurement method will be described. FIG. 10 is a schematic diagram of an embodiment of a terminal according to an embodiment of the present application.

[0178] The terminal in this embodiment of the present application may be various types of terminal devices, such as a mobile phone, a tablet computer, a notebook computer, or a wearable portable device, which is not particularly limited.

[0179] The terminal includes the following modules: an input module 1001 , a SLAM system 1002 , an auto-detection module 1003 , a coordinate transformation module 1004 , a data integration module 1005 , and an output module 1006 .

[0180] The input module 1001 acquires real-time two-dimensional (2D) images and IMU data.

[0181] The SLAM system 1002 may perform pose estimation based on the 2D image and IMU data to obtain the corresponding pose of the camera when the 2D image is taken. Furthermore, processing such as feature extraction, feature matching, and outlier removal is performed on the 2D image to output feature matching pairs between the images. Based on the pose estimation result, a 3D point cloud generation module (corresponding to the triangulation mapping point in FIG. 10) calculates three-dimensional (3D) points corresponding to the 2D feature points based on the feature matching pairs between the image and the camera pose obtained through estimation according to an algorithm such as triangulation. An optimization module (corresponding to the mapping point optimization and camera pose optimization in FIG. 6) inputs the camera pose and the 3D point cloud data, and performs joint optimization on the camera pose and the 3D point cloud. After the aforementioned steps are performed, the SLAM system 1002 outputs the real-time camera pose and the 3D point cloud data to another module for use. The specific algorithm of the SLAM system may be any one of the conventional techniques. This is not limited in this application.

[0182] The auto-detection module 1003 detects the 2D key joints (ie, 2D key skeleton points) of each object according to algorithms such as body segmentation, skeleton detection, and face detection based on real-time image data.

[0183] The coordinate transformation module 1004 transforms the 2D key joints into 3D key joints (ie, 3D key skeleton points) based on the camera pose and the 3D point cloud data.

[0184] The data integration module 1005 performs key joint articulation based on the information about the 3D key joints to obtain the torso information of the measurement object, and inputs the 3D torso information into the posture detection module for posture detection. The compensation module superimposes corresponding compensation based on different detected postures. The measurement result of the measured user is finally obtained.

[0185] The output module 1006 outputs height information of a plurality of measurement targets.

[0186] FIG. 11a is a schematic diagram of another embodiment of a terminal according to an embodiment of the present application.

[0187] The terminal includes an obtaining module 1101 and a determining module 1102 .

[0188] The acquisition module 1101 is configured to acquire an image including an object and the camera pose used when the image is captured.

[0189] The acquiring module 1101 is further configured to acquire pixel coordinates of at least two key skeleton points of the object in the image, where the pixel coordinates indicate two-dimensional position information of the key skeleton points in the image.

[0190] The acquisition module 1101 is further configured to acquire three-dimensional coordinates of the key skeleton points according to the camera pose and the pixel coordinates of the key skeleton points. The three-dimensional coordinates indicate three-dimensional position information of the key skeleton points in the world coordinate system. The three-dimensional coordinates of the at least two key skeleton points indicate information about the distance between the at least two key skeleton points.

[0191] The determination module 1102 is configured to determine height data of the subject based on the three-dimensional coordinates of at least two key skeleton points.

[0192] Optionally, the acquisition module 1101 is further configured to acquire three-dimensional point cloud information of the object.

[0193] Specifically, the step of acquiring three-dimensional coordinates of the key skeleton points of the object based on the posture of the camera and pixel coordinates of the key skeleton points includes: obtaining three-dimensional coordinates of the key skeleton points according to an impact detection algorithm based on pixel coordinates of the key skeleton points, the camera pose, and the three-dimensional point cloud information; Includes.

[0194] Optionally, the acquisition module 1101 specifically includes: Obtaining 3D point cloud information of an object based on at least two images of the object taken from different directions It is configured as follows.

[0195] Optionally, the acquisition module 1101 specifically includes: Acquire 3D point cloud information of the subject collected by the depth sensor The depth sensor includes a binocular camera, a laser radar, a millimeter wave radar, or a time-of-flight sensor.

[0196] Optionally, the acquisition module 1101 specifically includes: acquiring at least two images of the object taken from different orientations, the at least two images of the object taken from different orientations including an image; and acquiring a camera pose based on the at least two images of the object taken from different orientations. It is configured as follows.

[0197] Optionally, the acquisition module 1101 specifically includes: acquiring at least two images of an object taken from different orientations, the at least two images of the object taken from different orientations comprising an image of the object; acquiring camera inertial measurement unit data corresponding to at least two images of the object taken from different orientations; determining a camera pose based on inertial measurement unit data and at least two images of the object taken from different orientations; The apparatus is configured to execute the following steps:

[0198] Optionally, the determination module 1102 specifically determines: obtaining bone length and posture information of the subject based on three-dimensional coordinates of key bone points; determining preset weighting parameters for the skeleton lengths based on the pose information; determining height data of the subject based on the bone length and weight parameters; The apparatus is configured to execute the following steps:

[0199] Optionally, the skeletal length includes a head skeletal length and a leg skeletal length.

[0200] Specifically, the determination module 1102: determining a head height compensation value based on a head bone length and preset head compensation parameters; determining a foot height compensation value based on a leg bone length and preset foot compensation parameters; determining height data of the subject based on the bone structure length information, the weighting parameters, a head height compensation value, and a foot height compensation value; The apparatus is configured to execute the following steps:

[0201] Optionally, the image includes at least two objects.

[0202] The apparatus further includes a processing module 1103 configured to perform face detection on the image and to determine pixel coordinates of key skeleton points of each of the at least two objects from the pixel coordinates of the key skeleton points according to an image segmentation algorithm.

[0203] Optionally, the apparatus comprises: an output module 1104 configured to display information about the at least two objects to a user; Further comprising: The information about the at least two subjects includes at least one of image information of the at least two subjects, image information marked with pixel coordinates of key skeleton points of the at least two subjects, and face detection result information of the at least two subjects.

[0204] The acquisition module 1101 is further configured to acquire a user instruction, the user instruction instructing to perform height measurements on one or more of the at least two objects.

[0205] Optionally, the determination module 1102 specifically determines: obtaining bone length information of the subject based on three-dimensional coordinates of key bone points; A procedure of deleting skeleton length information that satisfies a first preset condition, the first preset condition including that the skeleton length in the skeleton length information is outside a preset range or that the skeleton length difference between symmetric parts is greater than or equal to a preset threshold range; determining height data of the subject based on the bone length information obtained after the deletion; The apparatus is configured to execute the following steps:

[0206] Optionally, the apparatus comprises: Labeling the height data of the object in the image near the object and displaying the height data to the user; or Broadcasting object height data through audio The device further includes an output module 1104 configured to:

[0207] Optionally, the apparatus comprises: If the key skeleton points of the object do not satisfy the second preset condition, display the detection failure information to the user, or present the detection failure information to the user through a sound, or present the detection failure information to the user through a vibration. The device further includes an output module 1104 configured to:

[0208] The terminal provided in this embodiment of the present application may be used to detect height. The acquisition module is used to acquire pixel coordinates of key skeleton points of an object in an image, and acquire three-dimensional coordinates of the key skeleton points in a three-dimensional space. The determination module may determine height data of the object based on the three-dimensional coordinates of at least two key skeleton points. The device converts the two-dimensional pixel coordinates of the key skeleton points into three-dimensional coordinates, and directly acquires the height data of the object without converting the reference object. This can avoid measurement errors caused by the conversion of the reference object when the scenario around the object is complex, and can improve the accuracy of the height measurement result.

[0209] FIG. 11b is a schematic diagram of yet another embodiment of a terminal according to an embodiment of the present application.

[0210] The terminal in this application includes a sensor unit 1110 , a calculation unit 1120 , a storage unit 1140 , and an interaction unit 1130 .

[0211] The sensor unit 1110 generally includes a visual sensor (e.g., a camera) configured to acquire 2D image information of a scenario, an inertial sensor (IMU) configured to acquire terminal motion information such as linear acceleration and angular velocity, and an (optional) depth sensor / laser sensor configured to acquire depth information of the scenario.

[0212] The computation unit 1120 typically includes a CPU, a GPU, a cache, a register, etc., and is primarily configured to run an operating system and process algorithm modules in the present application, such as the SLAM system, skeleton detection, and face recognition.

[0213] The storage unit 1140 mainly includes memory and external storage, and is mainly configured to read and write the user's local and temporary data.

[0214] The interaction unit 1130 mainly includes a display, a touchpad, a speaker, a microphone, etc., and is mainly configured to interact with a user, obtain inputs, implement display of algorithm effects, and so on.

[0215] FIG. 12 is a schematic diagram of an embodiment of a terminal according to an embodiment of the present application.

[0216] For ease of understanding, the structure of the terminal 100 provided in the embodiment of the present application is described below by using an example. FIG. 12 is a schematic diagram of the structure of a terminal according to an embodiment of the present application.

[0217] As shown in FIG. 12, the terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, a subscriber identification module (SIM), a card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, an optical proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and a bone conduction sensor 180M, among others.

[0218] It will be understood that the structure shown in this embodiment of the present application does not constitute a specific limitation of the terminal 100. In some other embodiments of the present application, the terminal 100 may include more or fewer components than those shown in the figure, may combine some components, may divide some components, or may have a different component configuration. The components shown in the figure may be implemented by hardware, software, or a combination of software and hardware.

[0219] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, a neural-network processing unit (NPU), etc. The different processing units may be separate components or may be integrated into one or more processors.

[0220] The controller may be the central and command center of the terminal 100. The controller may generate an operation control signal according to the instruction operation code and the time series signal to complete the control of reading and executing the instruction.

[0221] A memory may further be disposed in the processor 110 and configured to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that have just been used or that are used periodically by the processor 110. When the processor 110 needs to reuse an instruction or data, the processor can retrieve the instruction or data directly from the memory, thereby avoiding repeated accesses, reducing the waiting time of the processor 110, and improving system efficiency.

[0222] In some embodiments, the processor 110 may include one or more interfaces, which may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0223] It will be understood that the interface connection relationships between modules shown in the embodiments of the present application are merely examples for illustration purposes and do not constitute limitations on the structure of the terminal 100. In some other embodiments of the present application, the terminal 100 may alternatively use an interface connection scheme different from that in the above-mentioned embodiments, or may use a combination of multiple interface connection schemes.

[0224] The charging management module 140 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.

[0225] The power management module 141 is configured to connect the battery 142 and the charging management module 140 to the processor 110. The power management module 141 receives inputs from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, etc.

[0226] The wireless communication function of the terminal 100 may be implemented by using antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, a baseband processor, and the like.

[0227] In some possible implementations, the terminal 100 may communicate with another device by using a wireless communication function. For example, the terminal 100 may communicate with a second electronic device. The terminal 100 establishes a projection connection to the second electronic device. The terminal 100 outputs projection data to the second electronic device, etc. The projection data output by the terminal 100 may be audio or video data.

[0228] Antenna 1 and Antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna of terminal 100 may be configured to cover one or more communication frequency bands. Different antennas may be further multiplexed to improve antenna utilization. For example, Antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antennas may be used in combination with tuning switches.

[0229] The mobile communication module 150 may provide a wireless communication solution including 1G / 3G / 4G / 5G, etc., applied to the terminal 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves through the antenna 1, perform processing such as filtering or amplification on the received electromagnetic waves, and send the electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 may further amplify the signal modulated by the modem processor and convert the signal to electromagnetic waves for emission through the antenna 2. In some embodiments, at least some functional modules in the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be disposed in the same component.

[0230] The modem processor may include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the low-frequency baseband signal obtained through demodulation to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then transmitted to the application processor. The application processor outputs a sound signal by an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video on the display 194. In some embodiments, the modem processor may be an independent component. In some other embodiments, the modem processor may be independent from the processor 110 and be disposed as the same device with the mobile communication module 150 or another functional module.

[0231] The wireless communication module 160 may provide a wireless communication solution applied to the terminal 100, including a wireless local area network (WLAN) (e.g., a wireless fidelity (Wi-Fi) network, Bluetooth (BT), a global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) technology, infrared (IR) technology, etc.). The wireless communication module 160 may be one or more components integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves through the antenna 1, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 may further receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into an electromagnetic wave for radiation through the antenna 2.

[0232] In some embodiments, antenna 1 of terminal 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160, such that terminal 100 may communicate with a network and other devices by using a wireless communication technology that may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, IR technology, and the like. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a BeiDou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation system (SBAS).

[0233] The terminal 100 implements display functions through a GPU, a display 194, an application processor, etc. The GPU is a microprocessor for image processing and is connected to the display 194 and the application processor. The GPU is configured to perform mathematical and geometric calculations and render images. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0234] The display 194 is configured to display images, videos, and the like. The display 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), an Active-Matrix Organic Light-Emitting Diode (AMOLED), a Flexible Light-Emitting Diode (FLED), a mini-LED, a micro-LED, a micro-OLED, or a Quantum Dot Light-Emitting Diode (QLED), and the like. In some embodiments, the terminal 100 may include one or N displays 194, where N is a positive integer greater than one.

[0235] In some possible implementations, the display 194 may be configured to display each interface output by the system of the terminal 100. For each interface output by the terminal 100, please refer to the related description in the following embodiments.

[0236] The terminal 100 may implement a photographing function by using an ISP, a camera 193, a video codec, a GPU, a display 194, an application processor, and the like.

[0237] The ISP is configured to process data fed back by the camera 193. For example, during shooting, the shutter is touched and light is sent through the lens to the camera's photosensitive elements. The light signal is converted into an electrical signal, which the camera's photosensitive elements send to the ISP for processing to convert the electrical signal into a visible image. The ISP may further perform algorithmic optimization on image noise, brightness, and color. The ISP may further optimize parameters such as exposure and color temperature for the shooting scenario. In some embodiments, the ISP may be located within the camera 193.

[0238] The camera 193 is configured to capture still images or video. An optical image of an object is generated through a lens and projected onto a photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts an optical signal into an electrical signal, which is then sent to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format, such as RGB or YUV. In some embodiments, the terminal 100 may include one or N cameras 193, where N is a positive integer greater than one.

[0239] The digital signal processor is configured to process digital signals and may process other digital signals in addition to the digital image signal.

[0240] A video codec is configured to compress or decompress digital video. Terminal 100 may support one or more video codecs. Thus, terminal 100 can play or record video in multiple encoding formats, e.g., Moving Picture Experts Group (MPEG)-1, MPEG-2, MPEG-3, and MPEG-4.

[0241] The NPU is a neural-network (NN) computing processor that quickly processes input information by referring to the structure of biological neural networks, for example, by referring to the transmission mode between human brain neurons, and can also perform self-learning continuously. Applications such as intelligent cognition of the terminal 100 may be implemented by using the NPU, for example, image recognition, face recognition, speech recognition, and text understanding.

[0242] The external memory interface 120 may be configured to connect to an external memory card, such as a micro SD card, to expand the storage capabilities of the terminal 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement data storage functions. For example, files such as music and videos are stored on the external memory card.

[0243] The internal memory 121 may be configured to store computer executable program code. The executable program code includes instructions. The processor 110 executes the instructions stored in the internal memory 121 to execute various functional applications and data processing of the terminal 100. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, applications required by at least one function (e.g., a sound playback function or an image playback function), and the like. The data storage area may store data (such as audio data and a phone book) created during the use of the terminal 100, and the like. Furthermore, the internal memory 121 may include a high-speed random access memory, or may include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory, or a universal flash storage (UFS).

[0244] Terminal 100 may implement audio functions such as music playback and recording through audio module 170, speaker 170A, receiver 170B, microphone 170C, headset jack 170D, application processor, etc. In some possible implementations, audio module 170 may be configured to play sound corresponding to a video. For example, when display 194 displays a video playback image, audio module 170 outputs the video playback sound.

[0245] Audio module 170 is configured to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals.

[0246] Speaker 170A, also referred to as a "horn," is configured to convert audio electrical signals into sound signals.

[0247] The receiver 170B, also referred to as an "earphone", is configured to convert an audio electrical signal into a sound signal.

[0248] Microphone 170C, also referred to as a "mike" or "mic," is configured to convert an acoustic signal into an electrical signal.

[0249] Headset jack 170D is configured to connect to a wired headset and may be a USB interface 130, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0250] The pressure sensor 180A is configured to detect a pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display 194. Gyroscope sensor 180B may be configured to determine the motion attitude of terminal 100. Air pressure sensor 180C is configured to measure air pressure.

[0251] The acceleration sensor 180E may detect the magnitude of acceleration of the terminal 100 in various directions (including three or six axes). The magnitude and direction of gravity may be detected when the terminal 100 is stationary. The acceleration sensor 180E may also be configured to identify the orientation of the terminal, and may be used in applications such as a pedometer or screen switching between landscape and portrait modes.

[0252] The distance sensor 180F is configured to measure distance.

[0253] Ambient light sensor 180L is configured to sense ambient light intensity.

[0254] Fingerprint sensor 180H is configured to collect a fingerprint.

[0255] The temperature sensor 180J is configured to detect a temperature.

[0256] The touch sensor 180K may also be referred to as a "touch panel." The touch sensor 180K may be disposed on the display 194, and the touch sensor 180K and the display 194 form a touch screen, also referred to as a "touch screen." The touch sensor 180K is configured to detect touch operations performed on or near the touch sensor. The touch sensor may communicate the detected touch operations to an application processor to determine a type of touch event. A visual output regarding the touch operation may be provided through the display 194. In some other embodiments, the touch sensor 180K may alternatively be disposed at a different location on the surface of the terminal 100 than the display 194.

[0257] Buttons 190 include a power button, a volume button, etc. Buttons 190 may be mechanical buttons or touch buttons. Terminal 100 may receive button inputs and generate button signal inputs related to user settings and function control of terminal 100.

[0258] The motor 191 may generate a vibration presentation.

[0259] Indicator 192 may be an indicator light and may be configured to indicate charging status and power changes, or may be configured to indicate messages, missed calls, notifications, and the like.

[0260] The SIM card interface 195 is configured to be connected to a SIM card.

[0261] It will be clearly understood by those skilled in the art that for ease of description and conciseness, the detailed operation processes of the above-mentioned systems, devices and units should be referred to the corresponding processes in the above-mentioned method embodiments, and the details will not be described again in this specification.

[0262] It should be understood that the systems, devices, and methods disclosed in some embodiments provided in the present application may be implemented in other ways. For example, the described device embodiments are merely examples. For example, the division into units is merely a division of logical functions, and may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some functions may be ignored or not performed. Furthermore, the shown or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. Indirect couplings or communication connections between devices or units may be implemented in electronic, mechanical, or other forms.

[0263] The units described as separate parts may or may not be physically separate, and the parts shown as units may or may not be physical units, located in one location or distributed over multiple network units. Some or all of the units may be selected based on the actual requirements for achieving the objectives of the solutions of the embodiments.

[0264] Furthermore, the functional units in the embodiments of the present application may be integrated into one processing unit, or each of these units may exist physically alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

[0265] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on this understanding, the technical solution in the present application may be essentially implemented in the form of a software product, or the part that contributes to the prior art, or all or part of the technical solution. The computer software product is stored in a storage medium and includes some instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes any medium capable of storing program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a floppy disk, or a compact disk.

[0266] The above embodiments are only intended to describe the technical solutions of the present application, rather than to limit the present application. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art will understand that the technical solutions described in the above embodiments may be further modified, or equivalent substitutions may be made to some technical features thereof, without departing from the spirit and scope of the technical solutions of the embodiments of the present application. Other possible items 1. A height measurement method comprising the steps of: acquiring an image including a subject and a camera pose used in capturing said image; obtaining pixel coordinates of at least two key skeleton points of the object in the image, the key skeleton points including skeleton joints, the pixel coordinates indicating two-dimensional position information of the key skeleton points in the image; obtaining three-dimensional coordinates of the at least two key skeleton points based on the pose of the camera and the pixel coordinates of the at least two key skeleton points, the three-dimensional coordinates indicating three-dimensional position information of the key skeleton points in a coordinate system, and the three-dimensional coordinates of the at least two key skeleton points indicating information about a distance between the at least two key skeleton points; determining height data of the object based on the three-dimensional coordinates of the at least two key skeleton points; A method for providing the above. 2. The step of determining height data of the subject based on the three-dimensional coordinates of the at least two key skeleton points specifically includes: obtaining pixel coordinates of at least three key skeleton points of the object in the image; obtaining three-dimensional coordinates of the at least three key skeleton points based on the pose of the camera and the pixel coordinates of the at least three key skeleton points, the three-dimensional coordinates indicating three-dimensional position information of the key skeleton points in a coordinate system, and the three-dimensional coordinates of the at least three key skeleton points indicating information about distances between the at least three key skeleton points; determining at least two skeleton distances based on the three-dimensional coordinates of the at least three key skeleton points; and determining the height data of the object based on the at least two skeleton distances; The method according to item 1, comprising: 3. The coordinate system includes a world coordinate system. The method according to item 1 or 2. 4. The method comprises: acquiring 3D point cloud information of the subject; Further equipped with The step of acquiring three-dimensional coordinates of the at least two key skeleton points of the subject based on the posture of the camera and the pixel coordinates of the key skeleton points specifically includes: obtaining the three-dimensional coordinates of the at least two key skeleton points according to an impact detection algorithm based on the pixel coordinates of the key skeleton points, the pose of the camera, and the three-dimensional point cloud information; The method according to any one of items 1 to 3, comprising: 5. The step of acquiring 3D point cloud information of the subject specifically includes: acquiring the three-dimensional point cloud information of the object based on at least two images of the object taken from different orientations; The method according to item 4, comprising: 6. The step of acquiring 3D point cloud information of the subject specifically includes: acquiring the three-dimensional point cloud information of the object collected by a depth sensor, the depth sensor including a binocular camera, a laser radar, a millimeter wave radar, or a time-of-flight sensor; The method according to item 4, comprising: 7. The step of acquiring an image including a subject and a camera attitude used when the image is captured includes, specifically, acquiring at least two images of the object taken from different orientations, the at least two images of the object taken from different orientations including the image; obtaining the pose of the camera based on the at least two images of the object taken from different orientations; 7. The method according to any one of items 1 to 6, comprising: 8. The step of acquiring an image including a subject and a camera attitude used when the image is captured includes, specifically, acquiring at least two images of the object taken from different orientations, the at least two images of the object taken from different orientations comprising the image of the object; acquiring inertial measurement unit data of the camera corresponding to the at least two images of the object taken from different orientations; determining the pose of the camera based on the inertial measurement unit data and the at least two images of the object taken from different orientations; 7. The method according to any one of items 1 to 6, comprising: 9. The step of determining height data of the subject based on the three-dimensional coordinates of the at least two key skeleton points specifically includes: obtaining a bone length of the subject and posture information of the subject based on the three-dimensional coordinates of the at least two key bone points; determining preset weight parameters for the skeleton lengths based on the pose information; determining the height data of the object based on the bone length and the weighting parameters; 9. The method according to any one of items 1 to 8, comprising: 10. The skeletal length includes a head skeletal length and a leg skeletal length; The step of determining the height data of the subject based on the bone structure length and the weighting parameters specifically comprises: determining a head height compensation value based on the bone length of the head and preset head compensation parameters; determining a foot height compensation value based on the skeletal length of the leg and preset foot compensation parameters; determining the height data of the subject based on the bone structure length information, the weighting parameters, the head height compensation value, and the foot height compensation value; Item 10. The method according to item 9, comprising: 11. The image includes at least two objects; The method comprises: performing face detection on said image and determining pixel coordinates of key skeleton points of each of said at least two objects from said pixel coordinates of said key skeleton points according to an image segmentation algorithm. 11. The method of any one of items 1 to 10, further comprising: 12. The method further comprises: displaying information about the at least two objects to a user, the information about the at least two objects including at least one of image information of the at least two objects, image information marked with pixel coordinates of key skeleton points of the at least two objects, and face detection result information of the at least two objects; obtaining a user command, the user command instructing to perform height measurements on one or more of the at least two objects; Item 12. The method of item 11, further comprising: 13. The method according to any one of claims 1 to 12, wherein the key skeleton points are arranged in the direction of gravity. 14. The method according to any one of claims 1 to 13, wherein the subject is in a non-upright position. 15. The step of determining height data of the subject based on the three-dimensional coordinates of the at least two key skeleton points specifically includes: obtaining bone length information of the object based on the three-dimensional coordinates of the at least two key bone points; removing skeleton length information that satisfies a first preset condition, the first preset condition including that the skeleton length in the skeleton length information is outside a preset range or that the skeleton length difference between symmetric parts is greater than or equal to a preset threshold range; determining the height data of the object based on bone structure length information obtained after the deletion; 15. The method according to any one of items 1 to 14, comprising: 16. The method further comprises: labelling the height data of the object in the image in the vicinity of the object and displaying the height data to a user; or broadcasting the elevation data of the object through audio. 16. The method of any one of items 1 to 15, further comprising: 17. The method further comprises: If the key skeleton points of the subject do not satisfy a second preset condition, displaying a detection failure information to the user, or presenting the detection failure information to the user through a voice, or presenting the detection failure information to the user through a vibration. 17. The method of any one of items 1 to 16, further comprising: 18. An acquisition module configured to acquire an image including a subject and a camera pose used in capturing said image, comprising: The acquisition module is further configured to acquire pixel coordinates of at least two key skeleton points of the object in the image, the key skeleton points including skeleton joints, and the pixel coordinates indicate two-dimensional position information of the key skeleton points in the image; The acquisition module is further configured to acquire three-dimensional coordinates of the at least two key skeleton points based on the pose of the camera and the pixel coordinates of the key skeleton points, the three-dimensional coordinates indicating three-dimensional position information of the key skeleton points in a coordinate system, and the three-dimensional coordinates of the at least two key skeleton points indicating information about a distance between the at least two key skeleton points. An acquisition module; a determination module configured to determine height data of the object based on the three-dimensional coordinates of the at least two key skeleton points; A height measuring device comprising: 19. The acquisition module specifically includes: obtaining pixel coordinates of at least three key skeleton points of the object in the image; acquiring three-dimensional coordinates of at least three key skeleton points based on the pose of the camera and the pixel coordinates of the at least three key skeleton points, the three-dimensional coordinates indicating three-dimensional position information of the key skeleton points in a coordinate system, and the three-dimensional coordinates of the at least three key skeleton points indicating information about distances between the at least three key skeleton points; It is configured to run Specifically, the decision module includes: determining at least two skeleton distances based on the three-dimensional coordinates of the at least three key skeleton points; and determining the height data of the subject based on the at least two skeleton distances. It is configured as follows: Item 19. The device according to item 18. 20. The coordinate system includes a world coordinate system. 20. The device according to item 18 or 19. 21. The acquisition module is further configured to acquire three-dimensional point cloud information of the object; The step of acquiring three-dimensional coordinates of the at least two key skeleton points of the subject based on the posture of the camera and the pixel coordinates of the key skeleton points includes, specifically, obtaining the three-dimensional coordinates of the at least two key skeleton points according to an impact detection algorithm based on the pixel coordinates of the key skeleton points, the pose of the camera, and the three-dimensional point cloud information; Includes 21. Apparatus according to any one of items 18 to 20. 22. The acquisition module specifically includes: configured to acquire the three-dimensional point cloud information of the object based on at least two images of the object taken from different orientations. 22. The apparatus according to item 21. 23. The acquisition module specifically includes: A procedure for acquiring the three-dimensional point cloud information of the subject collected by the depth sensor, the depth sensor including a binocular camera, a laser radar, a millimeter wave radar, or a time-of-flight sensor. configured to run 22. The apparatus according to item 21. 24. The acquisition module specifically includes: acquiring at least two images of the object taken from different orientations, the at least two images of the object taken from different orientations including the image; obtaining the pose of the camera based on the at least two images of the object taken from different orientations; configured to run 24. Apparatus according to any one of items 18 to 23. 25. The acquisition module specifically includes: acquiring at least two images of the object taken from different orientations, the at least two images of the object taken from different orientations including the image of the object; acquiring inertial measurement unit data of the camera corresponding to the at least two images of the object taken from different orientations; determining the pose of the camera based on the inertial measurement unit data and the at least two images of the object taken from different orientations; 24. The apparatus of any one of items 18 to 23, configured to execute the following: 26. The decision module specifically: obtaining a bone length of the subject and posture information of the subject based on the three-dimensional coordinates of the at least two key bone points; determining preset weighting parameters for said skeleton lengths based on said pose information; determining the height data of the subject based on the bone structure length and the weighting parameters; 26. The apparatus of any one of items 18 to 25, configured to execute the following: 27. The skeletal length includes a head skeletal length and a leg skeletal length; Specifically, the decision module includes: determining a head height compensation value based on the bone length of the head and preset head compensation parameters; determining a foot height compensation value based on the skeletal length of the leg and preset foot compensation parameters; determining the height data of the subject based on the bone structure length information, the weighting parameters, the head height compensation value, and the foot height compensation value; configured to run 27. The apparatus according to item 26. 28. The image includes at least two objects; The apparatus comprises: a processing module configured to perform face detection on the image and to determine pixel coordinates of key skeleton points of each of the at least two objects from the pixel coordinates of the key skeleton points according to an image segmentation algorithm; Further equipped 28. Apparatus according to any one of items 18 to 27. 29. The device comprises: an output module configured to display information about the at least two objects to a user, the information about the at least two objects including at least one of image information of the at least two objects, image information marked with pixel coordinates of key skeleton points of the at least two objects, and face detection result information of the at least two objects. Further equipped with The acquisition module is further configured to acquire a user instruction, the user instruction instructing to perform height measurements on one or more of the at least two objects. 29. The apparatus according to item 28. 30. The device of any one of items 18 to 29, wherein the key skeleton points are arranged in the direction of gravity. 31. The apparatus of any one of items 18 to 30, wherein the subject is in a non-upright position. 32. The decision module specifically: obtaining bone length information of the subject based on the three-dimensional coordinates of the at least two key bone points; A step of deleting skeleton length information that satisfies a first preset condition, the first preset condition including that the skeleton length in the skeleton length information is not within a preset range or that the skeleton length difference between symmetric parts is greater than or equal to a preset threshold range; determining the height data of the subject based on bone structure length information obtained after the deletion; configured to run 32. Apparatus according to any one of items 18 to 31. 33. The device comprises: an output module configured to label the height data of the object in the image in the vicinity of the object and display the height data to the user or broadcast the height data of the object through audio; 33. The apparatus of any one of items 18 to 32, further comprising: 34. The device comprises: an output module configured to display a detection failure information to a user, or to present the detection failure information to a user through a sound, or to present the detection failure information to a user through a vibration, when the key skeleton points of the object do not satisfy a second preset condition; 34. The apparatus of any one of items 18 to 33, further comprising: 35. A terminal comprising one or more processors and memory, The memory stores computer readable instructions; The one or more processors are configured to read the computer-readable instructions, so that the terminal implements the method according to any one of claims 1 to 17. Terminal. 36. A computer program product, which when executed on a computer, enables the computer to carry out the method according to any one of items 1 to 17. 37. A computer-readable storage medium comprising computer-readable instructions, which, when executed on a computer, enable the computer to perform the method according to any one of items 1 to 17.

Claims

1. A height measurement method comprising the steps of: acquiring an image including a subject and a camera pose used in capturing said image; obtaining pixel coordinates of at least two key skeleton points of the object in the image, the key skeleton points including skeleton joints, the pixel coordinates indicating two-dimensional position information of the key skeleton points in the image; obtaining three-dimensional coordinates of the at least two key skeleton points based on the pose of the camera and the pixel coordinates of the at least two key skeleton points, the three-dimensional coordinates indicating three-dimensional position information of the key skeleton points in a coordinate system, and the three-dimensional coordinates of the at least two key skeleton points indicating information about a distance between the at least two key skeleton points; determining height data of the object based on the three-dimensional coordinates of the at least two key skeleton points; Equipped with The height measuring method includes: acquiring three-dimensional point cloud information of the object; Further equipped with Specifically, the step of acquiring three-dimensional coordinates of the at least two key skeleton points of the subject based on the posture of the camera and the pixel coordinates of the key skeleton points includes: obtaining the three-dimensional coordinates of the at least two key skeleton points according to an impact detection algorithm based on the pixel coordinates of the key skeleton points, the pose of the camera, and the three-dimensional point cloud information; A method comprising:

2. The step of determining height data of the subject based on the three-dimensional coordinates of the at least two key skeleton points specifically comprises: obtaining a bone length of the subject and posture information of the subject based on the three-dimensional coordinates of the at least two key bone points; determining preset weight parameters for the skeleton lengths based on the pose information; determining the height data of the object based on the bone length and the weighting parameters; The method of claim 1 , comprising:

3. The skeletal length includes a head skeletal length and a leg skeletal length, The step of determining the height data of the subject based on the bone structure length and the weighting parameters specifically comprises: determining a head height compensation value based on the bone length of the head and preset head compensation parameters; determining a foot height compensation value based on the skeletal length of the leg and preset foot compensation parameters; determining the height data of the subject based on the bone structure length, the weighting parameters, the head height compensation value, and the foot height compensation value; The method of claim 2 , comprising:

4. The step of determining height data of the subject based on the three-dimensional coordinates of the at least two key skeleton points specifically comprises: obtaining bone length information of the object based on the three-dimensional coordinates of the at least two key bone points; removing skeleton length information that satisfies a first preset condition, the first preset condition including that the skeleton length in the skeleton length information is outside a preset range or that the skeleton length difference between symmetric parts is greater than or equal to a preset threshold range; determining the height data of the object based on bone structure length information obtained after the deletion; The method of claim 1 , comprising:

5. The step of obtaining pixel coordinates of at least two key skeleton points of the subject in the image comprises: obtaining pixel coordinates of at least three key skeleton points of the object in the image; The step of obtaining three-dimensional coordinates of the at least two key skeleton points comprises: obtaining three-dimensional coordinates of the at least three key skeleton points based on the pose of the camera and the pixel coordinates of the at least three key skeleton points, the three-dimensional coordinates indicating three-dimensional position information of the key skeleton points in a coordinate system, and the three-dimensional coordinates of the at least three key skeleton points indicating information about distances between the at least three key skeleton points; determining height data of the object based on the three-dimensional coordinates of the at least two key skeleton points, The method of claim 1 , further comprising determining at least two skeleton lengths based on the three-dimensional coordinates of the at least three key skeleton points, and determining the height data of the object based on the at least two skeleton lengths.

6. The step of determining at least two skeleton lengths based on the three-dimensional coordinates of the at least three key skeleton points and determining the height data of the subject based on the at least two skeleton lengths specifically includes: obtaining the at least two bone lengths of the subject and posture information of the subject based on the three-dimensional coordinates of the at least three key bone points; determining preset weight parameters for the at least two skeleton lengths based on the pose information; determining said height data of said object based on said at least two bone structure lengths and said weighting parameters; The method of claim 5 , comprising:

7. The at least two skeletal lengths include a head skeletal length and a leg skeletal length, The step of determining the height data of the object based on the at least two bone lengths and the weighting parameters specifically comprises: determining a head height compensation value based on the bone length of the head and preset head compensation parameters; determining a foot height compensation value based on the skeletal length of the leg and preset foot compensation parameters; determining the height data of the subject based on the at least two bone lengths, the weighting parameters, the head height compensation value, and the foot height compensation value; The method of claim 6, comprising:

8. The step of determining at least two skeleton lengths based on the three-dimensional coordinates of the at least three key skeleton points and determining the height data of the subject based on the at least two skeleton lengths specifically comprises: obtaining bone length information of the subject based on the three-dimensional coordinates of the at least three key bone points; removing skeleton length information that satisfies a first preset condition, the first preset condition including that the skeleton length in the skeleton length information is outside a preset range or that the skeleton length difference between symmetric parts is greater than or equal to a preset threshold range; determining the height data of the object based on bone structure length information obtained after the deletion; The method of claim 5 , comprising:

9. The step of determining at least two skeleton lengths based on the three-dimensional coordinates of the at least three key skeleton points and determining the height data of the subject based on the at least two skeleton lengths specifically includes: obtaining bone length information of the subject based on the three-dimensional coordinates of the at least three key bone points; removing skeleton length information that satisfies a first preset condition, the first preset condition including that the skeleton length in the skeleton length information is outside a preset range or that the skeleton length difference between symmetric parts is greater than or equal to a preset threshold range; acquiring posture information of the subject based on the three-dimensional coordinates of the at least three key skeleton points; determining a preset weight parameter for bone length information obtained after the deletion based on the posture information; determining the height data of the object based on the bone length information and the weighting parameters obtained after the deletion; The method of claim 5 , comprising:

10. The coordinate system includes a world coordinate system.

10. The method according to any one of claims 1 to 9.

11. Specifically, the step of acquiring three-dimensional point cloud information of the subject includes: acquiring the three-dimensional point cloud information of the object based on at least two images of the object taken from different directions; The method of any one of claims 1 to 10, comprising:

12. Specifically, the step of acquiring three-dimensional point cloud information of the subject includes: acquiring the three-dimensional point cloud information of the object collected by a depth sensor, the depth sensor including a binocular camera, a laser radar, a millimeter wave radar, or a time-of-flight sensor; The method of any one of claims 1 to 10, comprising:

13. The step of acquiring an image of a subject and a camera pose used when the image is captured comprises the steps of: acquiring at least two images of the object taken from different orientations, the at least two images of the object taken from different orientations including the image; obtaining the pose of the camera based on the at least two images of the object taken from different orientations; The method of any one of claims 1 to 10, comprising:

14. The step of acquiring an image of a subject and a camera pose used when the image is captured comprises the steps of: acquiring at least two images of the object taken from different orientations, the at least two images of the object taken from different orientations comprising the image of the object; acquiring inertial measurement unit data of the camera corresponding to the at least two images of the object taken from different orientations; determining the pose of the camera based on the inertial measurement unit data and the at least two images of the object taken from different orientations; The method of any one of claims 1 to 10, comprising:

15. A height measurement method comprising the steps of: acquiring an image including a subject and a camera pose used in capturing said image; obtaining pixel coordinates of at least two key skeleton points of the object in the image, the key skeleton points including skeleton joints, the pixel coordinates indicating two-dimensional position information of the key skeleton points in the image; obtaining three-dimensional coordinates of the at least two key skeleton points based on the pose of the camera and the pixel coordinates of the at least two key skeleton points, the three-dimensional coordinates indicating three-dimensional position information of the key skeleton points in a coordinate system, and the three-dimensional coordinates of the at least two key skeleton points indicating information about a distance between the at least two key skeleton points; determining height data of the object based on the three-dimensional coordinates of the at least two key skeleton points; Equipped with Specifically, the step of determining height data of the subject based on the three-dimensional coordinates of the at least two key skeleton points includes: obtaining a bone length of the subject and posture information of the subject based on the three-dimensional coordinates of the at least two key bone points; determining preset weight parameters for the skeleton lengths based on the pose information; determining the height data of the object based on the bone length and the weighting parameters; A method comprising:

16. The skeletal length includes a head skeletal length and a leg skeletal length, The step of determining the height data of the subject based on the bone structure length and the weighting parameters specifically comprises: determining a head height compensation value based on the bone length of the head and preset head compensation parameters; determining a foot height compensation value based on the skeletal length of the leg and preset foot compensation parameters; determining the height data of the subject based on the bone structure length information, the weighting parameters, the head height compensation value, and the foot height compensation value; 16. The method of claim 15, comprising:

17. the image includes at least two objects; The method comprises: performing face detection on the image and determining pixel coordinates of key skeleton points of each of the at least two objects from the pixel coordinates of the key skeleton points according to an image segmentation algorithm.

17. The method of claim 1, further comprising:

18. The method of claim 1 , wherein the key skeleton points are positioned in the direction of gravity.

19. The method of claim 1 , wherein the subject is in a non-upright position.

20. Specifically, the step of determining height data of the subject based on the three-dimensional coordinates of the at least two key skeleton points includes: obtaining bone length information of the object based on the three-dimensional coordinates of the at least two key bone points; removing skeleton length information that satisfies a first preset condition, the first preset condition including that the skeleton length in the skeleton length information is outside a preset range or that the skeleton length difference between symmetric parts is greater than or equal to a preset threshold range; determining the height data of the object based on bone structure length information obtained after the deletion; 17. The method of claim 15 or 16, comprising:

21. A height measurement method comprising the steps of: acquiring an image including a subject and a camera pose used in capturing said image; obtaining pixel coordinates of at least two key skeleton points of the object in the image, the key skeleton points including skeleton joints, the pixel coordinates indicating two-dimensional position information of the key skeleton points in the image; obtaining three-dimensional coordinates of the at least two key skeleton points based on the pose of the camera and the pixel coordinates of the at least two key skeleton points, the three-dimensional coordinates indicating three-dimensional position information of the key skeleton points in a coordinate system, and the three-dimensional coordinates of the at least two key skeleton points indicating information about a distance between the at least two key skeleton points; determining height data of the object based on the three-dimensional coordinates of the at least two key skeleton points; Equipped with Specifically, the step of determining height data of the subject based on the three-dimensional coordinates of the at least two key skeleton points includes: obtaining bone length information of the object based on the three-dimensional coordinates of the at least two key bone points; removing skeleton length information that satisfies a first preset condition, the first preset condition including that the skeleton length in the skeleton length information is outside a preset range or that the skeleton length difference between symmetric parts is greater than or equal to a preset threshold range; determining the height data of the object based on bone structure length information obtained after the deletion; A method comprising:

22. The method comprises: labelling the height data of the object in the image in the vicinity of the object and displaying the height data to a user; or broadcasting the elevation data of the object through audio.

22. The method of any one of claims 1 to 21, further comprising:

23. The method comprises: If the key skeleton points of the subject do not satisfy a second preset condition, displaying a detection failure information to a user, or presenting the detection failure information to a user through a voice, or presenting the detection failure information to a user through a vibration.

23. The method of any one of claims 1 to 22, further comprising:

24. an acquisition module configured to acquire an image including a subject and a camera pose used in capturing said image, The acquisition module is further configured to acquire pixel coordinates of at least two key skeleton points of the object in the image, the key skeleton points including skeleton joints, and the pixel coordinates indicate two-dimensional position information of the key skeleton points in the image; the acquisition module is further configured to acquire three-dimensional coordinates of the at least two key skeleton points based on the pose of the camera and the pixel coordinates of the key skeleton points, the three-dimensional coordinates indicating three-dimensional position information of the key skeleton points in a coordinate system, and the three-dimensional coordinates of the at least two key skeleton points indicating information about a distance between the at least two key skeleton points; An acquisition module; a determination module configured to determine height data of the object based on the three-dimensional coordinates of the at least two key skeleton points; Equipped with The acquisition module is configured to acquire three-dimensional point cloud information of the object; Specifically, acquiring the three-dimensional coordinates of the at least two key skeleton points of the subject based on the orientation of the camera and the pixel coordinates of the key skeleton points includes: obtaining the three-dimensional coordinates of the at least two key skeleton points according to an impact detection algorithm based on the pixel coordinates of the key skeleton points, the pose of the camera, and the three-dimensional point cloud information; 23. A height measuring device comprising:

25. an acquisition module configured to acquire an image including a subject and a camera pose used in capturing said image, The acquisition module is further configured to acquire pixel coordinates of at least two key skeleton points of the object in the image, the key skeleton points including skeleton joints, and the pixel coordinates indicate two-dimensional position information of the key skeleton points in the image; the acquisition module is further configured to acquire three-dimensional coordinates of the at least two key skeleton points based on the pose of the camera and the pixel coordinates of the key skeleton points, the three-dimensional coordinates indicating three-dimensional position information of the key skeleton points in a coordinate system, and the three-dimensional coordinates of the at least two key skeleton points indicating information about a distance between the at least two key skeleton points; An acquisition module; a determination module configured to determine height data of the object based on the three-dimensional coordinates of the at least two key skeleton points; Equipped with The decision module: obtaining a bone length of the subject and posture information of the subject based on the three-dimensional coordinates of the at least two key bone points; determining preset weighting parameters for the skeleton lengths based on the pose information; determining the height data of the subject based on the bone structure length and the weighting parameters; The height measurement device is further configured to:

26. an acquisition module configured to acquire an image including a subject and a camera pose used in capturing said image, The acquisition module is further configured to acquire pixel coordinates of at least two key skeleton points of the object in the image, the key skeleton points including skeleton joints, and the pixel coordinates indicate two-dimensional position information of the key skeleton points in the image; the acquisition module is further configured to acquire three-dimensional coordinates of the at least two key skeleton points based on the pose of the camera and the pixel coordinates of the key skeleton points, the three-dimensional coordinates indicating three-dimensional position information of the key skeleton points in a coordinate system, and the three-dimensional coordinates of the at least two key skeleton points indicating information about a distance between the at least two key skeleton points; An acquisition module; a determination module configured to determine height data of the object based on the three-dimensional coordinates of the at least two key skeleton points; Equipped with The decision module: obtaining bone length information of the subject based on the three-dimensional coordinates of the at least two key bone points; Deleting skeleton length information that satisfies a first preset condition, the first preset condition including that the skeleton length in the skeleton length information is outside a preset range or that the skeleton length difference between symmetric parts is greater than or equal to a preset threshold range; determining the height data of the subject based on bone structure length information obtained after the deletion; The height measurement device is further configured to:

27. A terminal comprising one or more processors and a memory, The memory stores computer readable instructions; The one or more processors are configured to read the computer readable instructions, such that the terminal implements the method of any one of claims 1 to 23. Terminal.

28. A computer program causing a computer to carry out the method according to any one of claims 1 to 23.

29. 24. A computer readable storage medium comprising computer readable instructions which, when executed on a computer, enable the computer to perform the method of any one of claims 1 to 23.

Citation Information

Patent Citations

  • Information processing apparatus and method, and program

    JP2011211438A

  • Processor and processing system

    JP2018156617A

  • Car allocation system

    JP2019001561A

  • Imaging system and imaging method

    JP2019032660A

  • Image retrieving apparatus, image retrieving method, and setting screen used therefor

    JP2019091138A