Laser spot quality judgment method and device based on multi-view representation learning
Through the multi-view representation learning method, we construct a reference spot multi-exposure image set and jointly train the image feature encoder to obtain the public potential representation of the spot, solve the misjudgment problem of spot quality judgment in the existing technology, and achieve more accurate and robust Spot quality assessment.
Patent Information
- Application Number
- CN202410833557.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-26
AI Technical Summary
The existing spot center point discrimination method is difficult to accurately extract spot contour information under the influence of background light, resulting in inaccurate spot quality discrimination results. In addition, the spot image obtained by the method based on deep feature learning under a single exposure has missing texture features, resulting in The features are not comprehensive enough and can easily lead to misjudgment.
Using a method based on multi-view representation learning, a reference spot multi-exposure image set is constructed by constructing multiple historical spot images under different exposures, jointly training the image feature encoder, sharing network parameters, and obtaining a set of potential representations under multiple exposures. , and through representation fusion and weighted summation, the common potential representation center point of the light spot is determined, and the distance between the potential representation center point of the light spot to be detected and the positive and negative sample images is compared to determine the spot quality.
It improves the accuracy and robustness of spot quality discrimination, avoids the impact of the lack of contour information under background light interference on the discrimination, and significantly improves the accuracy of spot quality discrimination.
Smart Images

Figure CN118396997B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser detection technology, and in particular to a laser spot quality judgment method and device based on multi-view characterization learning. Background Art
[0002] Lasers are widely used in medicine, measurement, communication, industry and other fields. Laser-based medical testing equipment, laser cutting equipment and optoelectronic communication electronic products all have high requirements on laser precision. Therefore, in the research and development process of lasers, the quality judgment of laser spot is particularly important.
[0003] The existing method of judging the quality of the light spot by the center point of the light spot is difficult to accurately extract the contour information of the light spot under the influence of background light, thus affecting the result of the light spot quality judgment; the method of judging the quality of the light spot based on deep feature learning is that the quality of the learned features is limited by the amount of information contained in the input light spot image. The light spot image obtained under a single exposure will have some texture features missing, resulting in the learned features being not comprehensive enough, which can easily lead to misjudgment of the light spot quality using this feature. Summary of the invention
[0004] The present invention provides a laser spot quality judgment method and device based on multi-view characterization learning, which solves the technical problem that the existing method of judging the spot quality by the center point of the spot is prone to misjudgment of the spot quality.
[0005] In view of this, the first aspect of the present invention provides a laser spot quality judgment method based on multi-view characterization learning, comprising:
[0006] Constructing a reference spot multi-exposure image set according to historical spot images of the laser spot at multiple different exposure amounts, wherein the reference spot multi-exposure image set includes a positive sample image and a negative sample image;
[0007] Jointly training a plurality of image feature encoders corresponding to different exposure amounts respectively through the reference spot multi-exposure image set, wherein network parameters are shared among the plurality of image feature encoders;
[0008] Performing feature encoding on the reference light spot multi-exposure image set according to the trained multiple image feature encoders to obtain a potential representation set of positive sample images at multiple exposure levels and a potential representation set of negative sample images at multiple exposure levels;
[0009] Representation fusion is performed on the potential representation sets of the positive sample images under multiple exposure amounts and the potential representation sets of the negative sample images under multiple exposure amounts respectively, so as to obtain a common potential representation set of the positive sample images and a common potential representation set of the negative sample images;
[0010] Determining a center point of the common potential representation set of the positive sample image and a center point of the common potential representation set of the negative sample image according to the common potential representation set of the positive sample image and the common potential representation set of the negative sample image;
[0011] The distance relationships between the common potential representation of the light spot to be detected and the center points of the common potential representation set of the positive sample image and the center points of the common potential representation set of the negative sample image are compared, and the quality of the light spot to be detected is determined according to the comparison result of the distance relationship.
[0012] Preferably, the image feature encoder adopts a convolutional neural network.
[0013] Preferably, before the step of respectively fusing the potential representation sets of the positive sample images at multiple exposure levels and the potential representation sets of the negative sample images at multiple exposure levels to obtain a common potential representation set of the positive sample images and a common potential representation set of the negative sample images, the step further includes:
[0014] Using the Laplace operator to operate the reference light spot multi-exposure image set, to obtain the contrast weights of the historical light spot image at multiple exposures;
[0015] Performing an exponential operation on the reference light spot multi-exposure image set to obtain brightness weights of the historical light spot image at multiple exposure amounts;
[0016] The contrast weight and the brightness weight of the historical spot image at multiple exposures are mean-fused to obtain an image representation fusion weight.
[0017] Preferably, the step of performing representation fusion on the potential representation sets of the positive sample images at multiple exposure levels and the potential representation sets of the negative sample images at multiple exposure levels to obtain a common potential representation set of the positive sample images and a common potential representation set of the negative sample images specifically includes:
[0018] The image representation fusion weights are used to perform weighted summation on the potential representation sets of positive sample images under multiple exposures and the potential representation sets of negative sample images under multiple exposures, respectively, to obtain a common potential representation set of the positive sample images and a common potential representation set of the negative sample images.
[0019] Preferably, before the step of comparing the distance relationship between the common potential representation of the light spot to be detected and the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image, and determining the quality of the light spot to be detected according to the comparison result of the distance relationship, the step further includes:
[0020] Constructing a light spot multi-exposure image set according to the light spot images of the light spot to be detected under multiple different exposure amounts;
[0021] Using a plurality of trained image feature encoders to perform feature encoding on the light spot multi-exposure image set, to obtain a potential representation set of light spot images under a plurality of exposure amounts;
[0022] The potential representation sets of the spot images under multiple exposure amounts are represented by fusion, so as to obtain a common potential representation of the spot multi-exposure image set.
[0023] Preferably, the step of comparing the distance relationship between the common potential representation of the light spot to be detected and the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image, and determining the quality of the light spot to be detected according to the comparison result of the distance relationship specifically includes:
[0024] Comparing the distance relationship between the public potential representation of the light spot to be detected and the center point of the public potential representation set of the positive sample image and the center point of the public potential representation set of the negative sample image;
[0025] If the public potential representation of the light spot to be detected is closer to the center point of the public potential representation set of the positive sample image, then the light spot to be detected is determined to be a light spot of normal quality;
[0026] If the common potential representation of the light spot to be detected is closer to the center point of the common potential representation set of the negative sample image, then the light spot to be detected is determined to be a light spot of abnormal quality.
[0027] In a second aspect, the present invention further provides a laser spot quality determination device based on multi-view characterization learning, comprising:
[0028] A reference image construction module, used to construct a reference spot multi-exposure image set according to historical spot images of the laser spot at multiple different exposure amounts, wherein the reference spot multi-exposure image set includes a positive sample image and a negative sample image;
[0029] An encoder training module, used for jointly training a plurality of image feature encoders corresponding to different exposure amounts respectively through the reference spot multi-exposure image set, wherein network parameters are shared among the plurality of image feature encoders;
[0030] A potential representation encoding module, used for performing feature encoding on the reference light spot multi-exposure image set according to a plurality of trained image feature encoders to obtain a potential representation set of positive sample images at a plurality of exposure amounts and a potential representation set of negative sample images at a plurality of exposure amounts;
[0031] A representation fusion module is used to perform representation fusion on potential representation sets of positive sample images under multiple exposure amounts and potential representation sets of negative sample images under multiple exposure amounts, respectively, to obtain a common potential representation set of positive sample images and a common potential representation set of negative sample images;
[0032] A representation center determination module, configured to determine the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image according to the common potential representation set of the positive sample image and the common potential representation set of the negative sample image;
[0033] The light spot quality determination module is used to compare the distance relationship between the common potential representation of the light spot to be detected and the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image, and determine the quality of the light spot to be detected according to the comparison result of the distance relationship.
[0034] In a third aspect, the present invention further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the laser spot quality judgment method based on multi-perspective representation learning as described above.
[0035] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, the steps of the laser spot quality determination method based on multi-view characterization learning as described above are implemented.
[0036] In a fifth aspect, the present invention also provides a computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions, wherein when the program instructions are executed by a computer, the computer executes the steps of the laser spot quality judgment method based on multi-perspective representation learning as described above.
[0037] It can be seen from the above technical solutions that the present invention has the following advantages:
[0038] The present invention uses the potential representation of historical spot images for spot quality judgment, does not rely on spot contour information, avoids the influence of missing contour information on spot quality judgment under background light interference, and improves the accuracy of laser spot quality judgment. When mining the spot features, multiple image feature encoders corresponding to different exposures are constructed for joint training, and network parameters are shared between multiple image feature encoders, so that multi-perspective representation learning mines the potential representation of multiple exposure images of the spot, learns the common potential representation from multiple spot images, and uses the common potential representation for judgment, which solves the problems of incomplete features and inaccurate judgment in existing methods based on a single spot image, and significantly improves the accuracy and robustness of spot quality judgment. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A flowchart of a laser spot quality determination method based on multi-view characterization learning provided by an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of the structure of a laser spot quality discrimination system based on multi-view characterization learning provided by an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only 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.
[0043] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.
[0044] The existing method of judging the quality of the light spot by the center point of the light spot is difficult to accurately extract the contour information of the light spot under the influence of background light, thus affecting the result of the light spot quality judgment; the method of judging the quality of the light spot based on deep feature learning is that the quality of the learned features is limited by the amount of information contained in the input light spot image. The light spot image obtained under a single exposure will have some texture features missing, resulting in the learned features being not comprehensive enough, which can easily lead to misjudgment of the light spot quality using this feature.
[0045] In view of this, an embodiment of the present invention provides a laser spot quality determination method based on multi-view characterization learning. The embodiment of the present invention is applicable to the case of laser spot quality determination, and the method can be performed by a laser spot quality determination device, which can be implemented in the form of hardware and / or software, and the laser spot quality determination device can be configured in a computer device.
[0046] like Figure 1 As shown, Figure 1 The flowchart of a laser spot quality judgment method based on multi-view characterization learning provided by the present invention is illustrated.
[0047] The present invention provides a laser spot quality judgment method based on multi-view characterization learning, comprising:
[0048] Step S1, constructing a reference spot multi-exposure image set according to historical spot images of the laser spot under multiple different exposure amounts, wherein the reference spot multi-exposure image set includes a positive sample image and a negative sample image.
[0049] In some examples, the historical spot images of the laser at multiple different exposures are quickly collected through a liquid lens, the grayscale features of all the historical spot images are extracted, and a reference spot multi-exposure image set is constructed based on these grayscale features. The reference spot multi-exposure image set is defined as:
[0050]
[0051] In the formula, is the number of historical spot images, is the number of selected exposures, For the Historical spot images, For the The historical spot image is in The grayscale characteristics of the image at different exposure levels.
[0052] The reference spot multi-exposure image set contains a similar number of Normal light spots (i.e., positive sample images) are composed of a normal light spot multi-exposure image set and The abnormal light spot multi-exposure image set consists of abnormal light spots (i.e., negative sample images) , Indicates the normal spot index, Indicates the abnormal light spot index.
[0053] Step S2: jointly train image feature encoders corresponding to multiple different exposure amounts by using a reference spot multi-exposure image set, wherein network parameters are shared among the multiple image feature encoders.
[0054] The image feature encoder uses a convolutional neural network. Convolutional neural networks are used as image feature encoders for spot images with different exposure amounts, and network parameters are shared between image feature encoders with different exposure amounts.
[0055] The image feature encoders corresponding to multiple exposure values are jointly trained by referring to the multi-exposure image set of the light spot to obtain the exposure image Feature Encoder .
[0056] In the joint training, the historical spot images in the reference spot multi-exposure image set are used as the input of the image feature encoder of the corresponding exposure, and the output is the corresponding multi-exposure. For the multi-exposure output, the contrast loss value between the two outputs is constructed in turn, and all the contrast loss values are summed to obtain the total contrast loss value. The back propagation algorithm is used to minimize the total contrast loss value, and the network parameters of the image feature encoder are batch optimized and updated, and finally the desired image feature encoder is trained.
[0057] Step S3: feature encode the reference spot multi-exposure image set according to the trained multiple image feature encoders to obtain a potential representation set of positive sample images under multiple exposure amounts and a potential representation set of negative sample images under multiple exposure amounts.
[0058] Among them, Historical spot images are The potential representation set of images at exposure levels is .
[0059] The potential representation set of positive sample images is .
[0060] The potential representation set of negative sample images is .
[0061] It should be noted that by utilizing the shared network parameters between multiple image feature encoders and jointly training the image feature encoders corresponding to multiple different exposure amounts, multi-perspective representation learning can be used to mine the potential representation of multi-exposure images of the light spot, thereby obtaining a multi-exposure public potential representation containing more comprehensive feature information, avoiding the misjudgment of the light spot quality due to the lack of texture features.
[0062] Step S4: perform representation fusion on the potential representation sets of the positive sample images under multiple exposure amounts and the potential representation sets of the negative sample images under multiple exposure amounts, respectively, to obtain a common potential representation set of the positive sample images and a common potential representation set of the negative sample images.
[0063] In some examples, in order to make the representation fusion closer to reality, the method further includes before step S4:
[0064] Step S41 : using the Laplace operator to operate on the reference light spot multi-exposure image set to obtain the contrast weights of the historical light spot image at multiple exposure amounts.
[0065] Among them, the Laplace operator is used to calculate the contrast weight of the spot image under different exposure amounts. A multi-exposure image set of historical spot images , No. Image at exposure The contrast weight is:
[0066]
[0067] In the formula, Indicates Image at exposure The contrast weight, Express The same shape matrix calculated using the Laplacian operator, Represents the 1-norm operation of a matrix.
[0068] Step S42: performing an exponential operation on the reference light spot multi-exposure image set to obtain the brightness weights of the historical light spot images under multiple exposure amounts.
[0069] No. The first historical spot image Image at exposure The brightness weight is:
[0070]
[0071] In the formula, For the The first historical spot image Images at exposure levels The brightness weight, is the variance, To select a good exposure, Performs an exponential operation on each element of the matrix with a natural constant as the base.
[0072] Step S43: performing mean fusion on the contrast weights and brightness weights of the historical spot image at multiple exposures to obtain an image representation fusion weight.
[0073] No. The first historical spot image Images at exposure levels The image representation fusion weight is:
[0074]
[0075] In the formula, For the The first historical spot image Images at exposure levels The image representation fusion weights, and They are the adjustment coefficients for contrast and brightness respectively.
[0076] Specifically, the image representation fusion weights are used to perform weighted summation on the potential representation sets of positive sample images under multiple exposure levels and the potential representation sets of negative sample images under multiple exposure levels, respectively, to obtain the common potential representation set of positive sample images and the common potential representation set of negative sample images.
[0077] Among them, the public potential representation set of positive sample images is , where the common latent representation of the normal spot multi-exposure image set is .
[0078] Common latent representation set for negative images , where the common latent representation of the abnormal spot multi-exposure image set is .
[0079] Step S5: Determine the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image according to the common potential representation set of the positive sample image and the common potential representation set of the negative sample image.
[0080] Among them, the center point of the public potential representation set of the positive sample image is calculated as:
[0081]
[0082] In the formula, is the center point of the common potential representation set of positive sample images.
[0083] The center point of the common potential representation set of negative sample images is:
[0084]
[0085] In the formula, is the center point of the common latent representation set of negative sample images.
[0086] Step S6, comparing the distance relationship between the common potential representation of the light spot to be detected and the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image, and determining the quality of the light spot to be detected according to the comparison result of the distance relationship.
[0087] Specifically, the process of acquiring the public potential representation of the light spot to be detected is similar to the process of acquiring the public potential representation of the historical light spot image. Specifically:
[0088] Step S61 : constructing a light spot multi-exposure image set according to the light spot images of the light spot to be detected under multiple different exposure amounts.
[0089] Among them, the light spot multi-exposure image set of the light spot to be detected is .
[0090] Step S62, using the trained multiple image feature encoders to perform feature encoding on the light spot multi-exposure image set to obtain a potential representation set of the light spot images under multiple exposure amounts;
[0091] Step S63: performing representation fusion on the potential representation sets of the spot images under multiple exposure amounts to obtain a common potential representation of the spot multi-exposure image set.
[0092] Among them, the common potential representation of the spot multi-exposure image set is expressed as:
[0093]
[0094] In the formula, is the common latent representation of the spot multi-exposure image set, is the image representation fusion weight, is a potential representation set of multiple exposure images of the light spot to be detected, where ,in, is the image feature encoder.
[0095] Specifically, step S6 includes:
[0096] Step S601 : comparing the distance relationship between the common potential representation of the light spot to be detected and the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image.
[0097] Step S602: If the common potential representation of the light spot to be detected is close to the center point of the common potential representation set of the positive sample image, it is determined that the light spot to be detected is a light spot of normal quality.
[0098] Step S603: If the common potential representation of the light spot to be detected is close to the center point of the common potential representation set of the negative sample image, it is determined that the light spot to be detected is an abnormal quality light spot.
[0099] It can be understood that the present invention also uses the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image, compares the common potential representation of the light spot to be detected and the distance relationship between the two center points as a basis for judgment, makes full use of prior information, and improves the accuracy of light spot quality judgment.
[0100] It should be noted that the present invention uses the potential representation of historical spot images for spot quality judgment, does not rely on spot contour information, avoids the influence of missing contour information on spot quality judgment under background light interference, and improves the accuracy of laser spot quality judgment. When mining the spot features, by constructing multiple image feature encoders corresponding to different exposure amounts for joint training, and using the shared network parameters between multiple image feature encoders, multi-perspective representation learning mines the potential representation of multiple exposure images of the spot, learns the common potential representation from multiple spot images, and uses the common potential representation for judgment, which solves the problems of incomplete features and inaccurate judgment in the existing methods based on a single spot image, and significantly improves the accuracy and robustness of spot quality judgment.
[0101] The above is a detailed description of an embodiment of a laser spot quality judgment method based on multi-view characterization learning provided by the present invention. The following is a detailed description of an embodiment of a laser spot quality judgment device based on multi-view characterization learning provided by the present invention.
[0102] For easier understanding, see Figure 2 The present invention also provides a laser spot quality judgment device based on multi-view characterization learning, comprising:
[0103] A reference image construction module 100 is used to construct a reference spot multi-exposure image set according to historical spot images of the laser spot at multiple different exposure amounts, wherein the reference spot multi-exposure image set includes a positive sample image and a negative sample image;
[0104] The encoder training module 200 is used to jointly train image feature encoders corresponding to multiple different exposure values by using a reference spot multi-exposure image set, wherein the network parameters are shared among the multiple image feature encoders;
[0105] A potential representation encoding module 300 is used to perform feature encoding on a reference spot multi-exposure image set according to a plurality of trained image feature encoders to obtain a potential representation set of positive sample images at a plurality of exposure levels and a potential representation set of negative sample images at a plurality of exposure levels;
[0106] A representation fusion module 400 is used to perform representation fusion on potential representation sets of positive sample images under multiple exposure levels and potential representation sets of negative sample images under multiple exposure levels, respectively, to obtain a common potential representation set of positive sample images and a common potential representation set of negative sample images;
[0107] A representation center determination module 500 is used to determine the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image according to the common potential representation set of the positive sample image and the common potential representation set of the negative sample image;
[0108] The light spot quality determination module 600 is used to compare the distance relationship between the common potential representation of the light spot to be detected and the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image, and determine the quality of the light spot to be detected according to the comparison result of the distance relationship.
[0109] like Figure 3 As shown, the present invention also provides an electronic device 10, including a memory 20 and a processor 30, wherein a computer program is stored in the memory 20, and when the computer program is executed by the processor 30, the processor 30 executes the steps of the laser spot quality judgment method based on multi-view characterization learning as described above.
[0110] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, the steps of the laser spot quality determination method based on multi-view characterization learning as described above are implemented.
[0111] The present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer executes the steps of the laser spot quality judgment method based on multi-perspective representation learning as described above.
[0112] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, electronic devices, computer storage media and computer program products can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0113] In several embodiments provided by the present invention, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a part of a module, a program segment or a code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
[0114] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, electronic devices, computer storage media, computer program products and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or 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 through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0115] 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.
[0116] 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 software functional units.
[0117] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for executing all or part of the steps of the method described in each embodiment of the present invention through a computer device (which can be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.
[0118] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. 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 laser spot quality identification method based on multi-view representation learning, It is characterized in that include: Constructing a reference spot multi-exposure image set according to historical spot images of the laser spot at multiple different exposure amounts, wherein the reference spot multi-exposure image set includes a positive sample image and a negative sample image; Jointly training a plurality of image feature encoders corresponding to different exposure amounts respectively through the reference spot multi-exposure image set, wherein network parameters are shared among the plurality of image feature encoders; Performing feature encoding on the reference light spot multi-exposure image set according to the trained multiple image feature encoders to obtain a potential representation set of positive sample images at multiple exposure levels and a potential representation set of negative sample images at multiple exposure levels; Representation fusion is performed on the potential representation sets of the positive sample images under multiple exposure amounts and the potential representation sets of the negative sample images under multiple exposure amounts respectively, so as to obtain a common potential representation set of the positive sample images and a common potential representation set of the negative sample images; Determining a center point of the common potential representation set of the positive sample image and a center point of the common potential representation set of the negative sample image according to the common potential representation set of the positive sample image and the common potential representation set of the negative sample image; The distance relationships between the common potential representation of the light spot to be detected and the center points of the common potential representation set of the positive sample image and the center points of the common potential representation set of the negative sample image are compared, and the quality of the light spot to be detected is determined according to the comparison result of the distance relationship.
2. According to the laser spot quality determination method based on multi-view characterization learning according to claim 1, It is characterized in that The image feature encoder adopts a convolutional neural network.
3. According to the laser spot quality determination method based on multi-view characterization learning according to claim 1, It is characterized in that Before the step of fusing the potential representation sets of the positive sample images at multiple exposure levels and the potential representation sets of the negative sample images at multiple exposure levels to obtain a common potential representation set of the positive sample images and a common potential representation set of the negative sample images, the step further includes: Using the Laplace operator to operate the reference light spot multi-exposure image set, to obtain the contrast weights of the historical light spot image at multiple exposures; Performing an exponential operation on the reference light spot multi-exposure image set to obtain brightness weights of the historical light spot image at multiple exposure amounts; The contrast weight and the brightness weight of the historical spot image at multiple exposures are mean-fused to obtain an image representation fusion weight.
4. According to claim 3, the laser spot quality determination method based on multi-view characterization learning, It is characterized in that The step of fusing the potential representation sets of the positive sample images at multiple exposure levels and the potential representation sets of the negative sample images at multiple exposure levels to obtain a common potential representation set of the positive sample images and a common potential representation set of the negative sample images specifically includes: The image representation fusion weights are used to perform weighted summation on the potential representation sets of positive sample images under multiple exposures and the potential representation sets of negative sample images under multiple exposures, respectively, to obtain a common potential representation set of the positive sample images and a common potential representation set of the negative sample images.
5. The laser spot quality determination method based on multi-view characterization learning according to claim 1, It is characterized in that Before the step of comparing the distance relationship between the common potential representation of the light spot to be detected and the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image, and determining the quality of the light spot to be detected according to the comparison result of the distance relationship, the step further includes: Constructing a light spot multi-exposure image set according to the light spot images of the light spot to be detected under multiple different exposure amounts; Using a plurality of trained image feature encoders to perform feature encoding on the light spot multi-exposure image set, to obtain a potential representation set of light spot images under a plurality of exposure amounts; The potential representation sets of the spot images under multiple exposure amounts are represented by fusion, so as to obtain a common potential representation of the spot multi-exposure image set.
6. The laser spot quality determination method based on multi-view characterization learning according to claim 1, It is characterized in that The step of comparing the distance relationship between the common potential representation of the light spot to be detected and the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image, and determining the quality of the light spot to be detected according to the comparison result of the distance relationship specifically includes: Comparing the distance relationship between the public potential representation of the light spot to be detected and the center point of the public potential representation set of the positive sample image and the center point of the public potential representation set of the negative sample image; If the public potential representation of the light spot to be detected is closer to the center point of the public potential representation set of the positive sample image, then the light spot to be detected is determined to be a light spot of normal quality; If the common potential representation of the light spot to be detected is closer to the center point of the common potential representation set of the negative sample image, then the light spot to be detected is determined to be a light spot of abnormal quality.
7. A laser spot quality identification device based on multi-view characterization learning, It is characterized in that include: A reference image construction module, used to construct a reference spot multi-exposure image set according to historical spot images of the laser spot at multiple different exposure amounts, wherein the reference spot multi-exposure image set includes a positive sample image and a negative sample image; An encoder training module, used for jointly training a plurality of image feature encoders corresponding to different exposure amounts respectively through the reference spot multi-exposure image set, wherein network parameters are shared among the plurality of image feature encoders; A potential representation encoding module, used for performing feature encoding on the reference light spot multi-exposure image set according to a plurality of trained image feature encoders to obtain a potential representation set of positive sample images at a plurality of exposure amounts and a potential representation set of negative sample images at a plurality of exposure amounts; A representation fusion module is used to perform representation fusion on potential representation sets of positive sample images under multiple exposure amounts and potential representation sets of negative sample images under multiple exposure amounts, respectively, to obtain a common potential representation set of positive sample images and a common potential representation set of negative sample images; A representation center determination module, configured to determine the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image according to the common potential representation set of the positive sample image and the common potential representation set of the negative sample image; The light spot quality determination module is used to compare the distance relationship between the common potential representation of the light spot to be detected and the center point of the common potential representation set of the positive sample image and the center point of the common potential representation set of the negative sample image, and determine the quality of the light spot to be detected according to the comparison result of the distance relationship.
8. An electronic device, It is characterized in that It comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the laser spot quality judgment method based on multi-view characterization learning as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed, the steps of the laser spot quality determination method based on multi-view characterization learning as described in any one of claims 1 to 6 are implemented.
10. A computer program product, It is characterized in that The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer is caused to perform the steps of the laser spot quality judgment method based on multi-view representation learning as described in any one of claims 1 to 6.
