Three-dimensional human body measurement data visualization method based on camera array

Through deep learning technology based on camera arrays, multi-view image data is extracted and processed, combined with convolutional neural networks and generative adversarial networks, to optimize the accuracy and details of the three-dimensional human body model, solving the reconstruction shortcomings of traditional technologies in complex lighting and texture environments. problem, achieving higher quality human body 3D model reconstruction.

CN118628646AInactive Publication Date: 2024-09-10SHENZHEN POLYTECHNIC
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410671150.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional 3D human body reconstruction technology is difficult to efficiently and accurately handle complex lighting conditions and texture environments when processing multi-view image data, resulting in insufficient accuracy and details of the reconstruction model.

Method used

Using a camera array-based method, through image preprocessing, deep learning models and three-dimensional visualization technology, human body contour information and texture features are extracted, and convolutional neural networks and generative adversarial networks are combined to optimize the accuracy and details of the three-dimensional human body model.

Benefits of technology

The accuracy and detailed performance of the three-dimensional human body model have been significantly improved, and it can more realistically reflect the natural shape and surface details of the human body. It is suitable for applications such as high-end game development, film and television special effects, and virtual fittings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628646A
    Figure CN118628646A
Patent Text Reader

Abstract

The invention relates to the technical field of three-dimensional human body modeling, in particular to a three-dimensional human body measurement data visualization method based on a camera array, which comprises the following steps of: collecting two-dimensional images of a human body by using a plurality of cameras arranged at different angles; performing illumination adjustment and noise reduction processing on the collected two-dimensional image; extracting human body contour information and texture and reflection characteristics from the preprocessed two-dimensional image; recognizing and processing complex textures and reflecting surfaces by using a deep learning model, and finely adjusting the human body contour information to optimize the precision and integrity of the human body contour; constructing a human body three-dimensional model by utilizing the geometrical relationship of the multi-view image and combining the fine-tuned multiple pieces of human body contour information; and presenting the human body three-dimensional model by using a three-dimensional visualization technology. According to the invention, the final three-dimensional model can reflect the natural form and surface details of the human body more truly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional human body modeling, and in particular to a three-dimensional human body measurement data visualization method based on a camera array. Background Art

[0002] In the field of human body three-dimensional reconstruction, especially when reconstructing through multi-view images, traditional technologies face multiple challenges. The first is how to efficiently and accurately process image data from different camera angles to reconstruct the three-dimensional model of the human body; the second is how to maintain the accuracy and details of the reconstructed model under complex lighting conditions and diverse texture environments.

[0003] Traditional methods often rely on simplified models and assumptions, such as ignoring the effects of complex textures and reflections, or using basic image processing techniques for feature extraction and matching, which limits the authenticity and application scope of the reconstructed model.

[0004] Therefore, a new technical solution is needed that can fully utilize the powerful capabilities of deep learning to automatically and efficiently process multi-view image data, while accurately handling complex lighting and textures to achieve higher quality human 3D model reconstruction. Summary of the invention

[0005] Based on the above objectives, the present invention provides a three-dimensional anthropometric data visualization method based on a camera array.

[0006] The method for visualizing three-dimensional human body measurement data based on a camera array comprises the following steps:

[0007] S1: Collect 2D images of the human body using multiple cameras arranged at different angles;

[0008] S2: Apply image preprocessing algorithms to perform illumination adjustment and noise reduction on the collected 2D images to cope with low light conditions and shadow effects;

[0009] S3: Extract human body contour information, texture and reflection features from the preprocessed two-dimensional image through image recognition technology;

[0010] S4: Based on the extracted texture and reflection features, a deep learning model is used to identify and process complex textures and reflective surfaces. The deep learning model is trained to distinguish different material features and light reflection patterns, and fine-tune the human body contour information accordingly to optimize the accuracy and completeness of the human body contour;

[0011] S5: Use the geometric relationship of multi-view images combined with multiple human body contour information after fine-tuning to construct a three-dimensional human body model;

[0012] S6: Using 3D visualization technology, the optimized 3D human body model is presented.

[0013] Furthermore, the S1 specifically includes:

[0014] S11: Arrange at least three cameras in a predetermined measurement area, wherein the placement and angle of each camera are designed according to the average height and width of a human body and the expected measurement accuracy to cover the front, side, and rear viewing angles of the human body;

[0015] S12: Before starting the measurement, the calibration object is used to perform scene calibration in the measurement area to determine the field of view and relative position of each camera so as to fuse and interpret the image data obtained from different angles in subsequent processing;

[0016] S13: Start all cameras to simultaneously capture two-dimensional image data of the human body from respective angles.

[0017] Furthermore, S1 also includes synchronous calibration of each camera to ensure that all cameras capture images at the same time reference to reduce data inconsistency caused by slight movements of the human body.

[0018] Furthermore, the S2 specifically includes:

[0019] S21: Automatically perform exposure correction on each captured two-dimensional image frame, and dynamically adjust the exposure parameters of the camera to adapt to image capture under different lighting conditions, thereby ensuring that the image brightness is optimized;

[0020] S22: Apply high dynamic range (HDR) imaging technology to combine multiple frames from the same viewpoint. By fusing images at different exposure levels, it can enhance the details in the image, especially in areas with uneven lighting, and reduce the effects of shadows and overexposure.

[0021] S23: Use noise reduction algorithm to perform multi-scale analysis on the image to remove random noise in the image while retaining edge and detail information to improve image quality;

[0022] S24: Perform local contrast enhancement on the image, including the human body contour and human body connection feature areas.

[0023] Furthermore, the S3 specifically includes:

[0024] S31: Apply the Canny edge detector to identify and extract the edges of the human body contour in the preprocessed two-dimensional image. The Canny edge detector operates through the following steps: first, use a Gaussian filter to smooth the image, then find the intensity gradient of the two-dimensional image, then apply non-maximum suppression technology to refine the edges, and finally detect and connect the edges through a double threshold method;

[0025] S32: Use a deep learning-based semantic segmentation model to analyze two-dimensional images to distinguish the human body area and background in the image, and finely segment and define the human body contour and shape through pixel-by-pixel classification;

[0026] S33: For the extraction of texture and reflection features, feature descriptor algorithms, including the local binary pattern (LBP) algorithm and the gray level co-occurrence matrix (GLCM) method, are applied to analyze the texture information in the human body area. The LBP algorithm generates a texture descriptor by comparing the brightness of a pixel and its surrounding neighborhood, while the GLCM method analyzes the texture based on the statistical distribution of paired pixel intensities.

[0027] S34: Reflection analysis is used to distinguish brightness changes in a two-dimensional image due to changes in illumination and reflection features caused by surface material properties (such as gloss or roughness) of an object, to analyze highlight areas and shadow areas in the two-dimensional image, and to estimate the bidirectional reflectance distribution function (BRDF) of the surface.

[0028] Furthermore, the local binary pattern LBP algorithm generates a binary number by comparing the brightness of the central pixel with the brightness of its neighboring pixels, specifically including:

[0029] For each pixel, consider the neighboring pixels around it, the neighborhood is a 3x3 square;

[0030] Compare the grayscale value of each pixel in the neighborhood with the grayscale value of the central pixel. If the value of the neighborhood pixel is greater than or equal to the value of the central pixel, the position of the neighborhood pixel is marked as 1, otherwise it is marked as 0.

[0031] Arrange the obtained series of binary numbers (0 or 1) clockwise or counterclockwise to form a binary number;

[0032] Convert the binary number to decimal and get the LBP value of the central pixel, expressed as: Among them, g c is the gray value of the center pixel, g p is the gray value of the neighborhood pixel, P is the number of pixels considered in the neighborhood, R is the radius of the neighborhood, s(x) is a sign function, when x ≥ 0, s(x) = 1; otherwise, s(x) = 0;

[0033] The gray level co-occurrence matrix (GLCM) method is used to analyze the spatial relationship of image textures and describe the texture by calculating the gray level relationship between paired pixels in the image, specifically including:

[0034] For each pair of pixels that meet the distance and angle conditions, the frequency of the gray value combination is counted and a GLCM matrix is ​​constructed. The rows and columns of the matrix correspond to the gray levels of the image. The element P(i, j|d, θ) represents the probability that a pair of pixels with gray levels i and j appear along the θ direction and at an interval of d.

[0035] According to the GLCM matrix, multiple texture features are calculated, including contrast, uniformity, abstraction and correlation. The contrast is calculated by the following formula:

[0036] Among them, P(i, j) is the element in the gray-level co-occurrence matrix, and levels is the number of gray levels in the image.

[0037] Furthermore, the S34 specifically includes:

[0038] Apply the Fresnel reflection model and the Lambertian reflection model to analyze the lighting and reflection characteristics in the image, and distinguish between specular reflection (highlight) and diffuse reflection (Lambertian reflection);

[0039] For each pixel in the image, according to its brightness value and the brightness changes of surrounding pixels, the highlight area and shadow area are identified based on edge detection and local contrast analysis. The highlight area is the area with a higher local brightness value than the surrounding area, and the shadow area is the area with a low brightness value.

[0040] Using the recognition results of the highlight area, the inverse illumination model is used to estimate the bidirectional reflectance distribution function BRDF of the surface of the object in the image. BRDF describes the characteristics of the reflected light on the surface of the object and is expressed as: Among them, f r (ω i ,ω r ) is the BRDF function, ω i is the incident light direction, ω r is the direction of reflected light, dL r (ω r ) is the unit solid angle inner edge ω r Directional reflected radiance, dE i (ω i ) is the upper edge per unit area ω i Directional incident irradiance;

[0041] By analyzing the BRDF characteristics of different material surfaces, the brightness changes in the image are distinguished into changes caused by changes in lighting conditions and changes in reflection characteristics caused by the material properties of the object surface (such as smoothness and roughness).

[0042] Furthermore, the S4 specifically includes:

[0043] S41, Convolutional Neural Network (CNN) part:

[0044] Feature extraction subnetwork: Use convolutional neural network (CNN) to extract high-level features of the image. Convolutional neural network (CNN) consists of multiple convolutional layers, activation layers, and pooling layers. Each convolutional layer captures different features of the image through learning and outputs a feature map F.

[0045] Material and reflection feature recognition subnetwork: Based on the feature extraction subnetwork, additional convolutional layers are used to recognize different material texture features and light reflection patterns;

[0046] S42, Generate Adversarial Network GAN part:

[0047] Detail enhancement and fine-tuning sub-network: Use the generator G of the generative adversarial network GAN to enhance and fine-tune the human body contour information. The input of the generator G is the output of the convolutional neural network CNN part, and a series of convolutional layers, normalization layers and activation layers are used to generate the fine-tuned human body contour information;

[0048] Discriminator network: The discriminator D of the generative adversarial network GAN is used to distinguish whether the generated human body contour information is close to the real data distribution;

[0049] S43, Adversarial training: By minimizing the loss function L of the generator G G And maximize the loss function L of the discriminator D D To train G and D simultaneously:

[0050] L G = -logD(G(F))

[0051] L D = -[logD(C true )+log(1-D(G(F)))], where C true is the real human body contour information, C is the original human body contour information, and F is the feature map;

[0052] S44, loss function design:

[0053] For the CNN part, the cross entropy loss function is used to optimize the material and reflection feature recognition sub-network;

[0054] For the generator G of GAN, L1 loss is used to measure the difference between the generated human contour information and the real human contour information, including adversarial loss and content loss: Among them, λ adv and λ L1 is the weight that adjusts the importance of adversarial loss and content loss;

[0055] For the discriminator D of GAN, binary cross entropy loss is used to distinguish generated data from real data.

[0056] Furthermore, the convolutional layer of the feature extraction subnetwork is expressed as (for each convolutional layer):

[0057] in, is the value of the kth feature map at position (i, j), and b k are weights and biases, σ is the ReLU activation function, and F is the output feature map;

[0058] The additional convolutional layer of the material and reflection feature recognition sub-network is expressed as:

[0059] in, It is an additional feature map in the material and reflection feature recognition sub-network;

[0060] The generator G takes the output feature map F of the CNN part as input and generates the fine-tuned human contour information C through a series of convolutional layers, normalization layers and LeakyReLU activation layers. adj , the convolutional layer of the generator G is expressed as:

[0061] in, is the output feature map of the lth layer in the generator, and b l are weights and biases, and BN is batch normalization;

[0062] The discriminator D is used to determine whether the input human body contour information is real or generated by the generator G. The final layer of the discriminator D network structure is a sigmoid activation function, which is used to output the probability of whether the input contour information is real or false. The other network structures are the same as the CNN part of the network structure.

[0063] Furthermore, the S5 specifically includes:

[0064] S51, Contour synchronization and alignment: Use the fine-tuned human contour information to synchronize and align contours in images from different perspectives through geometric transformation technology;

[0065] S52, 3D reconstruction: Combining the contour information of multiple perspectives and the geometric relationship of the camera, multi-view stereo reconstruction is used to generate a 3D model of the human body, integrating the depth maps of multiple perspectives into a unified 3D space coordinate system to construct a 3D model of the entire human body.

[0066] Beneficial effects of the present invention:

[0067] The present invention, by introducing an improved deep learning model, especially combining the design of convolutional neural network (CNN) and generative adversarial network (GAN), effectively fine-tunes and enhances the details of human body contour information. This method makes the three-dimensional human body model reconstructed from multi-view images significantly improved in accuracy and detail expression. The CNN part deeply extracts image features, including complex textures and subtle contours, while the GAN part is responsible for further enhancing these features and fine-tuning the contours, so that the final three-dimensional model can more realistically reflect the natural form and surface details of the human body, such as skin texture, clothing wrinkles, etc. This is of great significance for application scenarios that require highly realistic restoration of human body images and dynamics, such as high-end game development, film and television special effects production, and virtual fitting.

[0068] The present invention optimizes the processing capability of complex lighting conditions and texture changes through an identification subnetwork for material and reflection features and a reflection analysis algorithm based on a physical model. Based on multi-view images, the deep learning model can identify different material features and light reflection patterns, and effectively distinguish between highlight areas and shadow areas in the image. This not only improves the reconstruction effect under different lighting conditions, but also ensures the accuracy of the model in details, especially in environments with large lighting changes or on objects with complex surface textures, such as metal and moist skin. This is particularly critical for applications that require accurate reconstruction of human body models under a variety of lighting environments, such as outdoor sports analysis and real-time monitoring.

[0069] The present invention, a local binary pattern (LBP) algorithm and a gray level co-occurrence matrix (GLCM) method, show excellent effects in image analysis, especially in texture recognition and surface analysis. The two methods extract texture information of an image through different mechanisms, so that they complement each other when processing image texture features, thereby realizing efficient and accurate texture analysis in multiple application fields; combining LBP and GLCM, image texture can be comprehensively analyzed from micro to macro, and this multi-scale texture feature extraction strategy greatly enhances the accuracy and robustness of tasks such as pattern recognition and image classification. This combination not only improves the recognition ability of textures of different types and complexity, but also makes the algorithm more adaptable to different application scenarios and requirements, thereby being widely used and recognized in the fields of image processing and computer vision. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0071] Figure 1A schematic diagram of a method flow of an embodiment of the present invention;

[0072] Figure 2 Schematic diagram of the deep learning model structure of an embodiment of the present invention. DETAILED DESCRIPTION

[0073] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0074] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0075] like Figure 1 As shown, the three-dimensional human body measurement data visualization method based on the camera array includes the following steps:

[0076] S1: Collect 2D images of the human body using multiple cameras arranged at different angles;

[0077] S2: Apply image preprocessing algorithms to perform illumination adjustment and noise reduction on the collected 2D images to cope with low light conditions and shadow effects;

[0078] S3: Extract human body contour information, texture and reflection features from the preprocessed two-dimensional image through image recognition technology;

[0079] S4: Based on the extracted texture and reflection features, a deep learning model is used to identify and process complex textures and reflective surfaces. The deep learning model is trained to distinguish different material features and light reflection patterns, and fine-tune the human body contour information accordingly to optimize the accuracy and completeness of the human body contour;

[0080] S5: Use the geometric relationship of multi-view images combined with multiple human body contour information after fine-tuning to construct a three-dimensional human body model;

[0081] S6: Using 3D visualization technology, the optimized 3D human body model is presented.

[0082] S1 specifically includes:

[0083] S11: Arrange at least three cameras in a predetermined measurement area, wherein the placement and angle of each camera are designed according to the average height and width of a human body and the expected measurement accuracy to cover the front, side, and rear viewing angles of the human body;

[0084] S12: Before starting the measurement, the calibration object is used to perform scene calibration in the measurement area to determine the field of view and relative position of each camera so as to fuse and interpret the image data obtained from different angles in subsequent processing;

[0085] S13: Start all cameras to simultaneously capture two-dimensional image data of the human body from respective angles.

[0086] S1 also includes synchronized calibration of each camera, ensuring that all cameras capture images at the same time reference to reduce data inconsistencies caused by small movements of the human body.

[0087] S2 specifically includes:

[0088] S21: Automatically perform exposure correction on each captured two-dimensional image frame, and dynamically adjust the exposure parameters of the camera to adapt to image capture under different lighting conditions, thereby ensuring that the image brightness is optimized;

[0089] S22: Apply high dynamic range (HDR) imaging technology to combine multiple frames from the same viewpoint. By fusing images at different exposure levels, it can enhance the details in the image, especially in areas with uneven lighting, and reduce the effects of shadows and overexposure.

[0090] S23: Use noise reduction algorithm to perform multi-scale analysis on the image to remove random noise in the image while retaining edge and detail information to improve image quality;

[0091] S24: perform local contrast enhancement on the image, including the human body contour and human body connection feature areas;

[0092] After completing the above preprocessing steps, the image is finally color corrected to ensure that the images captured by different cameras remain consistent in color, providing standardized input for subsequent image fusion and 3D reconstruction.

[0093] High dynamic range imaging technology includes: for each camera to capture a two-dimensional image, continuously shoot multiple frames (at least three frames) with different exposure settings, each frame covers a different brightness range, and then use the HDR synthesis formula to synthesize multiple frames into an HDR image:

[0094] Among them, Z i (x, y) is the pixel value at position (x, y) in the i-th frame image, E i is the exposure time of the i-th frame image, w(Z) is the weight function, which is used to measure the contribution of the pixel value Z, giving higher weights to pixels with medium brightness, and N is the number of images with different exposures. This formula combines the pixel values ​​under different lighting conditions by weighted averaging to generate the final HDR image, effectively enhancing the dynamic range of the image and improving the detail performance under extreme lighting conditions.

[0095] A noise reduction algorithm is applied to the synthesized HDR image to reduce the noise introduced during the image capture process. A bilateral filter is used for noise reduction. The output of the bilateral filter is given by the following formula:

[0096] Where I(x, y) is the original pixel value at position (x, y), I filtered (x, y) is the pixel value after filtering, function f is a Gaussian weight function based on the difference in pixel intensity, which is used to reduce the weight of pixels with large intensity differences, thereby retaining edge information, and function g is a spatial Gaussian weight function, which is used to reduce the influence of pixels far away from the center pixel x, y; in this way, the bilateral filter can retain the edge and texture details of the image while reducing noise.

[0097] S3 specifically includes:

[0098] S31: Apply the Canny edge detector to identify and extract the edges of the human body contour in the preprocessed two-dimensional image. The Canny edge detector operates through the following steps: first, use a Gaussian filter to smooth the image, then find the intensity gradient of the two-dimensional image, then apply non-maximum suppression technology to refine the edges, and finally detect and connect the edges through the dual threshold method. The purpose of the Canny edge detector is to identify the contours of objects in a two-dimensional image. The main steps of the Canny detector are as follows:

[0099] 1. Noise reduction: Use a Gaussian filter to smooth the image to reduce image noise. The formula of the Gaussian filter is as follows: Where x and y represent the horizontal and vertical distances from the center pixel, and σ is the standard deviation of the Gaussian kernel.

[0100] 2. Gradient and direction: Calculate the gradient strength and direction of the image. The gradient strength is calculated using the following formula: Among them, G x and G y are the first-order derivatives of the image in the x and y directions respectively, and the gradient direction θ is given by the following formula:

[0101] 3. Non-maximum suppression: Check pixels in the gradient direction and keep only local maxima to refine potential edges.

[0102] 4. Hysteresis threshold: A dual threshold algorithm is applied to determine the real edge and potential edge. Strong edge pixels are immediately identified as edges, and weak edge pixels are also identified as edges if they are connected to strong edge pixels.

[0103] S32: Use a semantic segmentation model based on deep learning to analyze the two-dimensional image to distinguish the human body area and background in the image, and finely segment and define the human body contour and shape through pixel-by-pixel classification. The semantic segmentation model is the process of segmenting an image into multiple regions whose pixels have the same label or category. The semantic segmentation model based on deep learning is implemented using a neural network architecture, as follows:

[0104] 1. Convolutional layers: These layers are responsible for extracting features of the image through convolution operations. ;

[0105] 2. Activation function: Select the ReLU activation function to increase the nonlinear ability of the network: R(x) = max(0, x).

[0106] 3. Downsampling and upsampling: used to reduce and increase the spatial dimension of the feature map, respectively, to achieve feature extraction and pixel-level classification.

[0107] 4. Pixel-level classification: The last layer is a pixel-by-pixel convolutional layer that uses the Softmax function to assign a class label to each pixel: Among them, x i is the feature vector of the i-th pixel, S(x i ) is the probability distribution of each category output by the softmax function.

[0108] For the U-Net network, the semantic segmentation model focuses specifically on capturing fine details and contextual information in the image, which is achieved by using a symmetrical structure that contains downsampling (encoder) and upsampling (decoder) paths. The upsampling step in the decoder part aims to restore the spatial dimension of the image for accurate pixel-by-pixel classification.

[0109] The special thing about U-Net is that it uses skip connections in the upsampling process, connecting the feature maps of the encoder part with the feature maps of the corresponding layer of the decoder. This mechanism helps to retain more context and detail information in the output image, thereby improving the accuracy of segmentation. Specifically, this connection can be expressed as directly concatenating or adding the feature map of a certain layer in the decoder with the feature map of the corresponding layer in the encoder, thereby maintaining the feature information of the shallower layer in the deep network.

[0110] In summary, the Canny edge detector identifies the edges in the image through a series of calculation steps, while the semantic segmentation model based on deep learning, such as U-Net, automatically identifies and classifies each pixel in the image by learning a large amount of image data, which is very effective for extracting human contour information as well as texture and reflection features. These two methods can provide accurate contour information and detail features for 3D reconstruction when processing 2D images after image preprocessing.

[0111] S33: For the extraction of texture and reflection features, feature descriptor algorithms, including the local binary pattern (LBP) algorithm and the gray level co-occurrence matrix (GLCM) method, are applied to analyze the texture information in the human body area. The LBP algorithm generates a texture descriptor by comparing the brightness of a pixel and its surrounding neighborhood, while the GLCM method analyzes the texture based on the statistical distribution of paired pixel intensities.

[0112] S34: Reflection analysis is used to distinguish brightness changes in a two-dimensional image due to changes in illumination and reflection features caused by surface material properties (such as gloss or roughness) of an object, to analyze highlight areas and shadow areas in the two-dimensional image, and to estimate the bidirectional reflectance distribution function (BRDF) of the surface.

[0113] Through the above steps, not only can the contour information of the human body be accurately extracted, but also the texture and reflection characteristics of the human body surface can be obtained, which provides important information for subsequent 3D reconstruction and material simulation.

[0114] The local binary pattern (LBP) algorithm generates a binary number by comparing the brightness of the central pixel with its neighboring pixels, including:

[0115] For each pixel, consider the neighboring pixels around it, the neighborhood is a 3x3 square;

[0116] Compare the grayscale value of each pixel in the neighborhood with the grayscale value of the central pixel. If the value of the neighborhood pixel is greater than or equal to the value of the central pixel, the position of the neighborhood pixel is marked as 1, otherwise it is marked as 0.

[0117] Arrange the obtained series of binary numbers (0 or 1) clockwise or counterclockwise to form a binary number;

[0118] Convert the binary number to decimal and get the LBP value of the central pixel, expressed as: Among them, g c is the gray value of the center pixel, g p is the gray value of the neighborhood pixel, P is the number of pixels considered in the neighborhood, R is the radius of the neighborhood, s(x) is a sign function, when x ≥ 0, s(x) = 1; otherwise, s(x) = 0;

[0119] The gray-level co-occurrence matrix (GLCM) method is used to analyze the spatial relationship of image textures. It describes the texture by calculating the gray-level relationship between paired pixels in the image, including:

[0120] For each pair of pixels that meet the distance and angle conditions, the frequency of the gray value combination is counted and a GLCM matrix is ​​constructed. The rows and columns of the matrix correspond to the gray levels of the image. The element P(i, j|d, θ) represents the probability that a pair of pixels with gray levels i and j appear along the θ direction and at an interval of d.

[0121] According to the GLCM matrix, multiple texture features are calculated, including contrast, uniformity, abstraction and correlation. The contrast is calculated by the following formula:

[0122] Among them, P(i, j) is the element in the gray-level co-occurrence matrix, and levels is the number of gray levels in the image.

[0123] S34 specifically includes:

[0124] Apply the Fresnel reflection model and the Lambertian reflection model to analyze the lighting and reflection characteristics in the image, and distinguish between specular reflection (highlight) and diffuse reflection (Lambertian reflection);

[0125] For each pixel in the image, according to its brightness value and the brightness changes of surrounding pixels, the highlight area and shadow area are identified based on edge detection and local contrast analysis. The highlight area is the area with a higher local brightness value than the surrounding area, and the shadow area is the area with a low brightness value.

[0126] Using the recognition results of the highlight area, the inverse illumination model is used to estimate the bidirectional reflectance distribution function BRDF of the surface of the object in the image. BRDF describes the characteristics of the reflected light on the surface of the object and is expressed as: Among them, f r (ω i ,ω r ) is the BRDF function, ω i is the incident light direction, ω r is the direction of reflected light, dL r (ω r ) is the unit solid angle inner edge ω r Directional reflected radiance, dE i (ω i ) is the upper edge per unit area ω i Directional incident irradiance;

[0127] By analyzing the BRDF characteristics of different material surfaces, the brightness changes in the image are distinguished into changes caused by changes in lighting conditions and changes in reflection characteristics caused by the material properties of the object surface (such as smoothness and roughness).

[0128] In order to adapt to the present invention, i.e., to identify and process complex textures and reflective surfaces, and to fine-tune the human body contour information to improve the accuracy and integrity of the contour, an improved deep learning model scheme is designed, which comprehensively utilizes the advantages of convolutional neural networks (CNNs) and generative adversarial networks (GANs) to achieve more efficient and accurate feature recognition and image processing. S4 specifically includes:

[0129] S41, Convolutional Neural Network (CNN) part:

[0130] Feature extraction subnetwork: Use convolutional neural network (CNN) to extract high-level features of the image. Convolutional neural network (CNN) consists of multiple convolutional layers, activation layers, and pooling layers. Each convolutional layer captures different features of the image through learning and outputs a feature map F.

[0131] Material and reflection feature recognition subnetwork: Based on the feature extraction subnetwork, additional convolutional layers are used to recognize different material texture features and light reflection patterns;

[0132] S42, Generate Adversarial Network GAN part:

[0133] Detail enhancement and fine-tuning sub-network: Use the generator G of the generative adversarial network GAN to enhance and fine-tune the human contour information, especially the details near complex textures and reflective surfaces. The input of the generator G is the output of the convolutional neural network CNN part, and a series of convolutional layers, normalization layers, and activation layers are used to generate the fine-tuned human contour information.

[0134] Discriminator network: The discriminator D of the generative adversarial network GAN is used to distinguish whether the generated human body contour information is close to the real data distribution;

[0135] S43, Adversarial training: By minimizing the loss function L of the generator G G And maximize the loss function L of the discriminator D D To train G and D simultaneously:

[0136] L G = -logD(G(F))

[0137] L D = -[logD(C true )+log(1-D(G(F)))], where C true is the real human body contour information, C is the original human body contour information, and F is the feature map;

[0138] S44, loss function design:

[0139] For the CNN part, the cross entropy loss function is used to optimize the material and reflection feature recognition sub-network;

[0140] For the generator G of GAN, L1 loss is used to measure the difference between the generated human contour information and the real human contour information, including adversarial loss and content loss: Among them, λ adv and λ L1 is the weight that adjusts the importance of adversarial loss and content loss;

[0141] For the discriminator D of GAN, binary cross entropy loss is used to distinguish generated data from real data.

[0142] Through this improved scheme, the deep learning model can not only effectively identify and process complex texture and reflection features, but also fine-tune the human body contour information, thereby enhancing the visual details and realism of the image without losing contour accuracy, meeting the special requirements of the present invention.

[0143] The convolutional layers of the feature extraction subnetwork are represented as (for each convolutional layer):

[0144] in, is the value of the kth feature map at position (i, j), and b k are weights and biases, σ is the ReLU activation function, and F is the output feature map;

[0145] The additional convolutional layers of the material and reflection feature recognition subnetwork are expressed as:

[0146] in, It is an additional feature map in the material and reflection feature recognition sub-network;

[0147] The generator G takes the output feature map F of the CNN part as input and generates the fine-tuned human contour information C through a series of convolutional layers, normalization layers and LeakyReLU activation layers. adj , the convolutional layer of the generator G is expressed as:

[0148] in, is the output feature map of the lth layer in the generator, and b lare weights and biases, BN is batch normalization, and LeakyReLU is a variant of the ReLU (RectifiedLinearUnit) activation function, which aims to solve the problem of neuron "death" caused by the ReLU activation function when the input is less than zero. LeakyReLU introduces a non-zero slope α for negative input values, so that the neuron can have a small part of the gradient even when the input is negative, thereby maintaining the activation state. LeakyReLU is expressed as: Where x is the input of the neuron, and α is a small positive constant that defines the slope of the function when x≤0. The value is 0.01. In this way, LeakyReLU avoids the problem of complete neuron "death" while maintaining the advantages of the linear and non-saturated form of ReLU, thus facilitating the training process of deep learning models;

[0149] The discriminator D is used to determine whether the input human body contour information is real or generated by the generator G. The final layer of the discriminator D network structure is a sigmoid activation function, which is used to output the probability of whether the input contour information is real or fake. The other network structures are the same as those of the CNN part.

[0150] S5 specifically includes:

[0151] S51, Contour synchronization and alignment: Use the fine-tuned human contour information to synchronize and align contours in images from different perspectives through geometric transformation technology;

[0152] S52, 3D reconstruction: Combining the contour information of multiple perspectives and the geometric relationship of the camera, multi-view stereo reconstruction is used to generate a 3D model of the human body, integrating the depth maps of multiple perspectives into a unified 3D space coordinate system to construct a 3D model of the entire human body.

[0153] During the reconstruction process, the fine-tuned contour information obtained from the improved deep learning model is used to optimize and refine the geometric details of the human body surface to improve the authenticity and accuracy of the model; the accuracy and authenticity of the 3D model are verified by comparing it with the original image and known human body models. Necessary adjustments and optimizations are made as needed to ensure the quality of the final model.

[0154] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.

[0155] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A three-dimensional human body measurement data visualization method based on a camera array, characterized in that: The following steps are involved: S1: Collect 2D images of the human body using multiple cameras arranged at different angles; S2: Apply image preprocessing algorithms to perform illumination adjustment and noise reduction on the collected 2D images to cope with low light conditions and shadow effects; S3: Extract human body contour information, texture and reflection features from the preprocessed two-dimensional image through image recognition technology; S4: Based on the extracted texture and reflection features, a deep learning model is used to identify and process complex textures and reflective surfaces. The deep learning model is trained to distinguish different material features and light reflection patterns, and fine-tune the human body contour information accordingly to optimize the accuracy and completeness of the human body contour; S5: Use the geometric relationship of multi-view images combined with multiple human body contour information after fine-tuning to construct a three-dimensional human body model; S6: Using 3D visualization technology, the optimized 3D human body model is presented.

2. The camera array-based three-dimensional anthropometric data visualization method according to claim 1, characterized in that: The S1 specifically includes: S11: Arrange at least three cameras in a predetermined measurement area, wherein the placement and angle of each camera are designed according to the average height and width of a human body and the expected measurement accuracy to cover the front, side, and rear viewing angles of the human body; S12: Before starting the measurement, the calibration object is used to perform scene calibration in the measurement area to determine the field of view and relative position of each camera so as to fuse and interpret the image data obtained from different angles in subsequent processing; S13: Start all cameras to simultaneously capture two-dimensional image data of the human body from respective angles.

3. The camera array-based three-dimensional anthropometric data visualization method according to claim 2, characterized in that: The S1 also includes synchronous calibration of each camera to ensure that all cameras capture images at the same time reference to reduce data inconsistency caused by slight movements of the human body.

4. The camera array-based three-dimensional anthropometric data visualization method according to claim 3, characterized in that: The S2 specifically includes: S21: Automatically perform exposure correction on each captured two-dimensional image frame, and dynamically adjust the exposure parameters of the camera to adapt to image capture under different lighting conditions, thereby ensuring that the image brightness is optimized; S22: Apply high dynamic range imaging technology to combine multiple frames from the same viewpoint. By fusing images at different exposure levels, it can enhance the details in the image, especially in areas with uneven lighting, and reduce the effects of shadows and overexposure. S23: Use noise reduction algorithm to perform multi-scale analysis on the image to remove random noise in the image while retaining edge and detail information to improve image quality; S24: Perform local contrast enhancement on the image, including the human body contour and human body connection feature areas.

5. The camera array-based three-dimensional anthropometric data visualization method according to claim 1, characterized in that: The S3 specifically includes: S31: Apply the Canny edge detector to identify and extract the edges of the human body contour in the preprocessed two-dimensional image. The Canny edge detector operates through the following steps: first, use a Gaussian filter to smooth the image, then find the intensity gradient of the two-dimensional image, then apply non-maximum suppression technology to refine the edges, and finally detect and connect the edges through a double threshold method; S32: Use a deep learning-based semantic segmentation model to analyze two-dimensional images to distinguish the human body area and background in the image, and finely segment and define the human body contour and shape through pixel-by-pixel classification; S33: For the extraction of texture and reflection features, feature descriptor algorithms, including the local binary pattern (LBP) algorithm and the gray level co-occurrence matrix (GLCM) method, are applied to analyze the texture information in the human body area. The LBP algorithm generates a texture descriptor by comparing the brightness of a pixel and its surrounding neighborhood, while the GLCM method analyzes the texture based on the statistical distribution of paired pixel intensities. S34: Reflection analysis is used to distinguish brightness changes caused by illumination changes in the two-dimensional image from reflection features caused by the material properties of the object surface, to analyze highlight areas and shadow areas in the two-dimensional image, and to estimate the bidirectional reflectance distribution function of the surface.

6. The camera array-based three-dimensional anthropometric data visualization method according to claim 5, characterized in that: The local binary pattern (LBP) algorithm generates a binary number by comparing the brightness of the central pixel with its neighboring pixels, specifically including: For each pixel, consider the neighboring pixels around it, the neighborhood is a 3x3 square; Compare the grayscale value of each pixel in the neighborhood with the grayscale value of the central pixel. If the value of the neighborhood pixel is greater than or equal to the value of the central pixel, the position of the neighborhood pixel is marked as 1, otherwise it is marked as 0. Arrange the obtained series of binary numbers clockwise or counterclockwise to form a binary number; Convert the binary number to decimal and get the LBP value of the central pixel, expressed as: Among them, g c is the gray value of the center pixel, g p is the gray value of the neighborhood pixel, P is the number of pixels considered in the neighborhood, R is the radius of the neighborhood, s(x) is a sign function, when x ≥ 0, s(x) = 1; otherwise, s(x) = 0; The gray level co-occurrence matrix (GLCM) method is used to analyze the spatial relationship of image textures and describe the texture by calculating the gray level relationship between paired pixels in the image, specifically including: For each pair of pixels that meet the distance and angle conditions, the frequency of the gray value combination is counted and a GLCM matrix is ​​constructed. The rows and columns of the matrix correspond to the gray levels of the image. The element P(i, j|d, θ) represents the probability that a pair of pixels with gray levels i and j appear along the θ direction and at an interval of d. According to the GLCM matrix, multiple texture features are calculated, including contrast, uniformity, abstraction and correlation. The contrast is calculated by the following formula: Among them, P(i, j) is the element in the gray-level co-occurrence matrix, and levels is the number of gray levels in the image.

7. The camera array-based three-dimensional anthropometric data visualization method according to claim 6, characterized in that: The S34 specifically includes: Apply the Fresnel reflection model and the Lambertian reflection model to analyze the lighting and reflection characteristics in the image and distinguish between specular reflection and diffuse reflection; For each pixel in the image, according to its brightness value and the brightness changes of surrounding pixels, the highlight area and shadow area are identified based on edge detection and local contrast analysis. The highlight area is the area with a higher local brightness value than the surrounding area, and the shadow area is the area with a low brightness value. Using the recognition results of the highlight area, the inverse illumination model is used to estimate the bidirectional reflectance distribution function BRDF of the surface of the object in the image. BRDF describes the characteristics of the reflected light on the surface of the object and is expressed as: Among them, f r (ω i ,ω r ) is the BRDF function, ω i is the incident light direction, ω r is the direction of reflected light, dL r (ω r ) is the unit solid angle inner edge ω r Directional reflected radiance, dE i (ω i ) is the upper edge per unit area ω i Directional incident irradiance; By analyzing the BRDF characteristics of different material surfaces, the brightness changes in the image are distinguished into changes caused by changes in lighting conditions and changes in reflection characteristics caused by the material properties of the object surface.

8. The camera array-based three-dimensional anthropometric data visualization method according to claim 7, characterized in that: The S4 specifically includes: S41, Convolutional Neural Network (CNN) part: Feature extraction subnetwork: Use convolutional neural network (CNN) to extract high-level features of the image. Convolutional neural network (CNN) consists of multiple convolutional layers, activation layers, and pooling layers. Each convolutional layer captures different features of the image through learning and outputs a feature map F. Material and reflection feature recognition subnetwork: Based on the feature extraction subnetwork, additional convolutional layers are used to recognize different material texture features and light reflection patterns; S42, Generate Adversarial Network GAN part: Detail enhancement and fine-tuning sub-network: Use the generator G of the generative adversarial network GAN to enhance and fine-tune the human body contour information. The input of the generator G is the output of the convolutional neural network CNN part, and a series of convolutional layers, normalization layers and activation layers are used to generate the fine-tuned human body contour information; Discriminator network: The discriminator D of the generative adversarial network GAN is used to distinguish whether the generated human body contour information is close to the real data distribution; S43, Adversarial training: By minimizing the loss function L of the generator G G And maximize the loss function L of the discriminator D D To train G and D simultaneously: L G =-logD(G(F)) L D = -[logD(C true )+log(1-D(G(F)))], where C true is the real human body contour information, C is the original human body contour information, and F is the feature map; S44, loss function design: For the CNN part, the cross entropy loss function is used to optimize the material and reflection feature recognition sub-network; For the generator G of GAN, L1 loss is used to measure the difference between the generated human contour information and the real human contour information, including adversarial loss and content loss: Among them, λ adv and λ L1 is the weight that adjusts the importance of adversarial loss and content loss; For the discriminator D of GAN, binary cross entropy loss is used to distinguish generated data from real data.

9. The camera array-based three-dimensional anthropometric data visualization method according to claim 8, characterized in that: The convolutional layer of the feature extraction subnetwork is expressed as: in, is the value of the kth feature map at position (i, j), and b k are weights and biases, σ is the ReLU activation function, and F is the output feature map; The additional convolutional layer of the material and reflection feature recognition sub-network is expressed as: in, It is an additional feature map in the material and reflection feature recognition sub-network; The generator G takes the output feature map F of the CNN part as input and generates the fine-tuned human contour information C through a series of convolutional layers, normalization layers and LeakyReLU activation layers. adj , the convolutional layer of the generator G is expressed as: in, is the output feature map of the lth layer in the generator, and b l are weights and biases, and BN is batch normalization; The discriminator D is used to determine whether the input human body contour information is real or generated by the generator G. The final layer of the discriminator D network structure is a sigmoid activation function, which is used to output the probability of whether the input contour information is real or false. The other network structures are the same as the CNN part of the network structure.

10. The camera array-based three-dimensional anthropometric data visualization method according to claim 9, characterized in that: The S5 specifically includes: S51, Contour synchronization and alignment: Use the fine-tuned human contour information to synchronize and align contours in images from different perspectives through geometric transformation technology; S52, 3D reconstruction: Combining the contour information of multiple perspectives and the geometric relationship of the camera, multi-view stereo reconstruction is used to generate a 3D model of the human body, integrating the depth maps of multiple perspectives into a unified 3D space coordinate system to construct a 3D model of the entire human body.

Citation Information

Cited By

  • Video monitoring method and system for human body state in room

    CN120431525A

  • In-room human state video monitoring method and system

    CN120431525B