Body parameter measurement method, system, device, chip and medium based on human body reconstruction
Through human body reconstruction technology, multi-view images and neural networks are used for non-rigid body deformation fitting, which solves the problems of low accuracy and cumbersome operation of traditional measurement methods, and achieves fully automatic and contactless high-precision body parameter measurement, which is suitable for multiple applications. scene.
Patent Information
- Application Number
- CN202011320729.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-23
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-11-23
AI Technical Summary
Traditional body parameter measurement methods have low accuracy, cumbersome operations, and unavoidable contact discomfort. They are especially prone to large errors when measuring complex topological parts such as chest circumference. Moreover, the existing multi-depth camera methods have high hardware costs and are not widely used.
Using a method based on human body reconstruction, the camera collects multi-view color images, uses convolutional neural networks and the ARKit platform to perform non-rigid body deformation fitting of the human body model, extracts the deformed vertex coordinates to calculate body parameters, and achieves fully automatic non-contact measurement .
It achieves fast and accurate body parameter measurement, which is suitable for clothing customization and medical health management. The measurement speed is fast, the accuracy is high, and no manual intervention is required. It has broad market application prospects.
Smart Images

Figure CN112401369B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of computer vision and computer graphics, and in particular to a method, system, device, chip and medium for measuring body parameters based on human body reconstruction. Background Art
[0002] As the primary link in the clothing customization industry, the measurement accuracy and convenience of body parameter measurement are of paramount importance. The human body, as a non-rigid body with a large deformation, will increase the difficulty of measurement. The traditional measurement method is mainly manual measurement using a soft tape measure. The measurement accuracy is easily affected by the subjective factors of the measurer (such as difficulty in accurately finding the measurement site, difficulty in controlling the tightness of the tape measure, etc.), and the measurement method is very troublesome. Experienced measurement personnel are required to find the measurement site of the measured person's body, and then use a soft tape measure to measure each position; in addition, manual measurement with a tape measure will inevitably lead to close contact between the measurer and the measured person's limbs, which will cause some discomfort. The realization of fast and accurate non-contact body parameter measurement can also be used in fields such as medical and health management, which has great commercial value. Patent application No. CN201910631825.6 discloses a multi-depth camera human body parameter measurement method and device, including: collecting the depth image of the current object; fusing the depth image into a regular point cloud; fitting a parameterized human body template, solving the morphological parameters and posture parameters of the parameterized human body template, so that the SMPL human body template deformed based on the above parameters fits the obtained point cloud as much as possible; obtaining the human body parameters of the current object through the human body parameter acquisition method defined by the standard parameterized human body template. In the three-dimensional human body model reconstruction stage, this method uses 16 depth cameras to obtain point clouds for data fusion reconstruction, which has high hardware cost, complex settings, and is not widely used; in the body parameter measurement stage: directly extracting the mesh vertices that form the waist circumference and other body circumferences on the SMPL template model, and then calculating the Euclidean distances between adjacent points one by one, and summing them as the waist circumference method, which will bring large errors in places with complex topological structures such as chest circumference. The reason is that the directly extracted mesh vertices are not on the same plane, so the curve that makes up the chest circumference is not on the same plane. Normal measurement of body circumference should be measured on the same plane, which will cause the measuring tape to bend up and down in a circle, resulting in the measurement result being much greater than the actual result. Summary of the invention
[0003] The present invention aims to solve the existing problems and to provide a body parameter measurement method, system, device, chip and medium based on human body reconstruction.
[0004] In order to achieve the above object, the technical solution of the present invention provides a body parameter measurement method based on human body reconstruction, comprising:
[0005] Step 1: The camera collects a number of color images from different perspectives around the human body;
[0006] Step 2: extract image features through the camera's position, posture, and internal and external parameter matrices, predict its depth information and fuse it to obtain a human body model;
[0007] Step 3, non-rigid deformation of the human body model to make it consistent with the template model;
[0008] Step 4: extract the vertex coordinates of the deformed template model and calculate the body parameters.
[0009] Furthermore, in step 1, the camera surrounds the human body and captures an image every 120°.
[0010] Furthermore, in step 1, the background of the portrait in the color image is removed in real time, the camera's internal parameter and external parameter matrices are output while shooting, and the height information is input.
[0011] Furthermore, a convolutional neural network is used for semantic segmentation, that is, a target detection algorithm is executed to extract the location of the person, and then a saliency detection is performed to obtain a human image with the background removed.
[0012] Furthermore, in step 2, the camera extracts image features from the color image in real time through a synchronous positioning and mapping method based on monocular vision and inertial sensors, so as to estimate its own position and posture.
[0013] Furthermore, in step 2, the neural network model is trained through color images of several perspectives, the camera intrinsic parameter matrix and the camera pose matrix, and the corresponding high-precision human three-dimensional model in the training set, so that the algorithm model can regress the three-dimensional human body model from any multi-perspective human body color image.
[0014] Furthermore, in step three, the centroids of the template model and the human body model are overlapped, and after the corresponding points are extracted, the nearest neighbor point iterative optimization is performed to achieve coarse alignment.
[0015] Furthermore, after the rough alignment, the shape difference between the template model and the human body model is optimized to obtain a template model that can be used to express the human body model after denoising and deformation.
[0016] Furthermore, after the skeleton is registered, a skinning operation is performed, that is, an association relationship between the skeleton points and the mesh vertices is established, and the mesh surface is deformed to adapt to the current skeleton posture.
[0017] Furthermore, in step 4, the body parameters can be obtained by measuring the length of the curve formed by the vertices. The present invention also provides a system for measuring body parameters, comprising:
[0018] An acquisition module collects a number of color images from different perspectives around the human body;
[0019] The modeling module extracts image features through the camera's position, posture, and internal and external parameter matrices, predicts its depth information, and fuses it to obtain a human body model;
[0020] The deformation module performs non-rigid deformation on the human body model to make it consistent with the template model;
[0021] The calculation module extracts the vertex coordinates of the deformed template model and calculates the body parameters.
[0022] Furthermore, the acquisition module adopts the appleARKit platform.
[0023] Furthermore, the acquisition module captures an RGB image around the human body every 120°, and uses a neural network image segmentation algorithm to perform real-time portrait cutouts on the mobile phone to remove the background. While shooting, it outputs the internal and external parameters of the current camera, and then reminds the user to enter height information.
[0024] Furthermore, the acquisition module's Apple ARKit extracts image features from images acquired from the video stream in real time based on the synchronous positioning and mapping method of monocular vision and inertial sensors to estimate its own position and posture.
[0025] Furthermore, the modeling module directly regresses and predicts a high-precision three-dimensional human body model by inputting background-removed color images of three different perspectives, camera intrinsic parameter matrices, and camera pose matrix parameters into a pre-trained neural network algorithm model.
[0026] Furthermore, the neural network algorithm model of the reconstruction module is trained using 500 high-precision human three-dimensional models collected by hundreds of color camera arrays. The core of the training is to use OpenGL to render the human three-dimensional model of the training set to obtain a three-view color image, a camera intrinsic parameter matrix and a camera pose matrix, and to sample 5,000 3D points from the surface of the human three-dimensional model and its inside and outside. The correspondence between the image pixels and the sampled 3D points is obtained through the camera intrinsic parameter matrix and the camera pose matrix. The training model enables it to predict the probability of a 3D point inside the human three-dimensional model from the image, and then reconstruct the three-dimensional human body model.
[0027] Furthermore, the deformation module calculates the center of mass of the template model and the human body model, and then performs a rigid body transformation to overlap the center of mass to the same point, and then extracts the limb endpoints and head vertices of the two as corresponding points, and executes the nearest neighbor iterative algorithm for rigid body transformation to achieve coarse alignment.
[0028] Furthermore, after rough alignment, the local rotation transformation matrix is executed at the joint of the template model that needs to be deformed. The global transformation matrix of the joint point can be obtained by multiplying the local rotation transformation matrix on the motion chain. By minimizing the Euclidean distance between the corresponding joint points of the two, the skeleton deformation alignment can be achieved.
[0029] Furthermore, after the skeleton is aligned, the deformation module performs skinning operations, and the transformation formulas of skeleton points and mesh vertices are:
[0030]
[0031] W is the weight w of each bone point and its surrounding mesh vertices; T is the transformation matrix T, v of each bone point p is the mesh vertex before transformation, v' p are the vertices of the transformed mesh.
[0032] Furthermore, after the mesh postures are aligned, non-rigid deformation registration is performed: each vertex on the template model is rotated and translated so that the position of each vertex on it is closest to the corresponding point on the human body model.
[0033] Furthermore, the calculation module obtains vertex coordinates through the topological structure of the template model to calculate body parameters. The present invention provides a device for measuring body parameters, including:
[0034] A camera, wherein the camera collects a plurality of color images at different viewing angles around the human body;
[0035] The camera is connected to the server in communication; the server includes a processor and a memory for storing executable instructions of the processor, and the processor executes any of the above methods when it is running. Furthermore, the camera is an Apple iPhone with an Apple ARKit platform.
[0036] The present invention provides a chip, including a processor, for calling and running a computer program from a memory, so that a device equipped with the chip executes any of the above-mentioned methods.
[0037] The present invention provides a computer-readable medium on which computer program instructions are stored. When the computer program instructions are processed and executed, any of the above-mentioned methods is implemented.
[0038] Compared with the prior art, the present invention fits a human body model containing noise information such as clothing wrinkles through a human body template model, and then measures various body circumference parameters such as waist circumference. The method can measure the length and circumference information of multiple parts of the body, has fast measurement speed and high accuracy, and is fully automatic and contactless measurement. It can be widely used in clothing customization, medical and health management monitoring, and has broad market application prospects.
[0039] The present invention uses ARKit to collect sparse three-view human body images and reconstruct a high-precision three-dimensional human body model. The input is simple, the data collection software is very user-friendly, and manual intervention is minimal. Other data processing and three-dimensional model reconstruction are all automatically completed by algorithm code, and has a large application market. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 This is an illustration of the acquisition of color images;
[0041] Figure 2 This is an illustration of the acquisition of color images;
[0042] Figure 3 Schematic diagram of a human body model including noise reconstructed from a color image;
[0043] Figure 4 is a schematic diagram of a template mesh;
[0044] Figure 5 This is a schematic diagram after the template model pose is fitted;
[0045] Figure 6 This is a schematic diagram after the template model shape is fitted;
[0046] Figure 7 This is a diagram illustrating the measurement results. DETAILED DESCRIPTION
[0047] The present invention will now be further described with reference to the accompanying drawings.
[0048] See also Figures 1 to 5 , Figures 1 to 5 What is shown is an embodiment of the present invention. The purpose of this embodiment is to measure body parameters. The main process is:
[0049] Step 1: Use a camera to collect a number of color images from different perspectives around the human body;
[0050] Step 2: extract image features through the camera's position, posture, and internal and external parameter matrices, predict its depth information and fuse it to obtain a human body model;
[0051] Step 3, non-rigid deformation of the human body model to make it consistent with the template model;
[0052] Step 4: extract the vertex coordinates of the deformed template model and calculate the body parameters.
[0053] The equipment used includes: a camera for collecting color images of different viewing angles around the human body. The camera is preferably an Apple iPhone with the Apple ARKit platform; ARKit is an AR development platform launched by Apple, and developers can use iPhone or iPad with ARKit tools to create augmented reality applications. In this embodiment, ARKit implements functions such as data collection.
[0054] The camera is communicatively connected to the server; the server comprises a processor and a memory for storing executable instructions of the processor, and the processor executes the above method when running.
[0055] First, collect color images of the human body. Based on the requirements of the above method, an iPhone mobile app can be developed. The main functions of the app are as follows:
[0056] See also Figure 1 , it can capture an RGB image every 120° around the human body, and use Apple ARKit to perform real-time portrait cutout to remove the background. While capturing the image, it outputs the internal and external parameters of the current camera, and then reminds the user to enter the height information. These data are transmitted to the remote cloud server through the http communication protocol.
[0057] Among them, the method of taking images every 120° is: through the iPhone's own sensors, such as a three-axis gyroscope, the sensor reads the angles of the phone's roll, yaw, and pitch, so that the phone can be reminded to capture images every time it rotates 120°.
[0058] See also Figure 2 In order to remove the influence of the background on the 3D reconstruction of the human body, it is necessary to perform cutout. The method of removing the background from the portrait cutout is: using a convolutional neural network for semantic segmentation; first, executing the target detection algorithm to extract the location of the person, and then performing saliency detection to obtain a human image with the background removed.
[0059] Among them, the method of obtaining and processing the internal and external parameter matrix of the camera is: Apple ARKit can extract image features in real time from images obtained from the video stream based on the slam method of monocular vision and inertial sensors to estimate its own position and posture.
[0060] Since the camera coordinate system in Apple ARKit is defined as follows: the y-axis is opposite to the direction of gravity, the x-axis is horizontally to the right, and the z-axis satisfies the right-hand rule, and the camera coordinate system in the opencv library used in subsequent reconstruction is defined as follows: the x-axis and y-axis are horizontally to the right and vertically downward respectively, and the z-axis satisfies the right-hand rule, the coordinate system transformation is performed first to realize coordinate system one.
[0061] Secondly, see Figure 3 , three-dimensional human body reconstruction. Render the training data first. Since the camera pose determines its position in the world coordinate system when taking three images, it is necessary to first transform the 500 grids in the training set to the common visible parts of the three camera poses through rigid body transformation, and then obtain the camera projection matrix according to the camera intrinsic parameter matrix and pose obtained in stage one; use the OpenGL render module, and according to the projection matrix, the three-dimensional points can be projected from the grid to the 2D image to generate images from three perspectives. In order to increase the diversity of data and improve the generalization ability of the algorithm in subsequent three-dimensional human body reconstruction, this embodiment also performs data enhancement, that is, adding Gaussian perturbation noise to the distance from the camera to the grid, the pitch angle, flip angle, and yaw angle of the camera respectively; in addition, the size and orientation of the grid are randomly perturbed to a certain extent, and the camera pose and intrinsic parameter matrix corresponding to the human body image generated after adding noise perturbation are recalculated. Finally, a training set consisting of 500 sets of training data is obtained. Each set of data contains: color images of human bodies with backgrounds from three perspectives, the corresponding camera intrinsic parameter matrix and the relative pose between cameras, and the 3D point coordinates inside and outside the grid sampled from the grid.
[0062] Then, through the background-removed images from three different perspectives, as well as the corresponding camera intrinsic parameter matrix and camera pose matrix, a rough three-dimensional human body model can be obtained through the visual hull algorithm. In order to obtain a high-precision three-dimensional human body model, the neural network is trained: first, the image features are extracted through the convolutional neural network Hourglass, and then 3D points are sampled from the grid. Then, according to the camera pose and the camera projection matrix obtained from the intrinsic parameter matrix, the correspondence between the 3D points and the 2D points of the image is established. On this basis, the probability of whether the 3D point corresponding to the image pixel is inside or outside the grid is predicted by the multi-layer perceptron MLP. Since it is a three-view image, three probabilities will be obtained each time. It is necessary to average these three probability values, and then iteratively optimize the L2 distance between the predicted value and the true value in a supervised manner. The intersection-over-union ratio between the predicted result and the true result is used to judge the quality of the algorithm learning result. When the IOU is closer to 1, the better the learning result. Finally, the algorithm can well predict which points belong to the points on the human body surface. With these discrete points, the final three-dimensional human body model can be reconstructed through the marching cubes algorithm. Again, the human body model is subjected to non-rigid deformation to make it consistent with the template model.
[0063] See, 4. Figure 5, first perform skeleton deformation registration. In order to deform the human body model to be consistent with the skeleton of the template model, the human body model and the template model need to be roughly aligned first. The rough alignment method is to first calculate the center of mass of each, then perform a rigid body transformation, overlap the center of mass of the two meshes to the same point, and then extract the limb endpoints and head vertices of the human body model and the template model as corresponding points, execute the nearest neighbor iterative algorithm, perform rigid body transformation, and achieve rough alignment.
[0064] After the rough alignment is completed, the skeleton joints need to be deformed to deform the skeleton movements of the human body model to be the same as those of the template model. Human joints can move arbitrarily within a certain range, and there is a cascade relationship between the joints, that is, the movement of the parent node will affect its own movement and the movement of its child nodes. In order to achieve skeleton deformation registration, the 3D coordinates of each joint point of the template model are first known, and then a local rotation transformation matrix is performed at the joint that needs to be deformed. The local rotation transformation matrix on the motion chain is multiplied to obtain the global transformation matrix of the joint point. By minimizing the Euclidean distance between the corresponding joint points of the human body model and the template model, skeleton deformation registration can be achieved.
[0065] After the skeleton is aligned, skinning is required, that is, to establish the association between the skeleton points and the mesh vertices, and deform the mesh surface to adapt to the current skeleton posture. Each skeleton point is associated with many vertices, and each vertex has a different weight. When the skeleton point undergoes rotation and translation transformation, the associated mesh vertices will also undergo position transformation to varying degrees. By controlling the rotation vector of the skeleton point, the deformation of the entire mesh can be controlled. The mesh vertex transformation formula is as follows:
[0066]
[0067] First, the 3D coordinates of the skeleton points of the template model are obtained, and the weight w of each skeleton point and its surrounding mesh vertices is calculated through the heat diffusion equation; the basic principle is that the smaller the Euclidean distance from the skeleton point, the greater the weight, and the weight range is between 0-1. In the skeleton deformation registration stage, the transformation matrix T, v of each skeleton point can be obtained. p is the mesh vertex before transformation, v' p is the vertex of the transformed mesh. Through this formula, we can get the coordinates of each vertex on the mesh after the posture transformation, thus getting the new mesh.
[0068] See also Figure 6, after the action of the grid is aligned, non-rigid deformation registration is performed to achieve shape alignment. The method of non-rigid deformation registration is: to perform rotation and translation transformation on each vertex on the template model so that the position of each vertex on it is closest to the corresponding point on the human body model, and the entire template model remains smooth locally. In order to reduce the amount of calculation and increase the speed of fitting, this embodiment adopts the deformation graph method, that is, firstly using the geodesic distance as the metric standard on the human body model, and uniformly sampling all vertices with a fixed geodesic distance coefficient. When subsequently optimizing the error of the corresponding points of the human body model and the template model, only these sampled key points are optimized, and the associated points controlled by the key points only need to be smooth during global optimization.
[0069] Finally, see Figure 7 , measure the parameters of each body circumference. Since the topological structure of the human body model reconstructed each time is constantly changing, but the topological structure of the template model does not change, it is easy to extract the IDs of the vertices of the parts that need to be measured, such as arm circumference and waist circumference.
[0070] Since the number of vertices that make up the waist circumference and other parts is very dense and their distribution is basically on the same circular plane, the distance between two adjacent points can be directly calculated and summed up. By approximating the waist circumference with a polygon composed of dense straight line segments, high-precision measurement results can be obtained.
[0071] However, the same point selection method will bring great errors in places with complex topological structures such as the chest. The reason is that the vertices directly extracted are not on the same circular plane, so the curves that make up the chest are not on the same plane, which will cause the measuring tape to bend up and down in a circle, resulting in the measurement result being much greater than the actual result. This patent performs interpolation processing when measuring parts with complex topological structures, so that the points that make up the chest are distributed in one plane as much as possible, greatly improving the measurement accuracy of these parts.
[0072] See also Figure 2 ,The present invention also provides a model optimization deployment system, including: a collection module for collecting a number of color images of different ,viewing angles around a human body;
[0073] The modeling module extracts image features through the camera's position, posture, and internal and external parameter matrices, predicts its depth information, and fuses it to obtain a human body model;
[0074] The deformation module performs non-rigid deformation on the human body model to make it consistent with the template model;
[0075] The calculation module extracts the vertex coordinates of the deformed template model and calculates the body parameters.
[0076] Preferably, the acquisition module adopts the Apple ARKit platform.
[0077] Preferably, the acquisition module captures an RGB image around the human body every 120°, and uses Apple ARKit to perform real-time portrait cutouts to remove the background. While shooting, the internal and external parameters of the current camera are output, and the user is reminded to enter height information.
[0078] Preferably, the Apple ARKit of the acquisition module extracts image features from images obtained from the video stream in real time based on the synchronous positioning and mapping method of monocular vision and inertial sensors to estimate its own position and posture.
[0079] Preferably, the modeling module obtains a rough three-dimensional human body model through the visual hull algorithm using background-removed color images from three different perspectives, the camera intrinsic parameter matrix and the camera pose matrix; extracts image features through the convolutional neural network Hourglass, then samples 3D points from the grid and establishes the correspondence between the 3D points and the 2D points in the image, and obtains the 3D points belonging to the human body surface by predicting the depth information, thereby reconstructing the human body model.
[0080] Preferably, the deformation module calculates the center of mass of the template model and the human body model, and then performs a rigid body transformation to overlap the center of mass to the same point, and then respectively extracts the limb endpoints and head vertices of the two as corresponding points, executes the nearest neighbor iterative algorithm for rigid body transformation, and realizes coarse alignment.
[0081] Preferably, after rough alignment, a local rotation transformation matrix is executed at the joint of the template model that needs to be deformed, and the global transformation matrix of the joint point is obtained by multiplying the local rotation transformation matrix on the motion chain. By minimizing the Euclidean distance between the corresponding joint points of the two, bone deformation alignment can be achieved.
[0082] As a preference, after skeleton registration, the deformation module performs skinning operations, and the transformation formulas of skeleton points and mesh vertices are:
[0083]
[0084] W is the weight w of each bone point and its surrounding mesh vertices; T is the transformation matrix T, v of each bone point p is the mesh vertex before transformation, v' p are the vertices of the transformed mesh.
[0085] Preferably, after the mesh postures are aligned, the deformation module performs non-rigid deformation registration: each vertex on the template model is subjected to rotation and translation transformation so that the position of each vertex thereon is closest to the corresponding point on the human body model.
[0086] Preferably, the calculation module obtains vertex coordinates through the topological structure of the template model and calculates body parameters. In some embodiments, the memory involved in this embodiment stores the following elements, upgrade packages, executable units or data structures, or their subsets, or their extended sets: operating system and application programs.
[0087] The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program includes various application programs, which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application program.
[0088] In the embodiment of the present invention, the processor executes the above method steps by calling a program or instruction stored in the memory, specifically, the program or instruction stored in the application program.
[0089] The embodiment of the present invention further provides a chip for executing the above method. Specifically, the chip includes: a processor for calling and running a computer program from a memory, so that a device equipped with the chip is used to execute the above method.
[0090] The present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method of the present invention are implemented.
[0091] For example, machine-readable storage media may include, but are not limited to, various known and unknown types of non-volatile memory.
[0092] An embodiment of the present invention further provides a computer program product, including computer program instructions, which enable a computer to execute the above method.
[0093] It will be appreciated by those skilled in the art that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0094] In the embodiments of the present application, the disclosed system, electronic device and method can be implemented in other ways. For example, the division of units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system. In addition, the coupling between the various units can be direct coupling or indirect coupling. In addition, the various functional units in the embodiments of the present application can be integrated in a processing unit, or can be separate physical existences, etc.
[0095] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a machine-readable storage medium. Therefore, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a machine-readable storage medium, which can include several instructions to enable an electronic device to perform all or part of the technical solution described in the embodiments of the present application. The above-mentioned storage medium may include various media that can store program codes, such as ROM, RAM, removable disk, hard disk, magnetic disk or optical disk.
[0096] In particular, it should be noted that this embodiment is different from the method in the aforementioned "Multi-depth Camera Human Body Parameter Measurement Method and Device" which directly optimizes the parameters controlling the movement and shape of the SMPL template model to achieve the SMPL template fitting the movement and shape of the human body model reconstructed by its depth camera array. This method has the following two problems, which will lead to poor results of its SMPL template model fitting the human body model:
[0097] 1) The SMPL template model does not match the Chinese body shape very well;
[0098] 2) The SMPL template model has only 10 parameters to control the change of human body shape, which cannot accurately change the body shape.
[0099] When the shape of the template model cannot accurately fit the original human body model, it will cause large errors in the measurement of body parameters, resulting in application failure.
[0100] The template model used in this embodiment is preferably manually trimmed by an animator using MAYA software based on SMPL to make it more consistent with the average value of common Chinese body shapes.
[0101] More importantly, this embodiment fits the action in a skeleton-driven manner, but in the shape fitting part, it performs non-rigid deformation alignment on the template model, which can optimize the local geometric detail surface of the template model to be consistent with the original human body model, so that the template model can more accurately express the shape of the human body model, thereby ensuring the measurement accuracy.
[0102] In summary, this embodiment can fit a human body model containing noise information such as clothing wrinkles through a human body template model, and then perform a method of measuring various body circumference parameters such as waist circumference. The method can measure the length and circumference information of multiple parts of the body, with fast measurement speed and high accuracy. It is a fully automatic contactless measurement and can be widely used in clothing customization, medical and health management monitoring, and has broad market application prospects.
[0103] The data collection APP developed based on ARKit used in this embodiment collects sparse three-view human images and reconstructs a high-precision human 3D model. The human 3D reconstruction method has simple input, the data collection software is very user-friendly, and there is little manual intervention. Other data processing, 3D model reconstruction, and geometric texture mapping are all automatically completed by the algorithm code, which has a large application market.
[0104] The above describes the implementation mode of the present invention in combination with the drawings and embodiments. The structure given in the embodiments does not constitute a limitation of the present invention. Those skilled in the art can make adjustments as needed. Various deformations or modifications within the scope of the attached claims are within the scope of protection.
Claims
1. A method for measuring body parameters based on human body reconstruction, characterized in that include: Step 1: The camera collects several color images of different angles around the human body, removes the background of the human portrait in the color image in real time, outputs the camera's internal parameter matrix and external parameter matrix while shooting, and inputs the height information; Step 2: extract image features through the camera's position, posture, internal parameter matrix, and external parameter matrix, predict its depth information and fuse them to obtain a human body model; The second step is to train the neural network algorithm model through color images of several viewing angles, camera internal parameter matrices and camera pose matrices, and a high-precision human body three-dimensional model, so that the neural network algorithm model can reconstruct a human body model from the multi-view color images; Step 3, non-rigid deformation of the human body model to make it consistent with the template model; The centroids of the template model and the human body model are overlapped, and after extracting the corresponding points of the limbs and the top of the head, the nearest neighbor points are iteratively optimized to achieve rough alignment; the local rotation transformation matrix is executed at the joints of the template model that need to be deformed, and the local rotation transformation matrix on the kinematic chain is multiplied to obtain the global transformation matrix of the joint points. The skeleton deformation alignment is achieved by minimizing the Euclidean distance between the corresponding joint points of the human body model and the template model; after the skeleton deformation alignment, the skinning operation is performed, that is, the association relationship between the skeleton points and the mesh vertices is established, and the mesh is deformed to adapt to the current skeleton posture; Then, non-rigid deformation registration is performed, that is, each vertex on the template model is rotated and translated so that the position of each vertex on it is closest to the corresponding point on the human body model; Step 4: extract the vertex coordinates of the deformed template model and calculate the body parameters.
2. The method for measuring body parameters based on human body reconstruction according to claim 1, characterized in that: In step 1, the camera surrounds the human body and takes an image every 120°.
3. The method for measuring body parameters based on human body reconstruction according to claim 1, characterized in that: The background removal of the portrait in the color image is performed by using a convolutional neural network for semantic segmentation, that is, executing a target detection algorithm to extract the position of the person, and then performing a saliency detection to obtain a human body image with the background removed.
4. The method for measuring body parameters based on human body reconstruction according to claim 3, characterized in that: In step 2, the camera extracts image features from the color image in real time through a synchronous positioning and mapping method based on monocular vision and inertial sensors to estimate its own position and posture.
5. A system for measuring body parameters, characterized in that include: An acquisition module collects a number of color images from different perspectives around the human body; Remove the background of the portrait in real time, output the internal parameter matrix and external parameter matrix of the current camera while shooting, and then remind the user to enter the height information; Extract image features in real time to estimate its own position and posture; The modeling module extracts image features through the camera's position, posture, internal parameter matrix, and external parameter matrix, predicts its depth information, and fuses it to obtain a human body model. That is, by inputting the background-removed color images of three different perspectives, the camera's internal parameter matrix, and the camera's posture matrix parameters into a pre-trained neural network algorithm model, a high-precision 3D human body model is directly regressed and predicted. The deformation module performs non-rigid deformation on the human body model to make it consistent with the template model; Calculate the center of mass of the template model and the human body model, overlap the center of mass to the same point, and then extract the limb endpoints and head vertices of the two as corresponding points, execute the nearest neighbor iterative algorithm for rigid body transformation, and achieve rough alignment; execute the local rotation transformation matrix at the joints of the template model that need to be deformed, and multiply the local rotation transformation matrix on the motion chain to obtain the global transformation matrix of the joint point, and realize the skeleton deformation registration by minimizing the Euclidean distance between the corresponding joint points of the two; after the skeleton deformation registration, perform the skinning operation, that is, establish the association relationship between the skeleton points and the mesh vertices, and deform the mesh to adapt to the current skeleton posture; Then, non-rigid deformation registration is performed, that is, each vertex on the template model is rotated and translated so that the position of each vertex on it is closest to the corresponding point on the human body model; The calculation module extracts the vertex coordinates of the deformed template model and calculates the body parameters.
6. A device for measuring body parameters, characterized in that include: A camera, wherein the camera collects a plurality of color images at different viewing angles around a human body; The camera is communicatively connected to the server; the server comprises a processor and a memory for storing executable instructions of the processor, and the processor executes any one of the methods of claims 1-4 when running.
7. A chip, characterized in that: It comprises a processor, which is used to call and run a computer program from a memory, so that a device equipped with the chip executes any method described in claims 1-4.
8. A computer readable medium, characterized in that: Computer program instructions are stored thereon, and when the computer program instructions are processed and executed, the method described in any one of claims 1-4 is implemented.
Citation Information
Patent Citations
Multi-depth camera human body parameter measuring method and device
CN110307788A
Human body and human face mesh template fitting method based on deformation graph
CN108629294A
Multi-view three-dimensional human body reconstruction method based on template deformation
CN109242954A
User sign determination method and device, equipment and storage medium
CN109409348A
Method and system for measuring human body modeling dimensions
CN109655011A
