CN-122023722-A - Virtual gum real-time generation method, system, equipment and medium
Abstract
The invention relates to the technical field of three-dimensional image processing, and discloses a virtual gum real-time generation method, a system, equipment and a medium, wherein the method comprises the following steps: the method comprises the steps of obtaining three-dimensional data of an oral cavity of a target patient, dividing and repairing the three-dimensional data of the oral cavity to obtain a local coordinate system and a dental crown model of each tooth of the target patient, obtaining boundary points of the dental crown model of each tooth, calculating according to the boundary points to obtain lingual control points and labial control points of the target patient, generating lingual gum line and labial gum line according to the lingual control points, labial control points and the local coordinate system, projecting the lingual gum line and labial gum line onto a preset projection plane, fitting the preset target projection points on the preset projection plane to obtain a virtual gum bottom base line, constructing a gum curved surface grid according to the lingual gum line, labial gum line and the virtual gum bottom base line, and generating virtual gum of the target patient according to the gum curved surface grid, so that accuracy of a generated virtual gum effect is improved.
Inventors
- MU HUIRU
- She yue
Assignees
- 成都齿灵科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260211
Claims (10)
- 1. A method for generating virtual gums in real time, the method comprising: Acquiring three-dimensional data of an oral cavity of a target patient, and dividing and repairing the three-dimensional data of the oral cavity to obtain a local coordinate system and a dental crown model of each tooth of the target patient; Obtaining boundary points of the crown model of each tooth, and calculating according to the boundary points to obtain lingual control points and labial control points of the target patient; Generating a lingual gum line and a labial gum line according to the lingual control point, the labial control point, and the local coordinate system; projecting the lingual gum line and the labial gum line onto a preset projection plane, and fitting a preset target projection point on the preset projection plane to obtain a virtual gum bottom baseline; Constructing a gum curved grid according to the lingual gum line, the labial gum line and the virtual gum bottom baseline; And generating virtual gums of the target patient according to the gum curved surface grid.
- 2. The method for generating virtual gingiva in real time according to claim 1, wherein said dividing and repairing the three-dimensional data of the oral cavity to obtain a local coordinate system and a crown model of each tooth of the target patient comprises: Acquiring characteristic data of the surface of each tooth in the three-dimensional data of the oral cavity; selecting the characteristic data as seed points of each tooth; calculating the similarity between each piece of oral cavity three-dimensional data and the seed point; screening out three-dimensional data of the oral cavity, wherein the similarity is larger than the lower limit of a preset similarity threshold interval and smaller than the upper limit of the preset similarity threshold interval; summarizing the screened three-dimensional data of the oral cavity into dental area data; acquiring an initial triangle mesh, and carrying out tooth reconstruction on the tooth area data by utilizing the initial triangle mesh to obtain an optimized mesh structure; And carrying out Laplace smoothing and curved surface restoration on the optimized grid structure to obtain a crown model of each tooth, and generating a local coordinate system according to the crown model.
- 3. The method for generating virtual gingiva in real time according to claim 1, wherein said acquiring boundary points of said crown model of each tooth comprises: Calculating a normal vector of each of the oral three-dimensional data in the crown model of each tooth; randomly selecting two normal vectors from the normal vectors to perform dot product to obtain a normal vector angle difference; screening the normal vector angle difference larger than a preset angle difference threshold value; and taking the three-dimensional data of the oral cavity corresponding to the screened normal vector angle difference as boundary points of the crown model of each tooth.
- 4. The method for generating virtual gingiva in real time according to claim 1, wherein said calculating lingual control points and labial control points of the target patient according to the boundary points comprises: Arranging the boundary points of all the dental crown models according to a preset sequence, and generating boundary lines of the dental crown models of each tooth according to the boundary points; Sequentially selecting boundary points after the arrangement of two teeth; calculating a tooth gap point between two teeth corresponding to the boundary point according to the selected boundary point; judging whether two selected teeth of the target patient contain teeth at two ends or not; If two selected teeth of the target patient contain two teeth at two ends, obtaining lip-side protruding points and lingual protruding points of the two teeth at two ends; sampling the labial salient points and the lingual salient points on the boundary lines of the teeth at the two ends at equal intervals in sequence to obtain a first control point and a second control point of the teeth at the two ends; if the two selected teeth of the target patient do not contain teeth at two ends, acquiring a critical point of the interdental point; sampling the critical points on the boundary line at equal intervals in sequence to obtain a third control point and a fourth control point of each tooth except the teeth at the two ends; summarizing the first control point, the second control point and the third control point and the fourth control point of each tooth except the two teeth into lingual control points and labial control points of each tooth.
- 5. The method for generating virtual gingiva in real time according to claim 4, wherein said calculating a tooth gap point between two teeth corresponding to said boundary point according to said selected boundary point comprises: selecting one tooth of the target patient one by one as a target tooth; Selecting one boundary point on the boundary line of the target tooth one by one as a target point; calculating the adjacent distance between the target point and the boundary point of the adjacent tooth of the target tooth; Sorting the adjacent distances from small to large, screening out the smallest adjacent distance, and obtaining a minimum distance value; Adding the minimum distance value and a preset distance threshold value to obtain a distance comparison value; Judging whether the adjacent distance is smaller than the distance comparison value; if the adjacent distance is greater than or equal to the distance comparison value, the boundary point corresponding to the adjacent distance is not a tooth gap point between the target tooth and the adjacent tooth; and if the adjacent distance is smaller than the distance comparison value, taking the boundary point corresponding to the adjacent distance as a tooth gap point between the target tooth and the adjacent tooth.
- 6. The method for generating virtual gingiva in real time according to claim 1, wherein said fitting the target projection points preset on the preset projection plane to obtain the virtual gingiva bottom baseline comprises: respectively extracting a preset number of lingual projection points and labial projection points in the lingual gum line and the labial gum line of each tooth on the preset projection plane; Taking the lingual projection points and the labial projection points extracted from each tooth as a group; Calculating the plane distance between each group of lingual projection points and each group of labial projection points; sorting the plane distances from small to large, and screening out lingual projection points and labial projection points corresponding to the largest plane distance after sorting; the screened lingual projection points and labial projection points are used as lingual target projection points and labial target projection points; Fitting the lingual target projection point and the labial target projection point respectively to obtain an initial lingual curve and an initial labial curve; Filtering the initial lingual curve and the initial labial curve to obtain an updated lingual curve and an updated labial curve; Interpolating the updated lingual curve and the updated labial curve to obtain a virtual lingual gingival baseline and a virtual labial gingival baseline; And summarizing the virtual lingual gum baseline and the virtual labial gum baseline into a virtual gingival bottom baseline.
- 7. The method of real-time virtual gum generation according to claim 1, wherein said constructing a gum surface mesh from said lingual gum line, said labial gum line, and said virtual gum bottom baseline comprises: Corresponding lingual control points of the lingual gum line and labial control points of the labial gum line, and taking the corresponding lingual control points and labial control points as a group; connecting each group of lingual control points with each group of labial control points to obtain a plurality of groups of control point connecting lines; discretizing the control point connecting line to obtain a discrete connecting line; Constructing a tooth cavity grid according to the discrete connection lines; corresponding and connecting the lingual target projection points and the labial target projection points in the virtual gingival bottom base line to obtain a plurality of groups of projection point connecting lines; constructing a virtual gingival bottom grid according to the projection point connecting line; Obtaining a target control point of the tooth and gum side surface of the target patient, and fitting the target control point to obtain a gum side surface curve; Constructing a gingival side morphology grid according to the gingival side curve; generating a gum curved surface grid according to the tooth cavity grid, the virtual gum bottom grid and the virtual gum side grid.
- 8. A virtual gum real-time generation system, the system comprising: The dental crown model acquisition module is used for acquiring three-dimensional data of an oral cavity of a target patient, and dividing and repairing the three-dimensional data of the oral cavity to obtain a local coordinate system and a dental crown model of each tooth of the target patient; the control point calculation module is used for obtaining boundary points of the crown model of each tooth, and calculating tongue side control points and lip side control points of the target patient according to the boundary points; A gum line generation module for generating a lingual gum line and a labial gum line according to the lingual control point, the labial control point, and the local coordinate system; the gum bottom base line generation module is used for projecting the lingual gum line and the labial gum line to a preset projection plane, and fitting a preset target projection point on the preset projection plane to obtain a virtual gum bottom base line; The gum curved surface grid construction module is used for constructing a gum curved surface grid according to the lingual gum line, the labial gum line and the virtual gum bottom base line; and the virtual gum generating module is used for generating virtual gums of the target patient according to the gum curved surface grid.
- 9. An electronic device, the electronic device comprising: at least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a virtual gum real-time generation method as claimed in any one of claims 1 to 7.
- 10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements a virtual gum real-time generation method according to any one of claims 1 to 7.
Description
Virtual gum real-time generation method, system, equipment and medium Technical Field The present invention relates to the field of three-dimensional image processing technologies, and in particular, to a method, a system, an apparatus, and a medium for generating virtual gingiva in real time. Background Generating virtual gums in the digitized oral cavity is an important technique. The technology has wide application in the field of digital oral cavity. It can be used for prediction and scheme design of oral treatment, such as simulation planning before dental implantation operation. Meanwhile, the device can also be used for designing and displaying beauty restoration, such as tooth correction, crown restoration and the like. In the traditional oral treatment and cosmetic restoration process, manual operation and experience judgment are usually needed, and certain subjectivity and uncertainty exist. Therefore, a virtual gum generating algorithm with high accuracy, high efficiency, high dynamic adaptability and easy use is needed to promote the further development and application of the related technology. The advent of digital oral technology has provided a more accurate and reliable solution for oral treatment and cosmetic restoration. The technique of digital oral cavity to generate virtual gingiva using tooth model mainly relies on oral scanner to obtain three-dimensional data of teeth. The existing virtual gum generating technology has various problems, the virtual gum is generated to assist diagnosis and treatment of doctors and improve effective communication between the doctors and patients, but some generated virtual gums are directly obtained by intraoral scanning, high-quality gum grid data cannot be obtained in the mode, so that the effect accuracy of generating the virtual gum is insufficient, and meanwhile, some technologies have certain limitations in simulating the shape, the color and the texture of the gums, so that the virtual gum cannot be suitable for various oral conditions and cannot assist the doctors to provide personalized solutions. Thus, the current prior art has a problem of low accuracy in the effect of the generated virtual gums. Disclosure of Invention The invention provides a method, a system, equipment and a medium for generating virtual gingiva in real time, which mainly aim to solve the problem of low accuracy of the generated virtual gingiva effect. In order to achieve the above object, the present invention provides a method for generating virtual gingiva in real time, including: Acquiring three-dimensional data of an oral cavity of a target patient, and dividing and repairing the three-dimensional data of the oral cavity to obtain a local coordinate system and a dental crown model of each tooth of the target patient; Obtaining boundary points of the crown model of each tooth, and calculating according to the boundary points to obtain lingual control points and labial control points of the target patient; Generating a lingual gum line and a labial gum line according to the lingual control point, the labial control point, and the local coordinate system; projecting the lingual gum line and the labial gum line onto a preset projection plane, and fitting a preset target projection point on the preset projection plane to obtain a virtual gum bottom baseline; Constructing a gum curved grid according to the lingual gum line, the labial gum line and the virtual gum bottom baseline; And generating virtual gums of the target patient according to the gum curved surface grid. In a second aspect, the present invention also provides a virtual gum real-time generation system, the system comprising: The dental crown model acquisition module is used for acquiring three-dimensional data of an oral cavity of a target patient, and dividing and repairing the three-dimensional data of the oral cavity to obtain a local coordinate system and a dental crown model of each tooth of the target patient; the control point calculation module is used for obtaining boundary points of the crown model of each tooth, and calculating tongue side control points and lip side control points of the target patient according to the boundary points; A gum line generation module for generating a lingual gum line and a labial gum line according to the lingual control point, the labial control point, and the local coordinate system; the gum bottom base line generation module is used for projecting the lingual gum line and the labial gum line to a preset projection plane, and fitting a preset target projection point on the preset projection plane to obtain a virtual gum bottom base line; The gum curved surface grid construction module is used for constructing a gum curved surface grid according to the lingual gum line, the labial gum line and the virtual gum bottom base line; and the virtual gum generating module is used for generating virtual gums of the target patient according to the gum curved surface grid. In