Quality detection method and system for planting mold, electronic equipment and storage medium

By matching the scanned image with the virtual model and conducting multi-dimensional quality inspection of the implantation mold, the problem of inconsistency between the implantation mold and the designed mold is solved, and the treatment effect and safety are improved.

CN118864409APending Publication Date: 2024-10-29CANCER CENT OF GUANGZHOU MEDICAL UNIV

Patent Information

Application Number
CN202410927720.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the three-dimensional post-loading treatment of intracavity combined with parametrial implantation, the implantation mold is inconsistent with the virtual model of the designed mold due to errors in the production process, which affects the treatment effect and may even cause medical accidents.

Method used

By obtaining the scanned image of the mold to be inspected and the corresponding scanned image of the virtual model, we conduct matching and multi-dimensional quality inspection, including surface contour, channel, end position and dose distribution inspection, to determine whether the mold is qualified and ensure that the mold is consistent with the virtual model. sex.

Benefits of technology

It improves the quality inspection accuracy of the implantation mold and enhances the consistency between the mold and the virtual model, thus improving the treatment effect and reducing the risk of medical accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864409A_ABST
    Figure CN118864409A_ABST
Patent Text Reader

Abstract

The invention discloses a planting mold quality detection method and system, electronic equipment and a storage medium, and the method comprises the steps: obtaining a first scanning image of a to-be-detected mold and a second scanning image of a virtual model corresponding to the to-be-detected mold; performing matching according to the first scanning image and the second scanning image, and determining a first image set; then, performing multi-dimensional quality detection on the to-be-detected mold according to the first image set, and determining a target detection result of the to-be-detected mold; wherein the target detection result comprises whether the mold is qualified or unqualified; according to the method, the to-be-detected mold is associated with the scanning image of the corresponding virtual model, and multi-dimensional quality detection is performed on the to-be-detected mold according to the associated scanning image, so that the accuracy of quality detection is improved, and the consistency of the virtual model of the implantation mold and the virtual model of the design mold is improved. The embodiment of the invention can be widely applied to the technical field of medical equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical equipment, and in particular to an implantation mold quality detection method, system, electronic equipment and storage medium. Background Art

[0002] The three-dimensional afterloading treatment technology of intracavitary combined paracervical implantation is one of the means of radiotherapy for local cervical cancer. With the development of 3D printing technology, the paracervical implantation molds of this technology are increasingly personalized using 3D printing technology, which has improved the implantation accuracy of the needle applicator in the patient's body to a certain extent. Since most radiotherapy units currently do not have three-dimensional printing equipment, implantation molds are made by third-party printing companies based on the designed virtual models. During the production process of the implantation molds, errors will occur in the implantation molds, resulting in poor consistency between the implantation molds and the virtual models used when designing the molds, resulting in poor treatment effects using the implantation molds, and even serious medical accidents. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to provide a method, system, electronic device and storage medium for quality inspection of an implantation mold, which can improve the consistency between the virtual model of the implantation mold and the designed mold.

[0004] To achieve the above-mentioned purpose, one aspect of an embodiment of the present application provides a method for detecting the quality of an implantation mold, the method comprising:

[0005] Acquire a first scanned image of the mold to be inspected and a second scanned image of a virtual model corresponding to the mold to be inspected;

[0006] Determine a first image set by matching the first scanned image with the second scanned image; wherein the first image set includes a reference image-floating image pair, the floating image is the first scanned image, and the reference image is the second scanned image;

[0007] A multi-dimensional quality inspection is performed on the mold to be inspected according to the first image set to determine a target inspection result of the mold to be inspected; wherein the target inspection result includes whether the mold is qualified or unqualified.

[0008] In some embodiments, performing multi-dimensional quality inspection on the mold to be inspected according to the first image set to determine a target inspection result of the mold to be inspected specifically includes:

[0009] Performing surface contour detection on the mold to be detected according to the first image set to determine a first detection result;

[0010] If the first detection result is that the surface contour is qualified, performing a hole detection on the mold to be detected according to the first image set to determine a second detection result;

[0011] If the second detection result is that the channel contour is qualified, the end position of the mold to be detected is detected according to the first image set to determine a third detection result;

[0012] If the third detection result is that the end position is qualified, performing a dose distribution test on the mold to be tested according to the first image set to determine a fourth detection result;

[0013] A target detection result is determined according to the first detection result, the second detection result, the third detection result, and the fourth detection result.

[0014] In some embodiments, performing surface contour detection on the to-be-detected mold according to the first image set to determine a first detection result specifically includes:

[0015] Determine the surface contour of the mold to be inspected and the surface contour of the virtual model according to the first image set;

[0016] Calculate a geometric center deviation value according to the surface contour of the mold to be detected and the surface contour of the virtual model, calculate an edge maximum distance deviation value according to the surface contour of the mold to be detected and the surface contour of the virtual model, and compare the geometric center deviation value and the edge maximum distance deviation value with a first preset range respectively;

[0017] If the geometric center deviation value and the edge maximum distance deviation value both satisfy the first preset range, the first detection result is determined to be a qualified surface contour; otherwise, the first detection result is determined to be an unqualified surface contour.

[0018] In some embodiments, performing pore detection on the to-be-detected mold according to the first image set to determine a second detection result specifically includes:

[0019] Determining the pore contour of the mold to be inspected and the pore contour of the virtual model according to the first image set;

[0020] Calculating a geometric center deviation value according to the hole contour of the mold to be detected and the hole contour of the virtual model, calculating an edge maximum distance deviation value according to the hole contour of the mold to be detected and the hole contour of the virtual model, and comparing the geometric center deviation value and the edge maximum distance deviation value with a second preset range respectively;

[0021] If the geometric center deviation value and the edge maximum distance deviation value both satisfy the second preset range, the second detection result is determined to be that the hole contour is qualified; otherwise, the second detection result is determined to be that the hole contour is unqualified.

[0022] In some embodiments, performing end position detection on the to-be-detected mold according to the first image set to determine a third detection result specifically includes:

[0023] Acquire a virtual position point of the virtual model, and determine a mold top image and a hole-penetrating image of the mold to be inspected according to the first image set;

[0024] Determine the end position point of the mold to be inspected according to the mold top image and the channel exit image, calculate a distance deviation value according to the end position point and the virtual position point, and compare the distance deviation value with a first preset threshold;

[0025] If the distance deviation value is less than or equal to the first preset threshold, the third detection result is determined to be a qualified end position; otherwise, the third detection result is determined to be an unqualified end position.

[0026] In some embodiments, performing dose distribution detection on the to-be-detected mold according to the first image set to determine a fourth detection result specifically includes:

[0027] Acquire stationary point information of the virtual model, and determine the first ray of the mold to be inspected according to the first image set; wherein the stationary point information includes the number of stationary points, the spacing between the stationary points, and the residence time of the stationary points;

[0028] Determine the simulated dose distribution data of the mold to be tested according to the stationary point information, the first ray and a preset dose distribution calculation formula, calculate a dose difference value according to the simulated dose distribution data and the dose distribution data of the virtual model, and compare the dose difference value with a third preset range; wherein the dose difference value includes a three-dimensional gamma value pass rate or an organ dose index deviation;

[0029] If the dose difference value satisfies the third preset range, the fourth detection result is determined to be a qualified dose distribution; otherwise, the fourth detection result is determined to be an unqualified dose distribution.

[0030] In some embodiments, determining the first ray of the mold to be inspected according to the first image set specifically includes:

[0031] Determine a mold top slice image and a channel exit slice image of the mold to be inspected according to the first image set;

[0032] A first geometric center point is determined according to the slice image of the mold top, and the first geometric center point is used as the endpoint of the ray. A second geometric center point is determined according to the slice image passing through the channel, and the second geometric center point is used as a point on the ray. A first ray is determined according to the endpoint of the ray and the point on the ray.

[0033] To achieve the above purpose, another aspect of the embodiment of the present application provides a planting mold quality detection system, including:

[0034] The first module is used to obtain a first scan image of a mold to be inspected and a second scan image of a virtual model corresponding to the mold to be inspected;

[0035] A second module is configured to determine a first image set by matching the first scanned image with the second scanned image; wherein the first image set includes a reference image-floating image pair, the floating image is the first scanned image, and the reference image is the second scanned image;

[0036] The third module is used to perform multi-dimensional quality inspection on the mold to be inspected according to the first image set to determine the target inspection result of the mold to be inspected; wherein the target inspection result includes whether the mold is qualified or unqualified.

[0037] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.

[0038] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0039] Implementation of the embodiments of the present application includes the following beneficial effects: The embodiments of the present application provide a method, system, electronic device and storage medium for quality inspection of an implanting mold, the scheme obtains a first scanned image of the mold to be inspected and a second scanned image of a virtual model corresponding to the mold to be inspected; determines a first image set based on matching the first scanned image with the second scanned image; then, performs multi-dimensional quality inspection on the mold to be inspected based on the obtained first image set, and determines a target inspection result of the mold to be inspected; wherein the target inspection result includes whether the mold is qualified or unqualified; obtains scanned images of the mold to be inspected and the corresponding virtual model, associates the implanting mold with the scanned image of the corresponding virtual model, performs multi-dimensional quality inspection on the mold to be inspected based on the associated scanned images, improves the accuracy of quality inspection, and improves the consistency between the implanting mold and the virtual model of the designed mold. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of the steps of a method for quality inspection of an implantation mold provided in an embodiment of the present application;

[0041] Figure 2It is a flow chart of the steps of quality inspection in a method for quality inspection of an implant mold provided in an embodiment of the present application;

[0042] Figure 3 It is a schematic flow chart of the steps of surface profile quality detection in a method for detecting quality of an implant mold provided in an embodiment of the present application;

[0043] Figure 4 It is a schematic diagram of surface profile quality detection in a method for detecting quality of an implantation mold provided in an embodiment of the present application;

[0044] Figure 5 It is a schematic flow chart of the steps of detecting the quality of the hole profile in a method for detecting the quality of an implant mold provided in an embodiment of the present application;

[0045] Figure 6 It is a schematic diagram of the use of an implantation mold in an implantation mold quality detection method provided in an embodiment of the present application;

[0046] Figure 7 It is a schematic diagram of the hole profile quality detection in a method for detecting the quality of an implantation mold provided in an embodiment of the present application;

[0047] Figure 8 It is a schematic flow chart of the steps of detecting the quality of the end position of the applicator in a method for detecting the quality of an implant mold provided in an embodiment of the present application;

[0048] Fig. 9 It is a schematic diagram of the quality detection of the end position of the source applicator in the method for detecting the quality of the implant mold provided in an embodiment of the present application;

[0049] Fig.10 It is a schematic flow chart of the steps of performing dose distribution quality inspection in an implant mold quality inspection method provided in an embodiment of the present application;

[0050] Fig.11 It is a schematic diagram of dose distribution quality detection in an implant mold quality detection method provided in an embodiment of the present application;

[0051] Fig.12 It is a schematic flow chart of the steps of establishing channel rays in a method for detecting quality of an implant mold provided in an embodiment of the present application;

[0052] Fig.13 It is a schematic diagram of the steps of a specific embodiment provided in the embodiment of the present application;

[0053] Fig.14 It is a structural block diagram of a planting mold quality detection system provided in an embodiment of the present application;

[0054] Fig.15It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application.

[0055] Among them, H1 is the deviation value between the geometric center point of the virtual model and the geometric center point of the implant mold to be tested, H2 is the maximum distance deviation value between the surface contour of the virtual model and the surface contour of the implant mold to be tested, 1 is the insertion direction of the applicator of the virtual model, 2 is the insertion direction of the applicator of the implant mold to be tested, H3 is the maximum distance deviation value between the channel contour of the virtual model and the channel contour of the implant mold to be tested, H4 is the deviation value between the geometric center point of the virtual model channel and the geometric center point of the channel of the implant mold to be tested, 3 is the tumor target area, H5 is the deviation value between the end position of the applicator of the virtual model and the end position of the applicator of the implant mold to be tested, 4 is the dose distribution curve of the virtual model, and 5 is the dose distribution curve of the implant mold to be tested. DETAILED DESCRIPTION

[0056] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0057] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0058] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0059] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present invention.

[0060] In the related technology, parauterine implantation technology based on 3D printed personalized vaginal molds has gradually become popular in afterloading radiotherapy. The three-dimensional printed implantation mold has improved the therapeutic effect of three-dimensional afterloading treatment to a certain extent; the three-dimensional printed implantation mold is made by virtually designing a mold model and making it through a 3D printer. Since most radiotherapy units do not have a 3D printer, the virtually designed mold model is usually sent to a third party for printing and production. Many errors will occur during the transmission of the mold model, mold production, and transportation of the completed mold, resulting in deviations between the final implantation mold and the virtually designed mold model, thereby affecting the therapeutic effect of afterloading treatment during the use of the implantation mold, and even leading to medical accidents.

[0061] In view of this, an embodiment of the present application provides a method, system, electronic device and storage medium for quality inspection of an implant mold. The scheme associates a scanned image of the mold to be inspected with a scanned image of a virtual designed mold model corresponding to the mold to be inspected to obtain a first image, and performs quality inspections on the mold to be inspected in multiple dimensions based on the associated scanned images to obtain quality inspection results of the mold to be inspected. Based on the quality inspection results, it is determined whether the current mold to be inspected can be used in after-treatment, thereby improving the consistency between the implant mold and the virtual designed mold model during the application process and improving the therapeutic effect of the after-treatment.

[0062] Figure 1 is an optional flow chart of a method for detecting quality of an implantation mold provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S103.

[0063] Step S101, obtaining a first scan image of a mold to be inspected and a second scan image of a virtual model corresponding to the mold to be inspected;

[0064] Step S102, determining a first image set according to matching the first scanned image with the second scanned image; wherein the first image set includes a reference image-floating image pair, the floating image is the first scanned image, and the reference image is the second scanned image;

[0065] Step S103, performing multi-dimensional quality inspection on the mold to be inspected according to the first image set, and determining a target inspection result of the mold to be inspected; wherein the target inspection result includes whether the mold is qualified or unqualified.

[0066] Steps S101 to S103 shown in the embodiment of the present application are performed by obtaining scanned images of the current implant mold to be inspected and the corresponding virtual model, wherein the conditions for scanning the current implant mold to be inspected are the same as the conditions for scanning the corresponding virtual model, so as to improve the consistency between the corresponding virtual model and the corresponding virtual model; then, the scanned image of the current mold to be inspected is matched to the scanned image of the corresponding virtual model according to the similarity matching algorithm measured by mutual information, and based on the matched image, the quality of the current mold to be inspected is inspected according to the virtual model, and the differences between the current mold to be inspected and the virtual model in terms of mold shape, internal channels, insertion position when treated by a needle applicator, and dose distribution and the settings of the virtual model are compared, and the quality inspection result of the current mold to be inspected is determined according to the relationship between the difference and a preset threshold or range, and then it is determined whether the current mold to be inspected is qualified, and unqualified implant molds are filtered out, so as to improve the consistency between the implant mold and the designed virtual mold in subsequent treatment, and improve the therapeutic effect of the treatment.

[0067] In step S101 of some embodiments, the virtual model and the current mold to be detected can be CT scanned respectively under the same scanning conditions to obtain scanned images of the virtual model and the current mold to be detected. The virtual model and the current mold to be detected can also be scanned by MRI, PET or other imaging, but are not limited thereto.

[0068] See also Figure 2 In some embodiments, step S103 may include but is not limited to steps S201 to S205:

[0069] Step S201, performing surface contour detection on the mold to be detected according to the first image set to determine a first detection result;

[0070] Step S202, if the first detection result is that the surface profile is qualified, a hole detection is performed on the mold to be detected according to the first image set to determine a second detection result;

[0071] Step S203, if the second detection result shows that the channel contour is qualified, the end position of the mold to be detected is detected according to the first image set to determine the third detection result;

[0072] Step S204, if the third detection result is that the end position is qualified, a dose distribution test is performed on the mold to be detected according to the first image set to determine a fourth detection result;

[0073] Step S205, determining a target detection result according to the first detection result, the second detection result, the third detection result and the fourth detection result.

[0074] In step S201 of some embodiments, a series of errors may occur when a third-party platform produces an implant mold through 3D printing and transports and delivers it, which affects the consistency between the implant mold and the virtual model and affects the clinical application of the implant mold; the quality of the implant mold is inspected according to the image matched in step S102, and the surface contour of the implant mold is first inspected to determine the difference between the current implant mold and the virtual model. If the difference is within a preset acceptable range, it is determined that the external contour of the current implant mold is highly consistent with the virtual model, and the surface contour quality inspection of the current implant mold is qualified; if the difference exceeds the acceptable range, the current implant mold is an unqualified mold, which causes discomfort to the patient or loses mold details during use, affecting the treatment effect, and the current implant mold needs to be corrected or remade.

[0075] In step S202 of some embodiments, after the surface contour quality inspection of the current implantation mold is passed, the quality inspection of the various channels set inside the current implantation mold is performed to determine the differences between the various channels of the current implantation mold and the various channels in the virtual model. If the difference is within a preset acceptable range, the quality inspection of the various channels of the current implantation mold is passed; if the difference exceeds the acceptable range, the current implantation mold is an unqualified mold, and when used, the fine needle applicator may be damaged due to narrow channels, or the channels may be too large to affect the treatment effect, and need to be corrected or remade.

[0076] In step S203 of some embodiments, after the quality inspection of each channel of the current implantation mold is passed, the position of the end of the applicator of the current implantation mold when used is determined based on each channel and the insertion depth of the needle applicator, and the deviation between the current implantation model and the corresponding position in the virtual model is compared. If the deviation is within a preset acceptable range, the position inspection of the end of the applicator of the current implantation mold is qualified; if the deviation exceeds the preset acceptable range, the quality inspection of the current implantation mold is unqualified, and its application in after-treatment may affect the treatment effect or even cause damage to normal organs, and the current implantation mold needs to be corrected or remade.

[0077] In step S204 of some embodiments, after the end position detection of the current implant mold applicator is qualified, the dose distribution of the current implant mold is calculated based on the current implant mold and the needle applicator, and the difference between the calculated dose distribution of the current implant mold and the dose distribution of the virtual model is compared. If the difference is within an acceptable range, the dose distribution detection of the current implant mold is qualified, and the current implant mold meets the quality inspections in steps S201 to S203 in sequence. At this time, the quality control of the implant mold meets the standards and can be applied to after-treatment applications. If the difference exceeds the acceptable range, the quality inspection of the current implant mold fails, and its application in treatment may affect the treatment effect, and the current implant mold needs to be corrected or remade.

[0078] In step S205 of some embodiments, the quality inspection of the above steps S201 to S204 is performed on the current implanting mold to obtain corresponding quality inspection results, and a comprehensive evaluation is performed based on the obtained quality inspection results to obtain the target inspection result of the current implanting mold, that is, the quality control result; if the quality inspection results of the current implanting mold in steps S201 to S204 are all qualified, the quality control of the current implanting mold meets the standard, that is, the target inspection result is qualified; if the quality inspection results of the current implanting mold in steps S201 to S204 are unqualified, the quality control of the current implanting mold does not meet the standard, that is, the target inspection result is unqualified.

[0079] See also Figure 3 In some embodiments, step S201 may include but is not limited to steps S301 to S303:

[0080] Step S301, determining the surface contour of the mold to be inspected and the surface contour of the virtual model according to the first image set;

[0081] Step S302, calculating a geometric center deviation value according to the surface contour of the mold to be detected and the surface contour of the virtual model, calculating an edge maximum distance deviation value according to the surface contour of the mold to be detected and the surface contour of the virtual model, and comparing the geometric center deviation value and the edge maximum distance deviation value with a first preset range respectively;

[0082] Step S303: if the geometric center deviation value and the edge maximum distance deviation value both satisfy the first preset range, the first detection result is determined to be a qualified surface contour; otherwise, the first detection result is determined to be an unqualified surface contour.

[0083] In step S301 of some embodiments, a set of images is obtained based on a similarity registration algorithm using mutual information measurement, and a slice image of the current implant mold and a slice image of the corresponding virtual model are obtained respectively. The surface contour of the implant mold and the surface contour of the virtual model are automatically identified through a preset recognition algorithm, and the surface contour of the current implant mold is quality-checked based on the surface contour of the virtual model.

[0084] In step S302 of some embodiments, Figure 4As shown, the solid line is the surface contour of the virtual model, and the dotted line is the surface contour of the current implanting mold. According to the surface contour of the current implanting mold and the surface contour of the virtual model, the geometric center point of the surface contour of the current implanting mold and the geometric center point of the surface contour of the virtual model are calculated respectively, and the deviation value of the two is calculated; at the same time, according to the distance deviation value between the surface contour edge of the current implanting mold and the surface contour edge of the surface contour of the current implanting mold and sorting, the maximum distance deviation value is determined; the calculated deviation value of the geometric center point and the maximum distance deviation value are compared with the preset threshold range to determine the quality inspection result of the surface contour of the current implanting mold.

[0085] In step S303 of some embodiments, if the deviation value of the geometric center point and the maximum distance deviation value both meet the preset threshold range, the quality inspection result of the surface contour of the current implantation mold is qualified, and subsequent quality inspection of the current implantation mold can be performed; if either the deviation value of the geometric center point and the maximum distance deviation value does not meet the preset threshold range, the quality inspection of the surface contour of the current implantation mold fails, and the current implantation mold is an unqualified mold.

[0086] See also Figure 5 In some embodiments, step S202 may include but is not limited to steps S501 to S503:

[0087] Step S501, determining the channel contour of the mold to be inspected and the channel contour of the virtual model according to the first image set;

[0088] Step S502, calculating a geometric center deviation value according to the hole contour of the mold to be detected and the hole contour of the virtual model, calculating an edge maximum distance deviation value according to the hole contour of the mold to be detected and the hole contour of the virtual model, and comparing the geometric center deviation value and the edge maximum distance deviation value with a second preset range respectively;

[0089] Step S503, if the geometric center deviation value and the edge maximum distance deviation value both meet the second preset range, determine that the second detection result is that the hole contour is qualified; otherwise, determine that the second detection result is that the hole contour is unqualified;

[0090] In step S501 of some embodiments, according to the matched image set, the slice images corresponding to the current implantation mold and the virtual model are respectively obtained, and the slice images are sorted according to the bottom and top of the implantation mold, wherein the bottom and top of the implantation mold are as follows: Figure 6As shown, the pipeline automatic tracking algorithm is used to automatically identify all the channels in the implantation mold in the bottom slice image of the implantation mold, and a serial number is assigned to each channel. The seed growth algorithm is used to identify the channel contour of each channel, and the channel contour in each slice image is identified in turn until the slice image recognition of the mold channel passing through the mold is completed, and the channel contour of each channel of the current implantation mold is obtained.

[0091] In step S502 of some embodiments, Figure 7 As shown, the solid line is the channel contour of the virtual model, and the dotted line is the channel contour of the current implanting mold. The channel contour of each channel of the current implanting mold in each slice image is compared with the channel contour in the corresponding slice image in the virtual model, and the geometric center deviation value between the geometric center point of the current implanting mold channel contour and the geometric center point of the virtual model channel contour is calculated, and the distance deviation between the edge of the current implanting mold channel contour and the edge of the virtual model channel contour is calculated and sorted, and the maximum distance deviation is determined. The calculated deviation value of the geometric center point and the maximum distance deviation value are compared with the preset threshold range to determine the quality inspection result of the current implanting mold channel contour.

[0092] In step S503 of some embodiments, if the deviation value of the geometric center point and the maximum distance deviation value both meet the preset threshold range, the quality inspection result of the channel contour of the current implantation mold is qualified, and subsequent quality inspection of the current implantation mold can be performed; if either the deviation value of the geometric center point and the maximum distance deviation value does not meet the preset threshold range, the quality inspection of the channel contour of the current implantation mold fails, and the current implantation mold is an unqualified mold.

[0093] See also Figure 8 In some embodiments, step S203 may include but is not limited to steps S801 to S803:

[0094] Step S801, obtaining a virtual position point of a virtual model, and determining a mold top image and a hole-penetrating image of the mold to be inspected according to a first image set;

[0095] Step S802, determining the end position point of the mold to be inspected according to the mold top image and the hole exit image, calculating the distance deviation value according to the end position point and the virtual position point, and comparing the distance deviation value with a first preset threshold;

[0096] Step S803, if the distance deviation value is less than or equal to the first preset threshold, determine that the third detection result is qualified for the end position; otherwise, determine that the third detection result is unqualified for the end position.

[0097] In step S801 of some embodiments, after the quality inspection of the channel contour of the current implant mold is qualified, the depth data of the insertion of the source device set in the virtual model during treatment is obtained, and then the bottom slice image of the current implant mold is determined based on the matched image set, and the geometric center point of the channel in the current slice image is determined as the starting point, and then the slice image of the channel passing through the current implant mold is determined, and the geometric center point of the channel in the current image is determined, and the quality inspection of the source device position of the current implant mold is performed according to the channel geometric center points of the two slice images and the depth data of the source device.

[0098] In step S802 of some embodiments, according to the determined geometric center point of the channel in the two slice images, a ray with the geometric center point of the channel in the bottom slice image as the endpoint is established, and based on the endpoint and the depth data of the applicator, the position of the end needle tip point of the applicator passing through the channel for treatment is determined, and then the position of the end needle tip point of the applicator set in the virtual model is obtained, the end position of the current implant mold is compared with the end position of the virtual model, and the distance deviation value between the two is calculated, such as Fig. 9 As shown, the solid line is the end position of the applicator of the virtual model, and the dotted line is the end position of the applicator of the current implantation mold. The calculated distance deviation value is compared with the preset threshold value to determine the quality detection result of the end position of the applicator of the current implantation mold.

[0099] In step S803 of some embodiments, if the distance deviation value is less than or equal to a preset threshold value, the quality inspection result of the end position of the hole applicator of the current implantation mold is qualified, and subsequent quality inspection of the current implantation mold can be performed; if the distance deviation value is greater than the preset threshold value, the quality inspection of the hole contour of the current implantation mold fails, and the current implantation mold is an unqualified mold.

[0100] See also Fig.10 In some embodiments, step S204 may include but is not limited to steps S1001 to S1003:

[0101] Step S1001, obtaining stationary point information of the virtual model, and determining the first ray of the mold to be inspected according to the first image set; wherein the stationary point information includes the number of stationary points, the spacing between the stationary points, and the residence time of the stationary points;

[0102] Step S1002, determining the simulated dose distribution data of the mold to be tested according to the stationary point information, the first ray and the preset dose distribution calculation formula, calculating the dose difference value according to the simulated dose distribution data and the dose distribution data of the virtual model, and comparing the dose difference value with the third preset range; wherein the dose difference value includes the three-dimensional gamma value pass rate or the organ dose index deviation;

[0103] Step S1003: if the dose difference value satisfies the third preset range, the fourth detection result is determined to be a qualified dose distribution; otherwise, the fourth detection result is determined to be an unqualified dose distribution.

[0104] In step S1001 of some embodiments, after the current implantation mold has passed the quality inspections on the surface contour, the channel contour and the end position of the applicator, the clinical application dose distribution of the current implantation mold is simulated, and the quality inspection of the current implantation mold is performed based on the simulated dose distribution; a number of stationary points are set in the virtual model, and the distance between each stationary point and the residence time of the applicator at each stationary point are calculated according to the preset dose distribution algorithm.

[0105] In step S1002 of some embodiments, the calculated simulated dose distribution data is compared with the dose distribution data set in the virtual model, and the dose difference or three-dimensional gamma pass rate of different stationary points, or the dose difference or three-dimensional gamma pass rate of the tumor target area and the important organs is calculated; the calculated dose difference or three-dimensional gamma pass rate is compared with a preset threshold or a preset acceptable range, such as Fig.11 As shown, the quality inspection result of the current implant mold dose distribution is determined.

[0106] In step S1003 of some embodiments, if the dose difference or the three-dimensional gamma pass rate is less than or equal to a preset threshold, or is within an acceptable range, the quality inspection result of the dose distribution of the current implant mold is qualified, and the current implant mold can be applied to clinical treatment; if the dose difference or the three-dimensional gamma pass rate is greater than the preset threshold, or exceeds the acceptable range, the quality inspection result of the dose distribution of the current implant mold fails, and the current implant mold is an unqualified mold.

[0107] See also Fig.12 In some embodiments, step S1001 may include but is not limited to steps S1201 to S1203:

[0108] Step S1201, determining a mold top slice image and a hole exit slice image of the mold to be inspected according to the first image set;

[0109] Step S1202, determine the first geometric center point according to the slice image of the mold top, use the first geometric center point as the end point of the ray, determine the second geometric center point according to the slice image of the hole, use the second geometric center point as a point on the ray, and determine the first ray according to the ray end point and the ray end point.

[0110] In step S1201 of some embodiments, the bottom slice image of the current implantation mold and the slice image of the channel passing through the current implantation mold are determined based on the image set obtained based on matching, and the rays of the channel in the current implantation mold are established based on these two slice images. Based on the established channel rays, the quality of the applicator end position and dose distribution of the current implantation mold can be detected.

[0111] In step S1202 of some embodiments, the channel contour is determined based on the bottom slice image of the current implantation mold, and then the geometric center point of the channel contour is determined as the endpoint of the ray; then, the contour of the corresponding channel and the geometric center point of the channel contour are determined based on the slice image of the channel passing through the current implantation mold as another point on the ray, and the channel ray is established based on the established ray endpoint and the other point on the ray.

[0112] Below, in conjunction with specific application examples, the scheme of the embodiment of the present application is described in detail and explained:

[0113] like Fig.13 As shown, the corresponding design model is determined according to the current mold to be detected, and the mold to be detected and the corresponding design model are CT scanned under the same conditions to obtain a series of slice scanning images of the mold to be detected and a series of slice scanning images of the design model corresponding to the model to be detected; then, the slice scanning images of the mold to be detected and the slice scanning images of the corresponding design model are matched, and the slice images of the mold to be detected and the corresponding design model are matched one by one to obtain a slice image set; then, based on the slice image set, the surface profile deviation value of the implant mold to be detected is quality inspected, and if the quality inspection of the surface profile deviation value of the implant mold to be detected is qualified, the implant mold to be detected is tested. Perform quality inspection on the hole contour deviation of the implantable mold to be inspected, and the quality inspection on the hole contour deviation of the implantable mold to be inspected is qualified; perform quality inspection on the position deviation of the end portion of the applicator of the implantable mold to be inspected, and the quality inspection on the position deviation of the end portion of the applicator of the implantable mold to be inspected is qualified; perform quality inspection on the 3D gamma pass rate of the implantable mold to be inspected, and the quality inspection on the 3D gamma pass rate of the implantable mold to be inspected is qualified, the quality control of the current implantable mold to be inspected meets the standard, the current implantable mold to be inspected is a qualified mold and can be used in clinical treatment; if any quality inspection of the current implantable mold to be inspected fails, the current implantable mold to be inspected is an unqualified mold and needs to be remade or the mold corrected.

[0114] Implementation of the embodiments of the present application includes the following beneficial effects: The embodiments of the present application provide an implant mold quality inspection method, system, electronic device and storage medium, the scheme obtains a first scanned image of the mold to be inspected and a second scanned image of the virtual model corresponding to the mold to be inspected; determines a first image set based on matching the first scanned image with the second scanned image; then, performs multi-dimensional quality inspection on the mold to be inspected based on the obtained first image set, and determines a target inspection result of the mold to be inspected; wherein the target inspection result includes whether the mold is qualified or unqualified; obtains scanned images of the mold to be inspected and the corresponding virtual model, associates the implant mold with the scanned image of the corresponding virtual model, and performs multi-dimensional quality inspection on the mold to be inspected based on the associated scanned images, thereby improving the accuracy of quality inspection, improving the consistency of the implant mold, and thereby improving the treatment effect of using the implant mold.

[0115] like Fig.14 As shown, the embodiment of the present application also provides a planting mold quality detection system, including:

[0116] The first module is used to obtain a first scan image of a mold to be inspected and a second scan image of a virtual model corresponding to the mold to be inspected;

[0117] A second module is used to determine a first image set by matching the first scanned image with the second scanned image; wherein the first image set includes a reference image-floating image pair, the floating image is the first scanned image, and the reference image is the second scanned image;

[0118] The third module is used to perform multi-dimensional quality inspection on the mold to be inspected according to the first image set to determine the target inspection result of the mold to be inspected; wherein the target inspection result includes whether the mold is qualified or unqualified.

[0119] It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0120] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned implant mold quality detection method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0121] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0122] See also Fig.15 , Fig.15 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0123] The processor 1501 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0124] The memory 1502 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1502 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1502, and the processor 1501 calls and executes the implant mold quality detection method of the embodiment of this application;

[0125] Input / output interface 1503, used to implement information input and output;

[0126] Communication interface 1504, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0127] A bus 1505 that transmits information between the various components of the device (e.g., the processor 1501, the memory 1502, the input / output interface 1503, and the communication interface 1504);

[0128] The processor 1501 , the memory 1502 , the input / output interface 1503 and the communication interface 1504 are connected to each other in communication within the device via the bus 1505 .

[0129] Among them, the memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. The memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a remote memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0130] In addition, the embodiment of the present application also discloses a computer program product or a computer program, and the computer program product or the computer program is stored in a computer-readable storage medium. The processor of the computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device performs the above method. Similarly, the contents in the above method embodiment are all applicable to the storage medium embodiment, and the functions specifically implemented by the storage medium embodiment are the same as those in the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method embodiment.

[0131] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned implant mold quality detection method is implemented.

[0132] It is understood that all or some steps and systems in the disclosed method above can be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0133] The embodiments of the present application provide a method for quality inspection of a planting mold, a planting mold quality inspection device, an electronic device and a storage medium, which obtain a first scanned image of the mold to be inspected and a second scanned image of a virtual model corresponding to the mold to be inspected; determine a first image set based on matching the first scanned image with the second scanned image; then, perform multi-dimensional quality inspection on the mold to be inspected based on the obtained first image set to determine a target inspection result of the mold to be inspected; wherein the target inspection result includes whether the mold is qualified or unqualified; obtain scanned images of the mold to be inspected and the corresponding virtual model, associate the planting mold with the scanned image of the corresponding virtual model, and perform multi-dimensional quality inspection on the mold to be inspected based on the associated scanned images, so as to improve the accuracy of quality inspection and improve the consistency between the planting mold and the virtual model of the designed mold.

[0134] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A method for detecting the quality of an implantation mold, characterized in that: The method comprises: Acquire a first scanned image of the mold to be inspected and a second scanned image of a virtual model corresponding to the mold to be inspected; Determine a first image set by matching the first scanned image with the second scanned image; wherein the first image set includes a reference image-floating image pair, the floating image is the first scanned image, and the reference image is the second scanned image; A multi-dimensional quality inspection is performed on the mold to be inspected according to the first image set to determine a target inspection result of the mold to be inspected; wherein the target inspection result includes whether the mold is qualified or unqualified.

2. The method according to claim 1, characterized in that The performing multi-dimensional quality inspection on the mold to be inspected according to the first image set to determine the target inspection result of the mold to be inspected specifically includes: Performing surface contour detection on the mold to be detected according to the first image set to determine a first detection result; If the first detection result is that the surface contour is qualified, performing a hole detection on the mold to be detected according to the first image set to determine a second detection result; If the second detection result is that the channel contour is qualified, the end position of the mold to be detected is detected according to the first image set to determine a third detection result; If the third detection result is that the end position is qualified, performing a dose distribution test on the mold to be tested according to the first image set to determine a fourth detection result; A target detection result is determined according to the first detection result, the second detection result, the third detection result, and the fourth detection result.

3. The method according to claim 2, characterized in that The performing surface contour detection on the to-be-detected mold according to the first image set to determine a first detection result specifically includes: Determine the surface contour of the mold to be inspected and the surface contour of the virtual model according to the first image set; Calculate a geometric center deviation value according to the surface contour of the mold to be detected and the surface contour of the virtual model, calculate an edge maximum distance deviation value according to the surface contour of the mold to be detected and the surface contour of the virtual model, and compare the geometric center deviation value and the edge maximum distance deviation value with a first preset range respectively; If the geometric center deviation value and the edge maximum distance deviation value both satisfy the first preset range, the first detection result is determined to be a qualified surface contour; otherwise, the first detection result is determined to be an unqualified surface contour.

4. The method according to claim 2, characterized in that: The performing hole detection on the to-be-detected mold according to the first image set to determine a second detection result specifically includes: Determining the pore contour of the mold to be inspected and the pore contour of the virtual model according to the first image set; Calculating a geometric center deviation value according to the hole contour of the mold to be detected and the hole contour of the virtual model, calculating an edge maximum distance deviation value according to the hole contour of the mold to be detected and the hole contour of the virtual model, and comparing the geometric center deviation value and the edge maximum distance deviation value with a second preset range respectively; If the geometric center deviation value and the edge maximum distance deviation value both satisfy the second preset range, the second detection result is determined to be that the hole contour is qualified; otherwise, the second detection result is determined to be that the hole contour is unqualified.

5. The method according to claim 2, characterized in that: The performing end position detection on the to-be-detected mold according to the first image set to determine a third detection result specifically includes: Acquire a virtual position point of the virtual model, and determine a mold top image and a hole-penetrating image of the mold to be inspected according to the first image set; Determine the end position point of the mold to be inspected according to the mold top image and the channel exit image, calculate a distance deviation value according to the end position point and the virtual position point, and compare the distance deviation value with a first preset threshold; If the distance deviation value is less than or equal to the first preset threshold, the third detection result is determined to be a qualified end position; otherwise, the third detection result is determined to be an unqualified end position.

6. The method according to claim 2, characterized in that The step of performing a dose distribution test on the to-be-tested mold according to the first image set to determine a fourth test result specifically includes: Acquire stationary point information of the virtual model, and determine the first ray of the mold to be inspected according to the first image set; wherein the stationary point information includes the number of stationary points, the spacing between the stationary points, and the residence time of the stationary points; Determine the simulated dose distribution data of the mold to be tested according to the stationary point information, the first ray and a preset dose distribution calculation formula, calculate a dose difference value according to the simulated dose distribution data and the dose distribution data of the virtual model, and compare the dose difference value with a third preset range; wherein the dose difference value includes a three-dimensional gamma value pass rate or an organ dose index deviation; If the dose difference value satisfies the third preset range, the fourth detection result is determined to be a qualified dose distribution; otherwise, the fourth detection result is determined to be an unqualified dose distribution.

7. The method according to claim 6, characterized in that The determining the first ray of the to-be-detected mold according to the first image set specifically includes: Determine a mold top slice image and a channel exit slice image of the mold to be inspected according to the first image set; A first geometric center point is determined according to the slice image of the mold top, and the first geometric center point is used as the endpoint of the ray. A second geometric center point is determined according to the slice image of the channel passing through, and the second geometric center point is used as a point on the ray. A first ray is determined according to the endpoint of the ray and the point on the ray.

8. A planting mold quality detection system, characterized in that: include: The first module is used to obtain a first scan image of a mold to be inspected and a second scan image of a virtual model corresponding to the mold to be inspected; A second module is configured to determine a first image set by matching the first scanned image with the second scanned image; wherein the first image set includes a reference image-floating image pair, the floating image is the first scanned image, and the reference image is the second scanned image; The third module is used to perform multi-dimensional quality inspection on the mold to be inspected according to the first image set to determine the target inspection result of the mold to be inspected; wherein the target inspection result includes whether the mold is qualified or unqualified.

9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to perform the method according to any one of claims 1 to 7 when executed by the processor.

Citation Information

Patent Citations

  • 3D printed product quality detection and repair method combining three-dimensional model and machine vision

    CN107696499A

  • online detection system and method suitable for surface quality of building 3D printed piece

    CN112179312A

Cited By

  • Intelligent mold quality detection method and system, equipment and medium

    CN120800259A