Method, device, equipment and medium for generating area of three-dimensional model
By performing multi-view projection and classification recognition on the three-dimensional model, combined with geometric processing, it automatically identifies and determines areas of interest such as teeth, tooth preparations, implant rods, etc., solving the problems of slow and inconsistent manual selection in the existing technology, and improving recognition accuracy and efficiency.
Patent Information
- Application Number
- CN202410538639.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-04-30
AI Technical Summary
During the digital design process of dental products, users need to manually select areas of interest such as teeth, tooth preparations, implant rods, and alveolar ridges, resulting in slow speed, inconsistency, and poor boundary processing.
By obtaining a three-dimensional model, performing multi-view projection and using a preset classification recognition model to identify areas of interest and background areas, combined with geometric processing to determine the target area of interest, the accuracy and speed of automatic recognition are improved.
It realizes the rapid and accurate identification and determination of areas of interest, avoids the problem of multiple or under-selection in manual interaction, and improves the processing accuracy of edge details.
Smart Images

Figure CN118135117B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of oral technology, and in particular to a method, device, equipment and medium for generating a region of a three-dimensional model. Background Art
[0002] In the process of digital design of dental products, it is necessary to retain the areas of interest that doctors are most concerned about, such as teeth, prepared teeth, implant rods and alveolar ridges, and delete other unnecessary areas. At present, users interact multiple times in different perspectives through manual methods such as lasso, cutting plane, point selection and brushing to select the areas to be retained or deleted, and perform dental digital treatment on the retained areas of interest. This manual interaction method has many problems, such as: slow speed, different standards for different operators, users may have the problem of over-selection or under-selection, and poor processing results in some boundary areas. Therefore, how to quickly and accurately select the user's area of interest has become an urgent problem to be solved. Summary of the invention
[0003] In order to solve the above technical problems, the present disclosure provides a method, device, equipment and medium for generating a region of a three-dimensional model.
[0004] According to one aspect of the present disclosure, a method for generating a region of a three-dimensional model is provided, comprising:
[0005] Obtaining a three-dimensional model;
[0006] A target region of interest is automatically identified and determined on the three-dimensional model.
[0007] According to another aspect of the present disclosure, there is provided a region generation device for a three-dimensional model, comprising:
[0008] A model acquisition module, used for acquiring a three-dimensional model;
[0009] The region determination module is used to automatically identify and determine the target region of interest on the three-dimensional model.
[0010] According to another aspect of the present disclosure, an electronic device is provided, the electronic device comprising:
[0011] processor;
[0012] a memory for storing instructions executable by the processor;
[0013] The processor is used to read the executable instructions from the memory and execute the instructions to implement the above method.
[0014] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the above method.
[0015] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0016] First, a three-dimensional model is obtained, and then the target region of interest is automatically identified on the three-dimensional model. Compared with the previous method where users manually select the area to be retained by brushing, lassoing or cutting plane, the method of this embodiment can automatically identify and determine the target region of interest, thereby increasing the speed of determining the target region of interest. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 A flowchart of a method for generating a region of a three-dimensional model according to an embodiment of the present disclosure;
[0020] Figure 2 A schematic diagram of a three-dimensional model according to an embodiment of the present disclosure;
[0021] Figure 3 A schematic diagram of a projection view according to an embodiment of the present disclosure;
[0022] Figure 4 A schematic diagram of a target region of interest according to an embodiment of the present disclosure;
[0023] Figure 5 A schematic diagram of the second region of interest according to an embodiment of the present disclosure;
[0024] Figure 6 A schematic diagram of the target dental arch area according to an embodiment of the present disclosure;
[0025] Figure 7 A schematic diagram of a shell model according to an embodiment of the present disclosure;
[0026] Figure 8 A schematic diagram of a back cover model according to an embodiment of the present disclosure;
[0027] Fig. 9 A schematic diagram of a dental product model according to an embodiment of the present disclosure;
[0028] Fig.10A structural block diagram of a region generation device for a three-dimensional model according to an embodiment of the present disclosure;
[0029] Fig.11 It is a schematic diagram of the structure of the electronic device described in the embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0031] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0032] Figure 1 This is a flowchart of a method for generating a region of a three-dimensional model provided by an embodiment of the present disclosure. The method can be applied to the identification of regions of interest such as teeth, implant rods, prepared teeth, and alveolar ridges in the mouth, that is, the embodiment of the present disclosure can provide a method for generating a region of a three-dimensional model. The method can be executed by a three-dimensional model region generating device configured in a terminal, and the device can be implemented in software and / or hardware. Figure 1 As shown, the region generation method of the three-dimensional model may include the following steps.
[0033] S102, obtaining a three-dimensional model. Figure 2 As shown, the three-dimensional model can be a three-dimensional edentulous jaw mesh model.
[0034] S104, automatically identifying and determining a target region of interest on the three-dimensional model.
[0035] This embodiment may include: first, identifying and determining candidate regions of interest on the three-dimensional model based on the recognition pattern. A specific implementation method is: projecting the three-dimensional model from multiple perspectives to obtain multiple projection views; identifying the first region of interest and the background region on each projection view through a preset classification recognition model; projecting the first region of interest and the background region on each projection view back to the three-dimensional model to obtain candidate regions of interest on the three-dimensional model.
[0036] Secondly, the candidate ROIs are geometrically processed to obtain the target ROI.
[0037] According to the above embodiment, a method for generating a region of a three-dimensional model is provided as follows, referring to steps 1 to 4 below.
[0038] Step 1: Obtain a 3D model and project the 3D model from multiple perspectives to obtain multiple projection views. Figure 2 As shown, the three-dimensional model can be a three-dimensional edentulous jaw mesh model. In one example, for the three-dimensional model, multiple viewing angles can be determined along the horizontal and / or vertical axes and at preset angle intervals; the three-dimensional model is projected from multiple viewing angles according to the above viewing angles to obtain a two-dimensional projection image at each viewing angle, and the multiple projection images can be referred to Figure 3 Example.
[0039] Step 2: Identify the first region of interest and the background region on each projection view by using a preset classification recognition model. The first region of interest is, for example, the alveolar ridge region, and the alveolar ridge region includes: teeth, prepared teeth, implant rods, and surrounding gums.
[0040] The above embodiments convert the three-dimensional model into a two-dimensional projection image by projection, so that the classification recognition model can be used to identify the region of interest of the projection image, reducing the difficulty of recognition. For any projection view, the embodiment of identifying the first region of interest and the background region on the projection view by the classification recognition model can be referred to as follows.
[0041] The corresponding first category and the first probability value of the first category of each pixel on the projection view are identified through a preset classification recognition model; wherein the first category includes: points of interest and background points. Specifically, the first category of a single pixel on the projection view is identified through the classification recognition model, and the first category is identified as two categories, points of interest and background points, and each category corresponds to its own first probability value. In other words, the classification recognition model outputs the first probability value of each pixel on the projection view being a point of interest and the first probability value of a background point. For example, if the first probability value of pixel i being a point of interest is 0.8, and the first probability value of being a background point is 0.2; in this case, it can be determined that the first category of pixel i is a point of interest corresponding to a higher first probability value.
[0042] An area consisting of a plurality of pixels of the first category being interest points is determined as a first area of interest; and an area consisting of a plurality of pixels of the first category being background points is determined as a background area.
[0043] In practical applications, different marks such as colors and curves may be used to distinguish and mark the first region of interest and the background region on the projection view, so that the user can view the image more intuitively.
[0044] It can be understood that the classification recognition model in this embodiment is a pre-trained model, and its training process can be referred to as shown below.
[0045] The categories of each triangular facet of the sample model are marked one by one; the sample model is projected from multiple perspectives to obtain multiple sample images; the correspondence between each triangular facet in the sample model and each pixel in the sample image is determined based on the projection correspondence between the sample model and the sample image; the categories of the triangular facet marks are assigned to the pixels based on the correspondence, thereby obtaining a sample image marked with points of interest and background points; the classification recognition model to be trained is trained using the sample images marked with points of interest and background points, thereby obtaining a classification recognition model that can be directly used for category recognition of the projected image.
[0046] Compared with directly labeling the sample image with a category, the present embodiment labels the triangular facets in the sample model with a category, and then labels the pixels in the sample image with a category through steps such as projection and assignment. This method can not only improve the accuracy of the sample image category labeling, and improve the recognition accuracy of the trained classification and recognition model, but also enhance the certainty of the mapping between the two-dimensional image (i.e., the projection view) and the three-dimensional model, so that the classification and recognition model indirectly improves the accuracy of determining the target area of interest on the three-dimensional model on the basis of improving the accuracy of image recognition.
[0047] Step 3, projecting the first region of interest and the background region on each projection view back to the three-dimensional model to obtain a candidate region of interest on the three-dimensional model; like the first region of interest, the candidate region of interest can also be the alveolar ridge region, and the alveolar ridge region includes: teeth, prepared teeth, implant rods and other regions.
[0048] In this embodiment, for each projection view, the first category of the pixel and its first probability value are projected onto the triangular facet corresponding to the pixel in the three-dimensional model to obtain the target region of interest on the three-dimensional model. A specific implementation method can refer to the following steps (1) to (3).
[0049] (1) Determine, based on the coordinates of the pixels in each projection view, a triangular facet corresponding to each pixel on the three-dimensional model; wherein one triangular facet corresponds to a pixel in at least one projection view.
[0050] Take any one of the projection views as an example. According to the coordinates of each pixel on the projection view and the mapping relationship between the projection view and the three-dimensional model, the triangular face corresponding to each pixel on the three-dimensional model is found. It can be understood that during the mapping process, the same triangular face may be mapped to multiple projection views with different viewing angles, so the same triangular face corresponds to multiple different pixels on at least one projection view.
[0051] (2) Determine a second category of the current triangle patch according to the first category of the pixel corresponding to the current triangle patch and its first probability value; wherein the current triangle patch is any one of the multiple triangle patches.
[0052] In one embodiment, when the current triangle corresponds to only one pixel, the first category and the first probability value of the corresponding pixel are directly assigned to the current triangle, and the second category of the current triangle is the same as the first category of the corresponding pixel.
[0053] In another embodiment, when the current triangle corresponds to pixels in multiple projection views, the pixels in each projection view can be used as candidate pixels; the first probability values of the first category corresponding to each candidate pixel are accumulated to obtain a second probability value of the category of interest point and a third probability value of the category of background point; the category corresponding to the larger of the second probability value and the third probability value is determined as the second category of the current triangle.
[0054] For example, when the current triangular patch is observed from three perspectives, the current patch will correspond to three candidate pixels in the three projection views under the three perspectives. When classifying the pixels in the projection view, the pixel categories are divided into two categories: interest points and background points. The first probability values of the two first categories can be expressed as [a i , b i ]. Among them, a i represents the first probability value of the first category of pixel i being a point of interest, b i Indicates the first probability value that the first category of pixel i is a background point. Based on this, the first probability values of the three candidate pixels corresponding to the current triangle patch are, for example, [0.2, 0.8], [0.1, 0.9], [0.5, 0.5], respectively.
[0055] The first probability values of the first category corresponding to each candidate pixel are accumulated to obtain the second probability value of the category of interest point: 0.2+0.1+0.5=0.8, and the third probability value of the category of background point is obtained: 0.8+0.9+0.5=2.2; then, the category of background point corresponding to the first probability value 2.2 with a larger numerical value is determined as the second category of the current triangle patch as background.
[0056] In this embodiment, for the case where a single triangle corresponds to multiple pixels, the second category of the triangle is comprehensively determined by fusing probability values of different categories of the multiple pixels, thereby improving the accuracy of determining the category of the triangle.
[0057] (3) An area consisting of a plurality of interconnected triangular facets of the second category as points of interest is determined as a candidate area of interest.
[0058] At this point, this embodiment projects the first region of interest and the background area on the projection view back to the three-dimensional model, and in this process comprehensively determines the second category of the triangular face by fusing the probability values of multiple pixels belonging to the point of interest or the background point. This makes the second category determined for the triangular face more accurate, and correspondingly improves the accuracy of the candidate region of interest.
[0059] In some embodiments, the candidate regions of interest may be determined based on the triangular patches whose second category is the points of interest, and the background region may be determined based on the triangular patches whose second category is the background points. Alternatively, after the candidate regions of interest are determined, all other regions of the three-dimensional model except the candidate regions of interest are determined as background regions. Alternatively, considering that the background region is not of concern in the digital design process of dental products, in order to reduce the workload and improve the work efficiency, the present embodiment may determine the candidate regions of interest based only on the triangular patches whose second category is the points of interest, without determining the background region based on the triangular patches whose second category is the background points.
[0060] Step 4: geometrically process the candidate ROI to obtain the target ROI.
[0061] This embodiment may include: removing noise and small blocks of non-connected areas in the candidate region of interest according to preset filtering conditions to obtain a target region of interest; wherein the filtering conditions may include, for example, at least one of the following: the area of the candidate region of interest is less than a second area threshold, the volume of the bounding box corresponding to the candidate region of interest is less than a second volume threshold, and the number of triangles in the candidate region of interest is less than a second number threshold.
[0062] According to the above filtering conditions, the candidate region of interest is geometrically processed to remove noise and small blocks of non-connected areas. Small blocks of non-connected areas can be understood as isolated island areas and triangular facets separated from the alveolar ridge area, thereby obtaining a target region of interest with more accurate edge details. The target region of interest in this embodiment can be referred to Figure 4 The figure shows a part of the three-dimensional area in the three-dimensional model.
[0063] Compared with some deep learning solutions based on point clouds and grids, the above embodiment of determining the target region of interest in a three-dimensional model is based on pixel-by-pixel recognition and mapping, and combined with geometric processing methods, which better handles edge details and improves the edge accuracy of the target region of interest.
[0064] According to the above embodiment, the three-dimensional model is first projected into multiple two-dimensional projection views, and then the first region of interest and the background region on the projection view are identified by the classification recognition model; this method uses the classification recognition model to identify the two-dimensional projection view, and can quickly and accurately identify the first region of interest such as teeth, prepared teeth, implant rods, alveolar ridges and the surrounding gums on the projection view. On this basis, the first region of interest and the background region on each projection view are projected back to the three-dimensional model. This process is through pixel-level projection, and the probability of the interest point and the background point are integrated to comprehensively determine the candidate region of interest, which improves the accuracy of the candidate region of interest and can well avoid missing or excessive determination of the candidate region of interest. After that, the candidate region of interest is geometrically processed to obtain the target region of interest on the three-dimensional model. The geometric processing can better process the edge details and improve the edge accuracy of the target region of interest. Therefore, compared with the previous user's manual brush, lasso or cutting plane to select the area to be retained, the method of this embodiment can more accurately select the user's target region of interest on the three-dimensional model.
[0065] According to the above embodiment, another method for generating a region of a three-dimensional model may be provided. The method includes the following steps.
[0066] Obtaining a three-dimensional model;
[0067] Project the three-dimensional model from multiple perspectives to obtain multiple projection views;
[0068] Identify the first region of interest and the background region on each projection view by using a preset classification recognition model;
[0069] Projecting the first region of interest and the background region on each projection view back to the three-dimensional model to obtain a candidate region of interest on the three-dimensional model;
[0070] Perform geometric processing on the candidate regions of interest to obtain the target regions of interest;
[0071] A dental arch line is fitted on the three-dimensional model, and based on the dental arch line, the target region of interest that meets the preset connectivity conditions is connected as a target dental arch region; wherein the connectivity conditions include: the area of the region is greater than a preset first area threshold, the volume of the bounding box is greater than a preset first volume threshold, and / or the number of triangle facets in the region is greater than a preset first number threshold.
[0072] In this embodiment, the target region of interest may be several isolated connected domains. Based on this, the dental arch line can be fitted to include the target region of interest that obviously belongs to the dental arch line, thereby obtaining a target dental arch area that can include the entire alveolar ridge area.
[0073] The dental arch line can be fitted using existing methods, such as: extracting data based on the three-dimensional model to obtain key point cloud data; performing morphological fitting based on the key point cloud data to obtain the dental arch line.
[0074] The implementation process of connecting the target regions of interest that meet the preset connectivity conditions as the target dental arch regions based on the dental arch line may refer to the following embodiments.
[0075] A second region of interest that meets the preset connectivity condition is selected from the target region of interest. Exemplarily, a target region of interest whose area is greater than a preset first area threshold, whose bounding box volume corresponding to the region is greater than a preset first volume threshold, and / or whose number of triangles in the region is greater than a preset first number threshold is selected as the second region of interest. The second region of interest is, for example, Figure 5 The areas of the teeth are marked in dark colors.
[0076] Then, the second region of interest is connected to the initial dental arch region through the dental arch line. In specific implementation, the second region of interest is connected to the candidate dental arch region through the dental arch line; the boundary features of the candidate dental arch region are identified; the boundary of the candidate dental arch region is expanded according to the boundary features to obtain the initial dental arch region. Boundary expansion according to the boundary features can make the expanded boundary smoother and more natural.
[0077] exist Figure 5 In the figure, the initial dental arch area and the second region of interest are marked with the same color, and the initial dental arch area surrounds each second region of interest. When the second region of interest is discontinuous due to the lack of teeth, an initial dental arch area also corresponds to a single second region of interest. The initial dental arch area expands part of the space outward from the boundary of the second region of interest.
[0078] Next, the initial dental arch area is constructed according to a preset area construction method to obtain a target dental arch area; wherein the area construction method includes: a construction method based on a boundary line, a construction method based on a boundary line control point, or a construction method based on a minimum cutting plane.
[0079] To facilitate understanding, the following example describes how to construct a region.
[0080] In one embodiment, the region construction method is a construction method based on the lowest cutting plane; accordingly, the initial dental arch region is constructed according to the preset region construction method, and obtaining the target dental arch region may include: traversing all triangular facets in the initial dental arch region to determine the lowest cutting plane containing all triangular facets; removing the area of the three-dimensional model below the lowest cutting plane to obtain the target dental arch region.
[0081] Specifically, in order to facilitate user viewing, the initial dental arch area can be selected in the 3D model and the triangular facets in the initial dental arch area can be marked and displayed. Then the triangular facets are traversed to find a minimum cutting plane that can contain all the marked triangular facets; the area below the minimum cutting plane is an unnecessary area, so the area of the 3D model below the minimum cutting plane is removed, and the remaining area is used as the target dental arch area.
[0082] In one embodiment, the region construction method is a construction method based on boundary line control points; accordingly, the initial dental arch region is constructed according to the preset region construction method, and obtaining the target dental arch region may include: determining the boundary of the initial dental arch region in the three-dimensional model; performing spline fitting on the boundary of the initial dental arch region and calculating the control points of the boundary spline after fitting; adjusting the boundary spline according to the control operation of the control points to obtain the target dental arch region.
[0083] Specifically, the initial dental arch area is first selected in the three-dimensional model and the triangular facets in the initial dental arch area are marked and displayed. The selected initial dental arch area and other unselected areas can be clearly distinguished by marking and displaying, so that the boundary between the initial dental arch area and other unselected areas can be determined in the three-dimensional model. The boundary is spline fitted and the control points of the fitted boundary spline are calculated; the user can perform control operations such as dragging on the control points, thereby adjusting the boundary spline according to the control operations on the control points to obtain a more accurate target dental arch area.
[0084] Target dental arch area Figure 6 From the area shown, it can be seen that the initial dental arch area does not enclose the area with missing teeth, while the target dental arch area constructed therefrom can predict the area with missing teeth and enclose the area. At the same time, compared with the initial dental arch area, the target dental arch area has a larger boundary range.
[0085] This embodiment connects all the larger connected domains in the three-dimensional model by fitting the dental arch line and connecting the target regions of interest that meet the preset connectivity conditions as the target dental arch region based on the dental arch line, and smoothly expands the boundary region. Based on the identification of the target region of interest, this embodiment uses a geometric method to expand the entire region of interest to the user, which can make the applicable scenarios more diverse.
[0086] In practical applications, the 3D model with the target dental arch area marked can be used for shell modeling ( Figure 7 )、Back cover model( Figure 8 ) and other working models, and finally obtain Fig. 9The dental product model shown is used to be installed in the user's mouth, allowing the user to experience the fit between the dental product model and the user's mouth and adjust the three-dimensional model for any discomfort.
[0087] In summary, the disclosed embodiment projects the three-dimensional model into multiple two-dimensional projection views, and then classifies the projection views through the classification recognition model. In this way, the two-dimensional projection view can be recognized by the classification recognition model, and the first region of interest such as teeth, prepared teeth, implant rods, alveolar ridges, etc. can be quickly and accurately recognized on the projection view. Then, the first region of interest and the background area on each projection view are projected back to the three-dimensional model. This process uses pixel-level projection and merges the probabilities of interest points and background points to comprehensively determine the candidate region of interest, thereby improving the accuracy of the candidate region of interest and being able to avoid missing or over-determining the candidate region of interest. After that, the candidate region of interest is geometrically processed to obtain the target region of interest on the three-dimensional model. The geometric processing can better process the edge details and improve the recognition accuracy of the region of interest in the three-dimensional model. On this basis, the dental arch line is fitted on the three-dimensional model, and the target dental arch area connected to the three-dimensional model is generated based on the dental arch line and the target region of interest, which can be used to generate and make a working model, thereby improving practicality.
[0088] Fig.10 This is a structural block diagram of a three-dimensional model region generation device provided in an embodiment of the present disclosure, which can be used to identify regions of interest such as teeth, implant rods, prepared teeth and alveolar ridges in the mouth, and is used to implement the above-mentioned three-dimensional model region generation method. Fig.10 As shown, the region generation device of the three-dimensional model may include the following modules.
[0089] A model acquisition module 210, used to acquire a three-dimensional model;
[0090] The region determination module 220 is used to automatically identify and determine a target region of interest on the three-dimensional model.
[0091] In one embodiment, the region determination module 220 includes:
[0092] A candidate region determination unit, configured to identify and determine a candidate region of interest on the three-dimensional model based on a recognition pattern;
[0093] The geometric processing unit is used to perform geometric processing on the candidate region of interest to obtain a target region of interest.
[0094] In one embodiment, the candidate region determining unit includes:
[0095] A first projection subunit is used to project the three-dimensional model from multiple perspectives to obtain multiple projection views;
[0096] An identification subunit, used for identifying the first region of interest and the background region on each of the projection views by using a preset classification and identification model;
[0097] The second projection subunit is used to project the first region of interest and the background region on each of the projection views back to the three-dimensional model to obtain a candidate region of interest on the three-dimensional model.
[0098] In one embodiment, the identification subunit is specifically used for:
[0099] Identify the first category corresponding to each pixel on the projection view and the first probability value of the first category through a preset classification recognition model; wherein the first category includes: points of interest and background points;
[0100] Determine a region consisting of a plurality of pixels of the first category being the points of interest as a first region of interest;
[0101] An area consisting of a plurality of pixels of the first category being the background points is determined as a background area.
[0102] In one embodiment, the second projection subunit is specifically configured to:
[0103] Determine, according to the coordinates of the pixels in each of the projection views, a triangular facet corresponding to each of the pixels on the three-dimensional model; wherein one of the triangular facets corresponds to the pixel in at least one of the projection views;
[0104] Determine the second category of the current triangular facet according to the first category of the pixel corresponding to the current triangular facet and its first probability value; wherein the current triangular facet is any one of the multiple triangular facets;
[0105] An area consisting of a plurality of mutually connected triangular facets of the second category as the interest points is determined as a candidate area of interest.
[0106] In one embodiment, the second projection subunit is specifically configured to:
[0107] When the current triangle patch corresponds to the pixel in a plurality of the projection views, taking the pixel in each of the projection views as a candidate pixel;
[0108] Accumulating the first probability values of the first category corresponding to each of the candidate pixels to obtain a second probability value of the category being the point of interest and a third probability value of the category being the background point;
[0109] The category corresponding to the larger one of the second probability value and the third probability value is determined as the second category of the current triangle face.
[0110] In one embodiment, the geometry processing unit is specifically used for:
[0111] According to preset filtering conditions, noise and small blocks of non-connected areas in the candidate region of interest are removed to obtain a target region of interest; wherein the filtering conditions include at least one of the following: the area of the candidate region of interest is less than a second area threshold, the volume of the bounding box corresponding to the candidate region of interest is less than a second volume threshold, and the number of triangles in the candidate region of interest is less than a second number threshold.
[0112] In one embodiment, the device further comprises a dental arch processing module, which is used to:
[0113] A dental arch line is fitted on the three-dimensional model, and based on the dental arch line, the target region of interest that meets a preset connectivity condition is connected as a target dental arch region; wherein the connectivity condition includes: the area of the region is greater than a preset first area threshold, the volume of the bounding box is greater than a preset first volume threshold, and / or the number of triangle facets in the region is greater than a preset first number threshold.
[0114] In one embodiment, the dental arch processing module is specifically used for:
[0115] Selecting a second region of interest that meets a preset connectivity condition from the target region of interest;
[0116] Connecting the second region of interest to an initial dental arch region through the dental arch line;
[0117] The initial dental arch area is constructed according to a preset area construction method to obtain a target dental arch area; wherein the area construction method includes: a construction method based on a boundary line, a construction method based on a boundary line control point, or a construction method based on a lowest cutting plane.
[0118] In one embodiment, the dental arch processing module is specifically used for:
[0119] Connecting the second region of interest as a candidate dental arch region through the dental arch line;
[0120] identifying boundary features of the candidate dental arch region;
[0121] The candidate dental arch region is expanded according to the boundary features to obtain an initial dental arch region.
[0122] In one embodiment, the region construction method is the construction method based on the lowest cutting plane; the dental arch processing module is specifically used for:
[0123] Traversing all triangular facets in the initial dental arch region to determine the lowest cutting plane containing all the triangular facets;
[0124] The area of the three-dimensional model below the lowest cutting plane is removed to obtain a target dental arch area.
[0125] In one embodiment, the region construction method is the construction method based on boundary line control points; the dental arch processing module is specifically used for:
[0126] determining the boundary of the initial dental arch region in the three-dimensional model;
[0127] Performing spline fitting on the boundary of the initial dental arch area and calculating control points of the spline of the fitted boundary;
[0128] The boundary spline is adjusted according to the control operation on the control point to obtain a target dental arch area.
[0129] In one embodiment, the target region of interest is the alveolar ridge region, and the alveolar ridge region includes: teeth, prepared teeth, and implant rods.
[0130] The implementation principle and technical effects of the device provided in this embodiment are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0131] Fig.11 The structure diagram of an electronic device provided by the embodiment of the present disclosure is shown in FIG. Fig.11 As shown, the electronic device 300 includes one or more processors 301 and a memory 302 .
[0132] The processor 301 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 300 to perform desired functions.
[0133] The memory 302 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 301 may run the program instructions to implement the region generation method of the three-dimensional model of the embodiment of the present disclosure described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0134] In one example, the electronic device 300 may further include: an input device 303 and an output device 304 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0135] In addition, the input device 303 may also include, for example, a keyboard, a mouse, and the like.
[0136] The output device 304 can output various information to the outside, including the determined distance information, direction information, etc. The output device 304 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0137] Of course, to simplify, Fig.11 Only some of the components related to the present disclosure in the electronic device 300 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 300 may also include any other appropriate components.
[0138] Furthermore, this embodiment also provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the above-mentioned region generation method of the three-dimensional model.
[0139] The embodiments of the present disclosure provide a method, device, electronic device, and computer program product for generating a region of a three-dimensional model, including a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be described in detail here.
[0140] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0141] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for generating a region of a three-dimensional model, characterized in that: include: Obtaining a three-dimensional model; Automatically identifying and determining a target region of interest on the three-dimensional model; The step of automatically identifying and determining a target region of interest on the three-dimensional model includes: Identify and determine candidate regions of interest on the three-dimensional model based on the recognition pattern; Performing geometric processing on the candidate region of interest to obtain a target region of interest; The step of identifying and determining a candidate region of interest on the three-dimensional model based on a recognition pattern includes: Projecting the three-dimensional model from multiple perspectives to obtain multiple projection views; Identify the first region of interest and the background region on each of the projection views by using a preset classification recognition model; Projecting the first region of interest and the background region on each of the projection views back to the three-dimensional model to obtain a candidate region of interest on the three-dimensional model; The step of geometrically processing the candidate region of interest to obtain a target region of interest includes: According to a preset filtering condition, noise and small blocks of non-connected areas in the candidate region of interest are removed to obtain a target region of interest; wherein the filtering condition includes at least one of the following: the area of the candidate region of interest is less than a second area threshold, the volume of the bounding box corresponding to the candidate region of interest is less than a second volume threshold, and the number of triangles in the candidate region of interest is less than a second number threshold; The training process of the classification recognition model includes: Mark the categories of each triangular facet of the sample model one by one; project the sample model from multiple perspectives to obtain multiple sample images; determine the correspondence between each triangular facet in the sample model and each pixel in the sample image based on the projection correspondence between the sample model and the sample image; assign the category of the triangular facet mark to the pixel based on the correspondence to obtain a sample image marked with points of interest and background points; train the classification recognition model to be trained using the sample image marked with points of interest and background points to obtain a final classification recognition model; The method further comprises: Fitting a dental arch line on the three-dimensional model, and selecting a second region of interest that meets a preset connectivity condition from the target region of interest; wherein the connectivity condition includes: the area of the region is greater than a preset first area threshold, the volume of the bounding box is greater than a preset first volume threshold, and / or the number of triangle facets in the region is greater than a preset first number threshold; Connecting the second region of interest to an initial dental arch region through the dental arch line; The initial dental arch area is constructed according to a preset area construction method to obtain a target dental arch area; wherein the area construction method includes: a construction method based on a boundary line, a construction method based on a boundary line control point, or a construction method based on a lowest cutting plane.
2. The method according to claim 1, characterized in that The identifying the first region of interest and the background region on each of the projection views by using a preset classification recognition model includes: Identify the first category corresponding to each pixel on the projection view and the first probability value of the first category through a preset classification recognition model; wherein the first category includes: points of interest and background points; Determine a region consisting of a plurality of pixels of the first category being the points of interest as a first region of interest; An area consisting of a plurality of pixels of the first category being the background points is determined as a background area.
3. The method according to claim 2, characterized in that The step of projecting the first region of interest and the background region on each of the projection views back to the three-dimensional model to obtain a candidate region of interest on the three-dimensional model includes: Determine, according to the coordinates of the pixels in each of the projection views, a triangular facet corresponding to each of the pixels on the three-dimensional model; wherein one of the triangular facets corresponds to the pixel in at least one of the projection views; Determine the second category of the current triangular facet according to the first category of the pixel corresponding to the current triangular facet and its first probability value; wherein the current triangular facet is any one of the multiple triangular facets; An area consisting of a plurality of mutually connected triangular facets of the second category as the interest points is determined as a candidate area of interest.
4. The method according to claim 3, characterized in that The determining the second category of the current triangular facet according to the first category of the pixel corresponding to the current triangular facet and the first probability value thereof includes: When the current triangle patch corresponds to the pixel in a plurality of the projection views, taking the pixel in each of the projection views as a candidate pixel; Accumulating the first probability values of the first category corresponding to each of the candidate pixels to obtain a second probability value of the category being the point of interest and a third probability value of the category being the background point; The category corresponding to the larger one of the second probability value and the third probability value is determined as the second category of the current triangle face.
5. The method according to claim 1, characterized in that The connecting the second region of interest to an initial dental arch region through the dental arch line comprises: Connecting the second region of interest as a candidate dental arch region through the dental arch line; identifying boundary features of the candidate dental arch region; The candidate dental arch region is expanded according to the boundary features to obtain an initial dental arch region.
6. The method according to claim 1, characterized in that The region construction method is the construction method based on the lowest cutting plane; the initial dental arch region is constructed according to the preset region construction method to obtain the target dental arch region, including: Traversing all triangular facets in the initial dental arch region to determine the lowest cutting plane containing all the triangular facets; The area of the three-dimensional model below the lowest cutting plane is removed to obtain a target dental arch area.
7. The method according to claim 1, characterized in that The region construction method is the construction method based on the boundary line control point; the initial dental arch region is constructed according to the preset region construction method to obtain the target dental arch region, including: determining the boundary of the initial dental arch region in the three-dimensional model; Performing spline fitting on the boundary of the initial dental arch area and calculating control points of the spline of the fitted boundary; The boundary spline is adjusted according to the control operation on the control point to obtain a target dental arch area.
8. The method according to any one of claims 1 to 7, characterized in that: The target region of interest is the alveolar ridge region, and the alveolar ridge region includes: teeth, prepared teeth and implant rods.
9. A device for generating a region of a three-dimensional model, characterized in that: include: A model acquisition module, used for acquiring a three-dimensional model; A region determination module, used for automatically identifying and determining a target region of interest on the three-dimensional model; The area determination module comprises: A candidate region determination unit, configured to identify and determine a candidate region of interest on the three-dimensional model based on a recognition pattern; A geometric processing unit, used for performing geometric processing on the candidate region of interest to obtain a target region of interest; The candidate region determination unit comprises: A first projection subunit is used to project the three-dimensional model from multiple perspectives to obtain multiple projection views; An identification subunit, used for identifying the first region of interest and the background region on each of the projection views by using a preset classification and identification model; A second projection subunit is used to project the first region of interest and the background region on each of the projection views back to the three-dimensional model to obtain a candidate region of interest on the three-dimensional model; The geometry processing unit is specifically used for: According to a preset filtering condition, noise and small blocks of non-connected areas in the candidate region of interest are removed to obtain a target region of interest; wherein the filtering condition includes at least one of the following: the area of the candidate region of interest is less than a second area threshold, the volume of the bounding box corresponding to the candidate region of interest is less than a second volume threshold, and the number of triangles in the candidate region of interest is less than a second number threshold; The training process of the classification recognition model includes: Mark the categories of each triangular facet of the sample model one by one; project the sample model from multiple perspectives to obtain multiple sample images; determine the correspondence between each triangular facet in the sample model and each pixel in the sample image based on the projection correspondence between the sample model and the sample image; assign the category of the triangular facet mark to the pixel based on the correspondence to obtain a sample image marked with points of interest and background points; train the classification recognition model to be trained using the sample image marked with points of interest and background points to obtain a final classification recognition model; The device also includes a dental arch treatment module, which is used to: Fitting a dental arch line on the three-dimensional model, and selecting a second region of interest that meets a preset connectivity condition from the target region of interest; wherein the connectivity condition includes: the area of the region is greater than a preset first area threshold, the volume of the bounding box is greater than a preset first volume threshold, and / or the number of triangle facets in the region is greater than a preset first number threshold; Connecting the second region of interest to an initial dental arch region through the dental arch line; The initial dental arch area is constructed according to a preset area construction method to obtain a target dental arch area; wherein the area construction method includes: a construction method based on a boundary line, a construction method based on a boundary line control point, or a construction method based on a lowest cutting plane.
10. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1-8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the method according to any one of claims 1 to 8.
