In order to overcome the influence of background, lighting, deformation, and other factors, using a constitutional neural network structure combined with metric learning, specifically, it includes two model structures, Siamese, and Triplet. The use of bicubic NURBS surfaces is proposed, the idea of constructing mannequins and garment pieces, the experimental results show that NURBS surface control is flexible and simple, and the calculation is stable, and it is the best surface for constructing virtual samples and avatars. Based on studying the three-dimensional structure design of clothing, based on the 10 key curves of the human body, the curve and surface interpolation algorithm is applied, by calling OpenGL related functions, the establishment of the benchmark human body model is well realized, and it lays a foundation for the deformation of the human body model based on parameters in the future.