Quality inspection method, device, equipment and computer readable storage medium
Through image detection of aligners and molds based on deep learning methods, the defects of light-curing molds and aligners are identified, which solves the problems of low manual identification efficiency and poor accuracy in the existing technology, and achieves an efficient and accurate quality inspection process. , reducing costs and workload.
Patent Information
- Application Number
- CN202110777021.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-09
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-07-09
AI Technical Summary
The existing technology manually identifies defects in light-curing molds and aligners, but cannot accurately and effectively identify defects in light-curing molds and aligners, resulting in high quality inspection costs, long time, low efficiency, and inability to effectively control the quality of aligners.
Using a method based on deep learning, a pre-trained detection model is used to detect regions of interest and target detection on images of appliances and molds, identify local defects and mold defects, and achieve accurate identification through multi-view image acquisition and target detection models.
It achieves efficient identification of quality problems of aligners and their molds, saves human resources, reduces quality inspection costs, improves quality inspection efficiency, reduces the workload of operators and quality inspection personnel, and ensures the uniformity and accuracy of factory quality.
Smart Images

Figure CN113379734B_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of medical devices, and in particular to quality inspection technology for medical devices, and in particular to a quality inspection method, device, equipment and computer-readable storage medium. [Background technology]
[0002] Shell-shaped orthodontic appliances based on polymer materials (such as invisible braces) are becoming more and more popular due to their advantages of beauty, convenience and ease of cleaning. Shell-shaped orthodontic appliances use the resilience generated by deformation to reposition teeth from one configuration to another.
[0003] The production process of shell-shaped orthodontic appliances (hereinafter referred to as: appliances) usually needs to go through the following procedures: light-curing mold molding -> using light-curing mold to press the appliance -> appliance cutting and shelling -> appliance grinding and cleaning -> appliance sorting and packaging.
[0004] Due to defects in the photocuring mold, or due to various factors such as the complex production environment factors of the braces, the material properties of the braces, etc., various defects may occur in the braces produced. Among them, the defects on the photocuring mold will be brought into the braces, affecting the pressing quality of the braces, thereby affecting the wearing, and failing to achieve the purpose of correcting teeth. Therefore, it is necessary to identify the defects of the photocuring mold and do corresponding rework. After the braces are pressed, in a series of processes such as cutting, shelling, grinding, and cleaning of the braces, due to external forces or problems introduced by the photocuring mold, the braces will have appearance defects. Braces with appearance defects are defective products that cannot be worn to achieve the purpose of correcting teeth and need to be identified and processed.
[0005] In the prior art, defects of photocuring molds and orthodontic appliances are mainly identified in the following ways: during the production process, visual inspections are performed by operators; during the quality inspection stage, visual inspections are performed by quality inspectors; during the finished product quality inspection stage, single-step visual inspections and multi-step comparative visual inspections are performed by quality inspectors.
[0006] However, the above-mentioned method of mainly manually identifying defects of photocuring molds and orthodontic appliances has at least the following problems: due to production demand, quality control requirements and the limited number of quality inspectors, visual inspection is very arduous, which brings huge work pressure to operators and quality inspectors; the visual inspection of quality problems (especially local defects of orthodontic appliances) is affected by subjective factors of operators and quality inspectors (such as vision, experience, fatigue level, etc.), and it is impossible to form an objective and unified evaluation standard, which is not conducive to quality control; some defects are very difficult to judge, or are very subtle and difficult to detect.
[0007] Therefore, the existing technology cannot accurately and effectively identify the defects of light-curing molds and orthodontic appliances by manually identifying the defects of light-curing molds and orthodontic appliances, and it needs to occupy a large amount of human resources, has high quality inspection costs, long time, low efficiency, and cannot effectively control the quality of orthodontic appliances. [Summary of the invention]
[0008] Various aspects of the present invention provide a quality inspection method, apparatus, device and computer-readable storage medium for accurately and effectively identifying local defects of an orthodontic appliance and defects of an orthodontic appliance mold.
[0009] One aspect of the present invention provides a quality detection method, comprising:
[0010] Acquire an image to be detected including an object to be detected, wherein the object to be detected includes an orthodontic appliance or a mold for laminating the orthodontic appliance;
[0011] Using a pre-trained first detection model, performing region of interest detection on the image to be detected to obtain at least one region of interest;
[0012] Cropping out images of each region of interest in the at least one region of interest from the image to be detected, and performing target detection on the images of each region of interest using a pre-trained second detection model to obtain target detection results corresponding to each region of interest;
[0013] Based on the target detection result corresponding to the at least one region of interest, a quality detection result of the object to be detected is determined.
[0014] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein acquiring an image to be detected including a detection object comprises:
[0015] A multi-view image acquisition system is used to acquire a multi-view two-dimensional image to be detected including the detection object by adopting a bird's-eye view + three-dimensional annular image acquisition method.
[0016] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the at least one region of interest includes any one or more of the following: an anterior teeth region and two posterior teeth regions.
[0017] According to the above aspects and any possible implementation, there is further provided an implementation, wherein the object to be detected is an appliance;
[0018] The performing target detection on the images of the regions of interest to obtain target detection results corresponding to the regions of interest includes: performing local defect detection on the images of the regions of interest to obtain target detection results corresponding to the regions of interest, wherein the target detection results include the type, position and size of the local defect;
[0019] Among them, the local defects include any one or more of the following: linear depression, block depression, traces of missing layers of photocuring, resin residue, stuck photocuring, small accessories, cracks or splits, unclear pressing, wrinkles, cutting accessories, deformation and damage of traction accessories, edge problems, traction hook not clamped, jaw pad not ground open, and worn out.
[0020] According to the above aspects and any possible implementation manner, there is further provided an implementation manner, wherein the object to be detected is a mold;
[0021] The performing target detection on the images of the respective regions of interest to obtain target detection results corresponding to the respective regions of interest includes: performing mold defect detection on the images of the respective regions of interest to obtain target detection results corresponding to the respective regions of interest, wherein the target detection results include types, positions and sizes of the mold defects;
[0022] Wherein, the mold defects include any one or more of the following: base defects, tooth surface defects, tooth morphology defects;
[0023] The base defects include any one or more of the following: uneven base, impurities on the base disc, uneven bottom surface of the base disc;
[0024] The tooth surface defects include any one or more of the following: linear depressions, holes on the surface, flash on the tooth surface, foreign matter on the surface, and resin residue;
[0025] The tooth morphological defects include any one or more of the following: tooth damage, tooth defect, and small attachments.
[0026] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein determining the quality detection result of the object to be detected based on the target detection result corresponding to the at least one region of interest includes:
[0027] Separately stitching the image of the at least one region of interest and the target detection result corresponding to the at least one region of interest to obtain a stitching result;
[0028] Flexible non-maximum suppression is performed on the overlapping target detection results in the stitching results to obtain the quality detection results of the object to be detected, wherein the quality detection results include the type, position and size of the target, and the target includes the local defects corresponding to the orthodontic appliance or the mold defects corresponding to the mold.
[0029] According to the above aspects and any possible implementation, there is further provided an implementation, further comprising:
[0030] Acquire a first training set, wherein the first training set includes a plurality of first sample images including objects to be detected, the first sample images are annotated with annotation information of regions of interest, and adjacent regions of interest in the regions of interest overlap;
[0031] Using the first detection model to be trained to perform region of interest detection on the first sample image in the first training set to obtain a region of interest detection result;
[0032] Based on a first difference between the annotation information of the region of interest of the first sample image and the detection result of the region of interest, training the first detection model to be trained until a first preset training completion condition is met, thereby obtaining the first detection model;
[0033] Among them, the first preset training completion condition includes: the number of training times for the first detection model to be trained reaches a preset number of times, and / or the first difference is less than a preset threshold.
[0034] According to the above aspect and any possible implementation manner, an implementation manner is further provided, wherein the first preset training completion condition includes:
[0035] Loss=BCE_obj+BCE_cls+box_loss
[0036] BCE_xxx=w*focal loss+(1–w)*WCE loss
[0037] Wherein, Loss represents the first difference, BCE_obj represents the loss function value between the confidence of the prediction of the region of interest and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category predicted as the region of interest and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the region of interest and the annotation information;
[0038] BCE_xxx represents the function value of the cross entropy function, focal loss represents the function value of the adaptive cross entropy loss function for processing data imbalance, WCE loss represents the function value of the weighted cross entropy loss function, w represents the weight value of WCE loss, and w is a preset constant that is not less than 0 and not greater than 1.
[0039] According to the above aspects and any possible implementation, there is further provided an implementation, further comprising:
[0040] Acquire a second training set, wherein the second training set includes a plurality of second sample images of the region of interest, wherein the plurality of second sample images of the region of interest include: a plurality of second sample images containing objects and a plurality of second sample images not containing objects; the second sample images are annotated with object annotation information, wherein the object annotation information includes: object type annotation information, position annotation information, and size annotation information;
[0041] Using the second detection model to be trained to perform target detection on the second sample image in the second training set, to obtain a target detection result of the second sample image;
[0042] Based on a second difference between the target annotation information of the second sample image and the target detection result, training the second detection model to be trained until a second preset training completion condition is met, thereby obtaining the second detection model;
[0043] Wherein, the second preset training completion condition includes:
[0044] The number of training times for the second detection model to be trained reaches a preset number of times, and / or the second difference is less than a preset threshold.
[0045] According to the above aspect and any possible implementation manner, an implementation manner is further provided, wherein the second difference is determined based on the following manner:
[0046] Loss=BCE_obj+BCE_cls+box_loss
[0047] BCE_xxx=w*focal loss+(1–w)*WCE loss
[0048] Wherein, Loss represents the second difference, BCE_obj represents the loss function value between the confidence of the prediction as the target and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category of the prediction as the target and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the target and the annotation information;
[0049] BCE_xxx represents the function value of the cross entropy function, focal loss represents the function value of the adaptive cross entropy loss function for processing data imbalance, WCE loss represents the function value of the weighted cross entropy loss function, w represents the weight value of WCE loss, and w is a preset constant that is not less than 0 and not greater than 1.
[0050] Another aspect of the present invention provides a quality detection device, comprising:
[0051] A first acquisition module is used to acquire an image to be detected including an object to be detected, wherein the object to be detected includes an orthodontic appliance or a mold for laminating the orthodontic appliance;
[0052] A first detection module is used to perform region of interest detection on the image to be detected by using a pre-trained first detection model to obtain at least one region of interest;
[0053] A cropping module, used for cropping images of each region of interest in the at least one region of interest from the image to be detected;
[0054] A second detection module is used to perform target detection on the images of each region of interest by using a pre-trained second detection model to obtain target detection results corresponding to each region of interest;
[0055] The determination module is used to determine the quality detection result of the object to be detected based on the target detection result corresponding to the at least one region of interest.
[0056] According to the above aspect and any possible implementation manner, an implementation manner is further provided, wherein the first acquisition module is specifically configured to:
[0057] A multi-view image acquisition system is used to acquire a multi-view two-dimensional image to be detected including the detection object by adopting a bird's-eye view + three-dimensional annular image acquisition method.
[0058] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the at least one region of interest includes any one or more of the following: an anterior teeth region and two posterior teeth regions.
[0059] According to the above aspects and any possible implementation, there is further provided an implementation, wherein the object to be detected is an appliance;
[0060] The second detection module is specifically used to: use the pre-trained second detection model to perform local defect detection on the image of each region of interest, and obtain the target detection result corresponding to each region of interest, wherein the target detection result includes the type, position and size of the local defect;
[0061] Among them, the local defects include any one or more of the following: linear depression, block depression, traces of missing layers of photocuring, resin residue, stuck photocuring, small accessories, cracks or splits, unclear pressing, wrinkles, cutting accessories, deformation and damage of traction accessories, edge problems, traction hook not clamped, jaw pad not ground open, and worn out.
[0062] According to the above aspects and any possible implementation manner, there is further provided an implementation manner, wherein the object to be detected is a mold;
[0063] The second detection module is specifically used to: use the pre-trained second detection model to detect mold defects on the images of each region of interest, and obtain target detection results corresponding to each region of interest, wherein the target detection results include the type, position and size of the mold defect;
[0064] Wherein, the mold defects include any one or more of the following: base defects, tooth surface defects, tooth morphology defects;
[0065] The base defects include any one or more of the following: uneven base, impurities on the base disc, uneven bottom surface of the base disc;
[0066] The tooth surface defects include any one or more of the following: linear depressions, holes on the surface, flash on the tooth surface, foreign matter on the surface, and resin residue;
[0067] The tooth morphological defects include any one or more of the following: tooth damage, tooth defect, and small attachments.
[0068] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the determining module is specifically configured to:
[0069] Separately stitching the image of the at least one region of interest and the target detection result corresponding to the at least one region of interest to obtain a stitching result;
[0070] Flexible non-maximum suppression is performed on the overlapping target detection results in the stitching results to obtain the quality detection results of the object to be detected, wherein the quality detection results include the type, position and size of the target, and the target includes the local defects corresponding to the orthodontic appliance or the mold defects corresponding to the mold.
[0071] According to the above aspects and any possible implementation, there is further provided an implementation, further comprising:
[0072] A second acquisition module is used to acquire a first training set, wherein the first training set includes a plurality of first sample images including objects to be detected, the first sample images are annotated with annotation information of regions of interest, and adjacent regions of interest in the regions of interest overlap;
[0073] A first training module is used to perform region of interest detection on a first sample image in the first training set using a first detection model to be trained to obtain a region of interest detection result; and to train the first detection model to be trained based on a first difference between the annotation information of the region of interest of the first sample image and the region of interest detection result until a first preset training completion condition is met to obtain the first detection model;
[0074] Among them, the first preset training completion condition includes: the number of training times for the first detection model to be trained reaches a preset number of times, and / or the first difference is less than a preset threshold.
[0075] According to the above aspect and any possible implementation manner, an implementation manner is further provided, wherein the first difference is determined based on the following manner:
[0076] Loss=BCE_obj+BCE_cls+box_loss
[0077] BCE_xxx=w*focal loss+(1–w)*WCE loss
[0078] Wherein, Loss represents the first difference, BCE_obj represents the loss function value between the confidence of the prediction of the region of interest and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category predicted as the region of interest and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the region of interest and the annotation information;
[0079] BCE_xxx represents the function value of the cross entropy function, focal loss represents the function value of the adaptive cross entropy loss function for processing data imbalance, WCE loss represents the function value of the weighted cross entropy loss function, w represents the weight value of WCE loss, and w is a preset constant that is not less than 0 and not greater than 1.
[0080] According to the above aspects and any possible implementation, there is further provided an implementation, further comprising:
[0081] A third acquisition module is used to acquire a second training set, wherein the second training set includes a plurality of second sample images of the region of interest, wherein the plurality of second sample images of the region of interest include: a plurality of second sample images containing targets and a plurality of second sample images not containing targets; the second sample images are annotated with target annotation information, wherein the target annotation information includes: target type annotation information, position annotation information and size annotation information;
[0082] A second training module is used to perform target detection on a second sample image in the second training set using the second detection model to be trained to obtain a target detection result of the second sample image; and to train the second detection model to be trained based on a second difference between the target annotation information of the second sample image and the target detection result until a second preset training completion condition is met to obtain the second detection model;
[0083] Wherein, the second preset training completion condition includes:
[0084] The number of training times for the second detection model to be trained reaches a preset number of times, and / or the second difference is less than a preset threshold.
[0085] According to the above aspect and any possible implementation manner, an implementation manner is further provided, wherein the second difference is determined based on the following manner:
[0086] Loss=BCE_obj+BCE_cls+box_loss
[0087] BCE_xxx=w*focal loss+(1–w)*WCE loss
[0088] Wherein, Loss represents the second difference, BCE_obj represents the loss function value between the confidence of the prediction as the target and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category of the prediction as the target and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the target and the annotation information;
[0089] BCE_xxx represents the function value of the cross entropy function, focal loss represents the function value of the adaptive cross entropy loss function for processing data imbalance, WCE loss represents the function value of the weighted cross entropy loss function, w represents the weight value of WCE loss, and w is a preset constant that is not less than 0 and not greater than 1.
[0090] Another aspect of the present invention provides a device, comprising:
[0091] one or more processors;
[0092] a storage device for storing one or more programs,
[0093] When the one or more programs are executed by the one or more processors, the one or more processors implement the quality detection method provided in the above aspect.
[0094] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the quality detection method provided in the above aspect.
[0095] It can be seen from the above technical scheme that the embodiment of the present invention obtains an image to be detected including an object to be detected (including an appliance or a mold), and uses a pre-trained first detection model to perform region of interest detection on the image to be detected to obtain at least one region of interest. Then, the images of the regions of interest are respectively cropped out from the image to be detected, and the pre-trained second detection model is used to perform target detection on the images of the regions of interest to obtain target detection results corresponding to the regions of interest. Then, based on the target detection result corresponding to the at least one region of interest, the quality detection result of the image to be detected is determined. The embodiment of the present invention adopts a deep learning-based method, using the pre-trained first detection model and the second detection model to achieve quality inspection of appliances and molds, and can accurately and effectively identify local defects of appliances and defects of appliance molds.
[0096] In addition, by adopting the technical solution provided by the present invention, a deep learning-based method is adopted to use the pre-trained first detection model and the second detection model to perform quality inspection on the orthodontic appliance and the mold, thereby achieving efficient identification of quality problems of the orthodontic appliance and its mold, avoiding the occupation of operators and quality inspectors, saving human resources, reducing quality inspection costs, reducing quality inspection time, improving quality inspection efficiency, and reducing the workload of operators and quality inspectors, thereby improving production efficiency and helping to increase production capacity.
[0097] In addition, by adopting the technical solution provided by the present invention, using a deep learning-based approach, utilizing the pre-trained first detection model and the second detection model, and adopting objective and unified quality inspection standards, quality inspection of the orthodontic appliance and the mold can be performed, which can effectively control the factory quality of the orthodontic appliance and help form a complete quality traceability and related feedback mechanism.
[0098] In addition, by adopting the technical solution provided by the present invention, a deep learning-based approach is adopted to use the pre-trained first detection model and the second detection model to perform quality inspection on the braces and molds. This can detect defects that are difficult for the human eye to detect, such as missing parts on the mold or cracks on the braces. Minor defects can effectively handle difficult-to-identify examples and improve the level of quality control.
[0099] In addition, by adopting the technical solution provided by the present invention, a deep learning-based approach is adopted to utilize the pre-trained first detection model and the second detection model to perform quality inspection on the orthodontic appliance and the mold, and the inspection has a high accuracy rate and is reliable in complex production environments.
Brief Description of the Drawings
[0100] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0101] Figure 1 A flow chart of a quality inspection method provided by an embodiment of the present invention;
[0102] Figure 2 A schematic diagram of the structure of a multi-view image acquisition system in an application embodiment of the present invention;
[0103] Figure 3 A schematic diagram of an appliance with a local defect in an application embodiment of the present invention;
[0104] Figure 4 In one embodiment of the present invention, Figure 3 A schematic diagram of the quality inspection of the appliance shown;
[0105] Figure 5 A schematic diagram of a process of training a first detection model in an embodiment of the present invention;
[0106] Figure 6 A schematic diagram of a process of training a second detection model in one embodiment of the present invention;
[0107] Figure 7 A schematic diagram of the structure of a quality detection device provided by an embodiment of the present invention;
[0108] Figure 8 A schematic structural diagram of a quality detection device provided by another embodiment of the present invention;
[0109] Fig. 9is a block diagram of an exemplary computer system / server that is suitable for use in implementing embodiments of the present invention. [Specific implementation method]
[0110] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0111] It should be noted that the terminals involved in the embodiments of the present invention may include but are not limited to mobile phones, personal digital assistants (PDAs), wireless handheld devices, tablet computers, personal computers (PCs), MP3 players, MP4 players, wearable devices (for example, smart glasses, smart watches, smart bracelets, etc.), etc.
[0112] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0113] The main idea of the present invention is to realize the quality inspection of the orthodontic appliance and the mold by adopting a deep learning-based method and utilizing the first detection model and the second detection model obtained in advance, so as to accurately and effectively identify the local defects of the orthodontic appliance and the defects of the orthodontic mold.
[0114] Figure 1 A flow chart of a quality inspection method provided by an embodiment of the present invention is shown in FIG. Figure 1 shown.
[0115] 101. Acquire an image to be detected including an object to be detected.
[0116] Wherein, the object to be detected includes an orthodontic appliance or a mold used for laminating the orthodontic appliance.
[0117] 102. Perform region of interest (ROI) detection on the image to be detected by using a pre-trained first detection model to obtain at least one region of interest.
[0118] 103. Crop out images of each region of interest in the at least one region of interest from the image to be detected, and use a pre-trained second detection model to perform target detection on the images of each region of interest to obtain target detection results corresponding to each region of interest.
[0119] Optionally, in a possible implementation of this embodiment, the target detected in the image of each region of interest is a defect. The target detection result obtained by step 103 may be a target detection result in which the target is not detected, and the information included in the target detection result may be empty; or it may be a target detection result in which the target is detected, and the target detection result includes the following information: the type, location and of the defect.
[0120] 104. Determine a quality detection result of the object to be detected based on the target detection result corresponding to the at least one region of interest.
[0121] Optionally, in a possible implementation of this embodiment, the quality detection result may be: the object to be detected has quality problems or does not have quality problems.
[0122] It should be noted that part or all of the execution entities of 101 to 104 may be applications located in the local terminal, i.e., the terminal device of the service provider, or may also be functional units such as plug-ins or software development kits (SDK) set in the applications located in the local terminal, or may also be processing engines located in the network-side server, or may also be distributed systems located on the network side, and this embodiment does not specifically limit this.
[0123] It is understandable that the application may be a local program (nativeApp) installed on the terminal, or may be a webpage program (webApp) of a browser on the terminal, and this embodiment does not specifically limit this.
[0124] In this way, by adopting a deep learning-based approach and utilizing the pre-trained first and second detection models, quality inspection of the appliance and its molds is realized, which can accurately and effectively identify local defects of the appliance and defects of the appliance molds, and can effectively control the factory quality of the appliance; efficient identification of quality problems of the appliance and its molds is achieved, avoiding the occupation of operators and quality inspectors, saving human resources, reducing quality inspection costs, reducing quality inspection time, improving quality inspection efficiency, and reducing the workload of operators and quality inspectors, thereby improving production efficiency and helping to increase production capacity; defects that are difficult for the human eye to detect, such as missing parts on the mold or cracks on the appliance and other subtle defects, can be detected, and difficult-to-identify examples can be effectively handled to improve the level of quality control; the detection accuracy is high and it is reliable in complex production environments.
[0125] The embodiment of the present invention utilizes a two-step target detection method, first utilizing a first detection method to detect a region of interest, cropping an image of the region of interest, and then utilizing a second detection model to detect defects in the image of the region of interest, thereby improving the defect detection rate and reducing the false alarm rate, improving the recall rate, and improving the accuracy.
[0126] The embodiments of the present invention can be used to perform quality inspection on the braces and their molds, that is, to detect whether there are defects on the braces and their molds. In one possible implementation, the mold of the braces is specifically a light-curing mold. In the process of realizing the present invention, the inventors found through research that the defects of the light-curing mold can be divided into base defects, tooth surface defects and tooth morphology defects. Among them, base defects may include uneven base, impurities in the base disc, uneven bottom surface of the base disc, tooth surface defects may include linear depressions, holes in the surface, flash on the tooth surface, foreign matter on the surface, resin residue, etc., and tooth morphology defects may include tooth damage, tooth defects, small accessories, etc. Defects on the light-curing mold will be brought into the braces, affecting the pressing quality of the braces, thereby affecting the wearing, and failing to achieve the purpose of correcting teeth.
[0127] Optionally, in a possible implementation of this embodiment, the object to be detected is an appliance. Accordingly, in 103, after the images of each region of interest in the at least one region of interest are cropped out from the image to be detected, the pre-trained second detection model can be used to perform local defect detection on the images of each region of interest, and obtain the target detection results corresponding to each region of interest, which include the type, position and of the local defects. Wherein, the local defects may include, but are not limited to, any one or more of the following: linear depression, block depression, traces of missing layers of photocuring, resin residue, stuck photocuring, small attachment, cracks or splits, unclear pressing, wrinkles, cutting attachments, deformation and damage of traction attachments, edge problems, traction hook not clamped, jaw pad not ground open, worn out, etc.
[0128] Based on this embodiment, it is possible to detect local defects on the orthodontic appliance, so as to avoid the orthodontic appliance with local defects being unable to be worn to achieve the purpose of correcting teeth after leaving the factory.
[0129] After the braces are pressed, in a series of processes such as cutting, shelling, grinding, and cleaning, due to external forces or problems introduced by the light-curing mold, the braces will have appearance defects, which can be divided into overall defects and local defects. Among them, overall defects may include deformation, and local defects may include linear / block depressions, traces of light-curing missing layers, resin residue (plaques), stuck light curing, small accessories, cracks or splits, unclear pressing, wrinkles, cutting accessories (such as tooth surfaces), deformation and damage of traction accessories, edge problems (such as flanging, inward burrs, adhesion burrs, etc.), traction hooks not clamped, jaw pads not ground open, wear (such as holes, grinding to accessories), etc.
[0130] Optionally, in a possible implementation of this embodiment, the object to be inspected is a mold. Accordingly, in 103, after the images of each region of interest in the at least one region of interest are cropped from the image to be inspected, the images of each region of interest can be inspected for mold defects using a pre-trained second inspection model to obtain target inspection results corresponding to each region of interest, which include the type, location, and size of the mold defect;
[0131] The mold defects include any one or more of the following: base defects, tooth surface defects, tooth morphology defects, etc. The base defects may include, but are not limited to, any one or more of the following: uneven base, impurities on the base disc, uneven bottom surface of the base disc; the tooth surface defects may include, but are not limited to, any one or more of the following: linear depressions, holes on the surface, flash on the tooth surface, foreign matter on the surface, resin residue, etc.; the tooth morphology defects may include, but are not limited to, any one or more of the following: tooth damage, tooth defect, small attachment, etc.
[0132] Based on this embodiment, the detection of mold defects can be achieved to avoid the defects on the mold being introduced into the appliance and affecting the pressing quality of the appliance, thereby avoiding the quality of the appliance being affected by the mold defects.
[0133] Optionally, in a possible implementation of this embodiment, in 101, a multi-view image acquisition system may be used to acquire a multi-view two-dimensional image to be detected including the detection object by adopting a top-view + three-dimensional annular image acquisition method. Figure 2 FIG. 1 is a schematic diagram of the structure of a multi-view image acquisition system in an application embodiment of the present invention.
[0134] Since the local defects of the appliance and the defects of the mold (hereinafter collectively referred to as defects) have three-dimensional characteristics, and the defects may appear at any position of the mold or the appliance, in this embodiment, a multi-view image acquisition system is used to acquire multi-view two-dimensional images of the mold or the appliance by adopting a top-view + three-dimensional annular image acquisition method. In a specific implementation, the aperture and focal length of the industrial camera can be adjusted according to the different materials of the mold and the appliance. In addition, appropriate lighting is used for each of the mold and the appliance, such as top annular lighting for the photocuring mold and backlighting for the appliance, and the brightness and color of the light source are adjusted so that the clarity of the grayscale image of the mold or appliance surface acquired by the industrial camera is optimal, and the defects can be clearly reflected in the picture.
[0135] Optionally, in a possible implementation of this embodiment, the at least one region of interest may include, for example, any one or more of the following: an anterior teeth region and two posterior teeth regions.
[0136] Figure 3 is a schematic diagram of an appliance with a local defect in an application embodiment of the present invention, Figure 4 In one embodiment of the present invention, Figure 3 The schematic diagram of the quality inspection of the appliance shown below is combined with Figure 3 and Figure 4 This embodiment is described with reference to the application embodiment in FIG.
[0137] Since the defects on the mold and the local defects on the appliance are usually small, and the image to be tested is captured from the side, the defects account for a very small proportion of the entire image to be tested, and most of the pixels are between 0.01% and 0.1%. Figure 3 As shown, this brings challenges to the second detection model. The second detection model usually undergoes multiple downsampling and upsampling processes. Due to hardware resource limitations, the input image of the second detection model is usually between 512*512 and 640*640, that is, the size of the defect is between 6 and 10 pixels. If it undergoes 5 downsamplings (i.e., divided by 32), it will be submerged by the background in some feature maps, and the semantic information of the defect will no longer exist. If defect detection is performed on the original image, the defect cannot be effectively identified.
[0138] The present invention draws on the zoom observation method of the human eye and proposes an improved two-step target detection method. Since the light-curing mold and the orthodontic appliance are both arched, the region of interest is first located by the first detection model. The region of interest is the front tooth region and the two back tooth regions. The size is smaller than the original image to be detected, and a large amount of irrelevant background information is removed. Then the region of interest is cropped from the image to be detected to form a new patch (i.e., the image of the region of interest). The second detection model is used to perform defect detection on the cropped new patch, such as Figure 4As shown in the figure, the size of the defect on the new patch will be 30 to 50 pixels, which is a medium target, and the detection effect can be effectively improved. The same processing method is used for defect detection of light-curing molds.
[0139] The embodiment of the present invention utilizes a two-step target detection method, first utilizing a first detection method to detect a region of interest, cropping an image of the region of interest, and then utilizing a second detection model to detect defects in the image of the region of interest, thereby improving the defect detection rate and reducing the false alarm rate, improving the recall rate, and improving the accuracy.
[0140] Optionally, in a possible implementation of the present embodiment, in 104, the image of the at least one region of interest and the target detection result corresponding to the at least one region of interest may be stitched together to obtain a stitching result, and flexible non-maximum suppression (soft-nms) may be performed on the overlapping target detection results in the stitching result to obtain a quality detection result of the image to be detected, wherein the quality detection result includes the type, position and size of the target, wherein the target includes a local defect corresponding to the appliance or a mold defect corresponding to the mold.
[0141] In this embodiment, the image of the at least one region of interest and the target detection result corresponding to the at least one region of interest are spliced to obtain a spliced result. In the spliced result, there may be multiple highly overlapping object detection frames (boxes) for the same object. By performing flexible non-maximum suppression on the spliced result, only the object detection frames with an intersection over union (IOU) higher than a preset value (i.e., highly overlapping) can be merged without affecting multi-target detection.
[0142] Optionally, in a possible implementation of this embodiment, the first detection model and the second detection model may be implemented based on deep learning, for example, by a neural network, but the embodiment of the present invention is not limited thereto.
[0143] Optionally, in a possible implementation of this embodiment, the first detection model to be trained may be trained in advance using the first training set to obtain the first detection model. Figure 5 FIG. 1 is a flow chart of training a first detection model in one embodiment of the present invention. Figure 5 shown.
[0144] 501. Obtain a first training set.
[0145] The first training set includes a plurality of first sample images including objects to be detected, the first sample images are annotated with annotation information of regions of interest, and adjacent regions of interest in the regions of interest overlap.
[0146] 502. Perform region of interest detection on a first sample image in the first training set using the first detection model to be trained to obtain a region of interest detection result.
[0147] 503. Based on a first difference between the annotation information of the region of interest of the first sample image and the detection result of the region of interest, train the first detection model to be trained until a first preset training completion condition is met, thereby obtaining the first detection model.
[0148] Optionally, in a possible implementation of this embodiment, the first preset training completion condition may, for example, include but is not limited to: the number of training times for the first detection model to be trained reaches a preset number of times, and / or the first difference is less than a preset threshold.
[0149] Optionally, in a possible implementation of this embodiment, the first difference is determined based on the following method:
[0150] Loss=BCE_obj+BCE_cls+box_loss
[0151] BCE_xxx=w*focal loss+(1–w)*WCE loss
[0152]
[0153]
[0154] Among them, Loss represents the first difference, BCE_obj represents the loss function value between the confidence of the prediction of the region of interest and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category predicted as the region of interest and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the region of interest and the annotation information.
[0155] BCE_xxx represents the function value of the cross entropy function, focal loss represents the function value of the adaptive cross entropy loss function for processing data imbalance, WCE loss represents the function value of the weighted cross entropy loss function, and w represents the weight value of WCE loss, where w is a preset constant that is not less than 0 and not greater than 1. p is the weight value corresponding to the positive sample (i.e., the sample image including the region of interest), which is a preset constant not less than 0 and not greater than 1; i is the annotation information of the region of interest; p i is the detection result of the region of interest; α and γ are pre-set weight values.
[0156] In this embodiment, the first detection model to be trained may be trained in advance using the first training set to obtain the first detection model for use in detecting regions of interest.
[0157] Optionally, in a possible implementation of this embodiment, the second detection model to be trained may be pre-trained using the second training set to obtain the second detection model. Figure 6 FIG. 1 is a flow chart of training a second detection model in one embodiment of the present invention. Figure 6 shown.
[0158] 601. Obtain a second training set.
[0159] Among them, the second training set includes multiple second sample images of the area of interest, and the multiple second sample images of the area of interest include: multiple second sample images containing targets and multiple second sample images without targets; the second sample images are annotated with target annotation information, and the target annotation information includes: target type annotation information, position annotation information and size annotation information.
[0160] The target in the embodiment of the present invention is the defect. Taking the detection of defects of the photocuring mold by the second detection model as an example, the target is the various defects that may exist in the photocuring mold, the second sample image containing the target is the sample image with defects on the photocuring mold, and the second sample image without the target is the sample image without defects on the photocuring mold. At the same time, in order to ensure that the trained second detection model can effectively detect the various defects existing on the photocuring mold, the second training set needs to have a certain proportion of sample images including various defects on the photocuring mold. The second detection model trained based on such a training set can effectively identify various defects in the image to be detected. The detection of specific defects of the orthodontic appliance by the second detection model is the same as the above-mentioned detection of defects of the photocuring mold.
[0161] 602. Perform object detection on a second sample image in a second training set using the second detection model to be trained to obtain an object detection result for the second sample image.
[0162] 603. Based on a second difference between the target annotation information of the second sample image and the target detection result, train the second detection model to be trained until a second preset training completion condition is met to obtain a second detection model.
[0163] In this embodiment, the second detection model to be trained can be trained in advance using the second training set to obtain the second detection model so as to be used for target detection in the region of interest.
[0164] Optionally, in a possible implementation of the present embodiment, during the training of the second detection model, even for image recognition defects in the region of interest, the size of the defects still accounts for a relatively small proportion and the number of different defect types also varies greatly. Based on the number of defect types existing in the object to be detected in the second training set, oversampling can be performed on images containing some defect types with a smaller number, so that the distribution of the number of defects of each type becomes balanced, thereby improving the detection performance of the second detection samples obtained through training.
[0165] Optionally, in a possible implementation of this embodiment, the second preset training completion condition may include, but is not limited to:
[0166] The number of training times for the second detection model to be trained reaches a preset number of times, and / or the second difference is less than a preset threshold.
[0167] Optionally, in a possible implementation of this embodiment, the second difference may be determined based on the following method:
[0168] Loss=BCE_obj+BCE_cls+box_loss
[0169] BCE_xxx=w*focal loss+(1–w)*WCE loss
[0170]
[0171]
[0172] Among them, Loss represents the second difference, BCE_obj represents the loss function value between the confidence of the prediction as the target and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category of the prediction as the target and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the target and the annotation information.
[0173] BCE_xxx represents the function value of the cross entropy function, focal loss represents the function value of the adaptive cross entropy loss function for processing data imbalance, WCE loss represents the function value of the weighted cross entropy loss function, w represents the weight value of WCE loss, and w is a preset constant that is not less than 0 and not greater than 1; w p is the weight value corresponding to the positive sample (i.e., the second sample image containing the target), which is a preset constant not less than 0 and not greater than 1; i Mark information for the target; i is the target detection result; α and γ are pre-set weight values.
[0174] In this embodiment, in the process of training the second detection model to be trained, even for image recognition defects in the region of interest, the size of the defect still accounts for a small proportion and the number of different defect types also varies greatly, so improvements are made to the sampling method, anchor frame parameters and classification loss function of the second sample image. According to the number of each defect type in the second training set, oversampling is performed on some images with a smaller number of defect types, so that the distribution of the number of defects of each type becomes balanced; new anchor frame size parameters can also be generated according to the size and shape of the defect through the KMeans algorithm and the generation algorithm. Since the pixels of the defect account for a small proportion of the pixels of the second sample image, the anchor frames corresponding to the defects are also small, and they will be submerged by the background in the gradient return of the loss function. In this embodiment, the classification loss function is improved to weighted WCE loss and focal loss to calculate the second difference, and the second detection model to be trained is trained, thereby improving the training effect and the detection performance of the trained second detection model.
[0175] Optionally, in a possible implementation of this embodiment, the second sample image in the second training set can be obtained by cropping the image of the region of interest in the first sample image in the first training set. A large number of appliances with and without local defects, as well as light-cured molds with and without defects, can be collected in advance. Figure 3 The first sample image is acquired in the manner shown, and the annotation information of the region of interest is annotated to obtain a first training set.
[0176] In the process of training the first detection model, a method based on deep learning can be used to select several representative images as the first sample images, and the regions of interest (anterior teeth region and two posterior teeth regions) are annotated, that is, a rectangular frame parallel to the image is used to annotate three regions (one anterior teeth region and two posterior teeth regions) on each first sample image. The annotation information may include the category of each frame (i.e., which region it belongs to), the center coordinates, the length and width, and finally form the first training set. During the annotation process, it is necessary to ensure that adjacent regions overlap to ensure that there is no missed detection due to the chessboard effect. In practical applications, if the side camera angle is horizontal when the sample image is collected, the anterior teeth region and the posterior teeth region may be difficult to distinguish in the image, and the region of interest may also be the entire appliance or light-curing mold. In addition, the region of interest can also be further refined into every two teeth to further increase the size ratio of the defect. In addition, methods other than deep learning can also be used, such as traditional image processing methods, to obtain images of the region of interest, for example, a large number of regions of interest can be obtained by sliding windows; or, the region of interest can be obtained by filtering first, and then the region of interest can be cut into multiple images.
[0177] Optionally, in a possible implementation of the present embodiment, in the process of separately training the first detection model to be trained and the second detection model to be trained, corresponding data augmentation (data augmentation) can be performed on the sample images in the first training set or the images in the second sample set. For example, the brightness and contrast of the image can be adjusted, or the image can be processed by translation, mirroring, rotation, noise addition, mosaic splicing, occlusion, etc. to obtain new sample images to add to the corresponding training sets. The robustness of the trained first detection model and the second detection model can be improved by expanding the number of sample images in the training sets.
[0178] Optionally, in a possible implementation of the present embodiment, since the photocurable mold and the appliance may be different in shape, material and defect type, in order to improve the accuracy of the detection result, a sample image of the photocurable mold may be collected separately, and the first detection model and the second detection model of the photocurable mold may be trained, and a sample image of the appliance may be collected separately, and the first detection model and the second detection model of the appliance may be trained. The training process and training method of the photocurable mold and the first detection model and the second detection model of the appliance are similar, and both adopt the above-mentioned method of the present invention. Figure 5-6 The embodiment shown implements.
[0179] Optionally, in a possible implementation of this embodiment, the second detection model can also be implemented by a semantic segmentation model, that is, semantic segmentation is performed on each pixel in the image of each region of interest to obtain the category of each pixel (whether it is a defect and the specific defect type), and the semantic segmentation result is used as the target detection result. Accordingly, the second sample image in the second training set used to train the second detection model needs to be annotated with corresponding annotation information for each pixel, including the category to which each pixel belongs (whether it is a defect and the specific defect type).
[0180] Optionally, in a possible implementation of the present embodiment, in the process of training the first detection model to be trained and the second detection model to be trained, an existing target detection framework can be utilized, such as the detection library mmdetection based on PyTorch, and publicly published target detection models (such as the RCNN series or the YOLO series, etc.) can be used for reference. By using the transfer learning method, the parameters of the first detection model to be trained and the second detection model to be trained are initialized to the parameter values pre-trained by ImageNet or MSCOCO, and on this basis, the first detection model to be trained and the second detection model to be trained are trained using the training set.
[0181] In the model training based on deep learning, since the model contains many parameters, in order to achieve the purpose of training convergence and better results, a large amount of training data (millions of data) is required, and it is usually impossible to collect and annotate such a large amount of data sets. ImageNet and MSCOCO are two relatively large public data sets. Researchers have done a lot of research on these two data sets, and have trained classification and detection models with good effects on these two data sets. In this embodiment, the method of transfer learning is adopted. The parameters of the first detection model to be trained and the second detection model to be trained are first initialized to the pre-trained parameter values on the public data sets of ImageNet and MSCOCO. On this basis, the parameters are updated using the data sets of targeted tasks, which can accelerate the convergence of the first detection model to be trained and the second detection model to be trained and improve the training effect.
[0182] The technical solution of the embodiment of the present invention based on deep learning can usually be implemented through the following process when applied:
[0183] a), obtaining a sample (an appliance or mold) and acquiring an electronic representation (i.e., an image) of the sample;
[0184] b) annotate the sample images with corresponding annotation information, obtain a number of sample images containing targets (defects) and sample images without targets, form a data set, and divide the data set into a training set, a validation set, and a test set according to a certain ratio;
[0185] c) Design a deep learning model (i.e., the first detection model to be trained and the second detection model to be trained), train the deep learning model using the training set; set evaluation indicators, and select the best deep learning model through the validation set;
[0186] d) Set evaluation indicators to evaluate the performance of the selected deep learning model test set. If the deployment requirements are not met, return to step a) to continue collecting samples and continue the process, or return to step c) to change the design of the deep learning model and continue the process; if the deployment requirements are met, enter the deployment phase of step e);
[0187] e), deploy the deep learning model, obtain the image to be detected, and apply the deep learning model deployed in d) for quality detection.
[0188] f) Post-process the quality inspection results. If it is confirmed that the product has failed the quality inspection (i.e., there are defects), provide text feedback or alarm.
[0189] In this embodiment, a deep learning-based approach is adopted to utilize the pre-trained first detection model and the second detection model to achieve quality inspection of the orthodontic appliance and the mold, which can accurately and effectively identify local defects of the orthodontic appliance and defects of the orthodontic appliance mold.
[0190] In addition, by adopting the technical solution provided by the present invention, a deep learning-based method is adopted to use the pre-trained first detection model and the second detection model to perform quality inspection on the orthodontic appliance and the mold, thereby achieving efficient identification of quality problems of the orthodontic appliance and its mold, avoiding the occupation of operators and quality inspectors, saving human resources, reducing quality inspection costs, reducing quality inspection time, improving quality inspection efficiency, and reducing the workload of operators and quality inspectors, thereby improving production efficiency and helping to increase production capacity.
[0191] In addition, by adopting the technical solution provided by the present invention, using a deep learning-based approach, utilizing the pre-trained first detection model and the second detection model, and adopting objective and unified quality inspection standards, quality inspection of the orthodontic appliance and the mold can be performed, which can effectively control the factory quality of the orthodontic appliance and help form a complete quality traceability and related feedback mechanism.
[0192] In addition, by adopting the technical solution provided by the present invention, a deep learning-based approach is adopted to use the pre-trained first detection model and the second detection model to perform quality inspection on the braces and molds. This can detect defects that are difficult for the human eye to detect, such as missing parts on the mold or cracks on the braces. Minor defects can effectively handle difficult-to-identify examples and improve the level of quality control.
[0193] In addition, by adopting the technical solution provided by the present invention, a deep learning-based approach is adopted to utilize the pre-trained first detection model and the second detection model to perform quality inspection on the orthodontic appliance and the mold, and the inspection has a high accuracy rate and is reliable in complex production environments.
[0194] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0195] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0196] Figure 7 A structural diagram of a quality detection device provided by an embodiment of the present invention is shown in FIG. Figure 7As shown. The quality inspection device of this embodiment may include a first acquisition module 701, a first detection module 702, a cropping module 703, a second detection module 704 and a determination module 705. Among them, the first acquisition module 701 is used to acquire an image to be detected including an object to be detected, and the object to be detected includes an appliance or a mold for laminating the appliance; the first detection module 702 is used to perform region of interest detection on the image to be detected using a first detection model obtained by pre-training to obtain at least one region of interest; the cropping module 703 is used to crop images of each region of interest in the at least one region of interest from the image to be detected; the second detection module 704 is used to perform target detection on the images of each region of interest using a second detection model obtained by pre-training to obtain target detection results corresponding to each region of interest; the determination module 705 is used to determine the quality inspection result of the object to be detected based on the target detection result corresponding to the at least one region of interest.
[0197] It should be noted that part or all of the quality detection device provided in this embodiment may be an application located in the local terminal, or may also be a functional unit such as a plug-in or software development kit (SDK) set in the application located in the local terminal, or may also be a search engine located in a network-side server, or may also be a distributed system located on the network side. This embodiment does not specifically limit this.
[0198] It is understandable that the application may be a local program (nativeApp) installed on the terminal, or may be a webpage program (webApp) of a browser on the terminal, and this embodiment does not specifically limit this.
[0199] Optionally, in a possible implementation of this embodiment, the first acquisition module 701 is specifically used to: utilize a multi-perspective image acquisition system, adopt a bird's-eye view + three-dimensional annular image acquisition method, to acquire a multi-perspective two-dimensional image to be detected including the detection object.
[0200] Optionally, in a possible implementation of this embodiment, the at least one region of interest may include, for example, but is not limited to, any one or more of the following: an anterior teeth region and two posterior teeth regions.
[0201] Optionally, in a possible implementation of this embodiment, the object to be detected is an orthodontic appliance. Accordingly, the second detection module 704 is specifically used to: use the pre-trained second detection model to detect local defects in the images of each region of interest, and obtain the target detection results corresponding to each region of interest, and the target detection results include the type, position and size of the local defects. Among them, the local defects may include, but are not limited to, any one or more of the following: linear depressions, block depressions, traces of missing layers of photocuring, resin residue, stuck photocuring, small accessories, cracks or splits, unclear pressing, wrinkles, cutting accessories, deformation and damage of traction accessories, edge problems, traction hooks not clamped, jaw pads not ground open, worn out, etc.
[0202] Optionally, in a possible implementation of this embodiment, the object to be detected is a mold. Accordingly, the second detection module 704 is specifically used to: use the second detection model obtained in advance to detect mold defects on the images of each region of interest, and obtain the target detection results corresponding to each region of interest, and the target detection results include the type, position and size of the mold defects. Among them, the mold defects include any one or more of the following: base defects, tooth surface defects, and tooth morphological defects. Among them, the base defects may include, but are not limited to, any one or more of the following: uneven base, impurities on the base disc, and uneven bottom surface of the base disc; the tooth surface defects may include, but are not limited to, any one or more of the following: linear depressions, holes on the surface, flash on the tooth surface, foreign matter on the surface, resin residue, etc.; the tooth morphological defects may include, but are not limited to, any one or more of the following: tooth damage, tooth defect, small attachment, etc.
[0203] Optionally, in a possible implementation of the present embodiment, the determination module 705 is specifically used to: respectively stitch the image of the at least one region of interest and the target detection result corresponding to the at least one region of interest to obtain a stitching result; perform flexible non-maximum suppression on the overlapping target detection results in the stitching result to obtain a quality inspection result of the object to be inspected, the quality inspection result including the type, position and size of the target, and the target including a local defect corresponding to the appliance or a mold defect corresponding to the mold.
[0204] Figure 8 This is a schematic diagram of the structure of a quality inspection device provided by another embodiment of the present invention. Figure 8As shown, the quality inspection device of this embodiment also includes: a second acquisition module 801 and a first training module 802. Among them, the second acquisition module 801 is used to obtain a first training set, and the first training set includes multiple first sample images including objects to be detected, and the first sample images are marked with annotation information of regions of interest, and adjacent regions of interest in the regions of interest overlap. The first training module 802 is used to perform region of interest detection on the first sample image in the first training set using the first detection model to be trained to obtain a region of interest detection result; and based on the first difference between the annotation information of the region of interest of the first sample image and the region of interest detection result, train the first detection model to be trained until the first preset training completion condition is met to obtain the first detection model.
[0205] Optionally, in a possible implementation of this embodiment, the first preset training completion condition includes: the number of training times for the first detection model to be trained reaches a preset number of times, and / or the first difference is less than a preset threshold.
[0206] Optionally, in a possible implementation of this embodiment, the first difference is determined based on the following method:
[0207] Loss=BCE_obj+BCE_cls+box_loss
[0208] BCE_xxx=w*focal loss+(1–w)*WCE loss
[0209] Among them, Loss represents the first difference, BCE_obj represents the loss function value between the confidence of the predicted region of interest and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category predicted as the region of interest and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the region of interest and the annotation information. p is the weight value corresponding to the positive sample (i.e., the sample image including the region of interest), which is a preset constant not less than 0 and not greater than 1; i is the annotation information of the region of interest; p i is the detection result of the region of interest; α and γ are pre-set weight values.
[0210] In addition, see Figure 8, the quality inspection device of the above embodiment may further include: a third acquisition module 803 and a second training module 804. The third acquisition module 803 is used to obtain a second training set, wherein the second training set includes a plurality of second sample images of the region of interest, and the plurality of second sample images of the region of interest include: a plurality of second sample images containing targets and a plurality of second sample images without targets; the second sample images are annotated with target annotation information, and the target annotation information includes: target type annotation information, position annotation information and size annotation information. The second training module 804 is used to perform target detection on the second sample images in the second training set using the second detection model to be trained to obtain target detection results of the second sample images; and based on the second difference between the target annotation information of the second sample images and the target detection results, train the second detection model to be trained until the second preset training completion condition is met to obtain the second detection model.
[0211] Optionally, in a possible implementation of this embodiment, the second preset training completion condition may include, for example, but is not limited to: the number of training times for the second detection model to be trained reaches a preset number of times, and / or the second difference is less than a preset threshold.
[0212] Optionally, in a possible implementation of this embodiment, the second difference may be determined based on the following method:
[0213] Wherein, Loss represents the second difference, BCE_obj represents the loss function value between the confidence of the prediction as the target and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category of the prediction as the target and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the target and the annotation information;
[0214] BCE_xxx represents the function value of the cross entropy function, focal loss represents the function value of the adaptive cross entropy loss function for processing data imbalance, WCE loss represents the function value of the weighted cross entropy loss function, w represents the weight value of WCE loss, and w is a preset constant that is not less than 0 and not greater than 1.
[0215] It should be noted that Figure 1 to Figure 6 The corresponding method in the embodiment can be performed by this Figure 7-Figure 8 The quality detection device provided in the embodiment shown is implemented. Figure 1 to Figure 6 The relevant contents in the corresponding embodiments will not be repeated here.
[0216] In this embodiment, a deep learning-based approach is adopted to utilize the pre-trained first detection model and the second detection model to achieve quality inspection of the orthodontic appliance and the mold, which can accurately and effectively identify local defects of the orthodontic appliance and defects of the orthodontic appliance mold.
[0217] In addition, by adopting the technical solution provided by the present invention, a deep learning-based method is adopted to use the pre-trained first detection model and the second detection model to perform quality inspection on the orthodontic appliance and the mold, thereby achieving efficient identification of quality problems of the orthodontic appliance and its mold, avoiding the occupation of operators and quality inspectors, saving human resources, reducing quality inspection costs, reducing quality inspection time, improving quality inspection efficiency, and reducing the workload of operators and quality inspectors, thereby improving production efficiency and helping to increase production capacity.
[0218] In addition, by adopting the technical solution provided by the present invention, using a deep learning-based approach, utilizing the pre-trained first detection model and the second detection model, and adopting objective and unified quality inspection standards, quality inspection of the orthodontic appliance and the mold can be performed, which can effectively control the factory quality of the orthodontic appliance and help form a complete quality traceability and related feedback mechanism.
[0219] In addition, by adopting the technical solution provided by the present invention, a deep learning-based approach is adopted to use the pre-trained first detection model and the second detection model to perform quality inspection on the braces and molds. This can detect defects that are difficult for the human eye to detect, such as missing parts on the mold or cracks on the braces. Minor defects can effectively handle difficult-to-identify examples and improve the level of quality control.
[0220] In addition, by adopting the technical solution provided by the present invention, a deep learning-based approach is adopted to utilize the pre-trained first detection model and the second detection model to perform quality inspection on the orthodontic appliance and the mold, and the inspection has a high accuracy rate and is reliable in complex production environments.
[0221] Fig. 9 A block diagram of an exemplary computer system / server 12 suitable for use in implementing embodiments of the present invention is shown. Fig. 9 The computer system / server 12 shown is merely an example and should not bring any limitation to the functionality and scope of use of embodiments of the present invention.
[0222] like Fig. 9 As shown, computer system / server 12 is represented in the form of a general-purpose computing device. Components of computer system / server 12 may include, but are not limited to: one or more processors or processing units 16, storage devices or system memory 28, and buses 18 that connect different system components (including system memory 28 and processing units 16).
[0223] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0224] Computer system / server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer system / server 12, including volatile and nonvolatile media, removable and non-removable media.
[0225] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer system / server 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Fig. 9 not shown, usually called a "hard drive"). Although Fig. 9 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0226] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0227] The computer system / server 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the computer system / server 12, and / or any device that enables the computer system / server 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 44. In addition, the computer system / server 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer system / server 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer system / server 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0228] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing Figure 1 The quality detection method provided by the corresponding embodiment.
[0229] Another embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements Figure 1 The quality detection method provided by the corresponding embodiment.
[0230] Specifically, any combination of one or more computer-readable media can be used. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0231] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0232] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0233] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0234] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0235] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or page components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0236] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0237] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0238] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0239] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A quality inspection method, characterized in that: include: Acquire an image to be detected including an object to be detected, wherein the object to be detected includes an orthodontic appliance or a mold for laminating the orthodontic appliance; Using the first detection model obtained by pre-training, performing region of interest detection on the image to be detected to obtain at least one region of interest; the at least one region of interest includes any one or more of the following: an anterior teeth region and two posterior teeth regions; Cropping out images of each region of interest in the at least one region of interest from the image to be detected, and performing target detection on the images of each region of interest using a pre-trained second detection model to obtain target detection results corresponding to each region of interest, wherein the size of a defect in the image of the region of interest is larger than the size of the defect in the image to be detected; Determining a quality detection result of the object to be detected based on the target detection result corresponding to the at least one region of interest; The determining, based on the target detection result corresponding to the at least one region of interest, the quality detection result of the object to be detected includes: Separately stitching the image of the at least one region of interest and the target detection result corresponding to the at least one region of interest to obtain a stitching result; According to the overlapping target detection results in the stitching results, the quality detection results of the object to be detected are obtained, and the quality detection results include the type, position and size of the target, and the target includes the local defects corresponding to the orthodontic appliance or the mold defects corresponding to the mold.
2. The method according to claim 1, characterized in that The step of acquiring an image to be detected including the detection object comprises: A multi-view image acquisition system is used to acquire a multi-view two-dimensional image to be detected including the object to be detected by adopting a bird's-eye view + three-dimensional annular image acquisition method.
3. The method according to claim 1, characterized in that: The object to be detected is an appliance; The performing target detection on the images of the regions of interest to obtain target detection results corresponding to the regions of interest includes: performing local defect detection on the images of the regions of interest to obtain target detection results corresponding to the regions of interest, wherein the target detection results include the type, position and size of the local defect; Among them, the local defects include any one or more of the following: linear depression, block depression, traces of missing layers of photocuring, resin residue, stuck photocuring, small accessories, cracks or splits, unclear pressing, wrinkles, cutting accessories, deformation and damage of traction accessories, edge problems, traction hook not clamped, jaw pad not ground open, and worn out.
4. The method according to claim 1, characterized in that: The object to be detected is a mold; The performing target detection on the images of the respective regions of interest to obtain target detection results corresponding to the respective regions of interest includes: performing mold defect detection on the images of the respective regions of interest to obtain target detection results corresponding to the respective regions of interest, wherein the target detection results include types, positions and sizes of the mold defects; Wherein, the mold defects include any one or more of the following: base defects, tooth surface defects, tooth morphology defects; The base defects include any one or more of the following: uneven base, impurities on the base disc; The tooth surface defects include any one or more of the following: linear depression, holes on the surface, flash on the tooth surface, and foreign matter on the surface; The tooth morphological defects include any one or more of the following: tooth damage, tooth defect, and small attachments.
5. The method according to claim 1, characterized in that The step of obtaining the quality detection result of the object to be detected according to the overlapping target detection results in the splicing result includes: Flexible non-maximum suppression is performed on the overlapping target detection results whose intersection-over-union ratio in the splicing result is higher than a preset value to obtain the quality detection result of the object to be detected.
6. The method according to any one of claims 1 to 5, characterized in that: Also includes: Acquire a first training set, wherein the first training set includes a plurality of first sample images including objects to be detected, the first sample images are annotated with annotation information of regions of interest, and adjacent regions of interest in the regions of interest overlap; Using the first detection model to be trained to perform region of interest detection on the first sample image in the first training set to obtain a region of interest detection result; Based on a first difference between the annotation information of the region of interest of the first sample image and the detection result of the region of interest, training the first detection model to be trained until a first preset training completion condition is met, thereby obtaining the first detection model; Among them, the first preset training completion condition includes: the number of training times for the first detection model to be trained reaches a preset number of times, and / or the first difference is less than a preset threshold.
7. The method according to claim 6, characterized in that The first difference is determined based on the following method: Loss = BCE_obj + BCE_cls + box_loss BCE_xxx = w * focal loss + (1 – w) * WCE loss Wherein, Loss represents the first difference, BCE_obj represents the loss function value between the confidence of the prediction of the region of interest and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category of the predicted region of interest and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the region of interest and the annotation information; BCE_xxx represents the function value of the cross entropy function, focal loss represents the function value of the adaptive cross entropy loss function for processing data imbalance, WCE loss represents the function value of the weighted cross entropy loss function, w represents the weight value of WCE loss, and w is a preset constant that is not less than 0 and not greater than 1.
8. The method according to any one of claims 1 to 5, characterized in that: Also includes: Acquire a second training set, wherein the second training set includes a plurality of second sample images of the region of interest, wherein the plurality of second sample images of the region of interest include: a plurality of second sample images containing objects and a plurality of second sample images not containing objects; the second sample images are annotated with object annotation information, wherein the object annotation information includes: object type annotation information, position annotation information, and size annotation information; Using the second detection model to be trained to perform target detection on the second sample image in the second training set, to obtain a target detection result of the second sample image; Based on a second difference between the target annotation information of the second sample image and the target detection result, training the second detection model to be trained until a second preset training completion condition is met, thereby obtaining the second detection model; Wherein, the second preset training completion condition includes: The number of training times for the second detection model to be trained reaches a preset number of times, and / or the second difference is less than a preset threshold.
9. The method according to claim 8, characterized in that The second difference is determined based on the following method: Loss = BCE_obj + BCE_cls + box_loss BCE_xxx = w * focal loss + (1 – w) * WCE loss Wherein, Loss represents the second difference, BCE_obj represents the loss function value between the confidence of the prediction as the target and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category of the prediction as the target and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the target and the annotation information; BCE_xxx represents the function value of the cross entropy function, focal loss represents the function value of the adaptive cross entropy loss function for processing data imbalance, WCE loss represents the function value of the weighted cross entropy loss function, w represents the weight value of WCE loss, and w is a preset constant that is not less than 0 and not greater than 1.
10. A quality inspection device, characterized in that: include: A first acquisition module is used to acquire an image to be detected including an object to be detected, wherein the object to be detected includes an orthodontic appliance or a mold for laminating the orthodontic appliance; A first detection module is used to perform region of interest detection on the image to be detected by using a pre-trained first detection model to obtain at least one region of interest; A cropping module, used for cropping images of each region of interest in the at least one region of interest from the image to be detected; A second detection module is used to perform target detection on the images of each region of interest by using a pre-trained second detection model to obtain target detection results corresponding to each region of interest; A determination module, configured to determine a quality detection result of the object to be detected based on a target detection result corresponding to the at least one region of interest; The at least one region of interest includes any one or more of the following: an anterior tooth region and two posterior tooth regions, and the size of the defect in the image of the region of interest is larger than the size of the defect in the image to be detected; The determining module is specifically used for: Separately stitching the image of the at least one region of interest and the target detection result corresponding to the at least one region of interest to obtain a stitching result; According to the overlapping target detection results in the stitching results, the quality detection results of the object to be detected are obtained, and the quality detection results include the type, position and size of the target, and the target includes the local defects corresponding to the orthodontic appliance or the mold defects corresponding to the mold.
11. The device according to claim 10, characterized in that The first acquisition module is specifically used to: A multi-view image acquisition system is used to acquire a multi-view two-dimensional image to be detected including the object to be detected by adopting a bird's-eye view + three-dimensional annular image acquisition method.
12. The device according to claim 10, characterized in that The object to be detected is an appliance; The second detection module is specifically used to: use the pre-trained second detection model to perform local defect detection on the image of each region of interest, and obtain the target detection result corresponding to each region of interest, wherein the target detection result includes the type, position and size of the local defect; Among them, the local defects include any one or more of the following: linear depression, block depression, traces of missing layers of photocuring, resin residue, stuck photocuring, small accessories, cracks or splits, unclear pressing, wrinkles, cutting accessories, deformation and damage of traction accessories, edge problems, traction hook not clamped, jaw pad not ground open, and worn out.
13. The device according to claim 10, characterized in that The object to be detected is a mold; The second detection module is specifically used to: use the pre-trained second detection model to detect mold defects on the images of each region of interest, and obtain target detection results corresponding to each region of interest, wherein the target detection results include the type, position and size of the mold defect; Wherein, the mold defects include any one or more of the following: base defects, tooth surface defects, tooth morphology defects; The base defects include any one or more of the following: uneven base, impurities on the base disc; The tooth surface defects include any one or more of the following: linear depression, holes on the surface, flash on the tooth surface, and foreign matter on the surface; The tooth morphological defects include any one or more of the following: tooth damage, tooth defect, and small attachments.
14. The device according to claim 10, characterized in that The determining module is specifically used for: Flexible non-maximum suppression is performed on the overlapping target detection results whose intersection-over-union ratio in the splicing result is higher than a preset value to obtain the quality detection result of the object to be detected.
15. The device according to any one of claims 10 to 14, characterized in that: Also includes: A second acquisition module is used to acquire a first training set, wherein the first training set includes a plurality of first sample images including objects to be detected, the first sample images are annotated with annotation information of regions of interest, and adjacent regions of interest in the regions of interest overlap; A first training module is used to perform region of interest detection on a first sample image in the first training set using a first detection model to be trained to obtain a region of interest detection result; and training the first detection model to be trained based on a first difference between the annotation information of the region of interest of the first sample image and the detection result of the region of interest until a first preset training completion condition is met to obtain the first detection model; Among them, the first preset training completion condition includes: the number of training times for the first detection model to be trained reaches a preset number of times, and / or the first difference is less than a preset threshold.
16. The device according to claim 15, characterized in that The first difference is determined based on the following method: Loss = BCE_obj + BCE_cls + box_loss BCE_xxx = w * focal loss + (1 – w) * WCE loss Wherein, Loss represents the first difference, BCE_obj represents the loss function value between the confidence of the prediction of the region of interest and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category of the predicted region of interest and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the region of interest and the annotation information; BCE_xxx represents the function value of the cross entropy function, focal loss represents the function value of the adaptive cross entropy loss function for processing data imbalance, WCE loss represents the function value of the weighted cross entropy loss function, w represents the weight value of WCE loss, and w is a preset constant that is not less than 0 and not greater than 1.
17. The device according to any one of claims 10 to 14, characterized in that: Also includes: A third acquisition module is used to acquire a second training set, wherein the second training set includes a plurality of second sample images of the region of interest, wherein the plurality of second sample images of the region of interest include: a plurality of second sample images containing targets and a plurality of second sample images not containing targets; the second sample images are annotated with target annotation information, wherein the target annotation information includes: target type annotation information, position annotation information and size annotation information; A second training module is used to perform target detection on a second sample image in the second training set using the second detection model to be trained to obtain a target detection result of the second sample image; and to train the second detection model to be trained based on a second difference between the target annotation information of the second sample image and the target detection result until a second preset training completion condition is met to obtain the second detection model; Wherein, the second preset training completion condition includes: The number of training times for the second detection model to be trained reaches a preset number of times, and / or the second difference is less than a preset threshold.
18. The device according to claim 17, characterized in that The second difference is determined based on the following method: Loss = BCE_obj + BCE_cls + box_loss BCE_xxx = w * focal loss + (1 – w) * WCE loss Wherein, Loss represents the second difference, BCE_obj represents the loss function value between the confidence of the prediction as the target and the annotation information calculated using the cross entropy function, BCE_cls represents the loss function value between the category of the prediction as the target and the annotation information calculated using the cross entropy function, and box_loss represents the loss function value between the predicted position of the target and the annotation information; BCE_xxx represents the function value of the cross entropy function, focal loss represents the function value of the adaptive cross entropy loss function for processing data imbalance, WCE loss represents the function value of the weighted cross entropy loss function, w represents the weight value of WCE loss, and w is a preset constant that is not less than 0 and not greater than 1.
19. A device, characterized in that The device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 9.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
