Three-dimensional shoe form blocking piece construction method and device, electronic equipment and computer medium

By performing shoe opening detection and two-dimensional plane projection processing on the 3D shoe model, a set of shoe opening vertex coordinates is generated and a masking patch is constructed, which solves the problem of time-consuming manual addition of masking patches and achieves a faster masking patch addition speed.

CN115423940BActive Publication Date: 2025-11-25BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211048279.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2025-11-25
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

In existing technologies, manually adding three-dimensional shoe mold masking pieces is time-consuming and results in a slow addition speed.

Method used

By detecting the shoe opening of the target 3D shoe model, a set of vertex coordinates for the shoe opening is generated and projected onto a 2D plane to construct a masking patch. Specific steps include shoe opening detection, projection, blurring, contour detection, pixel filling, and smoothing, ultimately constructing the masking patch in 3D space.

Benefits of technology

It reduces the time required to add the masking sheet, increases the addition speed, and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115423940B_ABST
    Figure CN115423940B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose a three-dimensional shoe mold cover sheet construction method, device, electronic equipment and computer medium. A specific embodiment of the method comprises: performing a toe opening detection on a target three-dimensional shoe mold according to a toe opening point array corresponding to the target three-dimensional shoe mold to obtain a toe opening vertex coordinate set; projecting each toe opening vertex corresponding to the toe opening vertex coordinate set to a two-dimensional plane corresponding to the target three-dimensional shoe mold to generate a two-dimensional toe opening plan; and constructing a cover sheet of the target three-dimensional shoe mold according to the two-dimensional toe opening plan. The embodiment is related to virtual reality, reduces the time for adding the cover sheet, and improves the adding speed of the cover sheet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments disclosed herein relate to the field of three-dimensional modeling technology, specifically to a method, apparatus, electronic device, and computer medium for constructing a three-dimensional shoe model cover plate. Background Technology

[0002] With the development of technologies such as artificial intelligence, computer vision, and graphics, logistics platforms have launched AR (Augmented Reality) shoe-trying functions. Through AR shoe-trying, users can preview the effect of shoes on their feet online. To ensure the rendering effect of the shoe model, the rendered shoe model has a corresponding occlusion relationship with the user's legs and feet, requiring the addition of an occlusion piece slightly below the shoe opening. Currently, the common method for adding occlusion pieces at the shoe opening in shoe models is for professional art designers to manually add them using software such as 3ds Max and Maya.

[0003] However, the above-mentioned method of adding masks usually has the following technical problems: adding the mask manually takes a long time and is slow. Summary of the Invention

[0004] The summary portion of this disclosure is intended to provide a brief overview of the concepts, which will be described in detail in the detailed description portion. This summary portion is not intended to identify key or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.

[0005] Some embodiments of this disclosure provide methods, apparatus, electronic devices, and computer-readable media for constructing three-dimensional shoe model cover plates to address the technical problems mentioned in the background section above.

[0006] In a first aspect, some embodiments of this disclosure provide a method for constructing a three-dimensional shoe model occlusion patch. The method includes: performing shoe opening detection on the target three-dimensional shoe model based on the shoe opening point matrix corresponding to the target three-dimensional shoe model to obtain a set of shoe opening vertex coordinates; projecting each shoe opening vertex corresponding to the shoe opening vertex coordinate set onto a two-dimensional plane corresponding to the target three-dimensional shoe model to generate a two-dimensional shoe opening planar diagram; and constructing an occlusion patch for the target three-dimensional shoe model based on the two-dimensional shoe opening planar diagram.

[0007] Optionally, before performing shoe opening detection on the target three-dimensional shoe model based on the shoe opening point matrix corresponding to the target three-dimensional shoe model to obtain the shoe opening vertex coordinate set, the method further includes: constructing a bounding box of the target three-dimensional shoe model; and constructing a spatial point matrix as the shoe opening point matrix on the top surface of the bounding box corresponding to the shoe opening position of the target three-dimensional shoe model, with the target length as the length and the target width as the width.

[0008] Optionally, the above-mentioned shoe opening detection of the target three-dimensional shoe model based on the shoe opening point matrix corresponding to the target three-dimensional shoe model to obtain the shoe opening vertex coordinate set includes: for each point in the shoe opening point matrix, performing the following detection steps: constructing a ray vertically downward with the point as the ray starting point; determining the intersection of the ray and the target three-dimensional shoe model as the ray intersection point; determining whether the ray intersection point satisfies the target condition, wherein the target condition is: the angle between the normal direction of the triangular face in the target three-dimensional shoe model where the ray intersection point is located and the direction of the ray is obtuse, and the distance between the ray intersection point and the ray starting point is less than a preset distance; in response to determining that the ray intersection point satisfies the target condition, determining the three-dimensional coordinates of the target three-dimensional shoe model corresponding to the ray intersection point as the shoe opening vertex coordinates; and combining the determined shoe opening vertex coordinates into a shoe opening vertex coordinate set.

[0009] Optionally, the above-mentioned projection of each shoe opening vertex corresponding to the above-mentioned shoe opening vertex coordinate set onto the two-dimensional plane corresponding to the above-mentioned target three-dimensional shoe model to generate a two-dimensional shoe opening plan view includes: determining the bottom surface of the above-mentioned bounding box corresponding to the above-mentioned shoe opening dot matrix as the two-dimensional plane corresponding to the above-mentioned target three-dimensional shoe model; for each shoe opening vertex among the above-mentioned shoe opening vertices, determining the distance between the above-mentioned shoe opening vertex and the above-mentioned two-dimensional plane as the pixel value of the above-mentioned shoe opening vertex; projecting the above-mentioned shoe opening vertices onto the above-mentioned two-dimensional plane to generate a two-dimensional shoe opening plan view, wherein the pixel value of the pixel point corresponding to the part of the above-mentioned two-dimensional shoe opening plan view where the shoe opening vertex is not projected is a preset pixel value.

[0010] Optionally, the above-mentioned method of constructing the masking patch of the target three-dimensional shoe model based on the above-mentioned two-dimensional shoe opening plan view includes: blurring the above-mentioned two-dimensional shoe opening plan view to generate a blurred two-dimensional shoe opening plan view; determining the average value of the pixel values ​​of each pixel point included in the blurred two-dimensional shoe opening plan view as the fill pixel value; performing shoe opening contour detection processing on the blurred two-dimensional shoe opening plan view to detect the shoe opening contour line of the blurred two-dimensional shoe opening plan view; performing pixel filling processing on the area included by the shoe opening contour line in the blurred two-dimensional shoe opening plan view according to the above-mentioned fill pixel value to generate a filled blurred two-dimensional shoe opening plan view as a filled two-dimensional shoe opening plan view; performing smoothing processing on the filled two-dimensional shoe opening plan view to generate a smoothed filled two-dimensional shoe opening plan view as a smoothed two-dimensional shoe opening plan view; and constructing the masking patch of the target three-dimensional shoe model based on the above-mentioned smoothed two-dimensional shoe opening plan view.

[0011] Optionally, constructing a masking patch for the target three-dimensional shoe model based on the smooth two-dimensional shoe opening plan view includes: for each pixel in the smooth two-dimensional shoe opening plan view, performing the following processing steps: determining the vertical coordinate of the pixel by the sum of the pixel value and the target value, wherein the target value is the vertical coordinate of the smooth two-dimensional shoe opening plan view in the three-dimensional coordinate system of the target three-dimensional shoe model; combining the two-dimensional pixel coordinates corresponding to the pixel with the vertical coordinates to generate the three-dimensional coordinates of the pixel; mapping each three-dimensional coordinate point corresponding to the generated three-dimensional coordinates to the target three-dimensional shoe model to obtain the shoe opening projection three-dimensional shoe model; and constructing a masking patch for the target three-dimensional shoe model based on the shoe opening projection three-dimensional shoe model.

[0012] Optionally, the above-mentioned smoothing process of the filled two-dimensional shoe opening planar diagram to generate a smoothed filled two-dimensional shoe opening planar diagram as a smoothed two-dimensional shoe opening planar diagram includes: determining the average value of each pixel value corresponding to each column of pixels in the filled two-dimensional shoe opening planar diagram as the pixel average value; replacing each pixel value corresponding to each column of pixels in the filled two-dimensional shoe opening planar diagram with the pixel average value corresponding to the column of pixels; and determining the filled two-dimensional shoe opening planar diagram after replacement as the smoothed two-dimensional shoe opening planar diagram.

[0013] Secondly, some embodiments of this disclosure provide a three-dimensional shoe model masking patch construction device, the device comprising: a detection unit configured to perform shoe opening detection on the target three-dimensional shoe model according to the shoe opening point matrix corresponding to the target three-dimensional shoe model, to obtain a shoe opening vertex coordinate set; a projection unit configured to project each shoe opening vertex corresponding to the shoe opening vertex coordinate set onto a two-dimensional plane corresponding to the target three-dimensional shoe model, to generate a two-dimensional shoe opening plan view; and a construction unit configured to construct a masking patch of the target three-dimensional shoe model according to the two-dimensional shoe opening plan view.

[0014] Optionally, before the detection unit, the device further includes: a bounding box construction unit configured to construct a bounding box for the target three-dimensional shoe model; and a dot matrix construction unit configured to construct a spatial dot matrix as a shoe opening dot matrix on the top surface of the bounding box corresponding to the shoe opening position of the target three-dimensional shoe model, with the target length as the length and the target width as the width.

[0015] Optionally, the detection unit is further configured to perform the following detection steps for each point in the above-mentioned shoe opening dot matrix: construct a ray vertically downward from the above-mentioned point as the ray origin; determine the intersection of the above-mentioned ray with the above-mentioned target three-dimensional shoe model as the ray intersection point; determine whether the above-mentioned ray intersection point satisfies the target condition, wherein the above-mentioned target condition is: the angle between the normal direction of the triangle face in the above-mentioned target three-dimensional shoe model where the above-mentioned ray intersection point is located and the direction of the above-mentioned ray is an obtuse angle, and the distance between the above-mentioned ray intersection point and the above-mentioned ray origin is less than a preset distance; in response to determining that the above-mentioned ray intersection point satisfies the above-mentioned target condition, determine the three-dimensional coordinates of the above-mentioned target three-dimensional shoe model corresponding to the above-mentioned ray intersection point as the shoe opening vertex coordinates; combine the determined shoe opening vertex coordinates into a shoe opening vertex coordinate set.

[0016] Optionally, the projection unit is further configured to: determine the bottom surface of the bounding box corresponding to the shoe opening dot matrix as the two-dimensional plane corresponding to the target three-dimensional shoe model; for each shoe opening vertex, determine the distance between the shoe opening vertex and the two-dimensional plane as the pixel value of the shoe opening vertex; project each shoe opening vertex onto the two-dimensional plane to generate a two-dimensional shoe opening planar view, wherein the pixel value of the pixel point corresponding to the part of the shoe opening vertex not projected in the two-dimensional shoe opening planar view is a preset pixel value.

[0017] Optionally, the construction unit is further configured to: blur the above-mentioned two-dimensional shoe opening planar image to generate a blurred two-dimensional shoe opening planar image; determine the average value of the pixel values ​​of each pixel point included in the blurred two-dimensional shoe opening planar image as the fill pixel value; perform shoe opening contour detection processing on the above-mentioned blurred two-dimensional shoe opening planar image to detect the shoe opening contour line of the above-mentioned blurred two-dimensional shoe opening planar image; perform pixel filling processing on the area included by the shoe opening contour line in the above-mentioned blurred two-dimensional shoe opening planar image according to the above-mentioned fill pixel value to generate a filled blurred two-dimensional shoe opening planar image as a filled two-dimensional shoe opening planar image; perform smoothing processing on the above-mentioned filled two-dimensional shoe opening planar image to generate a smoothed filled two-dimensional shoe opening planar image as a smoothed two-dimensional shoe opening planar image; and construct the masking plate of the above-mentioned target three-dimensional shoe model according to the above-mentioned smoothed two-dimensional shoe opening planar image.

[0018] Optionally, the construction unit is further configured to perform the following processing steps for each pixel in the smooth two-dimensional shoe opening planar diagram: determine the vertical coordinate of the pixel by the sum of the pixel value and the target value, wherein the target value is the vertical coordinate of the smooth two-dimensional shoe opening planar diagram in the three-dimensional coordinate system of the target three-dimensional shoe model; combine the two-dimensional pixel coordinates corresponding to the pixel with the vertical coordinates to generate the three-dimensional coordinates of the pixel; map each three-dimensional coordinate point corresponding to the generated three-dimensional coordinates to the target three-dimensional shoe model to obtain the shoe opening projection three-dimensional shoe model; and construct the masking plate of the target three-dimensional shoe model based on the shoe opening projection three-dimensional shoe model.

[0019] Optionally, the building unit is further configured to: determine the mean value of each pixel value corresponding to each column of pixels in the above-mentioned filled two-dimensional shoe opening planar diagram as the pixel mean value; replace each pixel value corresponding to each column of pixels in the above-mentioned filled two-dimensional shoe opening planar diagram with the pixel mean value corresponding to the above-mentioned column of pixels; and determine the filled two-dimensional shoe opening planar diagram after replacement as a smooth two-dimensional shoe opening planar diagram.

[0020] Thirdly, some embodiments of this disclosure provide an electronic device, including: one or more processors; and a storage device having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation of the first aspect above.

[0021] Fourthly, some embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.

[0022] The above-described embodiments of this disclosure have the following beneficial effects: the method for constructing a three-dimensional shoe model masking patch according to some embodiments of this disclosure reduces the time required to add the masking patch and improves the adding speed. Specifically, the reason for the long time required and the slow adding speed is that manually adding the masking patch is time-consuming and slow. Based on this, the method for constructing a three-dimensional shoe model masking patch according to some embodiments of this disclosure firstly detects the shoe opening of the target three-dimensional shoe model based on the shoe opening point matrix corresponding to the target three-dimensional shoe model, obtaining a set of shoe opening vertex coordinates. This allows the detection of vertex coordinates corresponding to the shoe opening of the target three-dimensional shoe model, providing data support for subsequently confirming the coordinates of the shoe opening masking patch. Then, each shoe opening vertex corresponding to the above shoe opening vertex coordinate set is projected onto a two-dimensional plane corresponding to the target three-dimensional shoe model to generate a two-dimensional shoe opening planar diagram. This provides data support for completing the filling of the masking patch pixel data. Finally, the masking patch of the target three-dimensional shoe model is constructed based on the above two-dimensional shoe opening planar diagram. Thus, the construction of the masking patch of the target three-dimensional shoe model can be completed using the two-dimensional shoe opening planar diagram. This reduces the time required to add masking patches and increases the speed of adding them. Attached Figure Description

[0023] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale.

[0024] Figure 1 This is a schematic diagram of an application scenario of the three-dimensional shoe model masking plate construction method according to some embodiments of this disclosure;

[0025] Figure 2 This is a flowchart of some embodiments of the method for constructing a three-dimensional shoe model cover plate according to the present disclosure;

[0026] Figure 3 These are flowcharts of some other embodiments of the method for constructing a three-dimensional shoe model cover plate according to the present disclosure;

[0027] Figure 4 This is a schematic diagram of constructing the bounding box of the target three-dimensional shoe model in the method for constructing a three-dimensional shoe model masking patch according to the present disclosure;

[0028] Figure 5 This is a schematic diagram of the shoe opening dot matrix in the three-dimensional shoe model masking plate construction method according to this disclosure;

[0029] Figure 6 This is a schematic diagram of generating a fuzzy two-dimensional shoe opening plan view in the three-dimensional shoe model masking plate construction method of this disclosure;

[0030] Figure 7 This is a schematic diagram of the smoothed filled two-dimensional shoe opening plan view in the three-dimensional shoe model masking plate construction method according to the present disclosure;

[0031] Figure 8 This is a schematic diagram of the three-dimensional shoe model projected from the shoe opening in the three-dimensional shoe model masking plate construction method of this disclosure;

[0032] Figure 9 This is a scene diagram illustrating the construction of a masking patch for a target three-dimensional shoe model according to the three-dimensional shoe model masking patch construction method disclosed herein;

[0033] Figure 10 These are schematic diagrams illustrating the structure of some embodiments of the three-dimensional shoe model shielding device according to this disclosure;

[0034] Figure 11 This is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. Detailed Implementation

[0035] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0036] It should also be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings. Unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other.

[0037] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0038] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0039] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0040] This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.

[0041] Figure 1This is a schematic diagram of an application scenario of a method for constructing a three-dimensional shoe model cover plate according to some embodiments of the present disclosure.

[0042] exist Figure 1 In the application scenario, firstly, the computing device 101 can perform shoe opening detection on the target 3D shoe model based on the shoe opening dot matrix 102 corresponding to the target 3D shoe model, obtaining a shoe opening vertex coordinate set 103. Then, the computing device 101 can project each shoe opening vertex corresponding to the shoe opening vertex coordinate set 103 onto the 2D plane corresponding to the target 3D shoe model to generate a 2D shoe opening planar diagram 104. Finally, the computing device 101 can construct a masking plate 105 for the target 3D shoe model based on the 2D shoe opening planar diagram 104. For example, the shoe opening dot matrix in the shoe opening dot matrix 102 corresponding to the target 3D shoe model can be the dot matrix directly above the target 3D shoe model in 102. Similarly, the masking plate in the masking plate 105 of the target 3D shoe model can be a gray-white masking plate for the shoe opening in the masking plate 105 of the target 3D shoe model.

[0043] It should be noted that the aforementioned computing device 101 can be either hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is software, it can be installed within the hardware devices listed above. It can be implemented as, for example, multiple software programs or software modules used to provide distributed services, or as a single software program or software module. No specific limitations are made here.

[0044] It should be understood that Figure 1 The number of computing devices shown is merely illustrative. Any number of computing devices can be used depending on implementation needs.

[0045] Continue to refer to Figure 2 The diagram illustrates a flow 200 of some embodiments of a three-dimensional shoe mold masking patch construction method according to the present disclosure. The three-dimensional shoe mold masking patch construction method includes the following steps:

[0046] Step 201: Based on the shoe opening point matrix corresponding to the target 3D shoe model, perform shoe opening detection on the target 3D shoe model to obtain the shoe opening vertex coordinate set.

[0047] In some embodiments, the execution subject of the three-dimensional shoe model masking patch construction method (e.g. Figure 1The computing device 101 shown can perform shoe opening detection on the target 3D shoe model based on the shoe opening point matrix corresponding to the target 3D shoe model, and obtain the shoe opening vertex coordinate set. Here, the shoe opening point matrix corresponding to the target 3D shoe model can be a spatial point matrix constructed using the top surface of the bounding box surrounding the target 3D shoe model. Here, the bounding box can be an AABB (Axis Aligned Bounding Box). Here, the shoe opening point matrix corresponds to and covers the shoe opening of the target 3D shoe model. The target 3D shoe model can refer to a 3D shoe model to which a shoe opening masking piece is to be added.

[0048] In practice, based on the shoe opening point array corresponding to the target 3D shoe model, the aforementioned execution entity can use a ray casting algorithm to detect the shoe opening of the target 3D shoe model and obtain the set of shoe opening vertex coordinates. That is, it determines the intersection relationship between each point in the shoe opening point array and the target 3D shoe model. Thus, it determines the intersection point (shoe opening vertex coordinates) between each point in the shoe opening point array and the target 3D shoe model.

[0049] Step 202: Project each shoe opening vertex corresponding to the above shoe opening vertex coordinate set onto the two-dimensional plane corresponding to the above target three-dimensional shoe model to generate a two-dimensional shoe opening plan view.

[0050] In some embodiments, the execution entity can project each shoe opening vertex corresponding to the shoe opening vertex coordinate set onto the two-dimensional plane corresponding to the target three-dimensional shoe model to generate a two-dimensional shoe opening plan view. Here, the two-dimensional plane corresponding to the target three-dimensional shoe model can refer to the plane where the bottom of the target three-dimensional shoe model is located.

[0051] Step 203: Based on the above two-dimensional shoe opening plan view, construct the masking piece of the above target three-dimensional shoe model.

[0052] In some embodiments, the execution entity may construct a masking plate for the target three-dimensional shoe model based on the two-dimensional shoe opening plan view.

[0053] In practice, based on the above two-dimensional shoe opening plan view, the aforementioned execution entity can construct the masking plate of the above-mentioned target three-dimensional shoe model through the following steps:

[0054] The first step is to perform shoe opening contour detection processing on the above two-dimensional shoe opening planar image to detect the shoe opening contour line of the above two-dimensional shoe opening planar image. Here, contour detection can refer to OpenCV contour detection.

[0055] The second step involves filling the area encompassed by the shoe opening outline in the aforementioned two-dimensional shoe opening planar image with pixels to generate a filled two-dimensional shoe opening planar image. Specifically, all pixels filling the area encompassed by the shoe opening outline have the same pixel value, and the filled pixel value is greater than 0. Here, the pixel value of each pixel being filled is set to be less than or equal to a target pixel value. The target pixel value can be the average of the pixel values ​​of all pixels included in the aforementioned two-dimensional shoe opening planar image.

[0056] The third step is to smooth the above-mentioned filled two-dimensional shoe opening planar image to generate a smooth filled two-dimensional shoe opening planar image. In practice, firstly, the average value of each pixel value corresponding to each column of pixels in the above-mentioned filled two-dimensional shoe opening planar image can be determined as the pixel mean. Next, each pixel value corresponding to each column of pixels in the above-mentioned filled two-dimensional shoe opening planar image can be replaced with the pixel mean of the corresponding column of pixels. Then, the filled two-dimensional shoe opening planar image after replacement can be determined as the smoothed two-dimensional shoe opening planar image.

[0057] The fourth step is to determine the three-dimensional coordinates of each pixel in the smoothed two-dimensional shoe opening planar image, thus obtaining a three-dimensional coordinate set. First, the pixel value of each pixel in the smoothed two-dimensional shoe opening planar image can be determined as its vertical coordinate. Then, the two-dimensional pixel coordinates of each pixel in the smoothed two-dimensional shoe opening planar image can be combined with the corresponding vertical coordinates to generate the three-dimensional coordinates of the pixel, thus obtaining a three-dimensional coordinate set.

[0058] The fifth step is to map each of the three-dimensional coordinate points corresponding to the above three-dimensional coordinate set onto the above target three-dimensional shoe model to obtain the shoe opening projection three-dimensional shoe model.

[0059] Step 6: Using Poisson surface reconstruction technology, construct the shoe opening masking plate (the masking plate of the target three-dimensional shoe model) of the shoe opening projection three-dimensional shoe model based on the three-dimensional points mapped in the shoe opening projection three-dimensional shoe model.

[0060] It should be noted that the target 3D shoe model, shoe opening dot matrix, and 2D shoe opening plan view are all in the same 3D coordinate system.

[0061] The above-described embodiments of this disclosure have the following beneficial effects: the method for constructing a three-dimensional shoe model masking patch according to some embodiments of this disclosure reduces the time required to add the masking patch and improves the adding speed. Specifically, the reason for the long time required and the slow adding speed is that manually adding the masking patch is time-consuming and slow. Based on this, the method for constructing a three-dimensional shoe model masking patch according to some embodiments of this disclosure firstly detects the shoe opening of the target three-dimensional shoe model based on the shoe opening point matrix corresponding to the target three-dimensional shoe model, obtaining a set of shoe opening vertex coordinates. This allows the detection of vertex coordinates corresponding to the shoe opening of the target three-dimensional shoe model, providing data support for subsequently confirming the coordinates of the shoe opening masking patch. Then, each shoe opening vertex corresponding to the above shoe opening vertex coordinate set is projected onto a two-dimensional plane corresponding to the target three-dimensional shoe model to generate a two-dimensional shoe opening planar diagram. This provides data support for completing the filling of the masking patch pixel data. Finally, the masking patch of the target three-dimensional shoe model is constructed based on the above two-dimensional shoe opening planar diagram. Thus, the construction of the masking patch of the target three-dimensional shoe model can be completed using the two-dimensional shoe opening planar diagram. This reduces the time required to add masking patches and increases the speed of adding them.

[0062] Further reference Figure 3 This paper illustrates some other embodiments of the three-dimensional shoe mold masking plate construction method according to the present disclosure. The three-dimensional shoe mold masking plate construction method includes the following steps:

[0063] Step 301: Construct the bounding box of the target 3D shoe model.

[0064] In some embodiments, the execution subject of the three-dimensional shoe model masking patch construction method (e.g. Figure 1 The computing device 101 shown can construct the bounding box of the target 3D shoe model. Here, the bounding box can be an AABB (Axis Aligned Bounding Box). The bounding box of the constructed target 3D shoe model can be as follows: Figure 4 As shown.

[0065] Step 302: Using the target length as the length and the target width as the width, construct a spatial dot matrix as the shoe opening dot matrix on the top surface of the bounding box corresponding to the shoe opening position of the target three-dimensional shoe model.

[0066] In some embodiments, the execution entity can construct a spatial dot matrix as a shoe opening dot matrix on the top surface of the bounding box corresponding to the shoe opening position of the target 3D shoe model, with a target length as the length and a target width as the width. The target width can be the length of the lateral boundary line of the top surface corresponding to the shoe opening position of the target 3D shoe model (the width of the bounding box). Here, the target length can be half the length of the bounding box or the length of the bounding box. One side of the spatial dot matrix is ​​adjacent to the width boundary line of the top surface of the bounding box. The spatial dot matrix can cover the shoe opening of the target 3D shoe model. That is, the execution entity can construct a dot matrix with a length equal to the target length and a width equal to the target width as a shoe opening dot matrix on the top surface of the bounding box corresponding to the shoe opening position of the target 3D shoe model. For details of the constructed shoe opening dot matrix, please refer to [link to documentation]. Figure 5 Examples.

[0067] Step 303: Based on the shoe opening point matrix corresponding to the target 3D shoe model, perform shoe opening detection on the target 3D shoe model to obtain the shoe opening vertex coordinate set.

[0068] In some embodiments, based on the shoe opening point matrix corresponding to the target 3D shoe model, the execution entity can perform shoe opening detection on the target 3D shoe model through the following steps to obtain the shoe opening vertex coordinate set:

[0069] The first step is to perform the following detection steps for each point in the above shoe opening dot matrix:

[0070] The first step is to construct a ray vertically downwards from the aforementioned point. That is, to construct a ray downwards along a direction perpendicular to the bottom surface of the aforementioned enclosure box, using the aforementioned point as the starting point.

[0071] The second step is to determine the intersection point of the aforementioned ray and the aforementioned target three-dimensional shoe model as the ray intersection point.

[0072] The third step is to determine whether the intersection of the aforementioned rays meets the target conditions. These target conditions are: the angle between the normal direction of the triangular facet in the target 3D shoe mold where the ray intersection point is located and the direction of the aforementioned ray is obtuse, and the distance between the ray intersection point and the starting point of the aforementioned ray is less than a preset distance. Here, the setting of the preset distance is not restricted.

[0073] The fourth step is to determine the three-dimensional coordinates of the target three-dimensional shoe model corresponding to the above ray intersection point as the coordinates of the shoe opening vertex in response to the determination that the above ray intersection point satisfies the above target conditions.

[0074] The second step is to combine the determined coordinates of each shoe opening vertex into a shoe opening vertex coordinate set.

[0075] Step 304: Project each shoe opening vertex corresponding to the above shoe opening vertex coordinate set onto the two-dimensional plane corresponding to the above target three-dimensional shoe model to generate a two-dimensional shoe opening plan view.

[0076] In some embodiments, the execution entity may project each shoe opening vertex corresponding to the shoe opening vertex coordinate set onto the two-dimensional plane corresponding to the target three-dimensional shoe model through the following steps to generate a two-dimensional shoe opening plan view:

[0077] The first step is to determine the bottom surface of the bounding box corresponding to the above shoe opening dot matrix as the two-dimensional plane corresponding to the above target three-dimensional shoe model.

[0078] The second step is to determine the distance between each of the aforementioned shoe opening vertices and the aforementioned two-dimensional plane as the pixel value of the shoe opening vertex.

[0079] The third step is to project each of the shoe opening vertices onto the aforementioned two-dimensional plane to generate a two-dimensional shoe opening planar image. The pixel values ​​of the pixels corresponding to the unprojected shoe opening vertices in the two-dimensional shoe opening planar image are preset pixel values. Here, the pixel value of each shoe opening vertex in the two-dimensional shoe opening planar image is the distance between that vertex and the two-dimensional plane. The preset pixel value can be 0.

[0080] Step 305: Based on the above two-dimensional shoe opening plan view, construct the masking piece of the above target three-dimensional shoe model.

[0081] In some embodiments, based on the above two-dimensional shoe opening plan view, the execution entity can construct the masking plate of the above-mentioned target three-dimensional shoe model through the following steps:

[0082] The first step is to blur the above two-dimensional shoe opening planar image to generate a blurred two-dimensional shoe opening planar image. Here, blurring can include, but is not limited to, mean blurring and median blurring. A schematic diagram of generating a blurred two-dimensional shoe opening planar image can be found in [link to diagram]. Figure 6 Examples.

[0083] The second step is to determine the average value of the pixel values ​​of each pixel in the above fuzzy two-dimensional shoe opening planar image as the fill pixel value.

[0084] The third step is to perform shoe opening contour detection processing on the above fuzzy two-dimensional shoe opening planar image to detect the shoe opening contour line of the above fuzzy two-dimensional shoe opening planar image. Here, contour detection can refer to OpenCV contour detection.

[0085] Fourth, based on the aforementioned fill pixel values, perform pixel filling processing on the area included by the shoe opening outline in the aforementioned blurred two-dimensional shoe opening planar image to generate a filled blurred two-dimensional shoe opening planar image as the filled two-dimensional shoe opening planar image. In practice, pixels with the fill pixel values ​​can be filled into the area included by the shoe opening outline in the aforementioned blurred two-dimensional shoe opening planar image to generate a filled blurred two-dimensional shoe opening planar image as the filled two-dimensional shoe opening planar image.

[0086] The fifth step is to smooth the above-mentioned filled two-dimensional shoe opening planar image to generate a smoothed filled two-dimensional shoe opening planar image. A schematic diagram of the smoothed filled two-dimensional shoe opening planar image can be found in [link to diagram]. Figure 7 Examples.

[0087] In practice, the fifth step above may include the following sub-steps:

[0088] The first sub-step is to determine the mean value of each pixel value corresponding to each column of pixels in the above-mentioned two-dimensional shoe opening planar diagram as the pixel mean.

[0089] The second sub-step is to replace each pixel value corresponding to each column of pixels in the above-mentioned two-dimensional shoe opening planar diagram with the average pixel value of the corresponding column of pixels.

[0090] The third sub-step is to define the replaced filled two-dimensional shoe opening plan as a smooth two-dimensional shoe opening plan.

[0091] Step 6: Based on the smooth two-dimensional shoe opening plan view described above, construct the masking plate of the target three-dimensional shoe model.

[0092] In practice, step six above may include the following sub-steps:

[0093] The first sub-step involves performing the following processing steps for each pixel in the smoothed two-dimensional shoe opening plane diagram:

[0094] 1. The sum of the pixel value of the aforementioned pixel and the target value is determined as the vertical coordinate of the aforementioned pixel. Wherein, the target value is the vertical coordinate of the aforementioned smooth two-dimensional shoe opening planar image in the three-dimensional coordinate system of the aforementioned target three-dimensional shoe model.

[0095] 2. Combine the two-dimensional pixel coordinates corresponding to the above-mentioned pixel points with the above-mentioned vertical coordinates to generate the three-dimensional coordinates of the above-mentioned pixel points.

[0096] The second sub-step involves mapping the generated 3D coordinates to the corresponding 3D coordinate points on the target 3D shoe model to obtain the shoe opening projection 3D shoe model. A detailed diagram of the shoe opening projection 3D shoe model can be found in [link to diagram]. Figure 8 Examples.

[0097] The third sub-step involves constructing a masking plate for the target 3D shoe model based on the projected shoe opening. In practice, firstly, the execution entity can reconstruct the triangular facets of the projected shoe opening using a Poisson surface. Then, redundant triangular facets in the projected shoe opening can be removed using Boolean operations to obtain the masking plate for the target 3D shoe model's opening. A schematic diagram illustrating the construction of the masking plate for the target 3D shoe model can be found in [link to schematic diagram]. Figure 9 Examples. Figure 9 The upper middle part of the shoe model diagram is a schematic diagram of the triangular facets of the three-dimensional shoe model projected by the shoe opening, which are constructed by reconstructing the Poisson surface. Figure 9 The lower center of the diagram is a schematic diagram of the masking plate of the aforementioned target 3D shoe model.

[0098] from Figure 3 It can be seen that, with Figure 2 Compared to the description of some corresponding embodiments, Figure 3 In some corresponding embodiments, process 300 firstly involves detecting the shoe opening of the target 3D shoe model based on the shoe opening dot matrix corresponding to the target 3D shoe model, obtaining a set of shoe opening vertex coordinates. This allows for shoe opening detection in 3D space using a collision detection algorithm. Secondly, the bottom surface of the bounding box corresponding to the shoe opening dot matrix is ​​determined as the 2D plane corresponding to the target 3D shoe model. Next, each shoe opening vertex is projected onto the 2D plane to generate a 2D shoe opening planar image. This facilitates subsequent data filling of the shoe opening occluder in 2D space (2D shoe opening planar image). Then, shoe opening contour detection processing is performed on the blurred 2D shoe opening planar image to detect the shoe opening contour line. Finally, based on the filling pixel values, pixel filling processing is performed on the area included by the shoe opening contour line in the blurred 2D shoe opening planar image to generate a filled blurred 2D shoe opening planar image as the filled 2D shoe opening planar image. This completes the pixel filling of the shoe opening occluder. Finally, based on the smoothed two-dimensional shoe opening planar diagram described above, the masking plate for the target three-dimensional shoe model is constructed. This completes the construction of the shoe opening masking plate for the target three-dimensional shoe model. Consequently, the time required to add the masking plate is reduced, and the speed of adding the masking plate is increased.

[0099] Further reference Figure 10 As an implementation of the methods shown in the above figures, this disclosure provides some embodiments of a three-dimensional shoe mold covering device, which are similar to... Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0100] like Figure 10As shown, a three-dimensional shoe model masking patch construction device 1000 in some embodiments includes: a detection unit 1001, a projection unit 1002, and a construction unit 1003. The detection unit 1001 is configured to perform shoe opening detection on the target three-dimensional shoe model based on the shoe opening point matrix corresponding to the target three-dimensional shoe model, obtaining a set of shoe opening vertex coordinates; the projection unit 1002 is configured to project each shoe opening vertex corresponding to the shoe opening vertex coordinate set onto a two-dimensional plane corresponding to the target three-dimensional shoe model to generate a two-dimensional shoe opening plan view; the construction unit 1003 is configured to construct a masking patch for the target three-dimensional shoe model based on the two-dimensional shoe opening plan view.

[0101] Optionally, before the detection unit 1001, the device 1000 further includes: a bounding box construction unit configured to construct a bounding box for the target three-dimensional shoe model; and a dot matrix construction unit configured to construct a spatial dot matrix as a shoe opening dot matrix on the top surface of the bounding box corresponding to the shoe opening position of the target three-dimensional shoe model, with the target length as the length and the target width as the width.

[0102] Optionally, the detection unit 1001 is further configured to perform the following detection steps for each point in the above-mentioned shoe opening dot matrix: construct a ray vertically downward from the above-mentioned point as the ray starting point; determine the intersection of the above-mentioned ray with the above-mentioned target three-dimensional shoe model as the ray intersection point; determine whether the above-mentioned ray intersection point satisfies the target condition, wherein the above-mentioned target condition is: the angle between the normal direction of the triangle face in the above-mentioned target three-dimensional shoe model where the above-mentioned ray intersection point is located and the direction of the above-mentioned ray is an obtuse angle, and the distance between the above-mentioned ray intersection point and the above-mentioned ray starting point is less than a preset distance; in response to determining that the above-mentioned ray intersection point satisfies the above-mentioned target condition, determine the three-dimensional coordinates of the above-mentioned target three-dimensional shoe model corresponding to the above-mentioned ray intersection point as the shoe opening vertex coordinates; combine the determined shoe opening vertex coordinates into a shoe opening vertex coordinate set.

[0103] Optionally, the projection unit 1002 is further configured to: determine the bottom surface of the bounding box corresponding to the shoe opening dot matrix as the two-dimensional plane corresponding to the target three-dimensional shoe model; for each shoe opening vertex, determine the distance between the shoe opening vertex and the two-dimensional plane as the pixel value of the shoe opening vertex; project each shoe opening vertex onto the two-dimensional plane to generate a two-dimensional shoe opening plan view, wherein the pixel value of the pixel point corresponding to the part of the shoe opening vertex not projected in the two-dimensional shoe opening plan view is a preset pixel value.

[0104] Optionally, the construction unit 1003 is further configured to: blur the above-mentioned two-dimensional shoe opening planar image to generate a blurred two-dimensional shoe opening planar image; determine the average value of the pixel values ​​of each pixel point included in the blurred two-dimensional shoe opening planar image as the fill pixel value; perform shoe opening contour detection processing on the above-mentioned blurred two-dimensional shoe opening planar image to detect the shoe opening contour line of the above-mentioned blurred two-dimensional shoe opening planar image; perform pixel filling processing on the area included by the shoe opening contour line in the above-mentioned blurred two-dimensional shoe opening planar image according to the above-mentioned fill pixel value to generate a filled blurred two-dimensional shoe opening planar image as a filled two-dimensional shoe opening planar image; perform smoothing processing on the above-mentioned filled two-dimensional shoe opening planar image to generate a smoothed filled two-dimensional shoe opening planar image as a smoothed two-dimensional shoe opening planar image; and construct the masking plate of the above-mentioned target three-dimensional shoe model according to the above-mentioned smoothed two-dimensional shoe opening planar image.

[0105] Optionally, the construction unit 1003 is further configured to: for each pixel in the smooth two-dimensional shoe opening planar diagram, perform the following processing steps: determine the vertical coordinate of the pixel by the sum of the pixel value and the target value, wherein the target value is the vertical coordinate of the smooth two-dimensional shoe opening planar diagram in the three-dimensional coordinate system where the target three-dimensional shoe model is located; combine the two-dimensional pixel coordinates corresponding to the pixel with the vertical coordinates to generate the three-dimensional coordinates of the pixel; map each three-dimensional coordinate point corresponding to the generated three-dimensional coordinates to the target three-dimensional shoe model to obtain the shoe opening projection three-dimensional shoe model; and construct the masking plate of the target three-dimensional shoe model based on the shoe opening projection three-dimensional shoe model.

[0106] Optionally, the construction unit 1003 is further configured to: determine the average value of each pixel value corresponding to each column of pixels in the above-mentioned filled two-dimensional shoe opening planar diagram as the pixel average value; replace each pixel value corresponding to each column of pixels in the above-mentioned filled two-dimensional shoe opening planar diagram with the pixel average value corresponding to the above-mentioned column of pixels; and determine the filled two-dimensional shoe opening planar diagram after replacement as a smooth two-dimensional shoe opening planar diagram.

[0107] It is understandable that the units described in the device 1000 are related to the reference. Figure 2 The steps in the described method correspond to each other. Therefore, the operations, features, and beneficial effects described above for the method also apply to the device 1000 and the units contained therein, and will not be repeated here.

[0108] The following is for reference. Figure 11 It illustrates electronic devices suitable for implementing some embodiments of this disclosure (e.g., Figure 1The diagram shows the structure of the computing device 101)1100. Electronic devices in some embodiments of this disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 11 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this disclosure.

[0109] like Figure 11 As shown, electronic device 1100 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1102 or a program loaded from storage device 1108 into random access memory (RAM) 1103. The RAM 1103 also stores various programs and data required for the operation of electronic device 1100. The processing device 1101, ROM 1102, and RAM 1103 are interconnected via bus 1104. Input / output (I / O) interface 1105 is also connected to bus 1104.

[0110] Typically, the following devices can be connected to I / O interface 1105: input devices 1106 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 1107 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1108 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1109. Communication device 1109 allows electronic device 1100 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 11 An electronic device 1100 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 11 Each box shown can represent a device or multiple devices as needed.

[0111] In particular, according to some embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1109, or installed from storage device 1108, or installed from ROM 1102. When the computer program is executed by processing device 1101, it performs the functions defined in the methods of some embodiments of this disclosure.

[0112] It should be noted that, in some embodiments of this disclosure, the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In some embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In some embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0113] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0114] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: perform shoe opening detection on the target three-dimensional shoe model according to the shoe opening point matrix corresponding to the target three-dimensional shoe model, and obtain a set of shoe opening vertex coordinates; project each shoe opening vertex corresponding to the shoe opening vertex coordinate set onto a two-dimensional plane corresponding to the target three-dimensional shoe model to generate a two-dimensional shoe opening planar diagram; and construct a masking plate for the target three-dimensional shoe model based on the two-dimensional shoe opening planar diagram.

[0115] Computer program code for performing operations of some embodiments of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0116] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0117] The units described in some embodiments of this disclosure can be implemented in software or hardware. The described units can also be housed in a processor; for example, a processor may be described as including a detection unit, a projection unit, and a construction unit. The names of these units do not necessarily limit the specific unit itself; for example, a detection unit may be described as "a unit that performs shoe opening detection on the target three-dimensional shoe model based on the shoe opening point matrix corresponding to the target three-dimensional shoe model, and obtains a set of shoe opening vertex coordinates."

[0118] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0119] The above description is merely a selection of preferred embodiments of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.

Claims

1. A method for constructing a three-dimensional shoe model masking patch, comprising: Based on the shoe opening point matrix corresponding to the target 3D shoe model, shoe opening detection is performed on the target 3D shoe model to obtain a set of shoe opening vertex coordinates. This includes: for each point in the shoe opening point matrix, performing the following detection steps: constructing a ray vertically downward from the point as the ray origin; determining the intersection of the ray and the target 3D shoe model as the ray intersection point; determining whether the ray intersection point satisfies the target condition; in response to determining that the ray intersection point satisfies the target condition, determining the 3D coordinates of the target 3D shoe model corresponding to the ray intersection point as the shoe opening vertex coordinates; and combining the determined shoe opening vertex coordinates into a set of shoe opening vertex coordinates. Project each shoe opening vertex corresponding to the set of shoe opening vertex coordinates onto the two-dimensional plane corresponding to the target three-dimensional shoe model to generate a two-dimensional shoe opening plan view; Based on the two-dimensional shoe opening plan view, construct the masking plate of the target three-dimensional shoe model.

2. The method according to claim 1, wherein, Before performing shoe opening detection on the target 3D shoe model based on the shoe opening point matrix corresponding to the target 3D shoe model to obtain the shoe opening vertex coordinate set, the method further includes: Construct the bounding box of the target 3D shoe model; Using the target length as the length and the target width as the width, a spatial lattice is constructed on the top surface of the bounding box corresponding to the shoe opening position of the target three-dimensional shoe model as the shoe opening lattice.

3. The method according to claim 1, wherein, The target conditions are: the angle between the normal direction of the triangle face in the target three-dimensional shoe model where the ray intersection point is located and the direction of the ray is obtuse, and the distance between the ray intersection point and the ray starting point is less than a preset distance.

4. The method according to claim 2, wherein, The step of projecting each shoe opening vertex corresponding to the shoe opening vertex coordinate set onto the two-dimensional plane corresponding to the target three-dimensional shoe model to generate a two-dimensional shoe opening plan view includes: The bottom surface of the bounding box corresponding to the shoe opening dot matrix is ​​defined as the two-dimensional plane corresponding to the target three-dimensional shoe model; For each of the shoe opening vertices, the distance between the shoe opening vertex and the two-dimensional plane is determined as the pixel value of the shoe opening vertex; Each shoe opening vertex is projected onto the two-dimensional plane to generate a two-dimensional shoe opening planar diagram, wherein the pixel values ​​of the pixels corresponding to the parts of the shoe opening vertex not projected in the two-dimensional shoe opening planar diagram are preset pixel values.

5. The method according to claim 1, wherein, The step of constructing the masking piece for the target three-dimensional shoe model based on the two-dimensional shoe opening plan view includes: The two-dimensional shoe opening planar diagram is blurred to generate a blurred two-dimensional shoe opening planar diagram; The average value of the pixel values ​​of each pixel point included in the fuzzy two-dimensional shoe opening planar image is determined as the fill pixel value; The fuzzy two-dimensional shoe opening planar image is subjected to shoe opening contour detection processing to detect the shoe opening contour line of the fuzzy two-dimensional shoe opening planar image; Based on the filled pixel values, pixel filling processing is performed on the area included by the shoe opening outline in the fuzzy two-dimensional shoe opening planar image to generate a filled fuzzy two-dimensional shoe opening planar image as a filled two-dimensional shoe opening planar image. The filled two-dimensional shoe opening planar diagram is smoothed to generate a smoothed filled two-dimensional shoe opening planar diagram as the smoothed two-dimensional shoe opening planar diagram; Based on the smooth two-dimensional shoe opening plan view, construct the masking plate of the target three-dimensional shoe model.

6. The method according to claim 5, wherein, The step of constructing the masking patch for the target three-dimensional shoe model based on the smooth two-dimensional shoe opening plan view includes: For each pixel in the smooth two-dimensional shoe opening plane, the following processing steps are performed: The sum of the pixel value of the pixel and the target value is determined as the vertical coordinate of the pixel, wherein the target value is the vertical coordinate of the smooth two-dimensional shoe opening plan view in the three-dimensional coordinate system where the target three-dimensional shoe model is located; The two-dimensional pixel coordinates corresponding to the pixel are combined with the vertical coordinates to generate the three-dimensional coordinates of the pixel. The generated three-dimensional coordinates are mapped to the target three-dimensional shoe model to obtain the shoe opening projection three-dimensional shoe model; Based on the projected three-dimensional shoe model of the shoe opening, a masking plate is constructed for the target three-dimensional shoe model.

7. The method according to claim 5, wherein, The step of smoothing the filled two-dimensional shoe opening planar diagram to generate a smoothed filled two-dimensional shoe opening planar diagram as the smoothed two-dimensional shoe opening planar diagram includes: The mean value of each pixel value corresponding to each column of pixels in the filled two-dimensional shoe opening plan is determined as the pixel mean. Replace each pixel value corresponding to each column of pixels in the filled two-dimensional shoe opening plan with the average pixel value of the corresponding column of pixels; The replaced filled 2D shoe opening plan is defined as a smooth 2D shoe opening plan.

8. A three-dimensional shoe model cover construction device, comprising: The detection unit is configured to perform shoe opening detection on the target 3D shoe model based on the shoe opening point matrix corresponding to the target 3D shoe model, and obtain a set of shoe opening vertex coordinates. The detection steps include: for each point in the shoe opening point matrix, performing the following detection steps: constructing a ray vertically downwards from the point as the ray origin; determining the intersection of the ray and the target 3D shoe model as the ray intersection point; determining whether the ray intersection point satisfies the target condition; in response to determining that the ray intersection point satisfies the target condition, determining the 3D coordinates of the target 3D shoe model corresponding to the ray intersection point as the shoe opening vertex coordinates; and combining the determined shoe opening vertex coordinates into a set of shoe opening vertex coordinates. The projection unit is configured to project each shoe opening vertex corresponding to the shoe opening vertex coordinate set onto the two-dimensional plane corresponding to the target three-dimensional shoe model to generate a two-dimensional shoe opening plan view; The building unit is configured to build a masking piece for the target three-dimensional shoe model based on the two-dimensional shoe opening plan view.

9. An electronic device, comprising: One or more processors; A storage device on which one or more programs are stored; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.

10. A computer-readable medium having a computer program stored thereon, wherein, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Three-dimensional model processing method and device, equipment and storage medium

    CN113869968A