Vision measurement method and system based on digital human model
By constructing a digital human model and using deep learning and computer vision algorithms to extract and optimize key feature points, the problem of low efficiency of the testing process in the existing technology is solved, efficient matching of the digital human model and data and accurate acquisition of measurement parameters are achieved, improving improve testing efficiency and accuracy.
Patent Information
- Application Number
- CN202410783466.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, by obtaining the pedestrian bounding box of the current frame and the respective bounding box action vectors of several historical frames, the feature extraction sub-network based on the pedestrian tracking model performs feature extraction on the target pedestrian image within the pedestrian bounding box, and there is a test process efficiency. low question.
Provides a visual measurement method based on digital human models. It constructs digital human models by acquiring three-dimensional data, uses deep learning algorithms for posture estimation and preprocessing, and combines computer vision algorithms and image processing to extract and optimize key feature points to realize digital human models. Match and align the model with the data to obtain morphological parameters.
The efficiency of the test process is improved, measurement errors are reduced, and the test process is carried out accurately and smoothly and efficiency is improved.
Smart Images

Figure CN118644592A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a visual measurement method and system based on a digital human model. Background Art
[0002] Digital human models have emerged with the continuous development of computer graphics, computer vision, artificial intelligence and other technologies. It can accurately reproduce the shape and structure of the human body through three-dimensional digital modeling. With the maturity and popularization of three-dimensional scanning technology, digital human models have been widely used in many fields such as medicine, clothing, and entertainment. Through digital human models, accurate measurement and analysis of human size, shape, posture, etc. can be achieved, providing strong support for research and application in related fields.
[0003] The existing measurement methods and equipment obtain the pedestrian bounding box of the current frame and the bounding box motion vectors of several historical frames, and perform feature extraction on the target pedestrian image in the pedestrian bounding box based on the feature extraction subnetwork of the pedestrian tracking model to obtain the latent feature vector of the target pedestrian image. The face image set is extracted through the face detection model and then clustered through the face recognition model. There is a problem of low efficiency in the test process, so it is particularly important to improve the efficiency of the test.
[0004] For example, the pedestrian visual tracking method, model training method, device, equipment and storage medium disclosed in the invention patent with announcement number CN110298238B include obtaining the pedestrian bounding box of the current frame and the bounding box motion vectors of several historical frames; based on the feature extraction subnetwork of the pedestrian tracking model, feature extraction is performed on the target pedestrian image in the pedestrian bounding box to obtain the latent feature vector of the target pedestrian image; based on the prediction subnetwork of the pedestrian tracking model, the bounding box motion vector of the current frame is predicted according to the latent feature vector and the bounding box motion vectors of several historical frames; the pedestrian bounding box of the frame after the current frame is predicted according to the pedestrian bounding box of the current frame and the bounding box motion vector of the current frame; if the frame after the current frame corresponds to a pedestrian marking box, the frame after the current frame is calculated. The overlap rate between the pedestrian bounding box and the pedestrian marking box; if the overlap rate is less than a preset overlap threshold, the pedestrian marking box is stored as the pedestrian bounding box of the frame after the current frame; based on the prediction subnetwork of the pedestrian tracking model, the bounding box action vector of the current frame is predicted according to the latent feature vector and the bounding box action vectors of several historical frames, and the prediction subnetwork of the pedestrian tracking model performs full connection processing and normalization processing on the input vector to obtain several action probabilities corresponding to several action components one by one; the prediction subnetwork of the pedestrian tracking model performs full connection processing on the several action probabilities to obtain the target probability of the pedestrian bounding box corresponding to each of the several action components; the bounding box action vector of the current frame is generated according to the target probability greater than the preset target threshold, and the bounding box action vector includes information on the action component corresponding to the target probability.
[0005] For example, the invention patent with announcement number: CN115471893B discloses a training face recognition model, a face recognition method and a device, including selecting video frames containing face images from a video through a face detection model, and then performing cutout to obtain a face image set, determining whether the face image is complete through key point detection, filtering out occluded and incomplete face images, or repairing occluded and incomplete face images; clustering the face image set through a first face recognition model to obtain a first clustering result; based on the first clustering result, using face images of the same class and face images of different classes as positive samples and negative samples to train the first face recognition. A model is constructed to obtain a trained second face recognition model; wherein, a video including face images of people of different age groups is obtained, including: a video showing face images of at least one person of different age groups is displayed by keyword search from a video library authorized by a user; wherein, according to the first clustering result, face images of the same class and face images of different classes are used as positive samples and negative samples to train the first face recognition model, including: converting the voice frames of the video into a text information set; identifying the names of the characters from the text information set; determining the face image corresponding to each character name according to the position of the voice frame corresponding to each character name in the video; and determining the face images corresponding to the same character name as positive samples.
[0006] However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the present application found that the above technology has at least the following technical problems:
[0007] In the prior art, by obtaining the pedestrian bounding box of the current frame and the bounding box motion vectors of several historical frames, the feature extraction subnetwork of the pedestrian tracking model is used to extract features of the target pedestrian image in the pedestrian bounding box to obtain the latent feature vector of the target pedestrian image and obtain a video including face images of different age groups. The face image set is extracted by the face detection model and then the face image set is clustered by the face recognition model. However, there is a problem of low efficiency in the testing process. Summary of the invention
[0008] The embodiments of the present application provide a visual measurement method and system based on a digital human model, thereby solving the problem of low efficiency of the testing process in the prior art and improving the efficiency of the testing process.
[0009] The embodiment of the present application provides a visual measurement method based on a digital human model, comprising the following steps: S1, constructing a digital human model according to the acquired three-dimensional data, performing posture estimation on the digital human model to obtain first data, and preprocessing the first data to obtain second data; S2, matching and aligning the second data with the digital human model, achieving correspondence between the second data and the digital human model through key feature point matching and shape registration to obtain third data; S3, extracting and optimizing key feature points from the third data using computer vision algorithms and image processing, and finally obtaining morphological parameters based on the optimized key feature points.
[0010] Furthermore, the step of acquiring the first data is: constructing a preset data set based on existing data, the existing data including morphological measurement data, facial feature data and action expression data, the preset data set being a collection of digital human model images in preset postures and corresponding posture annotation information; training and predicting the preset model using the constructed preset data set to obtain a prediction result of the model posture estimation; after the training is completed, inputting the posture information of the digital human model into the trained preset model, and then outputting the predicted key feature points, thereby obtaining the first data.
[0011] Furthermore, the specific steps of constructing the digital human model are: using 3D modeling software to design the basic image of the digital human model, and performing mapping and texture processing on the digital human model, wherein the mapping and texture processing includes adding color, material and texture; binding key feature points of the digital human model to create corresponding movement modes and movement ranges, and adjusting the positions and weights of the key feature points in the digital human model during the key feature point binding process, wherein the weights are parameters that quantify the degree of influence of the key feature points on the digital human model; adding the corresponding facial expression animation of the digital human model through 3D animation software and rendering and enhancing the digital human model through preset rendering settings, wherein the preset rendering settings include adjusting lighting, adjusting shadows, adding background and adding environment.
[0012] Furthermore, the preprocessing includes denoising, enhancement and correction operations; the denoising means reducing the noise component in the first data through a machine learning algorithm; the enhancement means improving the contrast, brightness and clarity of the first data through sharpening to increase the proportion of high-frequency components in the first data; the correction operation means correcting the first data through radiation correction to eliminate the distortion and error of the first data.
[0013] Furthermore, the contrast is calculated using the following formula:
[0014]
[0015] Where C is the contrast, M is the pixel width of the first data, N is the pixel height of the first data, ΔX ijis the gradient value difference of the (i, j)th pixel in the first data in the horizontal direction, ΔY ij is the gradient value difference of the first data pixel (i, j) in the vertical direction, i is the number of the pixel points of the first data in the horizontal direction, i=1,2,3,...,F, F is the total number of pixel points of the first data in the horizontal direction, j is the number of the pixel points of the first data in the vertical direction, j=1,2,3,...,H, H is the total number of pixel points of the first data in the vertical direction.
[0016] Furthermore, the gradient value is calculated using the following formula:
[0017]
[0018] Where G(i,j) is the gradient value of the (i,j)th pixel in the first data, D is the direction set of the pixel in the first data, d is the direction of the pixel in the first data, i is the horizontal coordinate of the pixel in the first data, j is the vertical coordinate of the pixel in the first data, and d x is the x component of the pixel point in the first data in the dth direction, d y is the y component of the pixel in the first data in the dth direction, and h is a preset factor.
[0019] Furthermore, the specific steps for matching and aligning the second data with the digital human model are: generating preset feature points through the digital human model, the preset feature points corresponding to the key feature points, matching the feature points in the second data through a feature matching algorithm and in combination with the preset feature points, the feature point matching represents the matching of the feature points in the second data with the preset feature points; performing spatial transformation on the digital human model according to the result of the feature point matching, the spatial transformation includes translation, rotation and scaling, and the spatial transformation is used to make the posture and position of the digital human model consistent with those corresponding to the second data; adjusting the posture and shape of the digital human model through a three-dimensional deformation method and an optimization algorithm.
[0020] Furthermore, the specific steps of extracting and optimizing key feature points are: obtaining the positions of preset areas and preset feature points through a target detection method, screening and correcting the preset feature points in combination with the structural information and prior knowledge of the digital human model; extracting the preset feature points again using a convolutional neural network model, and learning the representation and positioning methods of key feature points by training the digital human model to enable the digital human model to recognize the key feature points; detecting the overlap of key feature points through a non-maximum suppression method to remove redundancy and overlap, and verifying and evaluating the accuracy and reliability of the extracted key feature points using a preset data set.
[0021] Furthermore, the steps of the non-maximum suppression method are: sorting the confidence of the detection frames generated by the convolutional neural network, selecting a preset detection frame as the current suppression object, and calculating the overlap between the remaining detection frames and the current suppression object; the overlap is calculated using the following formula:
[0022]
[0023] Among them, R g is the overlap between the gth remaining detection box and the currently suppressed object, S g is the intersection-over-union ratio of the g-th remaining detection box and the currently suppressed object, g is the number of the remaining detection box, g = 1, 2, 3,,,,,G, G is the total number of remaining detection boxes, d g is the distance between the current suppressed object and the gth remaining detection box, σ is the standard deviation of the Gaussian kernel, and θ g It is the distance angle between the current suppressed object and the gth remaining detection box.
[0024] The embodiment of the present application provides a visual measurement system based on a digital human model, including a data acquisition module, a data matching module and an extraction and optimization module; the data acquisition module is used to build a digital human model according to the acquired three-dimensional data, perform posture estimation on the digital human model to obtain first data, and pre-process the first data to obtain second data; the data matching module is used to match and align the second data with the digital human model, and achieve the correspondence between the second data and the digital human model through key feature point matching and shape registration to obtain third data; the extraction and optimization module is used to extract and optimize key feature points from the third data using computer vision algorithms and image processing, and finally obtain morphological parameters according to the optimized key feature points.
[0025] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0026] 1. The posture of the digital human model is estimated through a deep learning algorithm to obtain the first data, and the first data is preprocessed to obtain the second data, thereby realizing the rapid positioning of the key feature points of the digital human model, thereby improving the efficiency of the test process and effectively solving the problem of low test process efficiency in the prior art.
[0027] 2. By matching and aligning the second data with the digital human model, the correspondence between the second data and the digital human model is achieved through key feature point matching and shape registration to obtain the third data, thereby achieving timely acquisition of the third data after matching, and then achieving accurate and smooth testing, effectively improving the testing efficiency during the testing process.
[0028] 3. By using computer vision algorithms and image processing to extract and optimize key feature points from the third data, and finally obtaining morphological parameters based on the optimized key feature points, the error in the measurement process is reduced and the number of measurements is reduced, thereby improving the efficiency of the measurement process. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A flow chart of a visual measurement method based on a digital human model provided in an embodiment of the present application;
[0030] Figure 2 A flow chart of visual measurement preparation provided for an embodiment of the present application;
[0031] Figure 3 An overlap grayscale scatter plot provided in an embodiment of the present application;
[0032] Figure 4 A schematic diagram of the structure of a visual measurement system based on a digital human model provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The embodiment of the present application solves the problem of low efficiency of the testing process in the prior art by providing a visual measurement method and system based on a digital human model. The digital human model is constructed by acquiring three-dimensional data, and a posture of the digital human model is estimated by using a deep learning algorithm to obtain first data. The first data is preprocessed to obtain second data, and the second data is matched and aligned with the digital human model. The correspondence between the second data and the digital human model is achieved through key feature point matching and shape registration to obtain third data. Key feature points are extracted from the third data and optimized by using a computer vision algorithm and image processing. Finally, morphological parameters are obtained according to the optimized key feature points, thereby improving the efficiency of the testing process.
[0034] The technical solution in the embodiment of the present application is to solve the problem of low efficiency of the above-mentioned testing process, and the overall idea is as follows:
[0035] The first data is obtained by constructing a digital human model with the acquired three-dimensional data and estimating the posture, and then preprocessing is performed to obtain the second data. The second data is then matched and aligned with the digital human model. The correspondence between the second data and the digital human model is achieved through key feature point matching and shape registration to obtain the third data. Finally, the key feature points are extracted from the third data and optimized, and the morphological parameters are obtained based on the optimized key feature points, thereby achieving the effect of improving the efficiency of the testing process.
[0036] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0037] like Figure 1As shown, it is a flow chart of a visual measurement method based on a digital human model provided by an embodiment of the present application, the method comprising the following steps: S1, constructing a digital human model according to the acquired three-dimensional data, using a deep learning algorithm to perform posture estimation on the digital human model to obtain first data, and preprocessing the first data to obtain second data, the first data being used to describe the posture of the digital human model in three-dimensional space, the second data being the preprocessed first data, the digital human model being used to virtually simulate a digital human image, and the posture estimation represents locating key points of the digital human model; S2, matching and aligning the second data with the digital human model, and achieving through key feature point matching and shape registration The correspondence between the second data and the digital human model obtains the third data, the key feature point matching is to find the feature points of the second data through computer vision and match the corresponding key feature points to the digital human model, the shape registration is to compare the second data with the digital human model and obtain the similarity between the second data and the digital human model, and the third data is the image data after the second data corresponds to the digital human model; S3, using computer vision algorithm and image processing to extract and optimize the key feature points from the third data, and finally obtain morphological parameters according to the optimized key feature points, the key feature points include facial feature points and bone connection points, and the morphological parameters include basic data of height and weight and judgment of model posture.
[0038] In an embodiment, feature points can be acquired through deep learning and directly preprocessed, and the preprocessed key feature points can be matched through computer vision. At the same time, optimization is performed simultaneously to reduce repeated corresponding operations, which greatly shortens the test process time and reduces the error rate, and greatly reduces the number of correction operations to return to the previous step. Step optimization and algorithm optimization of operations during the test process can ensure the accuracy and authenticity of the test, and can also improve the test efficiency.
[0039] Furthermore, the step of obtaining the first data is: constructing a preset data set based on existing data, the existing data includes morphological measurement data, facial feature data and motion expression data, the preset data set is a collection of digital human model images in preset postures and corresponding posture annotation information, and the preset model is trained and predicted by the constructed preset data set to obtain the prediction result of the model posture estimation. The preset model has a deep learning function, and the prediction result of the model posture estimation represents the difference between the prediction result of the preset model and the posture annotation measured by the loss function. After the training is completed, the posture information of the digital human model is input into the trained preset model, and then the predicted key feature points are output, thereby obtaining the first data.
[0040] In this embodiment, the morphological measurement data is the specific data obtained when performing morphological measurement on the digital human model, which mainly describes the external contour, structure, size and morphological characteristics of the digital human model. The facial feature data is the facial contour, facial features, expression characteristics and facial skin texture of the digital human model. The predicted key feature points are the key position points that reflect the digital human's morphology and posture. By accurately marking and measuring these points, the digital human model can be accurately controlled and adjusted, thereby improving the test efficiency.
[0041] Furthermore, the specific steps of building a digital human model are: using 3D modeling software to design the basic image of the digital human model, the basic image includes shape, outline, proportion and details, and performing texture processing on the digital human model, the texture processing includes adding color, material and texture, binding the key feature points of the digital human model to create the corresponding movement mode and range of movement, and adjusting the position and weight of the key feature points in the digital human model during the key feature point binding process, the weight is a parameter that quantifies the influence of the key feature points on the digital human model, adding the corresponding expression animation of the digital human model through 3D animation software and rendering and enhancing the digital human model through preset rendering settings, the preset rendering settings include adjusting lighting, adjusting shadows, adding background and adding environment.
[0042] In this embodiment, the key feature points of the digital human model are bound by selecting an algorithm based on weight drawing to ensure that the selected algorithm can support the selected key feature points and can achieve a smooth and natural deformation effect. The key feature points are associated with the corresponding parts of the model to ensure that each feature point can be accurately bound to the corresponding part of the model and can achieve the expected deformation effect. After the feature point binding is completed, the binding effect is previewed and adjusted. The deformation of the model is observed by moving the key feature points. If errors are found in the deformation, it is necessary to return to the previous step for adjustment and optimization. The adjustment includes modifying the weight distribution, reselecting feature points and adjusting binding parameters. The optimization step greatly improves the efficiency of the testing process.
[0043] Further, such as Figure 2 As shown, the visual measurement preparation flow chart provided in an embodiment of the present application, the preprocessing includes denoising, enhancement and correction operations: denoising means reducing the noise component in the first data through a machine learning algorithm, enhancement means improving the contrast, brightness and clarity of the first data through sharpening to increase the proportion of high-frequency components in the first data, and the correction operation means correcting the first data through radiation correction to eliminate the distortion and error of the first data.
[0044] In this embodiment, denoising is used to collect data and analyze the noise characteristics in the data. The noise in the data is removed by a denoising algorithm. Denoising can make the image sharper, and enhancement can significantly improve the accuracy of the image. Tasks can be automated to improve efficiency, while reducing human errors to improve the reliability of results. Correction operations can eliminate errors and deviations to significantly improve the accuracy of the test. It can also save time and resources by reducing repetitive work and repair costs caused by errors and improve overall test efficiency.
[0045] Furthermore, the contrast ratio is calculated using the following formula:
[0046]
[0047] Where C is the contrast, M is the pixel width of the first data, N is the pixel height of the first data, ΔX ij is the gradient value difference of the (i, j)th pixel in the first data in the horizontal direction, ΔY ij is the gradient value difference of the first data pixel (i, j) in the vertical direction, i is the number of the pixel points of the first data in the horizontal direction, i=1,2,3,...,F, F is the total number of pixel points of the first data in the horizontal direction, j is the number of the pixel points of the first data in the vertical direction, j=1,2,3,...,H, H is the total number of pixel points of the first data in the vertical direction.
[0048] In this embodiment, an image processing library is used to read pixel data, and the coordinate position of the pixel to be obtained on the image is determined by x and y coordinates, where (0,0) is set as the position of the upper left corner. The color value of the pixel at the specified position is read to reflect the contrast of the image through the discrete degree of pixel intensity distribution. According to the contrast calculation method, the intensity difference between adjacent pixels in the image or the entire image area is calculated. These differences reflect the light and dark changes in different areas of the image, thereby enhancing visual details, improving three-dimensional perception, enhancing clarity and optimizing lighting effects, and requiring less correction and debugging of subsequent tests, thereby improving the efficiency of the test process.
[0049] Furthermore, the gradient value is calculated using the following formula:
[0050]
[0051] Where G(i,j) is the gradient value of the (i,j)th pixel in the first data, D is the direction set of the pixel in the first data, d is the direction of the pixel in the first data, i is the horizontal coordinate of the pixel in the first data, j is the vertical coordinate of the pixel in the first data, and d x is the x component of the pixel point in the first data in the dth direction, d yis the y component of the pixel in the first data in the dth direction, and h is a preset factor.
[0052] In this embodiment, the preset factor h is set to ensure that the calculated data under the square root of the gradient value calculation formula is a positive number to ensure the authenticity and availability of the calculation. h is a very small positive real number with a range of 0-1. The output of the gradient value cannot be calculated by linear superposition, so the f function is defined as a nonlinear function for description. At the same time, h is used to ensure the stability and convergence of the nonlinear calculation. The calculation of the gradient value through the vector of pixel points can more accurately adjust the model parameters to improve the prediction accuracy of the digital human model. The learning rate can also be adjusted according to the size of the gradient value to improve the efficiency of the test.
[0053] Furthermore, the specific steps for matching and aligning the second data with the digital human model are: generating preset feature points through the digital human model, the preset feature points correspond to the key feature points, matching the feature points in the second data through a feature matching algorithm and in combination with the preset feature points, the feature point matching represents the matching of the feature points in the second data with the preset feature points, performing spatial transformation on the digital human model according to the result of the feature point matching, the spatial transformation includes translation, rotation and scaling, and the spatial transformation is used to make the posture and position of the digital human model consistent with those corresponding to the second data, and adjusting the posture and shape of the digital human model through a three-dimensional deformation method and an optimization algorithm.
[0054] In this embodiment, feature points can be automatically extracted through computer vision and image processing technology, and the positions of feature points can be automatically identified and located by analyzing the texture, edge and contour information of the model. In the digital human model, feature points represent the key parts of the model. Feature point matching and alignment can achieve high-precision positioning. By matching these feature points, the position and direction of the digital human model in three-dimensional space can be accurately located. Completing the matching and alignment of feature points in an automated manner can simplify the production process of the digital human model and greatly improve the efficiency of the testing process.
[0055] Furthermore, the specific steps of extracting and optimizing key feature points are as follows: obtaining the positions of preset areas and preset feature points through target detection methods, screening and correcting the preset feature points in combination with the structural information and prior knowledge of the digital human model, screening and correction are used to eliminate false detection and missed detection of preset feature points, extracting the preset feature points again using a convolutional neural network model, learning the representation and positioning methods of key feature points by training the digital human model to enable the digital human model to recognize the key feature points, detecting the overlap of key feature points through a non-maximum suppression method to remove redundancy and overlap, and verifying and evaluating the accuracy and reliability of the extracted key feature points using a preset data set.
[0056] In this embodiment, feature points are preliminarily extracted from the digital human model based on a preset algorithm for the basic form and movement of the digital human model. Based on the results of structural information analysis and prior knowledge application, the preliminarily extracted feature points are corrected and optimized, including adjusting the position, quantity and type of the feature points. The convolutional layer of the convolutional neural network is then used for feature extraction to ensure a more accurate reflection of the form and movement characteristics of the digital human model, thereby reducing the number of re-extraction and re-testing, and greatly improving the efficiency of the testing process.
[0057] Further, such as Figure 3 As shown, it is a grayscale scatter plot of the overlap provided in the embodiment of the present application. The steps of the non-maximum suppression method are: sorting the confidence of the detection frames generated by the convolutional neural network, selecting the preset detection frame as the current suppression object, and calculating the overlap between the remaining detection frames and the current suppression object. The overlap is calculated using the following formula:
[0058]
[0059] Among them, R g is the overlap between the gth remaining detection box and the currently suppressed object, S g is the intersection-over-union ratio of the g-th remaining detection box and the currently suppressed object, g is the number of the remaining detection box, g = 1, 2, 3,,,,,G, G is the total number of remaining detection boxes, d g is the distance between the current suppressed object and the gth remaining detection box, σ is the standard deviation of the Gaussian kernel, and θ g It is the distance angle between the current suppressed object and the gth remaining detection box.
[0060] In this embodiment, the variation statistics of the overlap degree are shown in Table 1:
[0061] Table 1 Statistics of overlap changes
[0062]
[0063] In this embodiment, the overlap cannot be directly obtained through a single data, and needs to be obtained through a comprehensive analysis of the overlap, intersection-over-union ratio, distance, distance angle, Gaussian kernel standard deviation and the total number of detection frames between the remaining detection frames and the current suppressed object. For example, the distance in the first group of data is smaller than the distance in the second group of data, but the final overlap is larger. The Gaussian kernel standard deviation in the second group of data is larger than that in the third group of data, but the final overlap is smaller, so a comprehensive analysis is required. It can be analyzed from the grayscale scatter plot of the overlap in the figure that the distribution of the scatter points is close to a straight line and shows an upward trend, indicating that the correlation between the interaction ratio and the overlap is high and positively correlated. By calculating the overlap, the accuracy of the key feature points can be more accurately grasped, thereby achieving the control of the number of repeated operations. At the same time, the effective extraction of the key feature points can be ensured, so as to take targeted optimization measures. In addition, the test time can be effectively reduced by calculating the overlap, thereby further improving the test efficiency.
[0064] Further, such as Figure 4 As shown, it is a structural schematic diagram of a visual measurement system based on a digital human model provided in an embodiment of the present application. A visual measurement system based on a digital human model provided in an embodiment of the present application includes a data acquisition module, a data matching module and an extraction optimization module; the data acquisition module is used to build a digital human model according to the acquired three-dimensional data, use a deep learning algorithm to perform posture estimation on the digital human model to obtain first data, and pre-process the first data to obtain second data, the first data is used to describe the posture of the digital human model in three-dimensional space, the second data is the pre-processed first data, the digital human model is used to virtually simulate a digital human image, and the posture estimation represents the positioning of key points of the digital human model; the data matching module is used to compare the second data with the digital human model The third data is obtained by matching and aligning the second data and realizing the correspondence between the second data and the digital human model through key feature point matching and shape registration. The key feature point matching is to find the feature points of the second data through computer vision and match the corresponding key feature points to the digital human model. The shape registration is to compare the second data with the digital human model and obtain the similarity between the second data and the digital human model. The third data is the image data after the second data corresponds to the digital human model. The extraction and optimization module is used to extract and optimize the key feature points from the third data by using computer vision algorithms and image processing. Finally, the morphological parameters are obtained according to the optimized key feature points. The key feature points include facial feature points and bone connection points. The morphological parameters include basic height and weight data and the judgment of the model posture.
[0065] In this embodiment, the posture of the digital human model is estimated by using a deep learning algorithm, and the data is preprocessed to match and align with the digital human model to achieve correspondence with the digital human model. Finally, the key feature points are extracted and optimized using a computer vision algorithm. Through multiple steps of optimization, the efficiency of the test process is improved.
[0066] To summarize, the embodiment of the present application uses a deep learning algorithm to perform posture estimation on the digital human model to obtain first data, and preprocesses the first data to obtain second data, thereby achieving rapid positioning of key feature points of the digital human model, thereby achieving improved efficiency of the testing process, and effectively solving the problem of low testing process efficiency in the prior art.
[0067] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0068] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0069] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0070] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0071] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0072] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A visual measurement method based on digital human model, It is characterized in that The following steps are involved: S1, constructing a digital human model according to the acquired three-dimensional data, performing posture estimation on the digital human model to obtain first data, and preprocessing the first data to obtain second data; S2, matching and aligning the second data with the digital human model, achieving correspondence between the second data and the digital human model through key feature point matching and shape registration to obtain third data; S3, extracting and optimizing key feature points from the third data, and finally obtaining morphological parameters according to the optimized key feature points.
2. A visual measurement method based on a digital human model as claimed in claim 1, It is characterized in that The steps for obtaining the first data are: Constructing a preset data set based on existing data, wherein the existing data includes morphological measurement data, facial feature data, and action expression data, and the preset data set is a collection of digital human model images with preset postures and corresponding posture annotation information; The preset model is trained and predicted by the constructed preset data set to obtain the prediction result of the model posture estimation; After the training is completed, the posture information of the digital human model is input into the trained preset model, and then the predicted key feature points are output to obtain the first data.
3. A visual measurement method based on a digital human model as claimed in claim 1, It is characterized in that The specific steps of constructing the digital human model are: Using 3D modeling software to design the basic image of the digital human model, and performing mapping and texture processing on the digital human model, wherein the mapping and texture processing includes adding color, material and texture; By binding key feature points of the digital human model to create corresponding motion modes and ranges, and adjusting the positions and weights of the key feature points in the digital human model during the key feature point binding process, the weights being parameters that quantify the degree of influence of the key feature points on the digital human model; The facial expression animation corresponding to the digital human model is added through 3D animation software, and the digital human model is rendered and enhanced through preset rendering settings, wherein the preset rendering settings include adjusting lighting, adjusting shadows, adding background, and adding environment.
4. A visual measurement method based on a digital human model as claimed in claim 1, Features: The preprocessing includes denoising, enhancement and correction operations; Denoising means reducing the noise component in the first data by a machine learning algorithm; The enhancement means improving the contrast, brightness and clarity of the first data by sharpening so as to increase the proportion of high-frequency components in the first data; The correction operation means correcting the first data by radiation correction to eliminate distortion and error of the first data.
5. A visual measurement method based on a digital human model as claimed in claim 4, It is characterized in that The contrast ratio is calculated using the following formula: Where C is the contrast, M is the pixel width of the first data, N is the pixel height of the first data, ΔX ij is the gradient value difference of the (i, j)th pixel in the first data in the horizontal direction, ΔY ij is the gradient value difference of the first data pixel (i, j) in the vertical direction, i is the number of the pixel points of the first data in the horizontal direction, i=1,2,3,...,F, F is the total number of pixel points of the first data in the horizontal direction, j is the number of the pixel points of the first data in the vertical direction, j=1,2,3,...,H, H is the total number of pixel points of the first data in the vertical direction.
6. A visual measurement method based on a digital human model as claimed in claim 5, It is characterized in that The gradient value is calculated using the following formula: Where G(i,j) is the gradient value of the (i,j)th pixel in the first data, D is the direction set of the pixel in the first data, d is the direction of the pixel in the first data, i is the horizontal coordinate of the pixel in the first data, j is the vertical coordinate of the pixel in the first data, and d x is the x component of the pixel point in the first data in the dth direction, d y is the y component of the pixel in the first data in the dth direction, and h is a preset factor.
7. A visual measurement method and system based on a digital human model as claimed in claim 1, It is characterized in that The specific steps of matching and aligning the second data with the digital human model are: Generate preset feature points through the digital human model, the preset feature points correspond to the key feature points, and perform feature point matching on the feature points in the second data through a feature matching algorithm in combination with the preset feature points, wherein the feature point matching indicates matching between the feature points in the second data and the preset feature points; Performing spatial transformation on the digital human model according to the result of feature point matching, wherein the spatial transformation includes translation, rotation and scaling, and the spatial transformation is used to make the digital human model consistent with the posture and position corresponding to the second data; The posture and shape of the digital human model are adjusted through three-dimensional deformation methods and optimization algorithms.
8. A visual measurement method based on a digital human model as claimed in claim 1, It is characterized in that The specific steps of extracting and optimizing key feature points are as follows: The positions of the preset areas and preset feature points are obtained through target detection methods, and the preset feature points are screened and corrected based on the structural information and prior knowledge of the digital human model; The convolutional neural network model is used to extract the preset feature points again, and the digital human model is trained to learn the representation and positioning methods of key feature points so as to realize the recognition of key feature points by the digital human model; The overlap of key feature points is detected by the non-maximum suppression method to remove redundancy and overlap, and the accuracy and reliability of the extracted key feature points are verified and evaluated using the preset data set.
9. A visual measurement method based on a digital human model as claimed in claim 8, It is characterized in that The steps of the non-maximum suppression method are: Sort the confidence of the detection frames generated by the convolutional neural network, select the preset detection frame as the current suppression object, and calculate the overlap between the remaining detection frames and the current suppression object; The overlap is calculated using the following formula: Among them, R g is the overlap between the gth remaining detection box and the currently suppressed object, S g is the intersection-over-union ratio of the g-th remaining detection box and the currently suppressed object, g is the number of the remaining detection box, g = 1, 2, 3,,,,,G, G is the total number of remaining detection boxes, d g is the distance between the current suppressed object and the gth remaining detection box, σ is the standard deviation of the Gaussian kernel, and θ g It is the distance angle between the current suppressed object and the gth remaining detection box.
10. A visual measurement system based on digital human model, It is characterized in that It includes data acquisition module, data matching module and extraction optimization module; The data acquisition module is used to construct a digital human model according to the acquired three-dimensional data, perform posture estimation on the digital human model to obtain first data, and pre-process the first data to obtain second data; The data matching module is used to match and align the second data with the digital human model, and achieve correspondence between the second data and the digital human model through key feature point matching and shape registration to obtain third data; The extraction and optimization module is used to extract and optimize key feature points from the third data, and finally obtain morphological parameters according to the optimized key feature points.
