A lens aluminum seat detection method and system based on a robot
By combining image shooting, ultrasonic detection and fluorescence signal intensity image acquisition with a manipulator, the surface defects, internal defects and residual stress of the aluminum lens base are evaluated, which solves the problem of neglecting residual stress detection in the existing technology and achieves comprehensive inspection of the aluminum lens base. Quality assessment and automated testing improve detection efficiency and accuracy.
Patent Information
- Application Number
- CN202410666612.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-28
AI Technical Summary
The existing technology ignores the residual stress detection of the material when detecting the aluminum lens mount, and fails to achieve a comprehensive quality assessment of the aluminum lens mount.
Using a robot-based detection method, the evaluation values of surface defects, internal defects and residual stress are obtained through image shooting, ultrasonic detection and fluorescence signal intensity images, and the quality evaluation value of the lens aluminum base is calculated based on weights to achieve automated detection.
It improves the efficiency and accuracy of the inspection of lens aluminum mounts, enables comprehensive assessment of the quality of lens aluminum mounts, timely judgment of qualifications, and ensures product quality.
Smart Images

Figure CN118243689B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lens aluminum seat detection, and in particular to a lens aluminum seat detection method and system based on a robot. Background Art
[0002] The lens mount usually refers to the metal part on the camera lens, which is used to connect the lens and the camera body. It is a metal base or bracket that has the function of fixing the camera lens and mounting it on the camera body. Usually, the lens mount is made of aluminum alloy or other metal materials, with sufficient strength and rigidity to ensure the stable installation and good working performance of the camera lens. In the camera system, the lens mount plays an important connecting role, which directly affects the imaging quality and stability of the camera.
[0003] The existing technology generally detects internal and external defects, material quality, etc. when testing and evaluating the aluminum lens mount. In the material quality test, the inclusions, foreign matter or impurities in the material are generally detected, and the residual stress test of the material is ignored. Residual stress is a non-equilibrium stress inside the material, which is usually caused by the deformation experienced by the material during manufacturing, processing or use. The existence of residual stress may affect the mechanical properties and durability of the material.
[0004] Therefore, how to conduct a comprehensive quality assessment of the lens aluminum mount is called a new trend in technological development. Summary of the invention
[0005] In view of this, the present invention proposes a lens aluminum seat detection method and system based on a robot, mainly to solve the problem of how to conduct a comprehensive quality assessment of the lens aluminum seat in combination with residual stress detection.
[0006] In one aspect, the present invention provides a lens aluminum seat detection method based on a manipulator, the method comprising:
[0007] The robot captures an image of the lens aluminum seat to be inspected to obtain first image data of the lens aluminum seat, and determines whether there are defects on the surface of the lens aluminum seat according to the first image data to determine a surface defect evaluation value S;
[0008] After the surface defect evaluation value S is determined, an ultrasonic test is performed on the lens aluminum seat to be tested by a manipulator to obtain ultrasonic test data, and an internal defect evaluation value D is determined according to the ultrasonic test data;
[0009] After the internal defect evaluation value D is determined, the manipulator coats the surface of the lens aluminum seat with a fluorescent material, illuminates the surface of the lens aluminum seat with an excitation light source and obtains a fluorescent signal intensity image, and determines the residual stress evaluation value Y according to the fluorescent signal intensity image;
[0010] Determine the quality evaluation value Q of the lens aluminum mount according to the surface defect evaluation value S, the internal defect evaluation value D and the residual stress evaluation value Y;
[0011] The quality evaluation value Q is calculated by the following formula:
[0012] Q = S*ɑ+D*β+Y*γ;
[0013] Among them, ɑ, β and γ are weights, and ɑ+β+γ=1;
[0014] Presetting the quality evaluation standard value Qa of the lens aluminum mount;
[0015] When Q<Qa, it is judged that the lens aluminum seat to be tested is qualified;
[0016] When Q≥Qa, it is determined that the lens aluminum seat to be tested is unqualified.
[0017] In some embodiments of the present application, when determining whether there is a defect on the surface of the lens aluminum mount according to the first image data and determining the surface defect evaluation value S, it includes:
[0018] When it is determined that there is no defect on the surface of the lens aluminum seat, S=0;
[0019] When it is determined that there are defects on the surface of the lens aluminum seat, the surface defect ratio is calculated, and the surface defect evaluation value S is determined according to the surface defect ratio.
[0020] In some embodiments of the present application, when judging whether there is a defect on the surface of the lens aluminum mount according to the first image data, the method further includes:
[0021] Acquire a grayscale image of the first image data;
[0022] A first preset grayscale standard threshold value A1 and a second preset grayscale standard threshold value A2 are preset, and A1>A2;
[0023] The pixel grayscale value of the grayscale image is recorded as Ai, i=1, 2, ..., n;
[0024] Pixels that satisfy Ai≥A1 or Ai≤A2 are recorded as abnormal pixels;
[0025] Pixels that satisfy A1>Ai>A2 are recorded as normal pixels;
[0026] Obtaining the number of abnormal pixels Aa and the number of normal pixels Ab in the grayscale image;
[0027] When Aa=0, it is determined that there is no defect on the surface of the lens aluminum seat, and at this time, the surface defect evaluation value S is 0;
[0028] When Aa>0, it is determined that there are defects on the surface of the lens aluminum seat.
[0029] In some embodiments of the present application, when Aa>0, it is determined that there is a defect on the surface of the lens aluminum seat, including:
[0030] Calculate the abnormal pixel ratio Ac according to the abnormal pixel number Aa and the normal pixel number Ab, Ac=Aa / (Aa+Ab);
[0031] The surface defect evaluation value S is calculated according to the abnormal pixel ratio Ac, where S=Ac*100.
[0032] In some embodiments of the present application, before determining the internal defect evaluation value D according to the ultrasonic detection data, the following steps are included:
[0033] Obtain the thickness of the lens aluminum seat, recorded as B;
[0034] A first preset thickness value B1 and a second preset thickness value B2 are preset, and B1>B2;
[0035] Compare the thickness value B of the lens aluminum seat with the first preset thickness value B1 and the second preset thickness value B2 respectively, and determine the ultrasonic frequency of ultrasonic detection according to the comparison result;
[0036] Preset a first preset ultrasonic frequency C1, a second preset ultrasonic frequency C2 and a third preset ultrasonic frequency C3, and C1>C2>C3;
[0037] When B≥B1, the ultrasonic frequency of the ultrasonic detection is determined to be the third preset ultrasonic frequency C3;
[0038] When B1>B≥B2, the ultrasonic frequency of the ultrasonic detection is determined to be the second preset ultrasonic frequency C2;
[0039] When B2>B, the ultrasonic frequency of the ultrasonic detection is determined to be the first preset ultrasonic frequency C1.
[0040] In some embodiments of the present application, after selecting the kth preset ultrasonic frequency Ck as the ultrasonic frequency for ultrasonic detection, k=1, 2, 3, further comprising:
[0041] The ultrasonic detection data is ultrasonic amplitude data;
[0042] The ultrasonic amplitude value in the ultrasonic amplitude data is recorded as Bi, i=1, 2, ..., n;
[0043] A first preset ultrasonic amplitude standard threshold value B1 and a second preset ultrasonic amplitude standard threshold value B2 are preset, and B1>B2;
[0044] The ultrasonic amplitude value satisfying Bi≥B1 or Bi≤B2 is regarded as the abnormal amplitude value;
[0045] The ultrasonic amplitude value satisfying B1>Bi>B2 is regarded as the normal amplitude value;
[0046] Obtain the number of abnormal amplitude values Ba and the number of normal amplitude values Bb of the ultrasonic amplitude data, and calculate the abnormal amplitude value proportion Bc according to the number of abnormal amplitude values Ba and the number of normal amplitude values Bb, where Bc=Ba / (Ba+Bb);
[0047] The internal defect evaluation value D is calculated according to the abnormal amplitude value proportion Bc, where D=Bc*100.
[0048] In some embodiments of the present application, when the manipulator coats the fluorescent material on the surface of the lens aluminum seat, illuminates the surface of the lens aluminum seat through an excitation light source, and acquires a fluorescent signal intensity image, the method includes:
[0049] Dividing the fluorescence signal intensity image into a plurality of image units according to a preset rectangular area pixel size;
[0050] Acquire the highest fluorescence signal intensity of each of the image units, and use each of the highest fluorescence signal intensity as the fluorescence signal intensity value corresponding to the image unit;
[0051] The fluorescence signal intensity values of the image units are recorded as Ei, where i=1, 2, ..., n.
[0052] In some embodiments of the present application, after obtaining the fluorescence signal intensity values Ei of the plurality of image units, the method further includes:
[0053] A first preset fluorescence signal intensity standard threshold E1 and a second preset fluorescence signal intensity standard threshold E2 are preset, and E1>E2;
[0054] The fluorescence signal intensity value Ei of the image unit is compared with the first preset fluorescence signal intensity standard threshold E1 and the second preset fluorescence signal intensity standard threshold E2:
[0055] The image units satisfying Ei≥E1 or Ei≤E2 are regarded as abnormal image units;
[0056] The image unit satisfying E1>Ei>E2 is regarded as a normal image unit;
[0057] The number of abnormal image units Ea and the number of normal image units Eb are obtained by statistics.
[0058] In some embodiments of the present application, after obtaining the number of abnormal image units Ea and the number of normal image units Eb, the method further includes:
[0059] Calculate the abnormal image unit ratio Ec according to the abnormal image unit number Ea and the normal image unit number Eb, where Ec=Ea / (Ea+Eb);
[0060] The residual stress evaluation value Y is calculated according to the abnormal image unit proportion Ec, where Y=Ec*100.
[0061] In another aspect, the present invention provides a lens aluminum seat detection system based on a manipulator, the system comprising:
[0062] A surface defect evaluation unit is used to capture an image of a lens aluminum seat to be inspected by a manipulator, obtain first image data of the lens aluminum seat, and determine whether there are defects on the surface of the lens aluminum seat according to the first image data to determine a surface defect evaluation value S;
[0063] An internal defect evaluation unit, configured to, after determining the surface defect evaluation value S, perform ultrasonic testing on the lens aluminum seat to be tested by a manipulator, obtain ultrasonic testing data, and determine an internal defect evaluation value D according to the ultrasonic testing data;
[0064] A residual stress evaluation unit, which is used for, after determining the internal defect evaluation value D, the manipulator coats a fluorescent material on the surface of the lens aluminum seat, irradiates the surface of the lens aluminum seat with an excitation light source and obtains a fluorescent signal intensity image, and determines a residual stress evaluation value Y according to the fluorescent signal intensity image;
[0065] A comprehensive quality evaluation unit, used to determine a quality evaluation value Q of the lens aluminum seat according to the surface defect evaluation value S, the internal defect evaluation value D and the residual stress evaluation value Y;
[0066] The quality evaluation value Q is calculated by the following formula:
[0067] Q = S*ɑ+D*β+Y*γ;
[0068] Among them, ɑ, β and γ are weights, and ɑ+β+γ=1;
[0069] Presetting the quality evaluation standard value Qa of the lens aluminum mount;
[0070] When Q<Qa, it is judged that the lens aluminum seat to be tested is qualified;
[0071] When Q≥Qa, it is determined that the lens aluminum seat to be tested is unqualified.
[0072] Compared with the prior art, the present invention has the following beneficial effects: the present invention comprehensively evaluates the quality of the lens aluminum seat by taking into account the surface defects, internal defects and residual stress of the lens aluminum seat, through image shooting, ultrasonic detection and fluorescence signal intensity image acquisition. The robot is used to perform operations such as image shooting, ultrasonic detection and coating of fluorescent materials, so as to realize the automated detection process and improve the detection efficiency and accuracy. By setting different weights and standard values, the influence of surface defects, internal defects and residual stress on the quality of the lens aluminum seat is comprehensively considered, making the evaluation more comprehensive and objective. By comparing the calculated quality evaluation value with the preset standard value, the qualification of the lens aluminum seat can be judged immediately, which helps to find unqualified products in time and ensure product quality. Among them, by using advanced technologies such as ultrasonic detection and fluorescence signal intensity image acquisition, the internal defects and residual stress of the lens aluminum seat can be detected with high precision, which improves the reliability and accuracy of the detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only used for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. In the accompanying drawings:
[0074] Figure 1 A flowchart of a lens aluminum seat detection method based on a manipulator provided in an embodiment of the present invention;
[0075] Figure 2 A functional block diagram of a lens aluminum mount detection system based on a robot provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0076] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to be able to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0077] See also Figure 1 As shown, this embodiment provides a lens aluminum seat detection method based on a manipulator, the method comprising:
[0078] S101: photographing the lens aluminum seat to be inspected by a manipulator to obtain first image data of the lens aluminum seat, and determining whether there are defects on the surface of the lens aluminum seat according to the first image data to determine a surface defect evaluation value S;
[0079] S102: After the surface defect evaluation value S is determined, ultrasonic testing is performed on the lens aluminum seat to be tested by a manipulator to obtain ultrasonic testing data, and an internal defect evaluation value D is determined according to the ultrasonic testing data;
[0080] S103: After determining the internal defect evaluation value D, the manipulator coats a fluorescent material on the surface of the lens aluminum seat, illuminates the surface of the lens aluminum seat with an excitation light source and obtains a fluorescent signal intensity image, and determines a residual stress evaluation value Y according to the fluorescent signal intensity image;
[0081] S104: Determine the quality evaluation value Q of the lens aluminum mount according to the surface defect evaluation value S, the internal defect evaluation value D and the residual stress evaluation value Y.
[0082] The quality evaluation value Q is calculated by the following formula:
[0083] Q = S*ɑ+D*β+Y*γ;
[0084] Among them, ɑ, β and γ are weights, and ɑ+β+γ=1;
[0085] Presetting the quality evaluation standard value Qa of the lens aluminum mount;
[0086] When Q<Qa, it is judged that the lens aluminum seat to be tested is qualified;
[0087] When Q≥Qa, it is determined that the lens aluminum seat to be tested is unqualified.
[0088] It is understandable that in this embodiment, the quality of the lens aluminum seat is comprehensively evaluated through multiple detection steps, including surface defects, internal defects and residual stress, etc., thereby improving the accuracy of detection. The use of a manipulator to perform various detection tasks realizes an automated detection process, greatly improves the efficiency of detection, and at the same time reduces human errors and improves production efficiency. Among them, the importance of each indicator is adjusted according to specific needs, and the quality evaluation standard value is set, so that the evaluation is more flexible and meets actual needs. By comparing the calculated quality evaluation value with the preset standard value, the qualification of the lens aluminum seat can be judged instantly, thereby realizing real-time quality control, avoiding the influx of unqualified products into the market, and ensuring product quality. At the same time, advanced technologies such as ultrasonic detection and fluorescence signal intensity image acquisition make the detection of internal defects and residual stress more accurate, and can detect tiny defects, ensuring the stability and reliability of product quality.
[0089] In a specific embodiment of the present application, when determining whether there is a defect on the surface of the lens aluminum seat according to the first image data and determining the surface defect evaluation value S, it includes:
[0090] When it is determined that there is no defect on the surface of the lens aluminum seat, S=0;
[0091] When it is determined that there are defects on the surface of the lens aluminum seat, the surface defect ratio is calculated, and the surface defect evaluation value S is determined according to the surface defect ratio.
[0092] In a specific embodiment of the present application, when judging whether there is a defect on the surface of the lens aluminum seat according to the first image data, it also includes:
[0093] Acquire a grayscale image of the first image data;
[0094] A first preset grayscale standard threshold value A1 and a second preset grayscale standard threshold value A2 are preset, and A1>A2;
[0095] The pixel grayscale value of the grayscale image is recorded as Ai, i=1, 2, ..., n;
[0096] Pixels that satisfy Ai≥A1 or Ai≤A2 are recorded as abnormal pixels;
[0097] Pixels that satisfy A1>Ai>A2 are recorded as normal pixels;
[0098] Obtaining the number of abnormal pixels Aa and the number of normal pixels Ab in the grayscale image;
[0099] When Aa=0, it is determined that there is no defect on the surface of the lens aluminum seat, and at this time, the surface defect evaluation value S is 0;
[0100] When Aa>0, it is determined that there are defects on the surface of the lens aluminum seat.
[0101] It can be understood that, in this embodiment, by analyzing the grayscale image of the image, the abnormality of the pixel can be judged according to the preset grayscale standard threshold, so as to flexibly determine the defect of the surface of the lens aluminum seat, and can accurately distinguish the defective part of the surface. Among them, the preset grayscale standard threshold can be specifically set according to the actual situation. In addition, by counting the number of abnormal pixels and normal pixels, the defect of the surface of the lens aluminum seat can be comprehensively evaluated, and the influence of accidental factors on the detection results can be effectively avoided, which improves the reliability of the evaluation. When the number of abnormal pixels is zero, it can be immediately judged that there is no defect on the surface of the lens aluminum seat, and no further detection is required, which saves time and resources. The real-time and efficient judgment method can improve the work efficiency on the production line and speed up the production speed of the product. With the help of a manipulator to capture and process the image, the entire detection process is automated. By presetting the grayscale standard threshold, the image can be intelligently analyzed and judged without manual intervention, reducing the possibility of human error.
[0102] In a specific embodiment of the present application, when Aa>0, it is determined that there is a defect on the surface of the lens aluminum seat, including:
[0103] Calculate the abnormal pixel ratio Ac according to the abnormal pixel number Aa and the normal pixel number Ab, Ac=Aa / (Aa+Ab);
[0104] The surface defect evaluation value S is calculated according to the abnormal pixel ratio Ac, where S=Ac*100.
[0105] It can be understood that the calculation of the surface defect evaluation value S in this embodiment is used to detect whether the surface of the lens seat ring is flat and smooth, and has no scratches, pits or other surface defects. Any surface defects may affect the service life and performance of the lens seat ring. Among them, by calculating the proportion of abnormal pixels, the defects on the surface of the lens aluminum seat can be comprehensively evaluated, and the influence of accidental factors on the detection results can be effectively avoided, thereby improving the reliability of the evaluation. By converting the proportion of abnormal pixels into a percentage score as the surface defect evaluation value S, the defects on the surface of the lens aluminum seat can be judged in real time, the work efficiency on the production line can be improved, and the production speed of the product can be accelerated. With the help of a robot for image capture and processing, the entire detection process is automated. By presetting the grayscale standard threshold and calculating the proportion of abnormal pixels, the system can intelligently analyze and judge the image without manual intervention, reducing the possibility of human error.
[0106] In a specific embodiment of the present application, before determining the internal defect evaluation value D according to the ultrasonic detection data, it includes:
[0107] Obtain the thickness of the lens aluminum seat, recorded as B;
[0108] A first preset thickness value B1 and a second preset thickness value B2 are preset, and B1>B2;
[0109] Compare the thickness value B of the lens aluminum seat with the first preset thickness value B1 and the second preset thickness value B2 respectively, and determine the ultrasonic frequency of ultrasonic detection according to the comparison result;
[0110] Preset a first preset ultrasonic frequency C1, a second preset ultrasonic frequency C2 and a third preset ultrasonic frequency C3, and C1>C2>C3;
[0111] When B≥B1, the ultrasonic frequency of the ultrasonic detection is determined to be the third preset ultrasonic frequency C3;
[0112] When B1>B≥B2, the ultrasonic frequency of the ultrasonic detection is determined to be the second preset ultrasonic frequency C2;
[0113] When B2>B, the ultrasonic frequency of the ultrasonic detection is determined to be the first preset ultrasonic frequency C1.
[0114] In a specific embodiment of the present application, after selecting the kth preset ultrasonic frequency Ck as the ultrasonic frequency for ultrasonic detection, k=1, 2, 3, further comprising:
[0115] The ultrasonic detection data is ultrasonic amplitude data;
[0116] The ultrasonic amplitude value in the ultrasonic amplitude data is recorded as Bi, i=1, 2, ..., n;
[0117] A first preset ultrasonic amplitude standard threshold value B1 and a second preset ultrasonic amplitude standard threshold value B2 are preset, and B1>B2;
[0118] The ultrasonic amplitude value satisfying Bi≥B1 or Bi≤B2 is regarded as the abnormal amplitude value;
[0119] The ultrasonic amplitude value satisfying B1>Bi>B2 is regarded as the normal amplitude value;
[0120] Obtain the number of abnormal amplitude values Ba and the number of normal amplitude values Bb of the ultrasonic amplitude data, and calculate the abnormal amplitude value proportion Bc according to the number of abnormal amplitude values Ba and the number of normal amplitude values Bb, where Bc=Ba / (Ba+Bb);
[0121] The internal defect evaluation value D is calculated according to the abnormal amplitude value proportion Bc, where D=Bc*100.
[0122] It can be understood that in this embodiment, the internal defect evaluation value D is obtained according to the ultrasonic detection, and the material quality of the lens aluminum seat to be detected can be analyzed to evaluate whether there are pores, inclusions or other internal defects. At the same time, the detected defects are classified and quantified. Among them, by obtaining the thickness value of the lens aluminum seat, and setting it according to the preset thickness standard value and ultrasonic frequency, different ultrasonic frequencies can be selected according to different thickness conditions, making full use of the material properties and ultrasonic propagation laws, and improving the accuracy of detection. According to the thickness value and the preset standard, the ultrasonic frequency is determined, making the detection more adaptive and flexible. At the same time, the preset ultrasonic amplitude standard threshold can be adjusted according to the actual situation, making the detection process more reliable. By calculating the proportion of abnormal amplitude values, the defects inside the lens aluminum seat can be comprehensively evaluated, effectively avoiding the influence of accidental factors on the detection results, and improving the reliability of the evaluation. By calculating the proportion of abnormal amplitude values and converting it into a percentage score as the internal defect evaluation value D, the defects inside the lens aluminum seat can be judged in real time, which can improve the work efficiency on the production line and speed up the production of products. By using a robot and preset parameters to process ultrasonic detection data, the entire detection process is automated, and the ultrasonic amplitude data can be intelligently analyzed and judged without human intervention, reducing the possibility of human error.
[0123] In a specific embodiment of the present application, when the manipulator coats the fluorescent material on the surface of the lens aluminum seat, irradiates the surface of the lens aluminum seat with an excitation light source and obtains a fluorescent signal intensity image, it includes:
[0124] Dividing the fluorescence signal intensity image into a plurality of image units according to a preset rectangular area pixel size;
[0125] Acquire the highest fluorescence signal intensity of each of the image units, and use each of the highest fluorescence signal intensity as the fluorescence signal intensity value corresponding to the image unit;
[0126] The fluorescence signal intensity values of the image units are recorded as Ei, where i=1, 2, ..., n.
[0127] It can be understood that in this embodiment, the fluorescence signal intensity image is divided into several image units according to the preset rectangular area pixel size, which can divide the image into multiple local areas, which is conducive to extracting local features and helps to capture the changes in fluorescence signal intensity in different areas of the lens aluminum seat surface, so as to more accurately evaluate the distribution of residual stress. Specifically, the preset rectangular area pixel size can be adjusted according to actual conditions. Among them, the highest fluorescence signal intensity of each image unit is obtained, and it is used as the fluorescence signal intensity value of the corresponding image unit, which can accurately represent the fluorescence signal intensity level of each local area, and help to fully understand the distribution of the fluorescence signal on the surface of the lens aluminum seat. Recording and analyzing the fluorescence signal intensity value of each image unit can convert the complex data of the original fluorescence signal intensity image into a concise data representation, reducing the complexity and calculation amount of data processing.
[0128] In a specific embodiment of the present application, after obtaining the fluorescence signal intensity values Ei of the plurality of image units, the method further includes:
[0129] A first preset fluorescence signal intensity standard threshold E1 and a second preset fluorescence signal intensity standard threshold E2 are preset, and E1>E2;
[0130] The fluorescence signal intensity value Ei of the image unit is compared with the first preset fluorescence signal intensity standard threshold E1 and the second preset fluorescence signal intensity standard threshold E2:
[0131] The image units satisfying Ei≥E1 or Ei≤E2 are regarded as abnormal image units;
[0132] The image unit satisfying E1>Ei>E2 is regarded as a normal image unit;
[0133] The number of abnormal image units Ea and the number of normal image units Eb are obtained by statistics.
[0134] In a specific embodiment of the present application, after obtaining the number of abnormal image units Ea and the number of normal image units Eb, the method further includes:
[0135] Calculate the abnormal image unit ratio Ec according to the abnormal image unit number Ea and the normal image unit number Eb, where Ec=Ea / (Ea+Eb);
[0136] The residual stress evaluation value Y is calculated according to the abnormal image unit proportion Ec, where Y=Ec*100.
[0137] It is understandable that, in this embodiment, by calculating the residual stress evaluation value Y, by analyzing the fluorescence signal intensity graph, the distribution and change trend of the residual stress in the material can be understood, and the intensity or spectral characteristics of the fluorescence signal will change accordingly with the change of the residual stress, thereby evaluating the stress state and performance characteristics of the material. Among them, by the pre-set standard threshold of the fluorescence signal intensity, the abnormal image unit and the normal image unit can be accurately distinguished, thereby realizing the accurate detection of the residual stress area, which helps to timely discover the potential problems on the surface of the lens aluminum seat, and take corresponding treatment measures to improve product quality and reliability. By counting the number of abnormal image units and the number of normal image units, and calculating the proportion of abnormal image units, a quantitative evaluation of residual stress is realized, and the degree of residual stress can be quantified more accurately, which provides an important basis for subsequent quality control and improvement. By calculating the proportion of abnormal image units Ec and converting it into a percentage score as the residual stress evaluation value Y, it helps production personnel to fully grasp the quality status of the product and take effective measures to deal with it in time. Automated processing is realized through image processing and statistical analysis, without manual intervention, which improves work efficiency and the accuracy of data processing, helps to reduce labor costs, and improves the overall efficiency and stability of the production line.
[0138] See also Figure 2 As shown, in another aspect, the present invention proposes a lens aluminum seat detection system based on a manipulator, the system comprising:
[0139] A surface defect evaluation unit is used to capture an image of a lens aluminum seat to be inspected by a manipulator, obtain first image data of the lens aluminum seat, and determine whether there are defects on the surface of the lens aluminum seat according to the first image data to determine a surface defect evaluation value S;
[0140] An internal defect evaluation unit, configured to, after determining the surface defect evaluation value S, perform ultrasonic testing on the lens aluminum seat to be tested by a manipulator, obtain ultrasonic testing data, and determine an internal defect evaluation value D according to the ultrasonic testing data;
[0141] A residual stress evaluation unit, which is used for, after determining the internal defect evaluation value D, the manipulator coats a fluorescent material on the surface of the lens aluminum seat, irradiates the surface of the lens aluminum seat with an excitation light source and obtains a fluorescent signal intensity image, and determines a residual stress evaluation value Y according to the fluorescent signal intensity image;
[0142] A comprehensive quality evaluation unit, used to determine a quality evaluation value Q of the lens aluminum seat according to the surface defect evaluation value S, the internal defect evaluation value D and the residual stress evaluation value Y;
[0143] The quality evaluation value Q is calculated by the following formula:
[0144] Q = S*ɑ+D*β+Y*γ;
[0145] Among them, ɑ, β and γ are weights, and ɑ+β+γ=1;
[0146] Presetting the quality evaluation standard value Qa of the lens aluminum mount;
[0147] When Q<Qa, it is judged that the lens aluminum seat to be tested is qualified;
[0148] When Q≥Qa, it is determined that the lens aluminum seat to be tested is unqualified.
[0149] It can be understood that in this embodiment, the quality of the lens aluminum seat is comprehensively evaluated by comprehensively considering factors such as surface defects, internal defects and residual stress of the lens aluminum seat through image capture, ultrasonic detection and fluorescence signal intensity image acquisition. The use of a manipulator to perform operations such as image capture, ultrasonic detection and coating of fluorescent materials realizes an automated detection process and improves detection efficiency and accuracy.
[0150] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0151] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0152] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0153] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0154] 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 above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A lens aluminum seat detection method based on a manipulator, characterized in that: include: The robot captures an image of the lens aluminum seat to be inspected to obtain first image data of the lens aluminum seat, and determines whether there are defects on the surface of the lens aluminum seat according to the first image data to determine a surface defect evaluation value S; After the surface defect evaluation value S is determined, an ultrasonic test is performed on the lens aluminum seat to be tested by a manipulator to obtain ultrasonic test data, and an internal defect evaluation value D is determined according to the ultrasonic test data; After the internal defect evaluation value D is determined, the manipulator coats the surface of the lens aluminum seat with a fluorescent material, illuminates the surface of the lens aluminum seat with an excitation light source and obtains a fluorescent signal intensity image, and determines the residual stress evaluation value Y according to the fluorescent signal intensity image; Determine the quality evaluation value Q of the lens aluminum mount according to the surface defect evaluation value S, the internal defect evaluation value D and the residual stress evaluation value Y; The quality evaluation value Q is calculated by the following formula: Q = S*ɑ+D*β+Y*γ; Among them, ɑ, β and γ are weights, and ɑ+β+γ=1; Presetting the quality evaluation standard value Qa of the lens aluminum mount; When Q<Qa, it is judged that the lens aluminum seat to be tested is qualified; When Q≥Qa, it is judged that the lens aluminum seat to be tested is unqualified; When determining whether there is a defect on the surface of the lens aluminum mount according to the first image data and determining the surface defect evaluation value S, it includes: When it is determined that there is no defect on the surface of the lens aluminum seat, S=0; When it is determined that there are defects on the surface of the lens aluminum seat, the surface defect ratio is calculated, and the surface defect evaluation value S is determined according to the surface defect ratio; When judging whether there is a defect on the surface of the lens aluminum seat according to the first image data, it also includes: Acquire a grayscale image of the first image data; A first preset grayscale standard threshold value A1 and a second preset grayscale standard threshold value A2 are preset, and A1>A2; The pixel grayscale value of the grayscale image is recorded as Ai, i=1, 2, ..., n; Pixels that satisfy Ai≥A1 or Ai≤A2 are recorded as abnormal pixels; Pixels that satisfy A1>Ai>A2 are recorded as normal pixels; Obtaining the number of abnormal pixels Aa and the number of normal pixels Ab in the grayscale image; When Aa=0, it is determined that there is no defect on the surface of the lens aluminum seat, and at this time, the surface defect evaluation value S is 0; When Aa>0, it is determined that there is a defect on the surface of the lens aluminum seat; When Aa>0, it is determined that there are defects on the surface of the lens aluminum seat, including: Calculate the abnormal pixel ratio Ac according to the abnormal pixel number Aa and the normal pixel number Ab, Ac=Aa / (Aa+Ab); Calculate the surface defect evaluation value S according to the abnormal pixel ratio Ac, where S=Ac*100; Before determining the internal defect evaluation value D according to the ultrasonic detection data, the method includes: Obtain the thickness of the lens aluminum seat, recorded as B; A first preset thickness value B1 and a second preset thickness value B2 are preset, and B1>B2; Compare the thickness value B of the lens aluminum seat with the first preset thickness value B1 and the second preset thickness value B2 respectively, and determine the ultrasonic frequency of ultrasonic detection according to the comparison result; Preset a first preset ultrasonic frequency C1, a second preset ultrasonic frequency C2 and a third preset ultrasonic frequency C3, and C1>C2>C3; When B≥B1, the ultrasonic frequency of the ultrasonic detection is determined to be the third preset ultrasonic frequency C3; When B1>B≥B2, the ultrasonic frequency of the ultrasonic detection is determined to be the second preset ultrasonic frequency C2; When B2>B, the ultrasonic frequency of the ultrasonic detection is determined to be the first preset ultrasonic frequency C1; After selecting the kth preset ultrasonic frequency Ck as the ultrasonic frequency for ultrasonic detection, k=1, 2, 3, further comprising: The ultrasonic detection data is ultrasonic amplitude data; The ultrasonic amplitude value in the ultrasonic amplitude data is recorded as Bi, i=1, 2, ..., n; A first preset ultrasonic amplitude standard threshold value B1 and a second preset ultrasonic amplitude standard threshold value B2 are preset, and B1>B2; The ultrasonic amplitude value satisfying Bi≥B1 or Bi≤B2 is regarded as the abnormal amplitude value; The ultrasonic amplitude value satisfying B1>Bi>B2 is regarded as the normal amplitude value; Obtain the number of abnormal amplitude values Ba and the number of normal amplitude values Bb of the ultrasonic amplitude data, and calculate the abnormal amplitude value proportion Bc according to the number of abnormal amplitude values Ba and the number of normal amplitude values Bb, where Bc=Ba / (Ba+Bb); Calculate the internal defect evaluation value D according to the abnormal amplitude value proportion Bc, D=Bc*100; When the manipulator coats the fluorescent material on the surface of the lens aluminum seat, irradiates the surface of the lens aluminum seat with an excitation light source and obtains a fluorescent signal intensity image, the method includes: Dividing the fluorescence signal intensity image into a plurality of image units according to a preset rectangular area pixel size; Acquire the highest fluorescence signal intensity of each of the image units, and use each of the highest fluorescence signal intensity as the fluorescence signal intensity value corresponding to the image unit; The fluorescence signal intensity values of the image units are recorded as Ei, i=1, 2, ..., n; After obtaining the fluorescence signal intensity values Ei of the plurality of image units, the method further includes: A first preset fluorescence signal intensity standard threshold E1 and a second preset fluorescence signal intensity standard threshold E2 are preset, and E1>E2; The fluorescence signal intensity value Ei of the image unit is compared with the first preset fluorescence signal intensity standard threshold E1 and the second preset fluorescence signal intensity standard threshold E2: The image units satisfying Ei≥E1 or Ei≤E2 are regarded as abnormal image units; The image unit satisfying E1>Ei>E2 is regarded as a normal image unit; Counting the number of abnormal image units Ea and the number of normal image units Eb; After obtaining the number of abnormal image units Ea and the number of normal image units Eb, the method further includes: Calculate the abnormal image unit ratio Ec according to the abnormal image unit number Ea and the normal image unit number Eb, where Ec=Ea / (Ea+Eb); The residual stress evaluation value Y is calculated according to the abnormal image unit proportion Ec, where Y=Ec*100.
2. A lens aluminum seat detection system based on a manipulator, characterized in that: The lens aluminum seat detection method based on a manipulator as claimed in claim 1 comprises: A surface defect evaluation unit is used to capture an image of a lens aluminum seat to be inspected by a manipulator, obtain first image data of the lens aluminum seat, and determine whether there are defects on the surface of the lens aluminum seat according to the first image data to determine a surface defect evaluation value S; An internal defect evaluation unit, configured to, after determining the surface defect evaluation value S, perform ultrasonic testing on the lens aluminum seat to be tested by a manipulator, obtain ultrasonic testing data, and determine an internal defect evaluation value D according to the ultrasonic testing data; A residual stress evaluation unit, which is used for, after determining the internal defect evaluation value D, the manipulator coats a fluorescent material on the surface of the lens aluminum seat, irradiates the surface of the lens aluminum seat with an excitation light source and obtains a fluorescent signal intensity image, and determines a residual stress evaluation value Y according to the fluorescent signal intensity image; A comprehensive quality evaluation unit, used to determine a quality evaluation value Q of the lens aluminum mount according to the surface defect evaluation value S, the internal defect evaluation value D and the residual stress evaluation value Y; The quality evaluation value Q is calculated by the following formula: Q = S*ɑ+D*β+Y*γ; Among them, ɑ, β and γ are weights, and ɑ+β+γ=1; Presetting the quality evaluation standard value Qa of the lens aluminum mount; When Q<Qa, it is judged that the lens aluminum seat to be tested is qualified; When Q≥Qa, it is determined that the lens aluminum seat to be tested is unqualified.
