Appearance inspection method and system, inspection method and device

By using pre-stored lighting data and focus-adjustable photography device, the surface to be inspected to be automatically illuminated and photographed, solving the problems of low accuracy and low efficiency of manual inspection in the prior art, and achieving more efficient and accurate defect judgments.

CN113689323BActive Publication Date: 2025-06-10SHENZHEN XINFU INTELLIGENT EQUIPMENT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110693398.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-08-06
Filing Date
2021-06-22
Publication Date
2025-06-10
Estimated Expiration
2041-06-22

AI Technical Summary

Technical Problem

In the prior art, defects on the surface of objects are not accurate and inefficient in the inspection of human eyes. Especially when checking the light-through holes of the lens parts, it is difficult to find tiny bad objects such as dust, defects, dirt and fingerprints.

Method used

An appearance inspection method is adopted, by selecting pre-stored lighting data, the lighting device controls the inspection surface of the object to be inspected, and uses the focusable photography device to take the photography data. Then, by comparing with the pre-stored image comparison data, it is determined whether the object to be inspected is qualified.

Benefits of technology

It improves the accuracy and speed of judging defects on the inspection surface of the object to be inspected, reduces the dependence on manual inspection, and improves the inspection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113689323B_ABST
    Figure CN113689323B_ABST
Patent Text Reader

Abstract

One of the objectives of the present invention is to provide an appearance inspection method to solve the technical problem of low accuracy in judging whether an inspected object is qualified in the prior art. Compared with the prior art, the appearance inspection method and system provided by the present invention determine whether there are defects on the inspected surface of the object to be inspected, thereby determining whether the object to be inspected is qualified and improving the inspection speed of the object to be inspected. Under the same wavelength data and brightness data, the photographed data corresponding to the qualified object to be inspected must be consistent with the image comparison data. If the photographed data and the image comparison data are inconsistent under the same wavelength data and brightness data, it proves that there are defects on the inspected surface of the object to be inspected, and the object to be inspected is regarded as a non-conforming product and is not suitable for leaving the factory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of appearance inspection, and more specifically, relates to an appearance inspection method, device, equipment, and storage medium. Background Art

[0002] After an object is produced, the surface of the object needs to be inspected. If a flaw is detected on the surface of the object, the object is unqualified. If no flaw is detected on the surface of the object, the object is qualified. Generally, flaws include dirt, dust, scratches, oil stains, etc. In the prior art, the surface of the object is usually inspected manually, and it is difficult to detect tiny flaws on the surface of the object manually, thus affecting the accuracy of judging whether the object is qualified. Taking a lens part as an example, after the lens part is produced, the light-transmitting hole of the lens part needs to be inspected to determine whether there are defective substances on the light-transmitting hole. Among them, the defective substances include dust, flaws, dirt, and fingerprints, etc. The lens part is set as a lens or a lens barrel. The prior art is to inspect the light-transmitting hole of the lens part by the human eye, and there is also the problem of low inspection efficiency. Summary of the Invention

[0003] One of the purposes of the present invention is to provide an appearance inspection method to solve the technical problem of low accuracy in judging whether an inspected object is qualified in the prior art.

[0004] To achieve the above purpose, the technical solution adopted by the present invention is: to provide an appearance inspection method, including the following steps:

[0005] Select an object to be inspected;

[0006] Select a number of pre-stored lighting data according to the object to be inspected, where each of the pre-stored lighting data includes wavelength data, brightness data, focal length data, and image comparison data;

[0007] Select one of the pre-stored lighting data;

[0008] Control the lighting device of the appearance inspection system to illuminate the inspected surface of the object to be inspected according to the current wavelength data and current brightness data, and at the same time control the adjustable-focus photographing device of the appearance inspection system to photograph the inspected surface according to the focal length data to obtain photographing data;

[0009] Judge whether the current photographing data is the same as the current image comparison data. If the current photographing data is the same as the current image comparison data, return to execute the step of selecting one of the pre-stored lighting data until all the pre-stored lighting data are selected; if the current photographing data is different from the current image comparison data, the object to be inspected is unqualified.

[0010] Further, before selecting a plurality of pre-stored illumination data according to the object to be inspected, the following steps are further included:

[0011] Select a standard reference object according to the object to be inspected;

[0012] Determine a plurality of detection points on the detected surface of the standard reference object according to a plurality of inspection points on the inspected surface of the object to be inspected, wherein each of the inspection points corresponds to each of the detection points one by one;

[0013] Select one of the detection points;

[0014] Adjust the wavelength and brightness of the illumination device to illuminate one of the detection points, and at the same time control the focal length between the adjustable-focus photographing device and the current detection point to take a photograph to obtain a corresponding real-time image;

[0015] Judge whether the current real-time image is the clearest image. If the current real-time image is the clearest image, record the current real-time image as the image comparison data, and at the same time record the focal length data of the current adjustable-focus photographing device, the wavelength data and brightness data of the current illumination device corresponding to the current real-time image. Form the current pre-stored illumination data through the current focal length data, the current image comparison data, the current wavelength data, and the current brightness data, and return to execute the step of selecting one of the detection points until it is confirmed that all the detection points are selected; if the current real-time image is not the clearest image, return to execute the step of adjusting the wavelength and brightness of the illumination device to illuminate one of the detection points, and at the same time control the adjustable-focus photographing device to take a photograph of the current detection point to obtain a corresponding real-time image.

[0016] Further, the step of judging whether the current real-time image is the clearest image. If the current real-time image is the clearest image, record the current real-time image as the image comparison data, and at the same time record the focal length data of the current adjustable-focus photographing device, the wavelength data and brightness data of the current illumination device corresponding to the current real-time image. Form the current pre-stored illumination data through the current focal length data, the current image comparison data, the current wavelength data, and the current brightness data, and return to execute the step of selecting one of the detection points until it is confirmed that all the detection points are selected; if the current real-time image is not the clearest image, return to execute the step of adjusting the wavelength and brightness of the illumination device to illuminate one of the detection points, and at the same time control the adjustable-focus photographing device to take a photograph of the current detection point to obtain a corresponding real-time image is set as:

[0017] The adjustable-focus photographing device is used to determine whether the electric signal corresponding to the current real-time image is at a threshold value. If the electric signal corresponding to the current image is at the threshold value, the current real-time image is recorded as the image comparison data. Meanwhile, the focal length data of the current adjustable-focus photographing device corresponding to the current real-time image, the wavelength data and the brightness data of the current lighting device are recorded. The current pre-stored lighting data is formed by the current focal length data, the current image comparison data, the current wavelength data, and the current brightness data, and the step of selecting one of the detection points is returned and executed until it is confirmed that all the detection points have been selected. If the current real-time image is not the clearest image, the step of adjusting the wavelength and brightness of the lighting device to illuminate one of the detection points and simultaneously controlling the adjustable-focus photographing device to photograph the current detection point to obtain the corresponding real-time image is returned and executed.

[0018] Further, it is determined whether the current photographing data is the same as the current image comparison data. If the current photographing data is the same as the current image comparison data, the step of selecting one of the pre-stored lighting data is returned and executed until all the pre-stored lighting data has been selected. If the current photographing data is different from the current image comparison data, the step of setting the object to be inspected as unqualified is as follows: the image comparison system is used to determine whether the current photographing data is the same as the current image comparison data. If the current photographing data is the same as the current image comparison data, the appearance inspection system returns and executes the step of selecting one of the pre-stored lighting data until all the pre-stored lighting data has been selected. If the current photographing data is different from the current image comparison data, the appearance inspection system outputs that the object to be inspected is unqualified.

[0019] A second object of the present invention is to provide an appearance inspection system. To achieve the second object, the technical solution adopted by the present invention is: an appearance inspection system, including:

[0020] A selection module for selecting an object to be inspected;

[0021] A data selection module for selecting a plurality of pre-stored lighting data according to the object to be inspected, wherein each of the pre-stored lighting data includes wavelength data, brightness data, focal length data, and image comparison data;

[0022] A pre-stored selection module for selecting one of the pre-stored lighting data;

[0023] The lighting and photographing module controls the lighting device of the appearance inspection system to illuminate the inspected surface of the object to be inspected according to the current wavelength data and current brightness data, and simultaneously controls the focus-adjustable photographing device of the appearance inspection system to photograph the inspected surface according to the focal length data to obtain photographing data; The image comparison module determines whether the current photographing data is the same as the current image comparison data. If the current photographing data is the same as the current image comparison data, it returns to execute the step of selecting one of the pre-stored lighting data until all the pre-stored lighting data is selected; If the current photographing data is different from the current image comparison data, the object to be inspected is unqualified.

[0024] Further, it further includes:

[0025] The reference selection module selects a standard reference object according to the object to be inspected;

[0026] The detection point positioning module determines a number of detection points on the detected surface of the standard reference object according to a number of inspection points on the inspected surface of the object to be inspected, where each of the inspection points corresponds to each of the detection points one by one;

[0027] The detection point selection module selects one of the detection points;

[0028] The real-time image acquisition module adjusts the wavelength and brightness of the lighting device to illuminate one of the detection points, and simultaneously controls the focal length between the focus-adjustable photographing device and the current detection point to take a photograph to obtain a corresponding real-time image;

[0029] The clearest image recognition module determines whether the current real-time image is the clearest image. If the current real-time image is the clearest image, it records the current real-time image as the image comparison data, and simultaneously records the focal length data of the current focus-adjustable photographing device, the wavelength data and brightness data of the current lighting device corresponding to the current real-time image, and forms the current pre-stored lighting data through the current focal length data, current image comparison data, current wavelength data, and current brightness data, and returns to execute the step of selecting one of the detection points until it is confirmed that all the detection points are selected; If the current real-time image is not the clearest image, it returns to execute the step of adjusting the wavelength and brightness of the lighting device to illuminate one of the detection points, and simultaneously controlling the focus-adjustable photographing device to take a photograph of the current detection point to obtain a corresponding real-time image.

[0030] Further, the clearest image recognition module is configured as follows: determine whether the electrical signal corresponding to the current real-time image is at a threshold through the adjustable focus photographing device. If the electrical signal corresponding to the current image is at the threshold, record the current real-time image as the image comparison data, and at the same time record the focal length data of the current adjustable focus photographing device, the wavelength data and brightness data of the current lighting device corresponding to the current real-time image. Form the current pre-stored lighting data through the current focal length data, the current image comparison data, the current wavelength data, and the current brightness data, and return to execute the step of selecting one of the detection points until it is confirmed that all the detection points have been selected; if the current real-time image is not the clearest image, return to execute the step of adjusting the wavelength and brightness of the lighting device to illuminate one of the detection points, and at the same time control the adjustable focus photographing device to take a picture of the current detection point to obtain the corresponding real-time image.

[0031] Further, the image comparison module is configured as follows: determine whether the current photographing data is the same as the current image comparison data through the image comparison system. If the current photographing data is the same as the current image comparison data, the appearance inspection system returns to execute the step of selecting one of the pre-stored lighting data until all the pre-stored lighting data have been selected; if the current photographing data is not the same as the current image comparison data, the appearance inspection system outputs that the object to be inspected is unqualified.

[0032] Compared with the prior art, the appearance inspection method and system provided by the present invention determine whether there are defects on the inspected surface of the object to be inspected, so as to determine whether the object to be inspected is qualified, and improve the inspection speed of the object to be inspected. Under the same wavelength data and brightness data, the photographing data corresponding to the qualified object to be inspected must be consistent with the image comparison data. If the photographing data and the image comparison data are inconsistent under the same wavelength data and brightness data, it proves that there are defects on the inspected surface of the object to be inspected, and the object to be inspected is regarded as a defective product and is not suitable for leaving the factory.

[0033] To solve the technical problem in the prior art that the inspection efficiency is low when checking the light passing holes of lens parts by the human eye.

[0034] A third object of the present invention is to provide an inspection method, including the following steps:

[0035] Orient one end of the lens part to be inspected towards the acquisition end of the image sensing device of the inspection device, and the other end towards the monochromatic surface of the monochromatic chart of the inspection device;

[0036] Obtain the inspection image of the monochromatic surface through the image sensing device;

[0037] Determine whether there is an impurity image on the inspection image. If there is such an impurity image on the inspection image, the current lens part is unqualified; if there is no such impurity image on the inspection image, the current lens part is qualified.

[0038] Further, in the process of orienting one end of the lens part to be inspected towards the acquisition end of the image sensing device of the inspection device and the other end towards the monochromatic surface of the monochromatic chart of the inspection device, the following steps are also included: Orient one end of a teleconverter towards the acquisition end of the image sensing device and the other end towards the monochromatic surface; Orient one end of the lens part towards the acquisition end of the image sensing device and the other end towards the end of the teleconverter facing the acquisition end.

[0039] Further, in the process of determining whether there is an impurity image on the inspection image, if there is such an impurity image on the inspection image, the current lens part is unqualified; if there is no such impurity image on the inspection image, the current lens part is qualified, the following steps are also included:

[0040] Obtain a standard image;

[0041] Determine whether the inspection image is the same as the standard image. If the inspection image is the same as the standard image, the current lens part is qualified; if the inspection image is not the same as the standard image, the current lens part is unqualified.

[0042] Further, in the process of obtaining the standard image, the following steps are included:

[0043] Select a standard lens part;

[0044] Orient one end of the standard lens part towards the acquisition end of the image sensing device and the other end towards the monochromatic surface;

[0045] Obtain the standard image through the image sensing device.

[0046] The fourth object of the present invention is to provide an inspection device. To achieve the fourth object, the technical solution adopted by the present invention is: Provide an inspection device, including:

[0047] A placement module that orients one end of the lens part to be inspected towards the acquisition end of the image sensing device of the inspection device and the other end towards the monochromatic surface of the monochromatic chart of the inspection device;

[0048] A photographing module that obtains an inspection image of the monochromatic surface through the image sensing device;

[0049] The inspection module determines whether there is an impurity image on the inspection image. If there is such an impurity image on the inspection image, the current lens part is unqualified; if there is no such impurity image on the inspection image, the current lens part is qualified.

[0050] Furthermore, the placement module further includes:

[0051] The telephoto module positions one end of a teleconverter towards the acquisition end of the image sensing device and the other end towards the monochromatic surface.

[0052] The lens module positions one end of the lens part towards the acquisition end of the image sensing device and the other end towards the end of the teleconverter that faces the acquisition end.

[0053] Furthermore, the inspection module includes:

[0054] The image acquisition module acquires a standard image.

[0055] The judgment module determines whether the inspection image is the same as the standard image. If the inspection image is the same as the standard image, the current lens part is qualified; if the inspection image is not the same as the standard image, the current lens part is unqualified.

[0056] Furthermore, the image acquisition module includes the following modules:

[0057] The selection module selects a standard lens part.

[0058] The action module positions one end of the standard lens part towards the acquisition end of the image sensing device and the other end towards the monochromatic surface.

[0059] The standard module acquires the standard image through the image sensing device.

[0060] Compared with the prior art, the inspection method and device provided by the present invention determine whether there are defects on the light passing holes of the corresponding lens parts through inspection images, eliminating the need for users to directly observe the light passing holes of the lens parts with their eyes, thereby improving the efficiency of inspecting the light passing holes of the lens parts. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the accompanying drawings required for use in the embodiments or the description of the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other accompanying drawings without creative efforts based on these drawings.

[0062] Figure 1 Structural schematic of an inspection device provided by an embodiment of the present inventionFigure 1 ;

[0063] Figure 2 for Figure 1 A schematic diagram of the enlarged structure at A in the middle;

[0064] Figure 3 A schematic diagram of the structure of a clamping end portion of a clamping device of an inspection device provided by an embodiment of the present invention Figure 1 ;

[0065] Figure 4 A schematic diagram of the structure of a clamping end portion of a clamping device of an inspection device provided by an embodiment of the present invention Figure 2 ;

[0066] Figure 5 A schematic diagram of the structure of a clamping end portion of a clamping device of an inspection device provided by an embodiment of the present invention Figure 3 ;

[0067] Figure 6 A schematic diagram of a structure of an inspection device provided in an embodiment of the present invention Figure 2 ;

[0068] Figure 7 A schematic diagram of a structure of an inspection device provided in an embodiment of the present invention Figure 3 ;

[0069] Figure 8 A schematic diagram of a process of a visual inspection device provided by an embodiment of the present invention Figure 1 ;

[0070] Figure 9 A schematic diagram of a process of a visual inspection device provided by an embodiment of the present invention Figure 2 ;

[0071] Figure 10 A schematic diagram of a module of a visual inspection system provided by an embodiment of the present invention;

[0072] Figure 11 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention;

[0073] Figure 12 A schematic diagram of the structure of a lens element provided by an embodiment of the present invention;

[0074] Figure 13 for Figure 12 Sectional view at the middle BB;

[0075] Figure 14 A schematic diagram of a process for an inspection method provided by an embodiment of the present invention Figure 1 ;

[0076] Figure 15Flow schematic of an inspection method provided by an embodiment of the present invention Figure 2 ;

[0077] Figure 16 Flow schematic of an inspection method provided by an embodiment of the present invention Figure 3 ;

[0078] Figure 17 Flow schematic of an inspection method provided by an embodiment of the present invention Figure 4 ;

[0079] Figure 18 Module schematic of an inspection device provided by an embodiment of the present invention Figure 1 ;

[0080] Figure 19 Module schematic of an inspection device provided by an embodiment of the present invention Figure 2 。

[0081] Among them, each reference numeral in the figure:

[0082] 1. Chart device; 11. Monochromatic chart; 12. Adjusting motion device; 13. Backlight device; 14. Illuminating member; 2. Image sensing device; 3. Teleconverter; 31. Teleconverter lens; 32. Adjusting movable device; 4. Detection area; 5. Conveyor device; 6. Clamping device; 61. Clamping end; 611. Fixed plate; 612. Through hole; 613. Elastic sheet; 614. Finger cylinder; 62. Fixed end; 7. Adjustable focus photographing device; 8. Lighting device; 9. Inspection area; 101. Selection module; 102. Data selection module; 103. Pre-stored selection module; 104. Lighting and photographing module; 105. Image comparison module; 106. Reference selection module; 107. Detection point positioning module; 108. Detection point selection module; 109. Real-time image acquisition module; 1010. Sharpest image recognition module; 11a. Lens; 11b. Light passing hole; 11c. Fixed seat; 11d. Surface to be inspected; 11e. First inspection point; 11f. Second inspection point; 11g. Third inspection point; 701. Placing module; 7011. Telephoto module; 7012. Lens module; 702. Photographing module; 703. Inspection module; 7031. Image acquisition module; 70311. Selection module; 70312. Action module; 70314. Standard module; 7034. Judgment module. Detailed implementation manners

[0083] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer and more understandable, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0084] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.

[0085] It should be understood that the orientation or positional relationship indicated by the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention.

[0086] In addition, the terms "first" and "second" are only used for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality of" means two or more unless otherwise specifically defined.

[0087] Please refer to Figure 1 and Figure 2 , and now a checking device provided by the present invention will be described. A checking device includes a pattern card device 1 and an image sensing device 2;

[0088] The pattern card device 1 includes a monochromatic pattern card 11, and the monochromatic pattern card 11 has a monochromatic surface;

[0089] The acquisition end of the image sensing device 2 faces the monochromatic surface. The image sensing device 2 is arranged at an interval from the monochromatic pattern card 11. A detection area 4 is provided between the acquisition end of the image sensing device 2 and the monochromatic pattern card 11, and the detection area 4 is used for placing a lens element.

[0090] The user places a lens element in the detection area 4, controls the image sensing device 2, so that the acquisition end of the image sensing device 2 obtains an inspection image of the monochromatic surface through the light passing hole of the current lens element. If there is no impurity image on the inspection image, it proves that there is no defective object in the light passing hole of the current lens element; if there is an impurity image on the inspection image, it proves that there is a defective object in the light passing hole of the current lens element. The structure of this checking device is simple and the cost is low. By judging whether there is a defective object in the light passing hole of the corresponding lens element through the inspection image, it is not necessary for the user to directly observe the light passing hole of the lens element with the eyes, which improves the efficiency of inspecting the light passing hole of the lens element.

[0091] Specifically, the figure card device 1 and the image sensing device 2 are arranged on a preset plane (not shown in the figure), and the preset plane is set as the tabletop or the inner tabletop of the dust-proof box.

[0092] Specifically, the lens element is set as a lens or a lens barrel.

[0093] Specifically, the image sensing device 2 is set as an image sensing chip or an industrial camera. Optimally, the image sensing device 2 is electrically connected to a computing center (not shown in the figure), and the computing center includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The computing center stores a standard image of a monochromatic plane. The computing center receives the inspection image and compares it with the standard image. If the inspection image is different from the standard image, it proves that there are foreign matters in the light passing hole of the corresponding lens element, and the computing center sends a reminder message; if the inspection image is the same as the standard image, it proves that there are no foreign matters in the light passing hole of the corresponding lens element of the detected image, and the computing center does not send a reminder message.

[0094] Specifically, the impurity image is set as a spot image on the inspection image or / and a strip image on the inspection image.

[0095] Further, please refer to Figure 1 and Figure 2 As a specific implementation manner of an inspection device provided by the present invention, the inspection device further includes a telephoto device 3. The telephoto device 3 includes a telephoto lens 31. The telephoto lens 31 is arranged between the monochromatic plane and the image sensing device 2. One end of the telephoto lens 31 faces the acquisition end of the image sensing device 2, and the other end faces the monochromatic plane. The detection area 4 is located between the telephoto lens 31 and the acquisition end of the image sensing device 2.

[0096] After the lens element is placed in the detection area 4, the telephoto lens 31 increases the focal length of the lens element. Thus, the acquisition end of the image sensing device 2 obtains an inspection image of the monochromatic plane through the light passing hole of the current lens element and the telephoto lens 31. The acquisition end of the image sensing device 2, the light passing hole of the lens element, and the telephoto lens 31 cooperate to simulate taking a long-focus photograph of the monochromatic plane, and it is not necessary to set a relatively large distance between the monochromatic figure card 11 and the acquisition end of the image sensing device 2, reducing the volume of the inspection device.

[0097] Specifically, the telephoto device 3 is arranged on the preset plane.

[0098] Further, please refer to Figure 1 and Figure 2, as a specific embodiment of an inspection device provided by the present invention, the telephoto device 3 further includes an adjustment and movement device 32. The telephoto lens 31 is fixed to the output end of the adjustment and movement device 32. The adjustment and movement device 32 avoids the detection area 4. The adjustment and movement device 32 is used to drive the telephoto lens 31 to move away from or closer to the acquisition end of the image sensing device 2. The adjustment and movement device 32 does not affect the placement of the lens element in the detection area 4, facilitating the adjustment of the distance between the telephoto lens 31 and the image sensing device 2 and improving the convenience of using the inspection device.

[0099] Specifically, the adjustment and movement device 32 is fixed on a preset plane.

[0100] Optimally, the adjustment and movement device 32 is set as an XYZ-axis adjustment device or a Z-axis module.

[0101] Further, refer to Figure 1 and Figure 2 , as a specific embodiment of an inspection device provided by the present invention, the chart device 1 further includes an adjustment and movement device 12. The monochromatic chart 11 is fixed to the output end of the adjustment and movement device 12. The adjustment and movement device 12 is used to drive the monochromatic chart 11 to move away from or closer to the acquisition end of the image sensing device 2. The adjustment and movement device 12 avoids the detection area 4. The adjustment and movement device 12 does not affect the placement of the lens element in the detection area 4, facilitating the adjustment of the distance between the chart device 1 and the image sensing device 2 and improving the convenience of using the inspection device.

[0102] Specifically, the adjustment and movement device 12 is fixed on a preset plane.

[0103] Optimally, the adjustment and movement device 12 is set as an XYZ-axis adjustment device or a Z-axis module.

[0104] Further, please refer to Figures 1 to 2 , as a specific embodiment of an inspection device provided by the present invention, the inspection device further includes a conveying device 5 and a clamping device 6. The clamping device 6 has a clamping end 61 and a fixed end 62. The clamping end 61 of the clamping device 6 is used to clamp the lens element. The fixed end 62 of the clamping device 6 is fixed to the output end of the conveying device 5. The conveying device 5 is used to drive the clamping device 6 to drive the lens element to move into or away from the detection area 4. The conveying device 5 and the clamping device 6 avoid the detection area 4.

[0105] The conveying device 5 facilitates the control of the movement of the clamping device 6. Accordingly, the lens element on the clamping end 61 moves along with the movement of the clamping device 6, facilitating the entry and exit of the lens element from the detection area 4 and improving the convenience of using the inspection device.

[0106] The lens member is clamped by the clamping end portion 61, and the clamping end portion 61 does not affect the image sensing device 2. Specifically, the conveying device 5 is fixed on a preset plane.

[0107] Preferably, the conveying device 5 is set as an XYZ axis adjustment device or an X-axis module.

[0108] Further, please refer to Figure 1 and Figure 6 , as a specific embodiment of an inspection device provided by the present invention, the conveying device 5 has a plurality of output ends, and a plurality of clamping devices 6 are provided. Each clamping device 6 corresponds to an output end of the conveying device 5 one by one, and the clamping device 6 is fixed on the corresponding output end of the conveying device 5.

[0109] When the lens member on a clamping device 6 is in the detection area 4, the lens members on other clamping devices 6 can be processed or the lens members can be placed on the clamping devices 6 without lens members, improving the convenience of using the inspection device.

[0110] Specifically, the plurality of output ends of the conveying device 5 are integrally provided. At this time, the conveying device 5 is set as a conveyor belt device.

[0111] Further, refer to Figures 2 to 5 , as a specific embodiment of an inspection device provided by the present invention, the clamping end portion 61 of the clamping device 6 is set as a fixing plate 611 having a through hole 612, or two relatively arranged elastic pieces 613, or two output shafts of a finger cylinder 614.

[0112] When the lens member is placed in the through hole 612, the lens member is not likely to move on the fixing plate 611, and the structure is simple and very practical; the distance between the two elastic pieces 613 is convenient to adjust, facilitating the clamping of lens members of different specifications. The finger cylinder 614 is convenient to use and is convenient for clamping and releasing the lens member.

[0113] Further, please refer to Figure 1 and Figure 2 , as a specific embodiment of an inspection device provided by the present invention, the chart device 1 further includes a backlight device 13 with adjustable brightness. The monochromatic chart 11 is set as a light-transmitting chart, the monochromatic surface of the monochromatic chart 11 is set as a monochromatic light-transmitting plane, the backlight device 13 is arranged on the side of the monochromatic chart 11 opposite to the monochromatic surface, and the light-emitting side of the backlight device 13 faces the monochromatic chart 11.

[0114] The light emitted by the backlight device 13 passes through the transparent chart, which makes it easier for the image sensor device 2 to obtain a clear inspection image. The brightness of the backlight device 13 is adjusted according to the lens components of different specifications to ensure that the image sensor device 2 obtains a clear inspection image through the lens components of different specifications. The brightness of the backlight device 13 remains unchanged, which makes it easier for users to inspect lens components of the same specification and reduces the difficulty of using the inspection device.

[0115] Furthermore, as a specific implementation of an inspection device provided by the present invention, the monochrome chart 11 is fixed on the backlight device 13, which reduces the volume of the chart device 1 and facilitates the simultaneous movement of the monochrome chart 11 and the backlight device 13.

[0116] Specifically, the backlight device 13 may be fixed on the output shaft of the adjustment movement device 12 .

[0117] For further information, see Figure 6 As a specific embodiment of the inspection device provided by the present invention, the image card device 1 also includes a lighting element 14 with adjustable brightness, the monochrome image card 11 is set as an opaque image card, the monochrome surface of the monochrome image card 11 is set as a monochrome opaque plane, the lighting element 14 is used to illuminate the monochrome opaque plane, and the lighting element 14 is located on one side of the detection area 4.

[0118] The light emitted by the lighting element 14 is irradiated on the opaque chart, which facilitates the image sensor device 2 to obtain a clear inspection image. The brightness of the lighting element 14 is adjusted according to the lens elements of different specifications to ensure that the image sensor device 2 obtains a clear inspection image through the lens elements of different specifications. The brightness of the lighting element 14 remains unchanged, which facilitates the user to inspect the lens elements of the same specification and reduces the difficulty of using the inspection device.

[0119] Specifically, the lighting element 14 and the light-proof picture card are fixed on the output shaft of the adjustment movement device 12 .

[0120] Furthermore, as a specific implementation of an inspection device provided by the present invention, the monochrome surface is set to a black plane or a white plane, and the background of the inspection image is black or white, so as to quickly identify whether the inspection image is different from the standard image.

[0121] Please also read Figure 1 , Figure 6 and Figure 7 Now, a visual inspection device provided by the present invention is described. A visual inspection device includes a focus-adjustable camera device 7 and an illumination device 8 with adjustable wavelength and brightness. The camera end of the focus-adjustable camera device 7 and the illumination end of the illumination device 8 face an inspection area 9, and the camera end of the focus-adjustable camera device 7 avoids the illumination device 8. The focus-adjustable camera device 7 and the illumination device 8 are used to electrically connect to a photo processing center.

[0122] Place the object to be inspected in the inspection area 9. Adjust the brightness and wavelength of the lighting device 8 according to the pre-stored lighting data. Illuminate the detected surface of the object to be inspected with the adjusted lighting device 8, and then take a photo of the illuminated detected surface through the adjustable-focus photographing device 7 to obtain photographing data. Compare the photographing data with the image comparison data of the pre-stored lighting data. If the photographing data is the same as the image comparison data, the object to be inspected is qualified; if the photographing data is different from the image comparison data, the object to be inspected is unqualified. Among them, when there are minor defects on the detected surface of the object to be inspected, it can also cause the difference between the photographing data and the image comparison data. The structure of the appearance inspection device is simple. By comparing the photographing data with the image comparison data, it can quickly distinguish whether the object to be inspected is qualified, improving the accuracy of inspecting whether the object to be inspected is qualified. The photo processing center facilitates the quick comparison of the photographing data with the image comparison data, eliminating the need for manual direct visual inspection of the object to be inspected, thus improving the inspection rate and accuracy of the object to be inspected. Take photos of the inspection points at different heights on the detected surface of the object to be inspected through the adjustable-focus photographing device 7 to ensure clear images of each inspection point are obtained, thereby determining whether there are defects at each inspection point.

[0123] Specifically, the adjustable-focus photographing device 7 is set as a focus-adjustable camera or a fixed-focus camera mounted on the output shaft of a linear drive assembly. The linear drive assembly drives the fixed-focus camera to focus with the object to be inspected. The focus-adjustable camera adjusts the focal length between it and the object to be inspected through its focus-adjustable lens.

[0124] Optimally, the linear drive assembly is set as a Z-axis module or a cylinder. The Z-axis module plays the role of precisely adjusting the fixed-focus camera, and the cylinder has a low cost.

[0125] Specifically, the adjustable-focus photographing device 7 and the lighting device 8 are arranged on a preset plane.

[0126] Specifically, the image comparison data is set as a comparison picture, and the photographing data is set as a photographed picture.

[0127] Specifically, the object to be inspected is set as a lens part, a mobile phone case, or a mobile phone screen.

[0128] Further, please refer to Figure 1 and Figure 2, as a specific embodiment of an appearance inspection device provided by the present invention, the appearance inspection device further includes a conveying device 5 and a clamping device 6. The clamping device 6 has a clamping end 61 and a fixed end 62. The clamping end 61 of the clamping device 6 is used for clamping the object to be inspected, and the fixed end 62 of the clamping device 6 is fixed on the output end of the conveying device 5. The conveying device 5 is used to drive the clamping device 6 to drive the object to be inspected to move into or away from the inspection area 9. The conveying device 5 and the clamping device 6 avoid the inspection area 9, improving the convenience of moving the object to be inspected, facilitating clamping the object to be inspected on the clamping device 6, and removing the object to be inspected from the clamping device 6.

[0129] Specifically, the conveying device 5 of the appearance inspection device shares the same conveying device 5 as that of the above-mentioned inspection device, that is, the conveying device 5 conveys the lens elements to the detection area 4 and the inspection area 9 respectively.

[0130] Further, please refer to Figures 3 to 5 , as a specific embodiment of an appearance inspection device provided by the present invention, the clamping end 61 of the clamping device 6 is provided as a fixing plate 611 having a through hole 612, or two oppositely arranged elastic sheets 613, or two output shafts of a finger cylinder 614.

[0131] The fixing plate 611 facilitates placing a circular object to be inspected in the through hole 612, and the distance between the two elastic sheets 613 is adjustable, facilitating clamping objects to be inspected of different sizes. The use of the finger cylinder 614 is convenient, improving the convenience of clamping and releasing the object to be inspected.

[0132] Further, please refer to Figure 1 , Figure 6 and Figure 7 , as a specific embodiment of an appearance inspection device provided by the present invention, the lighting device 8 is provided as a ring light source or a ring square light source or a planar light source. When the lighting device 8 is provided as a ring light source, the shooting end of the adjustable focus photographing device 7 faces the inner circle of the ring light source; when the lighting device 8 is provided as a ring square light source, the shooting end of the adjustable focus photographing device 7 faces the inner circle of the ring square light source.

[0133] The ring light source and the ring square light source can perform low-angle illumination, facilitating the adjustable focus photographing device 7 to capture tiny defects. The shooting end of the adjustable focus photographing device 7 faces the inner circle of the ring light source or the inner circle of the ring square light source, facilitating the light reflected by the object to be inspected to enter the photographing device, ensuring that the adjustable focus photographing device 7 can capture clear photos. The planar light source is convenient to install and has a low cost, which is beneficial to reducing the cost of the appearance inspection device.

[0134] Further, as a specific implementation of an appearance inspection device provided by the present invention, the adjustable focus photographing device 7 is set as a vision camera or an industrial camera. The vision camera has a high resolution and the photographed pictures are not easily distorted. The industrial camera is convenient for installing different lenses.

[0135] Further, please refer to Figure 1 、 Figure 6 and Figure 7 , as a specific implementation of an appearance inspection device provided by the present invention, the appearance inspection device further includes a linear drive mechanism (not shown in the figure). The lighting device 8 is fixed on the output shaft of the linear drive mechanism. The linear drive mechanism drives the lighting device 8 to move away from or close to the inspection area 9. The linear drive mechanism avoids the inspection area 9. The distance between the lighting device 8 and the inspection area 9 can be adjusted according to the sizes of different objects to be inspected, improving the convenience of use of the appearance inspection device.

[0136] Further, as a specific implementation of an appearance inspection device provided by the present invention, the linear drive mechanism is set as an X-axis module or a Y-axis module. The X-axis module and the Y-axis module have high precision and are convenient for finely adjusting the distance between the lighting device 8 and the inspection area 9.

[0137] The present invention also provides an appearance inspection system. An appearance inspection system includes the above-mentioned appearance inspection device. The appearance inspection system further includes a photo processing center (not shown in the figure). The adjustable focus photographing device 7 and the lighting device 8 are electrically connected to the photo processing center.

[0138] The photo processing center is convenient for quickly comparing the photographing data with the image comparison data, eliminating the need for manual direct visual inspection of the object to be inspected, and improving the inspection speed and accuracy of the object to be inspected.

[0139] Please refer to Figure 8 , and now an appearance inspection method provided by the present invention will be described. The appearance inspection method includes the following steps:

[0140] S1-1: Select an object to be inspected;

[0141] S1-2: Select a number of pre-stored lighting data according to the object to be inspected. Among them, each pre-stored lighting data includes wavelength data, brightness data, focal length data, and image comparison data;

[0142] S1-3: Select one of the pre-stored lighting data;

[0143] S1-4: Control the lighting device of the appearance inspection system to illuminate the inspected surface of the object to be inspected according to the current wavelength data and the current brightness data, and at the same time control the adjustable focus photographing device of the appearance inspection system to photograph the inspected surface according to the focal length data to obtain photographing data;

[0144] S1-5: Determine whether the current photographed data is the same as the current image comparison data. If the current photographed data is the same as the current image comparison data, return to execute step S1-3 until all the pre-stored illumination data are selected; if the current photographed data is different from the current image comparison data, the object to be inspected is unqualified.

[0145] Through steps S1-1 to S1-5, it is determined whether there are defects on the inspected surface of the object to be inspected, thereby determining whether the object to be inspected is qualified, and the inspection speed of the object to be inspected is improved. Under the same wavelength data, focal length data, and brightness data, the photographed data corresponding to a qualified object to be inspected must be consistent with the image comparison data. If the photographed data and the image comparison data are inconsistent under the same wavelength data, focal length data, and brightness data, it proves that there are defects on the inspected surface of the object to be inspected, and the object to be inspected is regarded as a defective product and is not suitable for leaving the factory.

[0146] Specifically, there are multiple objects to be inspected, and each object to be inspected is inspected through steps S1-1 to S1-5.

[0147] Specifically, multiple pre-stored illumination data are selected according to the object to be inspected, and each pre-stored illumination data corresponds to an inspection point at a different height on the object to be inspected.

[0148] Specifically, controlling the focus-adjustable photographing device according to the focal length data can be understood as adjusting the focal length between the focus-adjustable photographing device and the inspected surface according to the focal length data.

[0149] Further, please refer to Figure 9 , as a specific implementation manner of an appearance inspection method provided by the present invention, before the step S1-2, the following steps are further included:

[0150] S2-1: Select a standard reference object according to the object to be inspected;

[0151] S2-2: Determine several detection points on the detected surface of the standard reference object according to several inspection points on the inspected surface of the object to be inspected, wherein each inspection point corresponds to each detection point one by one;

[0152] S2-3: Select one of the detection points;

[0153] S2-4: Adjust the wavelength and brightness of the illumination device to illuminate one of the detection points, and at the same time control the focal length between the focus-adjustable photographing device and the current detection point to take a photograph to obtain a corresponding real-time image;

[0154] S2-5: Determine whether the current real-time image is the clearest image. If the current real-time image is the clearest image, record the current real-time image as the image comparison data. At the same time, record the focal length data of the current adjustable-focus photographing device, the wavelength data and brightness data of the current lighting device corresponding to the current real-time image. Form the current pre-stored lighting data through the current focal length data, the current image comparison data, the current wavelength data, and the current brightness data, and return to execute step S2-3 until it is confirmed that all the detection points have been selected; if the current real-time image is not the clearest image, return to execute step S2-4.

[0155] Determine a number of pre-stored lighting data through steps S2-1 to S2-5, which is convenient for inspecting the object to be inspected.

[0156] Specifically, the standard reference object is set as an object without defects. If the object to be inspected is a lens part, the standard reference object is set as a lens part without defects; if the object to be inspected is a mobile phone case, the standard reference object is set as a mobile phone case without defects.

[0157] Further, as a specific implementation manner of an appearance inspection method provided by the present invention, step S2-5 is set as:

[0158] Judge whether the electric signal corresponding to the current real-time image is within the threshold through the adjustable-focus photographing device. If the electric signal corresponding to the current image is within the threshold, record the current real-time image as the image comparison data. At the same time, record the focal length data of the current adjustable-focus photographing device, the wavelength data and brightness data of the current lighting device corresponding to the current real-time image. Form the current pre-stored lighting data through the current focal length data, the current image comparison data, the current wavelength data, and the current brightness data, and return to execute step S2-3 until it is confirmed that all the detection points have been selected; if the current real-time image is not the clearest image, return to execute step S2-4.

[0159] When the real-time image is clearest, the electrical signal of the image sensor of the focus-adjustable photographing device reaches a threshold value. Since when the focus-adjustable photographing device takes a photograph without changing the focal length, the wavelength condition and the light condition are changed, the change of the electrical signal generated by the focus-adjustable photographing device presents a distribution function change, and the distribution function change has a wave peak. When the electrical signal reaches the threshold value, the electrical signal is at the wave peak position. Or when the focus-adjustable photographing device takes a photograph without changing the wavelength condition, the focal length condition and the light condition are changed, the change of the electrical signal generated by the focus-adjustable photographing device presents a distribution function change, and the distribution function change has a wave peak. When the electrical signal reaches the threshold value, the electrical signal is at the wave peak position. Or when the focus-adjustable photographing device takes a photograph without changing the light condition, the focal length condition and the wavelength condition are changed, the change of the electrical signal generated by the focus-adjustable photographing device presents a distribution function change, and the distribution function change has a wave peak. When the electrical signal reaches the threshold value, the electrical signal is at the wave peak position.

[0160] Specifically, step S2-4 is set as: selecting the wavelength of the lighting device according to the material of the object to be inspected, keeping the wavelength of the lighting device unchanged, adjusting the brightness of the lighting device to illuminate a detection point, and simultaneously controlling the focal length of the focus-adjustable photographing device to take a photograph of the current detection point to obtain a corresponding real-time image.

[0161] Specifically, obtaining a real-time image under illumination of the same wavelength facilitates quickly confirming whether the electrical signal corresponding to the real-time image reaches the threshold value under the same wavelength condition, and improves obtaining the pre-stored lighting data corresponding to each detection point.

[0162] Further, as a specific implementation manner of an appearance inspection method provided by the present invention, step S1-5 is set as:

[0163] Judging whether the current photographing data is the same as the current image comparison data through an image comparison system. If the current photographing data is the same as the current image comparison data, return to execute step S1-3 until all the pre-stored lighting data is selected; if the current photographing data is different from the current image comparison data, the appearance inspection system outputs that the object to be inspected is unqualified.

[0164] The image comparison system facilitates quickly comparing the photographing data with the image comparison data, and does not require manual direct eye inspection of the object to be inspected, thereby improving the inspection rate and accuracy of the object to be inspected.

[0165] Specifically, the image comparison system is the same as the photo processing center of the above-mentioned appearance inspection system.

[0166] Please refer to Figure 10 , the present invention also provides an appearance inspection system, which includes:

[0167] A selection module 101 for selecting an object to be inspected;

[0168] A data selection module 102 selects a number of pre-stored illumination data according to the object to be inspected. Each of the pre-stored illumination data includes wavelength data, brightness data, focal length data, and image comparison data.

[0169] A pre-stored selection module 103 selects one of the pre-stored illumination data.

[0170] An illumination photographing module 104 controls the illumination device of the appearance inspection system to illuminate the inspected surface of the object to be inspected according to the current wavelength data and the current brightness data, and at the same time controls the adjustable-focus photographing device of the appearance inspection system to photograph the inspected surface according to the focal length data to obtain photographing data.

[0171] An image comparison module 105 determines whether the current photographing data is the same as the current image comparison data. If the current photographing data is the same as the current image comparison data, it returns to execute the step of selecting one of the pre-stored illumination data until all the pre-stored illumination data are selected; if the current photographing data is different from the current image comparison data, the object to be inspected is unqualified.

[0172] Further, referring to Figure 10 , as a specific embodiment of an appearance inspection system provided by the present invention, it further includes:

[0173] A reference selection module 106 selects a standard reference object according to the object to be inspected.

[0174] A detection point positioning module 107 determines a number of detection points on the detected surface of the standard reference object according to a number of inspection points on the inspected surface of the object to be inspected, where each of the inspection points corresponds to each of the detection points one by one.

[0175] A detection point selection module 108 selects one of the detection points.

[0176] A real-time image acquisition module 109 adjusts the wavelength and brightness of the illumination device to illuminate one of the detection points, and at the same time controls the focal length between the adjustable-focus photographing device and the current detection point to take a photograph to obtain a corresponding real-time image.

[0177] The clearest image recognition module 1010 determines whether the current real-time image is the clearest image. If the current real-time image is the clearest image, the current real-time image is recorded as the image comparison data. At the same time, the focal length data of the current adjustable-focus photographing device corresponding to the current real-time image, the wavelength data and brightness data of the current lighting device are recorded. The current pre-stored lighting data is formed by the current focal length data, the current image comparison data, the current wavelength data, and the current brightness data, and the step of selecting one of the detection points is returned until it is confirmed that all the detection points have been selected. If the current real-time image is not the clearest image, the step of adjusting the wavelength and brightness of the lighting device to illuminate one of the detection points and simultaneously controlling the adjustable-focus photographing device to photograph the current detection point to obtain the corresponding real-time image is returned.

[0178] Further, as a specific implementation manner of an appearance inspection system provided by the present invention, the clearest image recognition module 1010 is set as follows: It is determined whether the electrical signal corresponding to the current real-time image by the adjustable-focus photographing device is within the threshold. If the electrical signal corresponding to the current image is within the threshold, the current real-time image is recorded as the image comparison data. At the same time, the focal length data of the current adjustable-focus photographing device corresponding to the current real-time image, the wavelength data and brightness data of the current lighting device are recorded. The current pre-stored lighting data is formed by the current focal length data, the current image comparison data, the current wavelength data, and the current brightness data, and the step of selecting one of the detection points is returned until it is confirmed that all the detection points have been selected. If the current real-time image is not the clearest image, the step of adjusting the wavelength and brightness of the lighting device to illuminate one of the detection points and simultaneously controlling the adjustable-focus photographing device to photograph the current detection point to obtain the corresponding real-time image is returned.

[0179] Further, as a specific implementation manner of an appearance inspection system provided by the present invention, the image comparison module 105 is set as follows: It is determined whether the current photographing data is the same as the current image comparison data by the image comparison system. If the current photographing data is the same as the current image comparison data, the appearance inspection system returns to execute the step of selecting one of the pre-stored lighting data until all the pre-stored lighting data has been selected. If the current photographing data is not the same as the current image comparison data, the appearance inspection system outputs that the object to be inspected is unqualified.

[0180] For specific limitations on an appearance inspection system, reference may be made to the limitations on an appearance inspection method described above, which will not be elaborated here. Each module in the above-mentioned appearance inspection system can be implemented in whole or in part by software, hardware, or a combination thereof. The above-mentioned modules can be embedded in the processor of a computer device in hardware form or independently, or stored in the memory of the computer in software form, so as to be called by the processor to execute the above-mentioned modules.

[0181] Please refer to Figure 11 , the present invention also provides a computer device, the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps of the above-mentioned appearance inspection method, such as Figure 9 the steps S1-1 to S1-5 shown, or when the computer program is executed by the processor, it implements the functions of each module of the above-mentioned inspection device, such as Figure 10 the functions of module 105 to module 1010 shown. To avoid repetition, it will not be elaborated here.

[0182] Please refer to Figure 11 , the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the above-mentioned appearance inspection method. For example Figure 9 the steps S1-1 to S1-5 shown, or when the computer program is executed by the processor, it implements the functions of each module of the above-mentioned inspection device, such as Figure 10 the functions of module 105 to module 1010 shown. To avoid repetition, it will not be elaborated here.

[0183] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned appearance inspection method can be completed by computer programs related to quality hardware. The computer programs can be stored in a non-volatile computer-readable storage medium. When the computer programs are executed, they can include the processes of the method in Embodiment Ten. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memories, programmable ROMs, electrically programmable ROMs, electrically erasable programmable ROMs, or flash memories. Volatile memories can include random access memories or external high-speed caches IQ. By way of non-limitation, random access memories are available in various forms, such as static RAM, dynamic RAM, synchronous DRAM, double data rate SDRAM, enhanced SDRAM, synchronous DRAM, memory bus, direct RAM, direct memory bus dynamic RAM, and memory bus dynamic RAM.

[0184] Further, please refer to Figure 12 and Figure 13 A lens member provided by the present invention will now be described. The lens member includes a lens 11a and a fixing base 11c. The lens 11a is embedded in the fixing base 11c. The light-passing area of the lens 11a is set as a light-passing hole 11b. The inspected surface 11d is provided on one end surface of the fixing base 11c. The inspection points include a first inspection point 11e, a second inspection point 11f, and a third inspection point 11g. The centers of the first inspection point 11e, the second inspection point 11f, and the third inspection point 11g are located on a straight line. The first inspection point 11e, the second inspection point 11f, and the third inspection point 11g approach the lens 11a in sequence from the outer edge of one end surface of the fixing base 11c. The heights of the first inspection point 11e, the second inspection point 11f, and the third inspection point 11g are different. The above-mentioned inspection device, an appearance inspection device, an appearance inspection system, and an appearance inspection method can be used to inspect the lens member.

[0185] In addition to the above appearance inspection method, as a preferred option, a second inspection method can also be included. Please refer to Figure 14 A second inspection method provided by another embodiment of the present invention includes the following steps:

[0186] S1-1: Orient one end of the lens member to be inspected towards the acquisition end of the image sensing device of the inspection device, and the other end towards the monochromatic surface of the monochromatic chart of the inspection device;

[0187] S1-2: Obtain an inspection image of the monochromatic surface through the image sensing device;

[0188] S1-3: Determine whether there is an impurity image on the inspection image. If there is an impurity image on the inspection image, the current lens member is unqualified; if there is no impurity image on the inspection image, the current lens member is qualified.

[0189] By steps S1-1 to S1-2, the lens member to be inspected is placed between the acquisition end of the image sensing device and the monochromatic surface for inspection, and the operation is simple and very convenient. By judging whether there are defective substances on the light-passing hole of the corresponding lens member through the inspection image, it is not necessary for the user to directly observe the light-passing hole of the lens member with the eyes, which improves the efficiency of inspecting the light-passing hole of the lens member.

[0190] Further, referring to Figure 14 and Figure 15 As a specific implementation manner of an inspection method provided by the present invention, in step S1-1, the following steps are further included:

[0191] S2-1: Orient one end of a teleconverter towards the acquisition end of the image sensing device, and the other end towards the monochromatic surface;

[0192] S2-2: Orient one end of the lens element towards the acquisition end of the image sensing device, and the other end towards the end of the teleconverter that faces the acquisition end.

[0193] Through steps S2-1 to S2-2, the use of the teleconverter is convenient. After the lens element is placed in the detection area, the teleconverter increases the focal length of the lens element, so that the acquisition end of the image sensing device obtains an inspection image of the monochromatic surface through the light passing hole of the current lens element and the teleconverter. The acquisition end of the image sensing device, the light passing hole of the lens element, and the teleconverter cooperate to simulate taking a long-focus photo of the monochromatic surface, without the need to set a long distance between the monochromatic chart and the acquisition end of the image sensing device, reducing the volume of the inspection device.

[0194] Further, please refer to Figure 14 and Figure 16 , as a specific implementation of an inspection method provided by the present invention, in step S1-3, the following steps are further included:

[0195] S3-1: Obtain a standard image;

[0196] S3-2: Determine whether the inspection image is the same as the standard image. If the inspection image is the same as the standard image, the current lens element is qualified; if the inspection image is not the same as the standard image, the current lens element is unqualified.

[0197] Through steps S3-1 to S3-2, the standard image and the inspection image are compared to quickly find out whether the inspection image is different from the standard image, so as to quickly determine whether the current lens element is qualified.

[0198] Further, please refer to Figure 16 and Figure 17 , as a specific implementation of an inspection method provided by the present invention, in step S3-1, the following steps are included:

[0199] S4-1: Select a standard lens element;

[0200] S4-2: Orient one end of the standard lens element towards the acquisition end of the image sensing device, and the other end towards the monochromatic surface;

[0201] S4-3: Obtain the standard image through the image sensing device.

[0202] Through steps S4-1 to S4-3, the steps of obtaining the standard image are simple. The standard image is quickly obtained through the image sensing device, the standard lens element, and the monochromatic surface.

[0203] Please refer to Figure 18 , an embodiment of the present invention further provides an inspection device, and the inspection device includes:

[0204] A placement module 701, with one end of the lens part to be inspected facing the acquisition end of the image sensing device of the inspection device, and the other end facing the monochromatic surface of the monochromatic chart of the inspection device;

[0205] A photographing module 702, which obtains an inspection image of the monochromatic surface through the image sensing device;

[0206] An inspection module 703, which determines whether there is an impurity image on the inspection image. If there is the impurity image on the inspection image, the current lens part is unqualified; if there is no such impurity image on the inspection image, the current lens part is qualified.

[0207] By means of the placement module 701, the photographing module 702 and the inspection module 703, manual operations are reduced, and the efficiency of inspecting the lens part is improved.

[0208] Further, please refer to Figure 18 As a specific implementation manner of an inspection device provided by the present invention, the placement module 701 further includes:

[0209] A telephoto module 7011, with one end of a teleconverter facing the acquisition end of the image sensing device, and the other end facing the monochromatic surface;

[0210] A lens module 7012, with one end of the lens part facing the acquisition end of the image sensing device, and the other end facing the end of the teleconverter facing the acquisition end.

[0211] By means of the telephoto module 7011, the teleconverter is installed, and through the lens module 7012, the acquisition end of the image sensing device, the light passing hole of the lens part and the teleconverter cooperate to simulate telephoto shooting of the monochromatic surface.

[0212] Further, please refer to Figure 12 , as a specific implementation manner of an inspection device provided by the present invention, the inspection module 703 includes:

[0213] An image acquisition module 7031, which acquires a standard image;

[0214] A judgment module 7034, which determines whether the inspection image is the same as the standard image. If the inspection image is the same as the standard image, the current lens part is qualified; if the inspection image is not the same as the standard image, the current lens part is unqualified.

[0215] The acquisition of the standard image is achieved through the image acquisition module 7031. The quick comparison between the inspection image and the standard image is realized through the judgment module 7034, improving the comparison efficiency between the inspection image and the standard image.

[0216] Further, please refer to Figure 19 , as a specific implementation manner of an inspection device provided by the present invention, the image acquisition module 7031 includes the following modules:

[0217] The selection module 70311 selects the standard lens element;

[0218] The action module 70312 makes one end of the standard lens element face the acquisition end of the image sensing device and the other end face the monochromatic surface;

[0219] The standard module 70314 acquires the standard image through the image sensing device.

[0220] Through the cooperation of the selection module 70311, the action module 70312 and the standard module 70314, the acquisition efficiency of the standard image is improved.

[0221] For the specific limitations of an inspection device, reference can be made to the limitations of an inspection method described above, which will not be elaborated here. Each module in the above-mentioned inspection device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in the processor of the computer device in hardware form or independently, or stored in the storage of the computer in software form, so that the processor can call and execute the above-mentioned modules.

[0222] Similarly, the present invention also provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor executes the computer program to implement the steps of the above-mentioned inspection method, such as Figure 14 the steps S1-1 to S1-3 shown, or. When the computer program is executed by the processor, it realizes the functions of each module of the above-mentioned inspection device, such as Figure 18 the functions of the modules 701 to 703 shown. To avoid repetition, it will not be elaborated here.

[0223] Please refer to Figures 14 to 19 , the present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by the processor, it realizes the steps of the above-mentioned inspection method. For example Figure 14 the steps S1-1 to S1-3 shown, or. When the computer program is executed by the processor, it realizes the functions of each module of the above-mentioned inspection device, such as Figure 18The functions of the modules 701 to 703 shown. To avoid repetition, they will not be elaborated here.

[0224] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. An appearance inspection method, characterized in that, it includes the following steps: Select an object to be inspected; Select a number of pre-stored lighting data according to the object to be inspected, wherein each of the pre-stored lighting data includes wavelength data, brightness data, focal length data, and image comparison data; Select one of the pre-stored lighting data; Control the lighting device of the appearance inspection system to illuminate the inspected surface of the object to be inspected according to the current wavelength data and current brightness data, and at the same time control the adjustable-focus photographing device of the appearance inspection system to photograph the inspected surface to obtain photographing data according to the focal length data; Judge whether the current photographing data is the same as the current image comparison data. If the current photographing data is the same as the current image comparison data, return to execute the step of selecting one of the pre-stored lighting data until all the pre-stored lighting data are selected; if the current photographing data is different from the current image comparison data, the object to be inspected is unqualified; before selecting a number of pre-stored lighting data according to the object to be inspected, the following steps are further included: Select a standard reference object according to the object to be inspected; Determine a number of detection points on the detected surface of the standard reference object according to a number of inspection points on the inspected surface of the object to be inspected, wherein each of the inspection points corresponds to each of the detection points one by one; Select one of the detection points; Adjust the wavelength and brightness of the lighting device to illuminate one of the detection points, and at the same time control the focal length between the adjustable-focus photographing device and the current detection point to take a photograph to obtain a corresponding real-time image; Judge whether the current real-time image is the clearest image. If the current real-time image is the clearest image, record the current real-time image as the image comparison data, and at the same time record the focal length data of the current adjustable-focus photographing device, the wavelength data and brightness data of the current lighting device corresponding to the current real-time image. Form the current pre-stored lighting data through the current focal length data, current image comparison data, current wavelength data, and current brightness data, and return to execute the step of selecting one of the detection points until it is confirmed that all the detection points are selected; if the current real-time image is not the clearest image, return to execute the step of adjusting the wavelength and brightness of the lighting device to illuminate one of the detection points, and at the same time control the adjustable-focus photographing device to take a photograph of the current detection point to obtain a corresponding real-time image.

2. An appearance inspection system, characterized in that, it includes: A selection module for selecting an object to be inspected; A reference selection module for selecting a standard reference object according to the object to be inspected; A detection point positioning module for determining a number of detection points on the detected surface of the standard reference object according to a number of inspection points on the inspected surface of the object to be inspected, wherein each of the inspection points corresponds to each of the detection points one by one; A detection point selection module for selecting one of the detection points; A real-time image acquisition module for adjusting the wavelength and brightness of the lighting device to illuminate one of the detection points, and at the same time controlling the focal length between the adjustable-focus photographing device and the current detection point to take a photograph to obtain a corresponding real-time image; The clearest image recognition module determines whether the current real-time image is the clearest image. If the current real-time image is the clearest image, the current real-time image is recorded as image comparison data, and at the same time, the focal length data of the current adjustable-focus photographing device corresponding to the current real-time image, the wavelength data and brightness data of the current lighting device are recorded. The current pre-stored lighting data is formed by the current focal length data, the current image comparison data, the current wavelength data, and the current brightness data, and the step of selecting one of the detection points is returned for execution until it is confirmed that all the detection points have been selected; if the current real-time image is not the clearest image, the step of adjusting the wavelength and brightness of the lighting device to illuminate one of the detection points is returned for execution, and at the same time, the adjustable-focus photographing device is controlled to take a picture of the current detection point to obtain the corresponding real-time image; The data selection module selects a number of pre-stored lighting data according to the object to be inspected. Among them, each of the pre-stored lighting data includes wavelength data, brightness data, focal length data, and image comparison data; The pre-stored selection module selects one of the pre-stored lighting data; The lighting and photographing module controls the lighting device of the appearance inspection system to illuminate the inspected surface of the object to be inspected according to the current wavelength data and the current brightness data, and at the same time controls the adjustable-focus photographing device of the appearance inspection system to take a picture of the inspected surface according to the focal length data to obtain photographing data; The image comparison module determines whether the current photographing data is the same as the current image comparison data. If the current photographing data is the same as the current image comparison data, the step of selecting one of the pre-stored lighting data is returned for execution until all the pre-stored lighting data have been selected; if the current photographing data is not the same as the current image comparison data, the object to be inspected is unqualified.

Citation Information

Patent Citations

  • System and detection method for checking wrong selection of thin film filters based on machine vision

    CN109916601A