Three-dimensional human body model construction method, device, equipment and readable storage medium
By obtaining clothing features and human body features, performing correction and dimensionless processing, the accuracy problem of building a three-dimensional human body model from pictures wearing clothes is solved, and a more accurate three-dimensional human body model is constructed.
Patent Information
- Application Number
- CN202110035609.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-12
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-01-12
AI Technical Summary
When the existing technology builds a three-dimensional human body model based on pictures of people wearing clothes, it is greatly affected by the clothes, causing the model to be inaccurate.
By obtaining the clothing features and human body feature sizes of the target object, and then constructing a three-dimensional human body model after correction, the clothing features are used to correct the human body feature sizes to reduce the impact of clothes on the model, using dimensionless processing and feature plane adjustment technology. Accurately build 3D human body models.
It improves the accuracy of the three-dimensional human body model and reduces the impact of clothing on the model, making the model more accurately reflect the contours and size characteristics of the human body, with a small amount of calculation and close to the real body shape.
Smart Images

Figure CN112700540B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing and computing, and in particular to a method, device, equipment and readable storage medium for constructing a three-dimensional human body model. Background Art
[0002] Whether in the clothing industry, medical industry or animation industry, the technology of building a three-dimensional human body model based on two-dimensional human body image data is needed. Based on the existing technology, a three-dimensional human body model can be directly built based on the human figure outline in the image data. However, in actual application, when building a three-dimensional human body model based on actual pictures, since the pictures used for modeling are taken when the relevant person is wearing clothes, the pictures with clothes will make it impossible to accurately obtain the actual size of the relevant person during the modeling process, resulting in the constructed three-dimensional human body model being inaccurate. Summary of the invention
[0003] Therefore, the technical problem to be solved by the present invention is to overcome the defect in the prior art that the constructed three-dimensional human body model is easily affected by clothes, thereby providing a three-dimensional human body model construction method, device, equipment and readable storage medium.
[0004] The first aspect of the present invention provides a method for constructing a three-dimensional human body model, comprising the following steps: acquiring clothing features and human body feature dimensions of a target object based on image data of the target object; correcting the human body feature dimensions based on the clothing features of the target object; and constructing a three-dimensional human body model of the target object based on the corrected human body feature dimensions.
[0005] Optionally, in the three-dimensional human body model construction method provided by the present invention, obtaining clothing features of the target object includes: extracting texture features of the target object's clothing based on image data; determining the clothing material based on the texture features of the target object's clothing; converting the image data of the target object into a grayscale image, and determining the target object's clothing outline based on the grayscale image; and determining the clothing type based on the clothing outline.
[0006] Optionally, in the three-dimensional human body model construction method provided by the present invention, obtaining the human body characteristic dimensions of the target object includes: converting the image data of the target object into a grayscale image, and determining the human body contour of the target object according to the grayscale image; identifying multiple key parts of the target object according to the human body contour of the target object, and determining the human body characteristic dimensions of each key part; obtaining the value of the characteristic plane parameter of each key part of the target object according to the human body contour, and the value of the characteristic plane parameter of each key part is the human body characteristic dimension of the target object.
[0007] Optionally, in the three-dimensional human body model construction method provided by the present invention, the step of correcting the characteristic dimensions of the human body according to the clothing characteristics of the target object includes: determining a correction value of the characteristic dimensions of the human body according to the clothing characteristics of the target object; and correcting the characteristic dimensions of the human body according to the correction value.
[0008] Optionally, in the three-dimensional human body model construction method provided by the present invention, the step of constructing a three-dimensional human body model of the target object according to the corrected human body characteristic dimensions includes: calculating the body shape characteristics of the target object according to the corrected human body characteristic dimensions; obtaining a preset three-dimensional model from a preset human body digital model template library according to the body shape characteristics; and adjusting the preset three-dimensional model according to the corrected human body characteristic dimensions to obtain the three-dimensional human body model of the target object.
[0009] Optionally, in the three-dimensional human body model construction method provided by the present invention, the human body characteristic dimensions include the dimensions of multiple key parts of the target object, and the preset three-dimensional model is adjusted according to the corrected human body characteristic dimensions to obtain the three-dimensional human body model of the target object, including: dimensionally processing the corrected human body characteristic dimensions to obtain the dimensionless dimensions of each key part of the target object; obtaining the preset characteristic planes of each key part of the preset three-dimensional model, and the preset dimensionless dimensions of the preset characteristic planes of each key part; stretching or compressing each preset characteristic plane according to the dimensionless dimensions of each key part of the target object and the preset dimensionless dimensions of each preset characteristic plane; stretching or compressing the preset characteristic planes of the remaining parts of the preset three-dimensional model according to the stretched or compressed preset characteristic planes; forming the three-dimensional human body model of the target object according to the stretched or compressed preset characteristic planes of the preset three-dimensional model.
[0010] Optionally, in the three-dimensional human body model construction method provided by the present invention, the step of dimensionally converting the corrected human body characteristic dimensions includes: obtaining the height data of the target object; and determining the ratio of the dimensions of each key part of the target object to the height data of the target object as the dimensionless dimensions of each key part.
[0011] Optionally, in the three-dimensional human body model construction method provided by the present invention, the step of stretching or compressing the preset feature planes of the remaining parts of the preset three-dimensional model according to the preset feature planes after stretching or compression includes: performing interpolation operation on the preset feature planes of two adjacent stretched or compressed key parts to obtain the dimensionless size of the remaining parts between the two adjacent key parts; stretching or compressing the preset feature planes of the remaining parts according to the dimensionless scale of the remaining parts.
[0012] Optionally, in the three-dimensional human body model construction method provided by the present invention, the image data of the target object includes at least a front view and a side view of the target object.
[0013] The second aspect of the present invention provides a three-dimensional human body model construction device, including: a feature extraction module, used to obtain clothing features and human body feature dimensions of a target object based on image data of the target object; a size correction module, used to correct the human body feature dimensions based on the clothing features of the target object; and a model construction module, used to construct a three-dimensional human body model of the target object based on the corrected human body feature dimensions.
[0014] The third aspect of the present invention provides a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, thereby executing the three-dimensional human body model construction method provided in the first aspect of the present invention.
[0015] A fourth aspect of the present invention provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the three-dimensional human body model construction method provided in the first aspect of the present invention.
[0016] The technical solution of the present invention has the following advantages:
[0017] 1. The three-dimensional human body model construction method provided by the present invention, when constructing the three-dimensional human body model of the target object through the image data of the target object, in addition to obtaining the human body characteristic dimensions of the target object according to the image data, also obtains the clothing characteristics of the target object, and corrects the human body characteristic dimensions according to the clothing characteristics, so as to construct the three-dimensional human body model according to the corrected human body characteristic dimensions. Correcting the human body characteristic dimensions according to the clothing characteristics can minimize the influence of the clothing on the three-dimensional human body model, so that the obtained three-dimensional human body model can more accurately feedback the contour, size and other characteristics of the human body.
[0018] 2. The present invention provides a method for constructing a three-dimensional human body model. Each key part of the preset three-dimensional model has a corresponding preset feature plane. After obtaining the dimensionless size of the target object, it is only necessary to stretch or compress the preset feature planes of each key part according to the dimensionless size, and stretch or compress the preset feature planes of the remaining parts of the preset three-dimensional model according to the preset feature planes of the key parts after stretching or compressing, so as to obtain the three-dimensional human body model of the target object. The preset three-dimensional model is constructed according to the real human body shape, so the preset feature planes of each part of the preset model can more realistically reflect the morphology of each part of the human body. The preset feature planes of each part of the preset model are scaled by the dimensionless size of the target object. The number of dimensionless sizes required is small, the amount of calculation is small, and the impact on the contour of the three-dimensional model is small. The obtained three-dimensional human body model is closer to the real body shape of the target object.
[0019] 3. The three-dimensional human body model construction device provided by the present invention, when constructing a three-dimensional human body model of a target object through the image data of the target object, in addition to obtaining the human body characteristic dimensions of the target object based on the image data, also obtains the clothing characteristics of the target object, and corrects the human body characteristic dimensions based on the clothing characteristics, thereby constructing a three-dimensional human body model based on the corrected human body characteristic dimensions. Correcting the human body characteristic dimensions based on the clothing characteristics can minimize the influence of clothing on the three-dimensional human body model, so that the obtained three-dimensional human body model can more accurately feedback the contour, size and other characteristics of the human body. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1-Figure 6 A flowchart of a specific example of a method for constructing a three-dimensional human body model in an embodiment of the present invention;
[0022] Figure 7 A principle block diagram of a specific example of a device for constructing a three-dimensional human body model according to an embodiment of the present invention;
[0023] Figure 8 The present invention is a block diagram of a specific example of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] In the description of the present invention, it should be noted that the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as there is no conflict between them.
[0026] The embodiment of the present invention provides a method for constructing a three-dimensional human body model. Figure 1 As shown, the following steps are included:
[0027] Step S10: Acquire clothing features and body feature dimensions of the target object according to the image data of the target object.
[0028] The three-dimensional human body model construction method provided in the embodiment of the present invention can be applied to a device including an image acquisition device and a processor, such as a mobile phone, a computer, etc., and the image data of the target object is obtained by using the image acquisition device, and then the processor on the same device is used to execute steps S10 to S30 to construct a three-dimensional human body model of the target object. It can also be applied to a device that only contains a processor, and the image data of the target object is input into the processor, and steps S10 to S30 are executed to construct a three-dimensional human body model of the target object.
[0029] Among them, clothing features are used to characterize features that affect the characteristic dimensions of the human body, and may include clothing types, clothing fabrics, etc. The characteristic dimensions of the human body are used to characterize the body shape of the target object, and may include the dimensions of each key part of the target object, etc. For example, if the image data of the target object includes a front view and a side view of the target object, the dimensions of each key part of the target object may include the width of each key part obtained from the front view and the thickness of each key part obtained from the side view.
[0030] Step S20: Correcting the characteristic dimensions of the human body according to the clothing characteristics of the target object.
[0031] In a specific embodiment, when obtaining the human body characteristic size of the target object through the image data of the target object, the clothing of the target object in the image data will affect the human body characteristic size of the target object. Therefore, in the embodiment of the present invention, the human body size is corrected by the clothing characteristics of the target object. Specifically, Figure 2 As shown in FIG. 1 , the process of correcting the characteristic dimensions of the human body according to the clothing characteristics of the target object specifically includes:
[0032] Step S21: determining the correction value of the human body characteristic size according to the clothing characteristics of the target object.
[0033] In a specific embodiment, the error caused by clothing with different clothing features to the characteristic size of the human body can be determined based on a large amount of data, and then an error correction library can be built based on the clothing features and the corresponding errors. After obtaining the clothing features of the target object, the error corresponding to the clothing features of the target object can be determined based on the pre-established error correction library, and the error is determined as the correction value of the characteristic size of the human body. Since the same clothing causes different errors to different parts of the human body, the correction value of the characteristic size of the human body can include the correction values of the size features of different parts of the human body.
[0034] Furthermore, error correction libraries for different age groups and genders can be established. When determining the correction value, the error correction library corresponding to the age and gender of the target object is first determined, and then the correction value is determined from the corresponding error correction library based on the clothing characteristics.
[0035] Furthermore, in the process of using the error correction library, errors caused by new clothing features can be continuously added. As the number of cases in the error correction library increases, the three-dimensional human body model constructed by the construction method of the embodiment of the present invention will be more accurate.
[0036] Step S22: Correct the characteristic dimensions of the human body according to the correction value.
[0037] In a specific embodiment, when correcting the characteristic size of a human body according to the correction value, the characteristic size of the human body is subtracted from the correction value to obtain the corrected characteristic size of the human body. When the correction value includes correction values for different parts, the data used to characterize the size of different parts in the characteristic size of the human body is respectively subtracted from the correction value corresponding to each part to obtain the corrected size characteristics of each part. It should be noted that there are some clothes that will make the size of the target object obtained according to the image data larger than the actual size of the human body, such as trousers, etc. At this time, the correction value is a positive value, and the value obtained after correcting the characteristic size of the human body according to the correction value is smaller than the characteristic size of the human body before correction. There are also some clothes that will make the size of the target object obtained according to the image data smaller than the actual size of the human body, such as tight jeans, etc. At this time, the correction value is a negative value, and the value obtained after correcting the characteristic size of the human body according to the correction value is larger than the value of the human body size before correction.
[0038] Step S30: construct a three-dimensional human body model of the target object according to the corrected human body characteristic dimensions. The three-dimensional human body model constructed in the embodiment of the present invention refers to a human body surface represented by three-dimensional grids, and the number of grids is approximately between 20,000 and 200,000.
[0039] The three-dimensional human body model construction method provided by the embodiment of the present invention, when constructing the three-dimensional human body model of the target object through the image data of the target object, in addition to obtaining the human body characteristic dimensions of the target object according to the image data, also obtains the clothing characteristics of the target object, and corrects the human body characteristic dimensions according to the clothing characteristics, so as to construct the three-dimensional human body model according to the corrected human body characteristic dimensions. Correcting the human body characteristic dimensions according to the clothing characteristics can minimize the influence of the clothing on the three-dimensional human body model, so that the obtained three-dimensional human body model is more accurate.
[0040] In an alternative embodiment, if Figure 3 As shown, in the above step S10, the step of calculating clothing features specifically includes:
[0041] Step S11: extracting texture features of the clothing of the target object according to the image data.
[0042] In a specific embodiment, different texture features can characterize different fabrics. Since clothing made of different fabrics has different effects on the characteristic dimensions of the human body, obtaining the texture features of the target object's clothing can obtain a more accurate correction value for correcting the characteristic dimensions of the human body. The texture features can be obtained based on the image data and a pre-established texture library. The texture library includes a large number of pictures of clothing with different textures. When determining the texture features of the target object's clothing based on the image data, the portion of the image data containing the clothing texture can be compared with the pictures in the texture library, and the texture features corresponding to the pictures in the texture library with the highest similarity to the portion of the image data containing the clothing texture are determined as the texture features of the target object's clothing, thereby determining the fabric of the target object's clothing based on the texture features.
[0043] Step S12: determining the clothing material according to the texture features of the clothing of the target object.
[0044] In a specific embodiment, the texture features of clothes made of different materials are different, and the clothing material corresponding to the texture feature obtained in the above step S11 can be determined based on a pre-established clothing material library. Specifically, the clothing material library includes clothing materials corresponding to different texture features. After the texture feature is known, the clothing material corresponding to the texture feature in the clothing material library is determined as the clothing material of the target object.
[0045] Step S13: converting the image data of the target object into a grayscale image, and determining the clothing contour of the target object according to the grayscale image.
[0046] Step S14: Determine the clothing type according to the clothing outline.
[0047] In a specific embodiment, clothing types include tops: long-sleeved and short-sleeved shirts, T-shirts, sweaters, autumn clothes, and vests; pants: trousers, casual pants, sweatpants, jeans, autumn pants, woolen pants, shorts, etc. For each type of clothing, a photo library is pre-established. After executing the above step S13 to obtain the clothing outline, the clothing outline can be compared with the samples in the photo library to determine the clothing type of the clothing outline object obtained in step S13.
[0048] In an alternative embodiment, if Figure 4 As shown, in the above step S10, the step of obtaining the human body feature size of the target object according to the image data of the target object specifically includes:
[0049] Step S17: converting the image data of the target object into a grayscale image, and determining the human body contour of the target object according to the grayscale image.
[0050] Step S18: Identify multiple key parts of the target object according to the human body contour of the target object, and determine the human body characteristic size of each key part. The human body characteristic size of each key part is the two-dimensional size of each key part obtained according to the image data of the target object. For example, if the image data of the target object includes a front view and a side view of the target object, the size of each key part of the target object may include the width of each key part obtained according to the front view and the thickness of each key part obtained according to the side view.
[0051] In an embodiment of the present invention, when constructing a three-dimensional human body model of a target object, it is necessary to determine the sizes of key parts of the target object. Specifically, the key parts include: neck, shoulders, upper arms, lower arms, wrists, chest, waist, thighs, calves, ankles, etc.
[0052] In an alternative embodiment, if Figure 5 As shown, in the method for constructing a three-dimensional human body model provided in the embodiment of the invention, step S30 specifically includes:
[0053] Step S31: Calculate the body shape characteristics of the target object according to the corrected human body characteristic dimensions.
[0054] In the embodiment of the present invention, the body shape characteristics of the target object include the ratio of leg length to upper body length, the ratio of waist circumference to height, the ratio of waist circumference to hip circumference, the ratio of waist circumference to chest circumference, etc. The body shape characteristics can be used to characterize the body proportions of the target object. In step S31, when calculating waist circumference, hip circumference, chest circumference, etc., the calculation can be performed based on the two-dimensional dimensions of each key part determined in step S10.
[0055] Step S32: obtaining a preset three-dimensional model from a preset human digital model template library according to the body shape characteristics.
[0056] In an embodiment of the present invention, a human digital model template library can be established corresponding to human body characteristics of different genders and different age stages. When determining a preset three-dimensional model based on body shape characteristics, an alternative three-dimensional model can be first determined based on characteristics such as the gender and age of the target object, and then the model with the highest similarity to the body shape characteristics of the target object among the alternative three-dimensional models can be determined as the preset three-dimensional model.
[0057] Step S33: adjusting the preset three-dimensional model according to the corrected human body characteristic dimensions to obtain a three-dimensional human body model of the target object.
[0058] In an alternative embodiment, if Figure 6 As shown, step S33, the step of adjusting the preset three-dimensional model specifically includes:
[0059] Step S331: Perform dimensionless processing on the corrected human body characteristic dimensions to obtain dimensionless dimensions of each key part of the target object.
[0060] In a specific embodiment, when the corrected human body characteristic dimensions are dimensionally non-dimensionalized, the height data of the target object can be obtained first, and then the ratios of the dimensions of each key part in the human body characteristic dimensions to the height of the target object are calculated respectively, and the ratios of the dimensions of each key part to the height of the target object are determined as the dimensionless dimensions of each key part.
[0061] Step S332: obtaining preset characteristic planes of each key part of the preset three-dimensional model, and preset dimensionless dimensions of each preset characteristic plane of each key part.
[0062] In a specific embodiment, if the parameters that can accurately depict the shapes of each key part cannot be determined, the established three-dimensional human body model will be significantly different from the actual body shape of the actual human body. For example, if the upper arm of a human body is simplified into a cylinder, then all mesh data on the surface of the cylinder can be calculated using two parameters, radius and length. However, the real upper arm of a human body is not a standard cylinder, and it is obvious that a realistic upper arm model cannot be obtained based on the two parameters of radius and length.
[0063] In order to avoid the model being constructed not realistic enough due to improper parameter values, in the embodiment of the present invention, different three-dimensional models are pre-set, and each part in the three-dimensional model is pre-set with a characteristic plane that can characterize the shape of each part. The characteristic planes are all determined by the real human body shape. For example, a plane is intercepted at the waist, and the intersection line between the plane and the human body surface is a shape similar to an ellipse. Then the characteristic plane of the waist is "quasi-ellipse". The characteristic plane parameters of the characteristic plane include the major axis and the minor axis. The characteristic plane "quasi-ellipse" is scaled by the measured major axis and minor axis of the target object to obtain the shape of the waist of the target object. Determining the characteristic plane of the waist as a "quasi-ellipse" and setting the major axis and minor axis as the characteristic plane parameters that describe the "quasi-ellipse" is only a specific embodiment.
[0064] For the same part, the cross-sectional shapes of people with different body shapes at that part are different. For example, for a person with a beer belly, the waist cross-section is relatively round, but for a person without fat on the waist, the waist cross-section is relatively flat. Therefore, in different preset three-dimensional models, the preset feature plane shapes for the same part are different. After determining the preset three-dimensional model that is closest to the body shape of the target object according to the body shape characteristics of the target object, the preset feature planes of each part of the preset three-dimensional model can be determined as the feature planes of each part of the target object.
[0065] Step S333: stretching or compressing each preset characteristic plane according to the dimensionless size of each key part of the target object and the preset dimensionless size of each preset characteristic plane, so as to obtain the characteristic planes of each key part of the three-dimensional human body model of the target object.
[0066] Specifically, after determining the dimensionless size of a certain part of the target object, a preset feature plane corresponding to the part in the preset three-dimensional model is obtained, and the preset dimensionless size of the preset feature plane is determined. If the dimensionless size of the target object at the part is larger than the preset dimensionless size of the preset feature plane in the preset three-dimensional model, it is necessary to stretch the preset feature plane according to the dimensionless size of the target object at the part, so that the dimensionless size of the preset feature plane after stretching is the same as the dimensionless size of the target object at the part. Conversely, if the dimensionless size of the target object at the part is smaller than the preset dimensionless size of the preset feature plane in the preset three-dimensional model, it is necessary to compress the preset feature plane according to the dimensionless size of the target object at the part, so that the dimensionless size of the compressed preset feature plane is the same as the dimensionless size of the target object at the part.
[0067] Exemplarily, the dimensionless size of the waist of the target object includes a waist width obtained from the front and a waist thickness obtained from the side. If the waist width and waist thickness of the target object are greater than the width and thickness of the preset characteristic plane, the width and thickness of the preset characteristic plane are stretched so that the stretched width and thickness are the same as the waist width and waist thickness of the target object.
[0068] If the waist width and waist thickness of the target object are smaller than the width and thickness of the preset characteristic plane, the width and thickness of the preset characteristic plane are compressed so that the compressed width and thickness are the same as the waist width and waist thickness of the target object;
[0069] If the waist width of the target object is greater than the width of the preset characteristic plane, and the waist thickness of the target object is less than the thickness of the preset characteristic plane, the width of the preset characteristic plane is stretched so that the width after stretching is the same as the waist width of the target object, and the thickness of the preset characteristic plane is compressed so that the thickness after compression is the same as the waist thickness of the target object;
[0070] If the waist width of the target object is smaller than the width of the preset characteristic plane, and the waist thickness of the target object is larger than the thickness of the preset characteristic plane, the width of the preset characteristic plane is compressed so that the compressed width is the same as the waist width of the target object, and the thickness of the preset characteristic plane is stretched so that the stretched thickness is the same as the waist thickness of the target object.
[0071] Step S334: according to the stretched or compressed preset characteristic plane, stretching or compressing the preset characteristic planes of the remaining parts of the preset three-dimensional model;
[0072] In the embodiment of the present invention, after the key parts of the preset model are stretched or compressed to obtain the characteristic planes of the key parts of the target object, the quadratic function interpolation transition can be used to calculate the dimensionless size of other preset characteristic planes after stretching or compression, so as to stretch or compress other preset characteristic planes according to the dimensionless size of other preset characteristic planes after stretching or compression. For example, the scaling ratio of each cross section between the waist characteristic plane and the chest characteristic plane can be obtained by interpolating the data of the two characteristic planes using a quadratic function.
[0073] Step S335: forming a three-dimensional human body model of the target object according to each preset characteristic plane after stretching or compressing the preset three-dimensional model.
[0074] The embodiment of the present invention provides a method for constructing a three-dimensional human body model. Each key part of the preset three-dimensional model has a corresponding preset feature plane. After the dimensionless size of the target object is obtained, the preset feature plane of each key part only needs to be stretched or compressed according to the dimensionless size, and the preset feature planes of the remaining parts of the preset three-dimensional model are stretched or compressed according to the preset feature planes of the key parts after stretching or compressing, so as to obtain the three-dimensional human body model of the target object. The preset three-dimensional model is constructed according to the real human body shape, so the preset feature planes of each part of the preset model can more realistically reflect the shape of each part of the human body. The preset feature planes of each part of the preset model are scaled by the dimensionless size of the target object. The number of dimensionless sizes required is small, the amount of calculation is small, and the impact on the contour of the three-dimensional model is small. The obtained three-dimensional human body model is closer to the real body shape of the target object.
[0075] In an optional embodiment, in order to obtain a three-dimensional human body model of the target object, the image data of the target object acquired in step S10 at least includes a front view and a side view of the target object.
[0076] The embodiment of the present invention also provides a three-dimensional human body model construction device, such as Figure 7 As shown, including:
[0077] The feature extraction module 10 is used to obtain clothing features and body feature dimensions of the target object according to the image data of the target object. For details, please refer to the description of step S10 in the above embodiment, which will not be repeated here.
[0078] The size correction module 20 is used to correct the characteristic size of the human body according to the clothing characteristics of the target object. For details, please refer to the description of step S20 in the above embodiment, which will not be repeated here.
[0079] The model building module 30 is used to build a three-dimensional human body model of the target object according to the corrected human body characteristic dimensions. For details, please refer to the description of step S30 in the above embodiment, which will not be repeated here.
[0080] The three-dimensional human body model construction device provided by the embodiment of the present invention, when constructing a three-dimensional human body model of a target object through the image data of the target object, in addition to obtaining the human body characteristic dimensions of the target object based on the image data, also obtains the clothing characteristics of the target object, and corrects the human body characteristic dimensions based on the clothing characteristics, thereby constructing a three-dimensional human body model based on the corrected human body characteristic dimensions. Correcting the human body characteristic dimensions based on the clothing characteristics can minimize the influence of the clothing on the three-dimensional human body model, so that the obtained three-dimensional human body model is more accurate.
[0081] The embodiment of the present invention also provides a computer device, such as Figure 8 As shown, the computer device mainly includes one or more processors 41 and a memory 42. Figure 8 A processor 41 is taken as an example.
[0082] The computer device may further include: an input device 43 and an output device 44 .
[0083] The processor 41, the memory 42, the input device 43 and the output device 44 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.
[0084] The processor 41 may be a central processing unit (CPU). The processor 41 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, or a combination of the above chips. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The memory 42 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the three-dimensional human body model construction device, etc. In addition, the memory 42 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 42 may optionally include a memory remotely arranged relative to the processor 41, and these remote memories may be connected to the three-dimensional human body model construction device via a network. The input device 43 can receive a calculation request (or other digital or character information) input by a user, and generate key signal input related to the three-dimensional human body model building device. The output device 44 can include a display device such as a display screen to output the calculation result.
[0085] The embodiment of the present invention further provides a computer-readable storage medium, which stores computer instructions, and the computer storage medium stores computer executable instructions, which can execute the three-dimensional human body model construction method in any of the above method embodiments. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.
[0086] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.
Claims
1. A method for constructing a three-dimensional human body model, characterized in that: The steps include: Acquire clothing features and body feature dimensions of the target object according to the image data of the target object; Correcting the characteristic dimensions of the human body according to the clothing characteristics of the target object; Constructing a three-dimensional human body model of the target object according to the corrected human body characteristic dimensions; The step of correcting the characteristic dimensions of the human body according to the clothing characteristics of the target object comprises: Determining a correction value of the human body characteristic size according to the clothing characteristics of the target object; Correcting the characteristic dimensions of the human body according to the correction value; Determining the correction value of the human body characteristic size according to the clothing characteristics of the target object includes: Establish error correction libraries for different age groups and genders; Determining an error correction library corresponding to the age and gender of the target subject; Determine a correction value from a corresponding error correction library according to clothing features; The steps of establishing an error correction library include: determining the errors caused by clothing with different clothing features to the characteristic dimensions of the human body, and constructing an error correction library based on the clothing features and the corresponding errors; The step of determining the correction value from the corresponding error correction library according to the clothing features includes: after obtaining the clothing features of the target object, determining the error corresponding to the clothing features of the target object according to the pre-established error correction library, and determining the error as the correction value of the human body feature size.
2. The method for constructing a three-dimensional human body model according to claim 1, characterized in that: Acquiring clothing features of the target object includes: Extracting texture features of clothing of the target object according to the image data; Determining the clothing material according to the texture features of the clothing of the target object; Converting the image data of the target object into a grayscale image, and determining the clothing contour of the target object according to the grayscale image; A garment type is determined according to the garment outline.
3. The method for constructing a three-dimensional human body model according to claim 1, characterized in that: Acquiring the human body characteristic dimensions of the target object, including: Converting the image data of the target object into a grayscale image, and determining the human body contour of the target object according to the grayscale image; A plurality of key parts of the target object are identified according to the human body contour of the target object, and the human body characteristic size of each of the key parts is determined.
4. The method for constructing a three-dimensional human body model according to claim 1, characterized in that: The step of constructing a three-dimensional human body model of the target object according to the corrected human body characteristic dimensions comprises: Calculating the body shape characteristics of the target object according to the corrected body characteristic dimensions; Acquiring a preset three-dimensional model from a preset human digital model template library according to the body shape characteristics; The preset three-dimensional model is adjusted according to the corrected human body characteristic dimensions to obtain a three-dimensional human body model of the target object.
5. The method for constructing a three-dimensional human body model according to claim 4, characterized in that: The human body characteristic dimensions include the dimensions of multiple key parts of the target object. The step of adjusting the preset three-dimensional model according to the corrected human body characteristic dimensions to obtain the three-dimensional human body model of the target object comprises: Performing dimensionless processing on the corrected human body characteristic dimensions to obtain dimensionless dimensions of each key part of the target object; Acquire preset characteristic planes of each key part of the preset three-dimensional model, and preset dimensionless dimensions of each preset characteristic plane of each key part; Stretching or compressing each of the preset characteristic planes according to the dimensionless size of each key part of the target object and the preset dimensionless size of each of the preset characteristic planes; According to the stretched or compressed preset characteristic plane, the preset characteristic planes of the remaining parts of the preset three-dimensional model are stretched or compressed; A three-dimensional human body model of the target object is formed according to each preset characteristic plane after stretching or compressing the preset three-dimensional model.
6. The method for constructing a three-dimensional human body model according to claim 5, characterized in that: The step of performing dimensionless processing on the corrected human body characteristic dimensions comprises: Get the height data of the target object; The ratio of the size of each key part of the target object to the height data of the target object is determined as the dimensionless size of each key part.
7. The method for constructing a three-dimensional human body model according to claim 5, characterized in that: The step of stretching or compressing the preset characteristic planes of the remaining parts of the preset three-dimensional model according to the stretched or compressed preset characteristic planes includes: Performing interpolation operation on preset characteristic planes of two adjacent stretched or compressed key parts to obtain dimensionless dimensions of other parts between the two adjacent key parts; The preset characteristic planes of the remaining parts are stretched or compressed according to the dimensionless scale of the remaining parts.
8. The method for constructing a three-dimensional human body model according to claim 4, characterized in that: The image data of the target object at least includes a front view and a side view of the target object.
9. A three-dimensional human body model construction device, characterized in that: include: A feature extraction module, used for acquiring clothing features and body feature dimensions of the target object according to the image data of the target object; A size correction module, used to correct the characteristic size of the human body according to the clothing characteristics of the target object; A model building module, used for building a three-dimensional human body model of the target object according to the corrected human body characteristic dimensions; The step of correcting the characteristic dimensions of the human body according to the clothing characteristics of the target object comprises: Determining a correction value of the human body characteristic size according to the clothing characteristics of the target object; Correcting the characteristic dimensions of the human body according to the correction value; Determining the correction value of the human body characteristic size according to the clothing characteristics of the target object includes: Establish error correction libraries for different age groups and genders; Determining an error correction library corresponding to the age and gender of the target subject; Determine a correction value from a corresponding error correction library according to clothing features; The steps of establishing an error correction library include: determining the errors caused by clothing with different clothing features to the characteristic dimensions of the human body, and constructing an error correction library based on the clothing features and the corresponding errors; The step of determining the correction value from the corresponding error correction library according to the clothing features includes: after obtaining the clothing features of the target object, determining the error corresponding to the clothing features of the target object according to the pre-established error correction library, and determining the error as the correction value of the human body feature size.
10. A computer device, characterized in that: include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to perform the three-dimensional human body model construction method as described in any one of claims 1-8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the three-dimensional human body model construction method according to any one of claims 1 to 8.
