Feature extraction method, three-dimensional model generation method and electronic equipment

By inserting an intercept plane into the three-dimensional point cloud data and performing curvature analysis, the feature points of the target object are extracted, which solves the problems of long forward design cycle and large amount of reverse development data processing, improves design efficiency and accuracy, and realizes complex processing Accurate modeling of products.

CN118537490APending Publication Date: 2024-08-23BEIJING HYDROGEN NEW ENERGY TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410682837.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In product design, the forward design cycle is long and costly, and reverse development and design require processing a large amount of data, resulting in slow feature recognition and a lack of methods for quickly identifying feature modeling. Especially in complex product structure and shape profiling design, there are problems with efficiency and Accuracy issue.

Method used

By inserting interception planes into 3D point cloud data, extracting feature contour curves and performing curvature analysis, extract target feature points of the target object, thereby generating a representative 3D model, reducing data processing volume and improving design efficiency.

Benefits of technology

It improves the efficiency of reverse development and design in complex product structure and shape design, improves design accuracy, saves data processing resources, and can accurately extract feature points for subsequent modeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537490A
    Figure CN118537490A
Patent Text Reader

Abstract

The invention relates to a feature extraction method, a three-dimensional model generation method and electronic equipment. The method comprises the following steps: displaying three-dimensional point cloud data of a target object through a preset interface, wherein the three-dimensional point cloud data is composed of a plurality of data points; inserting at least one mutually parallel interception plane into a space where the three-dimensional point cloud data is located; determining a feature contour curve intercepted by each interception plane in the three-dimensional point cloud data; and performing curvature analysis on the feature contour curve, and extracting a target feature point corresponding to the target object from the feature contour curve according to a curvature analysis result. Therefore, the data processing amount can be reduced, resources occupied by data processing can be effectively saved, the representative feature points in the feature contour line can be extracted through curvature analysis, and accurate extraction of the feature points is achieved. In this way, the target object can be accurately modeled subsequently according to the extracted target feature points.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular, to a feature extraction method, a three-dimensional model generation method and an electronic device. Background Art

[0002] With the increasing requirements for the appearance of industrial products, product design has become one of the important factors that attracts much attention in the field of product research and development. The quality of product design is directly related to the performance of the product in the market. Therefore, in-depth research on product design is crucial for product promotion. Summary of the invention

[0003] The purpose of the present disclosure is to provide a feature extraction method, a three-dimensional model generation method and an electronic device.

[0004] In order to achieve the above objective, according to a first aspect of the present disclosure, a feature extraction method is provided, the method comprising:

[0005] Displaying three-dimensional point cloud data of a target object through a preset interface, wherein the three-dimensional point cloud data is composed of a plurality of data points;

[0006] Inserting at least one mutually parallel intercepting plane into the space where the three-dimensional point cloud data is located;

[0007] Determine a characteristic contour curve intercepted by each interception plane in the three-dimensional point cloud data;

[0008] A curvature analysis is performed on the characteristic contour curve, and a target feature point corresponding to the target object is extracted from the characteristic contour curve according to a result of the curvature analysis.

[0009] Optionally, inserting at least one mutually parallel intercepting plane into the space where the three-dimensional point cloud data is located comprises:

[0010] Determine at least one insertion point among a plurality of data points included in the three-dimensional point cloud data;

[0011] At each of the insertion points, a cutting plane parallel to the preset plane is inserted.

[0012] Optionally, the insertion point is determined by:

[0013] According to a plurality of candidate data points located at the edge of the three-dimensional point cloud data, determining a candidate data point that meets a preset condition as the insertion point;

[0014] The preset conditions include at least one of the following: the alternative data point is the endpoint of the boundary curve where the alternative data point is located, the alternative data point is the extreme point of curvature of the boundary curve where the alternative data point is located, the alternative data point is the inflection point of the boundary curve where the alternative data point is located, the alternative data point is the cusp of the boundary curve where the alternative data point is located, and the alternative data point is the crease point of the boundary curve where the alternative data point is located.

[0015] Optionally, the determining of the characteristic contour curves intercepted by each interception plane in the three-dimensional point cloud data comprises:

[0016] For each of the intercepting planes, a set of data points intercepted by the intercepting plane in the three-dimensional point cloud data is obtained, and curve fitting is performed based on the set of data points to obtain a characteristic contour curve corresponding to the intercepting plane.

[0017] Optionally, performing curvature analysis on the characteristic contour curve and extracting target feature points corresponding to the target object from the characteristic contour curve according to a result of the curvature analysis includes:

[0018] Acquire the characteristic contour curve by three-dimensional modeling software;

[0019] For each of the characteristic contour curves, the three-dimensional modeling software is used to perform a curvature analysis on the characteristic contour curve to obtain candidate characteristic points having a maximum curvature value on the characteristic contour curve;

[0020] A target feature point corresponding to the target object is extracted from the candidate feature points.

[0021] Optionally, after the step of determining the characteristic contour curve intercepted by each interception plane in the three-dimensional point cloud data, the method further comprises:

[0022] storing the characteristic contour curve as a three-dimensional model file corresponding to the target object;

[0023] The step of obtaining the characteristic contour curve by using three-dimensional modeling software includes:

[0024] A three-dimensional model file corresponding to the target object is imported into the three-dimensional modeling software to obtain the characteristic contour curve.

[0025] According to a second aspect of the present disclosure, a method for generating a three-dimensional model is provided, the method comprising:

[0026] Acquire target feature points corresponding to the target object through three-dimensional modeling software, wherein the target feature points are obtained through the feature extraction method described in the first aspect of the present disclosure;

[0027] A three-dimensional model corresponding to the target object is generated according to the target feature points.

[0028] Optionally, generating a three-dimensional model corresponding to the target object according to the target feature points includes:

[0029] Creating the target feature points in the design interface of the three-dimensional modeling software according to the acquired target feature points of the target object;

[0030] Generating a characteristic contour curve and a boundary curve of the target object according to the target characteristic points;

[0031] Generate an original free-form surface of the model according to the characteristic contour curve and the boundary curve;

[0032] Grooves are added, stretched and drafted to the generated original free-form surface to generate a three-dimensional model corresponding to the target object.

[0033] Optionally, before the step of generating a characteristic contour curve and a boundary curve of the target object according to the target feature points, the method further comprises:

[0034] receiving an editing instruction for the target feature point, wherein the editing instruction is used to modify the coordinates of the target feature point, add a target feature point, or delete a target feature point;

[0035] According to the editing instruction, the target feature point is updated.

[0036] According to a third aspect of the present disclosure, a feature extraction device is provided, the device comprising:

[0037] A display module, used to display the three-dimensional point cloud data of the target object through a preset interface, wherein the three-dimensional point cloud data is composed of a plurality of data points;

[0038] An insertion module, used for inserting at least one mutually parallel intercepting plane into the space where the three-dimensional point cloud data is located;

[0039] A first determination module is used to determine a characteristic contour curve intercepted by each interception plane in the three-dimensional point cloud data;

[0040] The extraction module is used to perform curvature analysis on the characteristic contour curve, and extract target feature points corresponding to the target object from the characteristic contour curve according to the result of the curvature analysis.

[0041] Optionally, the insertion module comprises:

[0042] A first determination submodule, configured to determine at least one insertion point among a plurality of data points included in the three-dimensional point cloud data;

[0043] The inserting submodule is used to insert a cutting plane parallel to the preset plane at each of the insertion points.

[0044] Optionally, the insertion point is determined by the following modules:

[0045] A second determination module is used to determine a candidate data point that meets a preset condition as the insertion point according to a plurality of candidate data points located at the edge in the three-dimensional point cloud data;

[0046] The preset conditions include at least one of the following: the alternative data point is the endpoint of the boundary curve where the alternative data point is located, the alternative data point is the extreme point of curvature of the boundary curve where the alternative data point is located, the alternative data point is the inflection point of the boundary curve where the alternative data point is located, the alternative data point is the cusp of the boundary curve where the alternative data point is located, and the alternative data point is the crease point of the boundary curve where the alternative data point is located.

[0047] Optionally, the first determination module is used to obtain, for each of the interception planes, a set of data points intercepted by the interception plane in the three-dimensional point cloud data, and perform curve fitting based on the set of data points to obtain a characteristic contour curve corresponding to the interception plane.

[0048] Optionally, the extraction module includes:

[0049] An acquisition submodule, used for acquiring the characteristic contour curve through three-dimensional modeling software;

[0050] An analysis submodule, for performing curvature analysis on each of the characteristic contour curves using the three-dimensional modeling software to obtain candidate characteristic points with maximum curvature values ​​on the characteristic contour curves;

[0051] The extraction submodule is used to extract target feature points corresponding to the target object from the candidate feature points.

[0052] Optionally, the device further comprises:

[0053] A storage module, configured to store the characteristic contour curves respectively intercepted by each interception plane in the three-dimensional point cloud data as a three-dimensional model file corresponding to the target object after the first determination module determines the characteristic contour curves respectively intercepted by each interception plane in the three-dimensional point cloud data;

[0054] The acquisition submodule is used to import the three-dimensional model file corresponding to the target object into the three-dimensional modeling software to obtain the characteristic contour curve.

[0055] According to a fourth aspect of the present disclosure, a three-dimensional model generating device is provided, the device comprising:

[0056] An acquisition module, used to acquire target feature points corresponding to the target object through three-dimensional modeling software, wherein the target feature points are obtained through the feature extraction method provided in any embodiment of the present disclosure;

[0057] A generation module is used to generate a three-dimensional model corresponding to the target object according to the target feature points.

[0058] Optionally, the generating module includes:

[0059] A creation submodule, used to create the target feature points in the design interface of the three-dimensional modeling software according to the acquired target feature points of the target object;

[0060] A first generating submodule, used for generating a characteristic contour curve and a boundary curve of the target object according to the target characteristic points;

[0061] A second generating submodule is used to generate an original free-form surface of the model according to the characteristic contour curve and the boundary curve;

[0062] The third generation submodule is used to add grooves, stretch and draft the generated original free-form surface to generate a three-dimensional model corresponding to the target object.

[0063] Optionally, the device further comprises:

[0064] A receiving module, used for receiving an editing instruction for the target feature point before the first generating submodule generates the feature contour curve and the boundary curve of the target object according to the target feature point, wherein the editing instruction is used for modifying the coordinates of the target feature point, adding a target feature point or deleting a target feature point;

[0065] An updating module is used to update the target feature point according to the editing instruction.

[0066] According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the first aspect or the second aspect of the present disclosure are implemented.

[0067] According to a sixth aspect of the present disclosure, there is provided an electronic device, including:

[0068] a memory having a computer program stored thereon;

[0069] A processor is used to execute the computer program in the memory to implement the steps of the method described in the first aspect or the second aspect of the present disclosure.

[0070] Through the above technical solution, multiple interception planes are inserted into the space where the three-dimensional point cloud data of the target object is located, and the characteristic contour line intercepted by the interception plane is determined, and then the target characteristic points of the target object are extracted by performing curvature analysis on the intercepted characteristic contour curve. As a result, representative contour features that can reflect the original design intention of the target object can be intercepted from the three-dimensional point cloud data of the target object for subsequent feature point extraction, without the need to process all the three-dimensional point cloud data, reducing the amount of data processing, thereby effectively saving the resources occupied by data processing, and further extracting characteristic points from the characteristic contour line through curvature analysis, so that representative characteristic points in the characteristic contour line can be extracted, and accurate extraction of characteristic points can be achieved. In this way, it is conducive to the subsequent accurate modeling of the target object based on the extracted target characteristic points.

[0071] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0073] Figure 1 is a flow chart of a feature extraction method provided according to an embodiment of the present disclosure;

[0074] Figure 2 is an exemplary schematic diagram of a portion that can be used as an insertion point in a curve in the present disclosure;

[0075] Figure 3 It is an exemplary schematic diagram of the preset interface display content after the cut plane is inserted in the present disclosure;

[0076] Figure 4 is a flowchart of a three-dimensional model generation method provided according to an embodiment of the present disclosure;

[0077] Figure 5 is an exemplary schematic diagram of the interface of the three-dimensional modeling software in the present disclosure;

[0078] Figure 6 is another exemplary schematic diagram of the interface of the three-dimensional modeling software in the present disclosure;

[0079] Figure 7 is a block diagram of a feature extraction device provided according to an embodiment of the present disclosure;

[0080] Figure 8 is a block diagram of a three-dimensional model generating device provided according to an embodiment of the present disclosure;

[0081] Fig. 9 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0082] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0083] As described in the background technology, the styling design of products plays a very important role in related fields. In related technologies, it is usually implemented by forward design or reverse development. The traditional forward design method requires designers to have high-level technical and practical experience, and to invest a lot of manpower and material costs for detailed design, analysis and testing. Based on this, the forward design method mainly relies on the experience and experiments of designers, and its accuracy and reliability may not meet the requirements of model-based design methods. The reverse development design method is mainly used in the fields of product development, imitation and repair. It can quickly obtain the styling data of the product. Based on this, reverse development design must achieve high-precision restoration of the product's geometric shape and features, and has extremely high requirements for the accuracy of data processing and model reconstruction. At the same time, it also faces greater uncertainty. Therefore, in product design, especially in the prototyping design process of complex product structures and shapes, forward design and reverse development design usually have the following problems:

[0084] The development cycle of forward design is long, requiring a lot of manpower and material costs, and its fit with the product is not high;

[0085] Reverse design requires processing the acquired three-dimensional data and spatial geometric shape data of the product. The amount of data processing is huge, the feature recognition is slow, and there is a lack of methods for rapid feature recognition and modeling.

[0086] In response to the above technical problems, the present disclosure provides a feature extraction method, a three-dimensional model generation method and an electronic device to improve the efficiency of reverse development and design during product design (especially complex product structure and shape design), which is beneficial to improving the accuracy of forward design.

[0087] Figure 1 is a flow chart of a feature extraction method provided according to an embodiment of the present disclosure. Figure 1 As shown, the feature extraction method provided by the present disclosure may include steps 11 to 14.

[0088] In step 11, the three-dimensional point cloud data of the target object is displayed through a preset interface.

[0089] The target object can be selected according to actual needs, for example, it can be the structure or shape of the product to be copied. The three-dimensional point cloud data of the target object can be composed of multiple data points.

[0090] Optionally, the target object may be scanned by a scanner to obtain a scanning result, which includes point cloud data of the target object, that is, information about points of the target object in three-dimensional space, and each point is usually represented by its three-dimensional coordinates (i.e., the position of the point in the three-dimensional coordinate system). After obtaining the scanning result, the scanning result may be stored to form a point cloud data file of the target object. For example, the scanning result may be saved in OBJ format (a file format for storing three-dimensional models).

[0091] The stored point cloud data file of the target object can be imported into scanning data processing software (eg, Geomagic Studio software) for further processing. The scanning data processing software can provide a preset interface for displaying and processing point cloud data.

[0092] After importing the point cloud data file of the target object into the scanning data processing software, the three-dimensional point cloud data of the target object can be displayed through the language and interface.

[0093] Optionally, after the point cloud data of the target object is imported into the point cloud data of the scanning data processing software, data optimization and data preprocessing may be performed thereon so that the preset interface displays the three-dimensional point cloud data after data optimization and data preprocessing.

[0094] The scanning data processing software may provide functions related to data optimization and data preprocessing, and the above data optimization and data preprocessing are achieved by triggering or calling the relevant functions of the scanning data processing software.

[0095] Among them, data optimization and data preprocessing may include but are not limited to the following methods:

[0096] Data filtering (using filtering algorithms to smooth the raw point cloud data, remove noise and outliers, and obtain cleaner and more accurate point cloud data);

[0097] Data alignment (if there are multiple scan data or need to be aligned with an existing model during the scanning process, the data alignment function can be used to align the point cloud data so that it corresponds correctly in space);

[0098] Data fitting and surface reconstruction (according to the shape characteristics of point cloud data, use fitting and reconstruction algorithms to generate a smooth surface model for subsequent feature extraction and modeling operations);

[0099] Data repair (the data repair function can be used to complete or repair any missing or damaged parts of the point cloud data to obtain complete model data);

[0100] Data sampling and resampling (point cloud data can be sampled or resampled as needed to reduce the data volume or adjust the data density for subsequent processing and analysis needs).

[0101] In step 12, at least one mutually parallel intercepting plane is inserted into the space where the three-dimensional point cloud data is located.

[0102] The purpose of inserting at least one mutually parallel intercepting plane into the space where the 3D point cloud data is located is to obtain the feature information of the contour of the target object formed by the 3D point cloud data as comprehensively as possible by inserting the intercepting plane. Therefore, the intercepting plane can be inserted at a suitable position according to actual needs.

[0103] Optionally, in order to make the feature information intercepted by the interception plane reflect the shape of the target object as comprehensively as possible and avoid data redundancy (i.e., multiple interceptions of parts with similar features), the interception plane can be inserted at a position where the change features are more obvious in the boundary curve (or model surface) of the target object constructed by the three-dimensional point cloud data.

[0104] Optionally, at least one mutually parallel intercepting plane can be inserted into the space where the three-dimensional point cloud data is located by calling a tool for inserting a plane in the scanning data processing software. For example, if the scanning processing software is Geomagic Studio software, the tool can be a section tool (which can be used to create a plane section in the point cloud data, and the position and direction of the plane are defined by selecting appropriate tool options and parameter settings) and a cutting tool (which can be used to perform cutting operations in the point cloud data, and the point cloud data is cut along a specified plane by selecting the cutting tool and specifying the position and direction of the cutting plane).

[0105] In a possible implementation, step 12 may include the following steps:

[0106] Determine at least one insertion point among a plurality of data points included in the three-dimensional point cloud data;

[0107] At each insertion point, a cutting plane parallel to the preset plane is inserted.

[0108] Optionally, the above insertion point can be determined by:

[0109] According to a plurality of candidate data points located at the edge of the three-dimensional point cloud data, candidate data points meeting preset conditions are determined as insertion points.

[0110] Among them, the preset conditions include at least one of the following: the alternative data point is the endpoint of the boundary curve where the alternative data point is located, the alternative data point is the extreme point of curvature of the boundary curve where the alternative data point is located, the alternative data point is the inflection point of the boundary curve where the alternative data point is located, the alternative data point is the cusp of the boundary curve where the alternative data point is located, and the alternative data point is the crease point of the boundary curve where the alternative data point is located.

[0111] Optionally, the endpoint may be a curve end point. Optionally, the curvature extreme point may be a curvature maximum point. Optionally, the inflection point may be a point where the boundary curve changes from a straight line to a curve. Optionally, the cusp may be a tangent vector discontinuity point. Optionally, the crease point may be a curvature discontinuity point.

[0112] For example, Figure 2 As shown, in Figure 2 In the boundary curve A shown, point A1 is the endpoint, point A2 is the point of maximum curvature, point A3 is the inflection point, point A4 is the cusp point, and point A5 is the crease point (located between the straight line B1 and the arc B2).

[0113] According to the setting of the preset conditions, if the candidate data point meets one of the preset conditions, the candidate data point can be determined as the insertion point. For example, if the preset conditions include that the candidate data point is the endpoint of the boundary curve where the candidate data point is located, and the candidate data point is the curvature extreme point of the boundary curve where the candidate data point is located, then if a candidate data point is the curve endpoint or the curvature extreme point, the candidate data point can be determined as the insertion point.

[0114] After the insertion points are determined, a cutting plane parallel to the preset plane can be inserted at each insertion point.

[0115] Optionally, when inserting a cutting plane, you can first directly insert a reference plane (equivalent to the cutting plane) at the center of the three-dimensional point cloud data, and then select an insertion point and insert a cutting plane parallel to the reference plane at the insertion point to achieve the insertion of the cutting plane.

[0116] For example, after inserting the interception plane, the display content of the preset interface can be as follows: Figure 3 As shown. Figure 3 In , C is the 3D point cloud data, C1 is the reference plane, points C2 and C3 are the inflection points of the boundary curve, and the interception planes are inserted at the positions of points C2 and C3. It can be seen that Figure 3 , an embodiment of inserting a cutting plane using an inflection point as an insertion point is shown.

[0117] Back to Figure 1 In step 13, the characteristic contour curve intercepted by each intercepting plane in the three-dimensional point cloud data is determined.

[0118] In a possible implementation, step 13 may include the following steps:

[0119] For each interception plane, a set of data points intercepted by the interception plane in the three-dimensional point cloud data is obtained, and curve fitting is performed based on the set of data points to obtain a characteristic contour curve corresponding to the interception plane.

[0120] The following is an explanation of the processing method for a clipping plane, and the processing method for each clipping plane can be based on this.

[0121] After inserting the interception plane, the overlapped part of the interception plane and the 3D point cloud data, that is, the part intercepted by the interception plane in the 3D point cloud data, is a data point set composed of multiple discrete data points. Based on the data point set, the curve where the data point set is located can be obtained by curve fitting, that is, the characteristic contour curve corresponding to the interception plane.

[0122] Optionally, the data point set can be globally optimized and the fitting quality detected by the scanning data processing software to obtain a high-precision, high-fitting characteristic contour curve. It can mainly include discrete data optimization, data preprocessing, curve segmentation and constraint solving. The characteristic contour curve finally determined can be represented by a parameterized equation, a spline curve, etc.

[0123] For example, the characteristic profile curve may be determined in the following manner:

[0124] (1) Use S i (i=1,…,n) represents the characteristic contour curve intercepted by the i-th interception plane, point Q ik represents the kth measured data point (k=1,…,m) in the i-th data segment, and the measured data point Q ik To the characteristic contour curve S i The distance is d(Q ik ,S i );

[0125] (2) The s-dimensional vector representing these n segments of the curve is X = {x1, x2, …, x s} indicates that it combines all the parameters of n-segment curves;

[0126] (3) These n curves satisfy the constraint set C j (X) = 0, j = 1, ..., l, the corresponding constrained optimization model can be expressed as:

[0127]

[0128] (4) The optimization model is first transformed into an unconstrained optimization problem using the Lagrange multiplier method, and then solved using the Levenberg-Manelt method in the nonlinear least squares algorithm to obtain the characteristic contour curve.

[0129] The above method of generating a characteristic profile curve by curve fitting is only an example, and other available curve fitting methods can be applied to the determination of the characteristic profile curve of the present disclosure, which will not be listed in detail here.

[0130] In step 14, a curvature analysis is performed on the characteristic contour curve, and target feature points corresponding to the target object are extracted from the characteristic contour curve according to the result of the curvature analysis.

[0131] For the determined characteristic contour curves, curvature analysis can be performed on each characteristic contour curve respectively to determine points with obvious characteristics in curvature performance as target characteristic points.

[0132] In a possible implementation, step 14 may include the following steps:

[0133] Acquire characteristic contour curves through 3D modeling software;

[0134] For each characteristic contour curve, a curvature analysis is performed on the characteristic contour curve using a three-dimensional modeling software to obtain candidate characteristic points with a maximum curvature value on the characteristic contour curve;

[0135] Target feature points corresponding to the target object are extracted from the candidate feature points.

[0136] Optionally, after determining the characteristic contour curves intercepted by each interception plane in the three-dimensional point cloud data in step 13, the characteristic contour curves may be stored as a three-dimensional model file corresponding to the target object.

[0137] Correspondingly, obtaining the characteristic contour curve through the three-dimensional modeling software can be achieved by importing a three-dimensional model file corresponding to the target object into the three-dimensional modeling software, thereby obtaining the characteristic contour curve.

[0138] By way of example, the three-dimensional modeling software may be CATIA software.

[0139] After obtaining the characteristic contour curves through the 3D modeling software, the curvature analysis can be performed on each characteristic contour curve.

[0140] The 3D modeling software provides a curvature analysis tool that can determine the curvature value of each point on a curve or surface. By comparing these curvature values, several points with the highest curvature can be determined, that is, points on the curve or surface that can represent significant changes or extreme curvature values.

[0141] Based on this, by using 3D modeling software to perform curvature analysis on the characteristic contour curve, the curvature maximum point on the characteristic contour curve can be obtained, and then such a point can be used as a candidate characteristic point of this characteristic contour curve.

[0142] After performing curvature analysis on the characteristic contour curves determined in step 13, candidate characteristic points corresponding to each characteristic contour curve can be obtained. Based on this, all or part of the determined candidate characteristic points can be used as target characteristic points corresponding to the target object.

[0143] In another possible implementation, for each characteristic contour curve, several points with front curvature values ​​in the characteristic contour curve may be determined as target characteristic points through curvature analysis.

[0144] After determining the target feature points, the 3D coordinates of these target feature points can be determined by the measurement tools of the 3D modeling software, and then these target feature points and their 3D coordinates are stored in the 3D modeling software. For example, they are stored in the library files of the 3D modeling software (such as CATIA library files). The library files of the 3D modeling software are used to store and organize various resources and data in the 3D modeling software. These library files contain the standard components, tools, materials, symbols, macro commands, etc. required by the 3D modeling software, and can be widely called and applied by the 3D modeling software.

[0145] In addition to being used for industrial product shape extraction (i.e., feature extraction), it can also be applied to any scenario that requires shape extraction, such as medical beauty scenarios, criminal investigation scenarios, or anti-riot scenarios. Based on this, by performing shape extraction on the target object, it is helpful to adjust the extracted shape to the desired shape in subsequent modeling, thereby achieving external profiling, adjustment, and shape modification. Especially in criminal investigation scenarios or anti-riot scenarios, it is helpful to reduce or avoid actual injuries to personnel.

[0146] Through the above technical solution, multiple interception planes are inserted into the space where the three-dimensional point cloud data of the target object is located, and the characteristic contour line intercepted by the interception plane is determined, and then the target characteristic points of the target object are extracted by performing curvature analysis on the intercepted characteristic contour curve. As a result, representative contour features that can reflect the original design intention of the target object can be intercepted from the three-dimensional point cloud data of the target object for subsequent feature point extraction, without the need to process all the three-dimensional point cloud data, reducing the amount of data processing, thereby effectively saving the resources occupied by data processing, and further extracting characteristic points from the characteristic contour line through curvature analysis, so that representative characteristic points in the characteristic contour line can be extracted, and accurate extraction of characteristic points can be achieved. In this way, it is conducive to the subsequent accurate modeling of the target object based on the extracted target characteristic points.

[0147] Figure 4 FIG. 1 is a flow chart of a method for generating a three-dimensional model according to an embodiment of the present disclosure. Figure 4 As shown, the three-dimensional model generating method provided by the present disclosure may include step 41 and step 42.

[0148] In step 41, target feature points corresponding to the target object are obtained through three-dimensional modeling software;

[0149] In step 42, a three-dimensional model corresponding to the target object is generated according to the target feature points.

[0150] Among them, the target feature points are obtained by the feature extraction method provided by any embodiment of the present disclosure.

[0151] Optionally, Visual Basic (VB) may be used to connect to the 3D modeling software to reference the library file of the 3D modeling software.

[0152] The following uses CATIA software as an example to explain the process of connecting VB to a library file. First, start the VB program, create a new "Standard EXE" project, and then open the reference dialog box in the top toolbar of the VB software (by triggering the References command), and use the GetObject and CreateObject methods to connect VB to CATIA. You can use the following program code:

[0153]

[0154] By referencing the library file of the 3D modeling software, the target feature points corresponding to the target object can be obtained from the library file, that is, the target feature points and their 3D coordinates extracted from the target object stored in the library file of the 3D modeling software as mentioned above.

[0155] In a possible implementation, step 41 may include the following steps:

[0156] According to the acquired target feature points of the target object, target feature points are created in the design interface of the 3D modeling software;

[0157] Generate a characteristic contour curve and a boundary curve of the target object according to the target characteristic points;

[0158] Generate the original free-form surface of the model according to the characteristic contour curve and boundary curve;

[0159] Grooves are added, extruded, and drafted to the generated original free-form surface to generate a three-dimensional model corresponding to the target object.

[0160] Optionally, after obtaining the target feature points, you can enter the part design interface of the 3D modeling software, create a document object, and create the target feature points in the mixed shape design mode. For example, you can add the target feature points by inputting point coordinates to achieve the creation of the target feature points. For example, this can be achieved by the following code:

[0161] Dim partDocument1 As PartDocument

[0162] Set partDocument1=CATIA.ActiveDocument

[0163] Dim part1 As Part

[0164] Set part1=partDocument1.Part

[0165] Dim hybridShapeFactory1 As HybridShapeFactory

[0166] Set hybridShapeFactory1=part1.HybridShapeFactory

[0167] Dim hybridShapePointCoord1 As HybridShapePointCoord

[0168] Set hybridShapePointCoord1=hybridShapeFactory1.AddNewPointCoord(iX,iY,iZ)

[0169] Among them, Documents is the created document object, AddNewPointCoord is used to add points, and (iX, iY, iZ) is the point coordinates.

[0170] Assign the following string to the three-dimensional coordinates of the feature points:

[0171] Sub Createpoint(iX As Integer,iY As Integer,iZ As Integer);

[0172] Then call the characters in the 3D coordinate text input box of the interactive interface:

[0173] Createpoint Val(txtX.Text),Val(txtY.Text),Val(txtZ.Text);

[0174] The target feature points are created by inputting the coordinates of the target feature points one by one.

[0175] Optionally, after the target feature points are created, the target feature points can also be edited according to actual needs. Based on this, before the step of generating the feature contour curve and boundary curve of the target object according to the target feature points, the method provided by the present disclosure can also include the following steps:

[0176] Receiving editing instructions for target feature points;

[0177] According to the editing instructions, the target feature points are updated.

[0178] The editing command is used to modify the coordinates of the target feature points, add target feature points or delete target feature points.

[0179] Based on this, users can trigger corresponding editing instructions according to actual needs by modifying the coordinates of target feature points, adding new points as target feature points, deleting created target feature points, and other operations, and then update the target feature points according to the editing instructions.

[0180] Therefore, secondary development of the product can be achieved directly based on the target feature points extracted from the target object, and the feature points can be adjusted and redesigned according to actual needs.

[0181] Based on the created (or updated) target feature points, the basic outline of the model consisting of points can be generated. At this time, the interface of the 3D modeling software can be as follows: Figure 5 shown.

[0182] Based on this, by connecting the target feature points in sequence, the characteristic contour curve and boundary curve of the target object can be generated. At this time, the interface of the 3D modeling software can be as follows Figure 6 shown.

[0183] For example, the target feature points can be connected in sequence through a spline curve (HybridShapeSpline), and the following code can be used:

[0184] Dim hybridShapeSpline1 As HybridShapeSpline

[0185] Set hybridShapeSpline1=hybridShapeFactory1.AddNewSpline()

[0186] Dim reference1 As Reference

[0187] Set reference1=part1.CreateReferenceFromObject(hybridShape1)

[0188] hybridShapeSpline1.AddPointWithConstraintExplicit reference1,Nothing,-1#,1,Nothing,0#

[0189] body1.InsertHybridShape hybridShapeSpline1

[0190] Afterwards, the original free-form surface of the model is generated according to the characteristic contour curve and boundary curve.

[0191] For example, the skinning method can be used to fill (HybridShapeFill) closed spline curves in sequence to form a continuous surface to generate the original free-form surface of the model. At this time, the editing command can be closed and the part can be updated (Update). The following code can be used:

[0192] Dim hybridShapeFill1 As HybridShapeFill

[0193] Set hybridShapeFill1=hybridShapeFactory1.AddNewFill()

[0194] Dim reference2As Reference

[0195] Set reference2=part1.CreateReferenceFromObject(hybridShapeSpline3)

[0196] part1.Update

[0197] Afterwards, grooves are added, stretched, and drafted to the generated original free-form surface to generate a three-dimensional model corresponding to the target object.

[0198] Optionally, after the original free-form surface of the model is generated, grooves can be added by forward design. A groove refers to a specific shape that is sunken or cut out on the surface, which can be used to achieve specific features or assembly requirements in the design requirements.

[0199] Optionally, after adding the groove, you can perform an extrusion operation. Extrusion is an operation that extends a surface or curve in a specific direction. By stretching, you can change the shape or size of the original surface.

[0200] Optionally, demolding can be achieved through the demolding command. The demolding command refers to the operation of removing the model from the mold according to design requirements. It is usually applied to the final model to ensure that the model can be successfully pulled out of the mold and maintain the integrity of the model.

[0201] In addition to being used for the generation of 3D models of industrial products, the above 3D model generation method can also be applied to any scenario that requires 3D model generation, such as medical beauty scenarios, criminal investigation scenarios, or anti-riot scenarios. By obtaining the feature points extracted for the target object, the feature points can be directly used for modeling, and the shape can be adjusted as needed by editing the feature points during modeling, which can easily achieve external profiling, adjustment, and shape modification. Especially in criminal investigation or anti-riot scenarios, it is helpful to reduce or avoid actual injuries to personnel.

[0202] Through the above technical solution, the target object can be directly secondary developed based on the target feature points extracted from the target object. The target feature points can be used as parameters to generate characteristic contour curves reflecting the cross-sectional characteristics, and then the surface can be reconstructed to achieve reverse modeling of parametric design. This not only improves the reconstruction efficiency of the three-dimensional model, but also helps to save costs and achieve innovative design.

[0203] Figure 7 is a block diagram of a feature extraction device provided according to an embodiment of the present disclosure. Figure 7 As shown, the device 70 may include:

[0204] A display module 71, used to display the three-dimensional point cloud data of the target object through a preset interface, wherein the three-dimensional point cloud data is composed of a plurality of data points;

[0205] An inserting module 72, configured to insert at least one mutually parallel intercepting plane into the space where the three-dimensional point cloud data is located;

[0206] A first determination module 73, used to determine a characteristic contour curve intercepted by each interception plane in the three-dimensional point cloud data;

[0207] The extraction module 74 is used to perform curvature analysis on the characteristic contour curve, and extract target feature points corresponding to the target object from the characteristic contour curve according to the result of the curvature analysis.

[0208] Optionally, the insertion module 72 includes:

[0209] A first determination submodule, configured to determine at least one insertion point among a plurality of data points included in the three-dimensional point cloud data;

[0210] The inserting submodule is used to insert a cutting plane parallel to the preset plane at each of the insertion points.

[0211] Optionally, the insertion point is determined by the following modules:

[0212] A second determination module is used to determine a candidate data point that meets a preset condition as the insertion point according to a plurality of candidate data points located at the edge in the three-dimensional point cloud data;

[0213] The preset conditions include at least one of the following: the alternative data point is the endpoint of the boundary curve where the alternative data point is located, the alternative data point is the extreme point of curvature of the boundary curve where the alternative data point is located, the alternative data point is the inflection point of the boundary curve where the alternative data point is located, the alternative data point is the cusp of the boundary curve where the alternative data point is located, and the alternative data point is the crease point of the boundary curve where the alternative data point is located.

[0214] Optionally, the first determination module 73 is used to obtain, for each of the interception planes, a set of data points intercepted by the interception plane in the three-dimensional point cloud data, and perform curve fitting based on the set of data points to obtain a characteristic contour curve corresponding to the interception plane.

[0215] Optionally, the extraction module 74 includes:

[0216] An acquisition submodule, used for acquiring the characteristic contour curve through three-dimensional modeling software;

[0217] An analysis submodule, for performing curvature analysis on each of the characteristic contour curves using the three-dimensional modeling software to obtain candidate characteristic points with maximum curvature values ​​on the characteristic contour curves;

[0218] The extraction submodule is used to extract target feature points corresponding to the target object from the candidate feature points.

[0219] Optionally, the device 70 further includes:

[0220] A storage module, configured to store the characteristic contour curves respectively intercepted by each interception plane in the three-dimensional point cloud data as a three-dimensional model file corresponding to the target object after the first determination module determines the characteristic contour curves respectively intercepted by each interception plane in the three-dimensional point cloud data;

[0221] The acquisition submodule is used to import the three-dimensional model file corresponding to the target object into the three-dimensional modeling software to obtain the characteristic contour curve.

[0222] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0223] Figure 8 is a block diagram of a three-dimensional model generation device provided according to an embodiment of the present disclosure. Figure 8 As shown, the device 80 may include:

[0224] An acquisition module 81 is used to acquire target feature points corresponding to the target object through three-dimensional modeling software, wherein the target feature points are obtained through the feature extraction method provided in any embodiment of the present disclosure;

[0225] The generating module 82 is used to generate a three-dimensional model corresponding to the target object according to the target feature points.

[0226] Optionally, the generating module 81 includes:

[0227] A creation submodule, used to create the target feature points in the design interface of the three-dimensional modeling software according to the acquired target feature points of the target object;

[0228] A first generating submodule, used for generating a characteristic contour curve and a boundary curve of the target object according to the target characteristic points;

[0229] A second generating submodule is used to generate an original free-form surface of the model according to the characteristic contour curve and the boundary curve;

[0230] The third generation submodule is used to add grooves, stretch and draft the generated original free-form surface to generate a three-dimensional model corresponding to the target object.

[0231] Optionally, the device 80 further includes:

[0232] A receiving module, used for receiving an editing instruction for the target feature point before the first generating submodule generates the feature contour curve and the boundary curve of the target object according to the target feature point, wherein the editing instruction is used for modifying the coordinates of the target feature point, adding a target feature point or deleting a target feature point;

[0233] An updating module is used to update the target feature point according to the editing instruction.

[0234] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0235] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the feature extraction method or the three-dimensional model generation method provided in any embodiment of the present disclosure.

[0236] Fig. 9 FIG. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment. Fig. 9 As shown, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.

[0237] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned feature extraction method or three-dimensional model generation method. The memory 702 is used to store various types of data to support the operation of the electronic device 700, and these data may include, for example, instructions for any application or method used to operate on the electronic device 700, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in the memory 702 or sent through the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module.

[0238] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned feature extraction method or three-dimensional model generation method.

[0239] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned feature extraction method or three-dimensional model generation method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions can be executed by the processor 701 of the electronic device 700 to complete the above-mentioned feature extraction method or three-dimensional model generation method.

[0240] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0241] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0242] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A feature extraction method, characterized in that: The method comprises: Displaying three-dimensional point cloud data of a target object through a preset interface, wherein the three-dimensional point cloud data is composed of a plurality of data points; Inserting at least one mutually parallel intercepting plane into the space where the three-dimensional point cloud data is located; Determine a characteristic contour curve intercepted by each interception plane in the three-dimensional point cloud data; A curvature analysis is performed on the characteristic contour curve, and a target feature point corresponding to the target object is extracted from the characteristic contour curve according to a result of the curvature analysis.

2. The method according to claim 1, characterized in that: The inserting at least one mutually parallel intercepting plane into the space where the three-dimensional point cloud data is located comprises: Determine at least one insertion point among a plurality of data points included in the three-dimensional point cloud data; At each of the insertion points, a cutting plane parallel to the preset plane is inserted.

3. The method according to claim 2, characterized in that The insertion point is determined by: According to a plurality of candidate data points located at the edge of the three-dimensional point cloud data, determining a candidate data point that meets a preset condition as the insertion point; The preset conditions include at least one of the following: the alternative data point is the endpoint of the boundary curve where the alternative data point is located, the alternative data point is the extreme point of curvature of the boundary curve where the alternative data point is located, the alternative data point is the inflection point of the boundary curve where the alternative data point is located, the alternative data point is the cusp of the boundary curve where the alternative data point is located, and the alternative data point is the crease point of the boundary curve where the alternative data point is located.

4. The method according to claim 1, characterized in that: The step of determining the characteristic contour curves intercepted by each interception plane in the three-dimensional point cloud data comprises: For each of the intercepting planes, a set of data points intercepted by the intercepting plane in the three-dimensional point cloud data is obtained, and curve fitting is performed based on the set of data points to obtain a characteristic contour curve corresponding to the intercepting plane.

5. The method according to claim 1, characterized in that: The step of performing curvature analysis on the characteristic contour curve and extracting target feature points corresponding to the target object from the characteristic contour curve according to the result of the curvature analysis includes: Acquire the characteristic contour curve by three-dimensional modeling software; For each of the characteristic contour curves, the three-dimensional modeling software is used to perform a curvature analysis on the characteristic contour curve to obtain candidate characteristic points having a maximum curvature value on the characteristic contour curve; A target feature point corresponding to the target object is extracted from the candidate feature points.

6. The method according to claim 5, characterized in that After the step of determining the characteristic contour curves intercepted by each interception plane in the three-dimensional point cloud data, the method further includes: storing the characteristic contour curve as a three-dimensional model file corresponding to the target object; The step of obtaining the characteristic contour curve by using three-dimensional modeling software includes: A three-dimensional model file corresponding to the target object is imported into the three-dimensional modeling software to obtain the characteristic contour curve.

7. A three-dimensional model generation method, characterized in that: The method comprises: Acquire target feature points corresponding to the target object by three-dimensional modeling software, wherein the target feature points are obtained by the method described in any one of claims 1 to 6; A three-dimensional model corresponding to the target object is generated according to the target feature points.

8. The method according to claim 7, characterized in that The step of generating a three-dimensional model corresponding to the target object according to the target feature points includes: Creating the target feature points in the design interface of the three-dimensional modeling software according to the acquired target feature points of the target object; Generating a characteristic contour curve and a boundary curve of the target object according to the target characteristic points; Generate an original free-form surface of the model according to the characteristic contour curve and the boundary curve; Grooves are added, stretched and drafted to the generated original free-form surface to generate a three-dimensional model corresponding to the target object.

9. The method according to claim 8, characterized in that Before the step of generating the characteristic contour curve and the boundary curve of the target object according to the target feature points, the method further comprises: receiving an editing instruction for the target feature point, wherein the editing instruction is used to modify the coordinates of the target feature point, add a target feature point, or delete a target feature point; According to the editing instruction, the target feature point is updated.

10. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 9.