CN113689323A - Appearance inspection method and system, and inspection method and device - Google Patents

Appearance inspection method and system, and inspection method and device Download PDF

Info

Publication number
CN113689323A
CN113689323A CN202110693398.1A CN202110693398A CN113689323A CN 113689323 A CN113689323 A CN 113689323A CN 202110693398 A CN202110693398 A CN 202110693398A CN 113689323 A CN113689323 A CN 113689323A
Authority
CN
China
Prior art keywords
image
data
current
inspection
inspected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110693398.1A
Other languages
Chinese (zh)
Inventor
徐崇友
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Fuyuan Software Co ltd
Original Assignee
Shenzhen Fuyuan Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202010626946.4A external-priority patent/CN111915563A/en
Priority claimed from CN202010783654.1A external-priority patent/CN112102152A/en
Application filed by Shenzhen Fuyuan Software Co ltd filed Critical Shenzhen Fuyuan Software Co ltd
Publication of CN113689323A publication Critical patent/CN113689323A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/32Indexing scheme for image data processing or generation, in general involving image mosaicing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

One objective of the present invention is to provide an appearance inspection method to solve the technical problem of low accuracy in determining whether an inspection object is qualified in the prior art. Compared with the prior art, the appearance inspection method and the appearance inspection system provided by the invention can be used for judging whether the inspected surface of the object to be inspected has flaws or not, so that whether the object to be inspected is qualified or not is judged, and the speed of inspecting the object to be inspected is increased. 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 contrast data. If the photographing data and the image contrast data are inconsistent under the same wavelength data and brightness data, it is proved that the detected surface of the object to be detected has flaws, the object to be detected is regarded as a defective product, and the object to be detected is not suitable for leaving a factory.

Description

Appearance inspection method and system, and inspection method and device
Technical Field
The present invention relates to the field of appearance inspection technology, and more particularly, to an appearance inspection method, apparatus, device, and storage medium.
Background
After the article is produced, the surface of the article needs to be inspected. If the surface of the object is detected to have defects, the object is unqualified. If the surface of the object is inspected to have no defects, the object is qualified. Typically, the blemishes include dirt, dust, scratches, oil stains, and the like. In the prior art, the surface of an object is usually inspected in a manual mode, and tiny flaws on the surface of the object are not easy to be inspected in a manual mode, so that the accuracy of judging whether the object is qualified is influenced. Taking the lens as an example, after the lens is produced, the light-passing hole of the lens needs to be inspected to determine whether there is an undesirable object on the light-passing hole, where the undesirable object includes dust, a flaw, dirt, a fingerprint, and the like, and the lens is set as a lens or a lens. In the prior art, the light through hole of the lens piece is inspected through human eyes, and the problem of low inspection efficiency also exists.
Disclosure of Invention
One objective of the present invention is to provide an appearance inspection method to solve the technical problem of low accuracy in determining whether an inspection object is qualified in the prior art.
In order to realize one of the purposes, the invention adopts the technical scheme that: provided is an appearance inspection method including the steps of:
selecting an object to be checked;
selecting a plurality of pre-stored illumination data according to the object to be checked, wherein each pre-stored illumination data comprises wavelength data, brightness data, focal length data and image contrast data;
selecting one pre-stored lighting data;
controlling an illuminating device of an 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 controlling a focus-adjustable photographing device of the appearance inspection system to photograph the inspected surface according to the focal length data to obtain photographing data;
judging whether the current photographing data is the same as the current image contrast data or not, if so, returning to the step of selecting one pre-stored illumination data until all the pre-stored illumination data are selected; and if the current photographing data is different from the current image contrast data, the object to be inspected is unqualified.
Further, before selecting a plurality of pre-stored illumination data according to the object to be inspected, the method further comprises the following steps:
selecting a standard reference object according to the object to be checked;
determining a plurality of detection points on the detected surface of the standard reference object according to a plurality of detection points on the detected surface of the object to be detected, wherein each detection point corresponds to each detection point one by one;
selecting a detection point;
adjusting the wavelength and the brightness of the illuminating device to illuminate one detection point, and simultaneously controlling the focal distance between the focusing photographing device and the current detection point to photograph so as to obtain a corresponding real-time image;
judging whether the current real-time image is the clearest image or not, if so, recording the current real-time image as image contrast data, simultaneously recording the focal length data, the wavelength data and the brightness data of the current focusing photographing device corresponding to the current real-time image, forming current prestored lighting data through the current focal length data, the current image contrast data, the current wavelength data and the current brightness data, and returning to execute the step of selecting a detection point until the detection point is confirmed to be selected; and if the current real-time image is not the clearest image, returning to the step of executing the step of adjusting the wavelength and the brightness of the lighting device to light one detection point, and controlling the focusing photographing device to photograph the current detection point to obtain the corresponding real-time image.
Further, judging whether the current real-time image is the clearest image or not, if the current real-time image is the clearest image, recording the current real-time image as the image contrast data, simultaneously recording the focal length data, the wavelength data and the brightness data of the current focusing photographing device corresponding to the current real-time image, forming the current prestored lighting data by the current focal length data, the current image contrast data, the current wavelength data and the current brightness data, and returning to execute the step of selecting one detection point until the detection point is confirmed to be selected; if the current real-time image is not the clearest image, returning to execute the step of adjusting the wavelength and the brightness of the lighting device to light one detection point, and simultaneously controlling the focusable shooting device to shoot the current detection point to obtain the corresponding real-time image, wherein the step of:
judging whether an electric signal corresponding to the current real-time image is in a threshold value or not through the focusing photographing device, if so, recording the current real-time image as image comparison data, simultaneously recording the focal length data, the wavelength data and the brightness data of the current focusing photographing device corresponding to the current real-time image, forming current prestored lighting data through the current focal length data, the current image comparison data, the current wavelength data and the current brightness data, and returning to execute the step of selecting one detection point until the detection point is confirmed to be selected; and if the current real-time image is not the clearest image, returning to the step of executing the step of adjusting the wavelength and the brightness of the lighting device to light one detection point, and controlling the focusing photographing device to photograph the current detection point to obtain the corresponding real-time image.
Further, judging whether the current photographing data is the same as the current image contrast data or not, if so, returning to the step of selecting one 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 step that the object to be checked is unqualified is as follows: judging whether the current photographing data is the same as the current image contrast data or not through an image contrast system, if so, returning to the step of selecting one pre-stored lighting data by the appearance inspection system until all the pre-stored lighting data are selected; and 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.
The second purpose of the invention is to provide an appearance inspection system, and in order to realize the second purpose, the invention adopts the technical scheme that: an appearance inspection system comprising:
the selection module selects an object to be checked;
the data selection module is used for selecting a plurality of pre-stored illumination data according to the object to be checked, wherein each pre-stored illumination data comprises wavelength data, brightness data, focal length data and image contrast data;
the pre-storage selection module selects one pre-storage illumination data;
the illumination photographing module is used for controlling an illumination device of an 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 controlling a 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 is used for judging whether the current photographing data is the same as the current image comparison data or not, and if the current photographing data is the same as the current image comparison data, the step of selecting one pre-stored lighting data is returned until all the pre-stored lighting data are selected; and if the current photographing data is different from the current image contrast data, the object to be inspected is unqualified.
Further, still include:
the reference selection module is used for selecting a standard reference object according to the object to be checked;
the detection point positioning module is used for determining a plurality of detection points on the detected surface of the standard reference object according to a plurality of detection points on the detected surface of the object to be detected, wherein each detection point corresponds to each detection point one by one;
the detection point selection module selects one detection point;
the real-time image acquisition module is used for adjusting the wavelength and the brightness of the lighting device to light one detection point and simultaneously controlling the focus between the focusing photographing device and the current detection point to photograph so as to obtain a corresponding real-time image;
a clearest image recognition module for judging whether the current real-time image is a clearest image, if so, recording the current real-time image as the image contrast data, simultaneously recording the focal length data, the wavelength data and the brightness data of the current focusing photographing device corresponding to the current real-time image, forming the current prestored lighting data by the current focal length data, the current image contrast data, the current wavelength data and the current brightness data, and returning to execute the step of selecting one detection point until the detection point is confirmed to be selected; and if the current real-time image is not the clearest image, returning to the step of executing the step of adjusting the wavelength and the brightness of the lighting device to light one detection point, and controlling the focusing photographing device to photograph the current detection point to obtain the corresponding real-time image.
Further, the clearest image recognition module is set as: judging whether an electric signal corresponding to the current real-time image is in a threshold value or not through the focusing photographing device, if so, recording the current real-time image as image comparison data, simultaneously recording the focal length data, the wavelength data and the brightness data of the current focusing photographing device corresponding to the current real-time image, forming current prestored lighting data through the current focal length data, the current image comparison data, the current wavelength data and the current brightness data, and returning to execute the step of selecting one detection point until the detection point is confirmed to be selected; and if the current real-time image is not the clearest image, returning to the step of executing the step of adjusting the wavelength and the brightness of the lighting device to light one detection point, and controlling the focusing photographing device to photograph the current detection point to obtain the corresponding real-time image.
Further, the image comparison module is configured to: judging whether the current photographing data is the same as the current image contrast data or not through an image contrast system, if so, returning to the step of selecting one pre-stored lighting data by the appearance inspection system until all the pre-stored lighting data are selected; and 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.
Compared with the prior art, the appearance inspection method and the appearance inspection system provided by the invention judge whether the inspected surface of the object to be inspected has flaws or not, so that whether the object to be inspected is qualified or not is judged, and the speed of inspecting the object to be inspected is increased. 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 contrast data. If the photographing data and the image contrast data are inconsistent under the same wavelength data and brightness data, it is proved that the detected surface of the object to be detected has flaws, the object to be detected is regarded as a defective product, and the object to be detected is not suitable for leaving a factory.
The technical problem of low inspection efficiency is solved by using human eyes to inspect the light through hole of the lens piece in the prior art.
The invention also aims to provide an inspection method, which comprises the following steps:
one end of a lens piece to be inspected faces a collecting end of an image sensing device of an inspection device, and the other end of the lens piece faces a monochromatic surface of a monochromatic graphic card of the inspection device;
obtaining an inspection image of the monochromatic surface by the image sensing device;
judging whether the inspection image has an impurity image, if so, determining that the current lens is unqualified; and if the inspection image does not have the impurity image, the current lens piece is qualified.
Further, in the step of enabling one end of the lens piece to be inspected to face the collecting end of the image sensing device of the inspection device and the other end of the lens piece to face the monochromatic surface of the monochromatic image card of the inspection device, the method further comprises the following steps: one end of a range extender faces towards the acquisition end of the image sensing device, and the other end of the range extender faces towards the monochromatic surface; one end of the lens piece faces to a collecting end of the image sensing device, and the other end of the lens piece faces to one end of the distance increasing lens facing to the collecting end.
Further, whether a foreign matter image exists on the inspection image or not is judged, and if the foreign matter image exists on the inspection image, the current lens piece is unqualified; if the inspection image does not have the impurity image, the lens piece is qualified currently, and the method further comprises the following steps:
acquiring a standard image;
and judging whether the inspection image is the same as the standard image or not, if so, determining that the current lens piece is qualified, and if not, determining that the current lens piece is unqualified.
Further, in the acquiring the standard image, the following steps are included:
selecting a standard lens piece;
one end of the standard lens piece faces to the collecting end of the image sensing device, and the other end of the standard lens piece faces to the monochromatic surface;
the standard image is obtained by the image sensing device.
The fourth object of the present invention is to provide an inspection apparatus, in order to achieve the fourth object, the present invention adopts the following technical solution: provided is an inspection apparatus including:
the lens piece to be inspected comprises a placement module, a detection module and a control module, wherein one end of the lens piece to be inspected faces the acquisition end of an image sensing device of the inspection device, and the other end of the lens piece faces the monochromatic surface of a monochromatic graphic card of the inspection device;
the photographing module is used for obtaining the inspection image of the single-color surface through the image sensing device;
the inspection module is used for judging whether the inspection image has the impurity image or not, and if the inspection image has the impurity image, the current lens piece is unqualified; if the inspection image does not have the impurity image, the current lens piece is qualified
Further, the placement module further comprises:
the far-focus module enables one end of a distance-increasing lens to face the acquisition end of the image sensing device, and the other end of the distance-increasing lens to face the monochromatic surface;
and the lens module enables one end of the lens piece to face the collecting end of the image sensing device, and the other end of the lens piece to face one end of the distance increasing lens, which faces the collecting end.
Further, the inspection module includes:
the image acquisition module acquires a standard image;
and the judging module is used for judging whether the inspection image is the same as the standard image or not, if the inspection image is the same as the standard image, the current lens piece is qualified, and if the inspection image is not the same as the standard image, the current lens piece is unqualified.
Further, the image acquisition module comprises the following modules:
a selection module that selects a standard lens piece;
the action module enables one end of the standard lens piece to face the acquisition end of the image sensing device, and the other end of the standard lens piece to face the monochromatic surface;
and the standard module is used for acquiring the standard image through the image sensing device.
Compared with the prior art, the inspection method and the inspection device provided by the invention have the advantages that whether the corresponding light through hole of the lens piece is provided with the defective object or not is judged through the inspection image, a user does not need to directly observe the light through hole of the lens piece by eyes, and the efficiency of inspecting the light through hole of the lens piece is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a first schematic structural diagram of an inspection apparatus according to an embodiment of the present invention;
FIG. 2 is an enlarged schematic view of the structure at A in FIG. 1;
FIG. 3 is a first schematic structural diagram of a clamping end of a clamping device of an inspection apparatus according to an embodiment of the present invention;
FIG. 4 is a second schematic structural view of a clamping end of a clamping device of an inspection apparatus according to an embodiment of the present invention;
FIG. 5 is a third schematic structural view of a clamping end of a clamping device of an inspection apparatus according to an embodiment of the present invention;
FIG. 6 is a second schematic structural diagram of an inspection apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an inspection apparatus according to an embodiment of the present invention;
fig. 8 is a first schematic flow chart of an appearance inspection apparatus according to an embodiment of the present invention;
fig. 9 is a second schematic flow chart of an appearance inspection apparatus according to an embodiment of the present invention;
FIG. 10 is a block diagram of an appearance inspection system according to an embodiment of the present invention;
FIG. 11 is a schematic structural diagram of a computer device according to an embodiment of the present invention;
FIG. 12 is a schematic structural diagram of a lens member according to an embodiment of the present invention;
FIG. 13 is a cross-sectional view taken at B-B of FIG. 12;
fig. 14 is a first flowchart illustrating an inspection method according to an embodiment of the present invention;
FIG. 15 is a second flowchart illustrating an inspection method according to an embodiment of the present invention;
fig. 16 is a third schematic flowchart of an inspection method according to an embodiment of the present invention;
fig. 17 is a fourth schematic flowchart of an inspection method according to an embodiment of the present invention;
FIG. 18 is a first block diagram of an inspection apparatus according to an embodiment of the present invention;
fig. 19 is a second block diagram of an inspection apparatus according to an embodiment of the present invention.
Wherein, in the figures, the respective reference numerals:
1. a graphic card device; 11. a monochrome graphic card; 12. an adjustment movement device; 13. a backlight device; 14. an illuminating member; 2. an image sensing device; 3. a distance increasing device; 31. a distance-increasing mirror; 32. adjusting the movable device; 4. detecting a region; 5. a conveying device; 6. a clamping device; 61. clamping the end; 611. a fixing plate; 612. a through hole; 613. an elastic sheet; 614. a finger cylinder; 62. a fixed end portion; 7. a focus adjustable photographing device; 8. an illumination device; 9. an examination region; 101. selecting a module; 102. a data selection module; 103. pre-storing a selection module; 104. an illumination photographing module; 105. an image comparison module; 106. a reference selection module; 107. a detection point positioning module; 108. a detection point selection module; 109. a real-time image acquisition module; 1010. a clearest image recognition module; 11a, a lens; 11b, a light through hole; 11c, a fixed seat; 11d, a detected surface; 11e, a first check point; 11f, a second checkpoint; 11g, a third check point; 701. placing a module; 7011. a tele module; 7012. a lens module; 702. a photographing module; 703. an inspection module; 7031. an image acquisition module; 70311. a selection module; 70312. an action module; 70314. a standard module; 7034. and a judging module.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that when an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or be 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 be indirectly connected to the other element.
It will be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like, as used herein, refer to an orientation or positional relationship indicated in the drawings that is solely for the purpose of facilitating the description and simplifying the description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and is therefore not to be construed as limiting the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Referring to fig. 1 and fig. 2 together, an inspection apparatus according to the present invention will now be described. An inspection apparatus includes a card apparatus 1 and an image sensing apparatus 2;
the image card device 1 comprises a monochrome image card 11, wherein the monochrome image card 11 has a monochrome surface;
the acquisition end of the image sensing device 2 faces the monochromatic surface, the image sensing device 2 and the monochromatic graphic card 11 are arranged at intervals, a detection area 4 is arranged between the acquisition end of the image sensing device 2 and the monochromatic graphic card 11, and the detection area 4 is used for placing a lens piece.
A user places a lens piece in the detection area 4, controls the image sensing device 2, enables the acquisition end of the image sensing device 2 to acquire an inspection image of a single color surface through the current light through hole of the lens piece, and if no impurity image exists on the inspection image, the inspection image proves that no defect exists in the current light through hole of the lens piece; if the inspection image includes an image of foreign matter, it is verified that there is something wrong with the light-passing hole of the lens member at present. The inspection device has simple structure and low cost. Whether the corresponding lens piece is provided with the defective object or not is judged through the inspection image, the user does not need to directly observe the light through hole of the lens piece by eyes, and the efficiency of inspecting the light through hole of the lens piece is improved.
Specifically, the image card device 1 and the image sensing device 2 are disposed on a preset plane (not shown) which is set as a table top or an inner table top of a dust box.
In particular, the lens element is provided as a lens or a lens.
Specifically, the image sensing device 2 is set as an image sensing chip or an industrial camera. The image sensor device 2 is preferably electrically connected to a computing center (not shown) which comprises a memory, a processor and a computer program stored in the memory and executable on the processor. The calculation center stores a standard image of a single color surface, receives the inspection image and compares the inspection image with the standard image, if the inspection image is different from the standard image, the inspection image is proved to have a defective object in a light through hole of the lens piece corresponding to the inspection image, and the calculation center sends out reminding information; if the inspection image is the same as the standard image, the inspection image proves that no defect exists in the light through hole of the lens piece corresponding to the inspection image, and the calculation center does not send out reminding information.
Specifically, the foreign matter image is set as a spot image on the inspection image or/and a bar image on the inspection image.
Further, referring to fig. 1 and fig. 2 together, as an embodiment of the inspection apparatus provided by the present invention, the inspection apparatus further includes a distance-increasing device 3, the distance-increasing device 3 includes a distance-increasing mirror 31, the distance-increasing mirror 31 is disposed between the monochromatic surface and the image sensing apparatus 2, one end of the distance-increasing mirror 31 faces the collecting end of the image sensing apparatus 2, the other end faces the monochromatic surface, and the detection area 4 is located between the distance-increasing mirror 31 and the collecting end of the image sensing apparatus 2.
After the lens element is placed in the detection area 4, the distance increasing lens 31 increases the focal length of the lens element, so that the acquisition end of the image sensing device 2 acquires an inspection image of a monochromatic surface through the current light through hole of the lens element and the distance increasing lens 31. The acquisition end of the image sensing device 2, the light through hole of the lens piece and the range extender 31 are matched to simulate to carry out far-focus shooting on a single-color surface, the distance between the single-color image card 11 and the acquisition end of the image sensing device 2 does not need to be set far, and the size of the inspection device is reduced.
Specifically, the pitch device 3 is disposed on a preset plane.
Further, referring to fig. 1 and fig. 2, as a specific embodiment of the inspection apparatus provided by the present invention, the distance-increasing device 3 further includes an adjusting movable device 32, the distance-increasing lens 31 is fixed at an output end of the adjusting movable device 32, the adjusting movable device 32 avoids the detection area 4, the adjusting movable device 32 is used for driving the distance-increasing lens 31 to be far away from or close to the acquisition end of the image sensing apparatus 2, the adjusting movable device 32 does not affect the lens piece to be placed in the detection area 4, so as to conveniently adjust the distance between the distance-increasing lens 31 and the image sensing apparatus 2, and improve the convenience of using the inspection apparatus.
Specifically, the adjustment movement device 32 is fixed on a preset plane.
Optimally, the adjustment mechanism 32 is configured as an XYZ-axis adjustment mechanism or a Z-axis module.
Further, referring to fig. 1 and fig. 2, as a specific embodiment of the inspection apparatus provided by the present invention, the image card apparatus 1 further includes an adjusting movement apparatus 12, the monochrome image card 11 is fixed on an output end of the adjusting movement apparatus 12, the adjusting movement apparatus 12 is used for driving the monochrome image card 11 to move away from or close to a collecting end of the image sensing apparatus 2, the adjusting movement apparatus 12 avoids the detection area 4, the adjusting movement apparatus 12 does not affect the placement of the lens piece in the detection area 4, so as to conveniently adjust the distance between the image card apparatus 1 and the image sensing apparatus 2, and improve the convenience of using the inspection apparatus.
In particular, the adjustment movement means 12 are fixed on a preset plane.
Optimally, the adjusting movement device 12 is configured as an XYZ-axis adjusting device or a Z-axis module.
Further, referring to fig. 1 to fig. 2, as a specific embodiment of the inspection apparatus provided by the present invention, the inspection apparatus further includes a conveying device 5 and a clamping device 6, the clamping device 6 has a clamping end 61 and a fixing end 62, the clamping end 61 of the clamping device 6 is used for clamping the lens, the fixing end 62 of the clamping device 6 is fixed on the output end of the conveying device 5, the conveying device 5 is used for driving the clamping device 6 to drive the lens to move into the detection area 4 or away from the detection area 4, and the conveying device 5 and the clamping device 6 avoid the detection area 4.
The conveying device 5 is convenient for controlling the clamping device 6 to move, and then the lens piece on the clamping end part 61 moves along with the movement of the clamping device 6, so that the lens piece can conveniently enter and exit the detection area 4, and the use convenience of the inspection device is improved.
By the clamping end 61 clamping the lens member, the clamping end 61 does not affect the image sensing device 2 specifically, the conveying device 5 is fixed on the preset plane.
The transport device 5 is preferably an XYZ-axis adjustment device or an X-axis module.
Further, referring to fig. 1 and fig. 6, as an embodiment of the inspection apparatus provided by the present invention, the conveying device 5 has a plurality of output ends, the plurality of clamping devices 6 are provided, each clamping device 6 corresponds to one output end of the conveying device 5, and the clamping devices 6 are fixed on the output ends of the corresponding conveying devices 5.
When the lens member on one holding device 6 is in the detection area 4, the lens member on the other holding device 6 can be processed or the lens can be placed on the holding device 6 without the lens member, thereby improving the convenience of the inspection device.
Specifically, a plurality of output ends of the conveyor 5 are integrally provided, and in this case, the conveyor 5 is configured as a conveyor belt device.
Further, referring to fig. 2 to 5, as an embodiment of the inspection apparatus 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 elastic pieces 613 disposed oppositely, or two output shafts of the finger cylinder 614.
When the lens is placed in the through hole 612, the lens is not easy to move on the fixing plate 611, and the lens is simple in structure and very practical; the distance between the two elastic pieces 613 is conveniently adjusted to hold lens pieces of different specifications. The finger cylinder 614 is convenient to use and facilitates clamping and releasing the lens piece.
Further, referring to fig. 1 and fig. 2, as an embodiment of an inspection apparatus provided by the present invention, the card apparatus 1 further includes a backlight device 13 with adjustable brightness, the monochrome card 11 is a light-transmitting card, the monochrome surface of the monochrome card 11 is a monochrome light-transmitting plane, the backlight device 13 is disposed on a side of the monochrome card 11 facing away from the monochrome surface, and a light-emitting side of the backlight device 13 faces the monochrome card 11.
The light emitted from the backlight device 13 passes through the light-transmitting graphic card, so that the image sensing device 2 can acquire a clear inspection image. The brightness of the backlight device 13 is adjusted according to the lens pieces with different specifications, so that the image sensing device 2 can acquire clear inspection images through the lens pieces with different specifications. The brightness of the backlight device 13 is kept unchanged, so that a user can conveniently check the lens piece with the same specification, and the difficulty of using the checking device is reduced.
Further, as a specific embodiment of the inspection apparatus provided by the present invention, the monochrome card 11 is fixed on the backlight device 13, so that the volume of the card apparatus 1 is reduced, and the monochrome card 11 and the backlight device 13 can be moved simultaneously.
Specifically, the backlight 13 may be fixed on an output shaft of the adjustment movement device 12.
Further, referring to fig. 6, as an embodiment of the inspection apparatus provided by the present invention, the card apparatus 1 further includes an illumination component 14 with adjustable brightness, the monochrome card 11 is an opaque card, the monochrome plane of the monochrome card 11 is a monochrome opaque plane, the illumination component 14 is used for illuminating the monochrome opaque plane, and the illumination component 14 is located at one side of the inspection area 4.
The light emitted by the illuminating element 14 is irradiated on the opaque picture card, so that the image sensing device 2 can acquire a clear inspection image conveniently. The brightness of the illuminating part 14 is adjusted according to the lens parts with different specifications, so that the image sensing device 2 can obtain clear inspection images through the lens parts with different specifications. The brightness of the illuminating piece 14 is kept unchanged, so that a user can conveniently inspect the lens piece with the same specification, and the difficulty of using the inspection device is reduced.
In particular, the illumination member 14 and the opaque chart are fixed to the output shaft of the adjustment movement device 12.
Further, as a specific embodiment of an inspection apparatus provided by the present invention, the monochrome surface is set to be a black plane or a white plane, and the background of the inspection image is black or white, so as to facilitate rapid identification of whether the inspection image is different from the standard image.
Referring to fig. 1, 6 and 7 together, an appearance inspection apparatus according to the present invention will now be described. The appearance inspection device comprises a focusing photographing device 7 and an illuminating device 8 capable of adjusting wavelength and brightness, wherein a photographing end of the focusing photographing device 7 and an illuminating end of the illuminating device 8 face an inspection area 9, the photographing end of the focusing photographing device 7 is kept away from the illuminating device 8, and the focusing photographing device 7 and the illuminating device 8 are electrically connected with a photo processing center.
Placing an object to be inspected in an inspection area 9, adjusting the brightness and wavelength of an illuminating device 8 according to prestored illumination data, illuminating the detected surface of the object to be inspected by the adjusted illuminating device 8, then photographing the illuminated detected surface by a focusable photographing device 7 to obtain photographing data, comparing the photographing data with image comparison data of the prestored illumination data, and if the photographing data is the same as the image comparison data, determining that the object to be inspected is qualified; if the photographing data is different from the image contrast data, the object to be inspected is unqualified. When the detected surface of the object to be inspected has tiny flaws, the difference between the photographing data and the image contrast data can be caused. The visual inspection device is simple in structure, whether the object to be inspected is qualified or not can be rapidly distinguished through comparison of the photographing data and the image comparison data, and the accuracy rate of whether the object to be inspected is qualified or not is improved. The photo processing center is convenient for rapidly comparing the photographing data with the image comparison data, the object to be checked does not need to be checked by eyes manually, and the speed and the accuracy of checking the object to be checked are improved. The check points with different heights on the detected surface of the object to be checked are photographed through the focusing photographing device 7, so that clear images of each check point are guaranteed to be obtained, and whether flaws exist at each check point is determined.
Specifically, the focus-adjustable photographing device 7 is set as a focus-adjustable camera or a fixed-focus camera mounted on an output shaft of the linear driving assembly. And the linear driving assembly drives the fixed-focus camera to focus with the object to be inspected. The focusing camera adjusts the focal length between the focusing camera and an object to be inspected through a focusing lens of the focusing camera.
Optimally, the linear driving assembly is set to be a Z-axis module or an air cylinder, the Z-axis module plays a role in accurately adjusting the fixed-focus camera, and the air cylinder is low in cost.
Specifically, the focus-adjustable photographing device 7 and the illumination device 8 are disposed on a preset plane.
Specifically, the image contrast data is set as a contrast picture, and the photographing data is set as a photographing picture.
Specifically, the object to be inspected is set as a lens piece or a mobile phone case or a mobile phone screen.
Further, referring to fig. 1 and fig. 2, as a specific embodiment of the appearance inspection apparatus provided by the present invention, the appearance inspection apparatus further includes a conveying device 5 and a clamping device 6, the clamping device 6 has a clamping end 61 and a fixing end 62, the clamping end 61 of the clamping device 6 is used for clamping the object to be inspected, the fixing end 62 of the clamping device 6 is fixed on the output end of the conveying device 5, the conveying device 5 is used for driving the clamping device 6 to drive the object to be inspected to move into the inspection area 9 or away from the inspection area 9, the conveying device 5 and the clamping device 6 avoid the inspection area 9, the convenience of moving the object to be inspected is improved, the object to be inspected is conveniently clamped on the clamping device 6, and the object to be inspected is detached from the clamping device 6.
Specifically, the conveying device 5 of the appearance inspection device is common to the conveying device 5 of the inspection device described above, that is, the conveying device 5 conveys the lens pieces into the detection area 4 and the inspection area 9, respectively.
Further, referring to fig. 3 to 5, as an embodiment of the visual inspection apparatus 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 elastic pieces 613 disposed oppositely, or two output shafts of the finger cylinder 614.
The fixing plate 611 is convenient for placing a circular object to be inspected in the through hole 612, and the distance between the two elastic pieces 613 is adjustable, so that objects to be inspected with different sizes can be conveniently clamped. The finger cylinder 614 is convenient to use, and the convenience of clamping and releasing the object to be checked is improved.
Further, referring to fig. 1, fig. 6 and fig. 7 together, as a specific embodiment of the appearance inspection apparatus provided by the present invention, the lighting apparatus 8 is configured as an annular light source or an annular square light source or a planar light source, and when the lighting apparatus 8 is configured as an annular light source, the photographing end of the focus-adjustable photographing apparatus 7 faces the inner ring of the annular light source; when the lighting device 8 is set as an annular square light source, the shooting end of the focusable shooting device 7 faces the inner circle of the annular square light source.
The annular light source and the annular square light source can perform low-angle irradiation, and the focusing photographing device 7 can photograph tiny flaws conveniently. The shooting end of the focusing shooting device 7 faces towards the inner ring of the annular light source or the inner ring of the annular square light source, so that light reflected by an object to be checked can enter the shooting device conveniently, and clear pictures can be shot by the focusing shooting device 7. The plane light source is convenient to install. The cost is low, and the cost of the appearance inspection device is favorably reduced.
Further, as a specific embodiment of the appearance inspection apparatus provided by the present invention, the focus-adjustable photographing apparatus 7 is a visual camera or an industrial camera, the resolution of the visual camera is high, and a photographed picture is not easily distorted. The industrial camera is convenient for installing different lenses.
Further, referring to fig. 1, fig. 6 and fig. 7, as an embodiment of the appearance inspection apparatus according to the present invention, the appearance inspection apparatus further includes a linear driving mechanism (not shown), the illumination device 8 is fixed on an output shaft of the linear driving mechanism, the linear driving mechanism drives the illumination device 8 to move away from or close to the inspection area 9, and the linear driving mechanism avoids the inspection area 9, so that the distance between the illumination device 8 and the inspection area 9 can be adjusted according to the size of different objects to be inspected, thereby improving the convenience of the appearance inspection apparatus.
Further, as a specific embodiment of the appearance inspection apparatus provided by the present invention, the linear driving mechanism is set as an X-axis module or a Y-axis module, and the X-axis module and the Y-axis module have high precision, so that the distance between the illumination apparatus 8 and the inspection area 9 can be finely adjusted.
The invention also provides an appearance inspection system which comprises the appearance inspection device, and the appearance inspection system further comprises a photo processing center (not shown), wherein the focusing photographing device 7 and the illuminating device 8 are electrically connected with the photo processing center.
The photo processing center is convenient for rapidly comparing the photographing data with the image comparison data, the object to be checked does not need to be checked by eyes manually, and the speed and the accuracy of checking the object to be checked are improved.
Referring to fig. 8, a method for inspecting appearance according to the present invention will now be described. The appearance inspection method comprises the following steps:
s1-1: selecting an object to be checked;
s1-2: selecting a plurality of pre-stored illumination data according to the object to be checked, wherein each pre-stored illumination data comprises wavelength data, brightness data, focal length data and image contrast data;
s1-3: selecting one pre-stored lighting data;
s1-4: controlling an illuminating device of an 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 controlling a focus-adjustable photographing device of the appearance inspection system to photograph the inspected surface according to the focal length data to obtain photographing data;
s1-5: judging whether the current photographing data is the same as the current image contrast data or not, if so, returning to execute the step S1-3 until all the pre-stored lighting data are selected; and if the current photographing data is different from the current image contrast data, the object to be inspected is unqualified.
Through the steps S1-1 to S1-5, whether the inspected surface of the object to be inspected has flaws or not is judged, so that whether the object to be inspected is qualified or not is judged, and the speed of inspecting the object to be inspected is improved. Under the same wavelength data, focal length data and brightness data, the qualified photographing data corresponding to the object to be inspected must be consistent with the image contrast data. If the photographing data and the image contrast data are inconsistent under the same wavelength data, focal length data and brightness data, it is proved that the inspected surface of the object to be inspected has flaws, the object to be inspected is regarded as a defective product, and the object to be inspected is not suitable for leaving a factory.
Specifically, a plurality of objects to be inspected are provided, and each object to be inspected is inspected through the steps S1-1 to S1-5.
Specifically, a plurality of pre-stored illumination data are selected according to the object to be inspected, and each pre-stored illumination data corresponds to the inspection point with different heights on the object to be inspected.
Specifically, controlling the focus-adjustable photographing device according to the focal length data may be understood as adjusting a focal length between the focus-adjustable photographing device and the inspected surface according to the focal length data.
Further, referring to fig. 9, as a specific implementation of the appearance inspection method provided by the present invention, before the step S1-2, the method further includes the following steps:
s2-1: selecting a standard reference object according to the object to be checked;
s2-2: determining a plurality of detection points on the detected surface of the standard reference object according to a plurality of detection points on the detected surface of the object to be detected, wherein each detection point corresponds to each detection point one by one;
s2-3: selecting a detection point;
s2-4: adjusting the wavelength and the brightness of the illuminating device to illuminate one detection point, and simultaneously controlling the focal distance between the focusing photographing device and the current detection point to photograph so as to obtain a corresponding real-time image;
s2-5: judging whether the current real-time image is the clearest image, if so, recording the current real-time image as the image contrast data, simultaneously recording the focal length data, the wavelength data and the brightness data of the current focusing photographing device corresponding to the current real-time image, forming the current prestored lighting data by the current focal length data, the current image contrast data, the current wavelength data and the current brightness data, and returning to execute the step S2-3 until the detection point is confirmed to be selected; and if the current real-time image is not the clearest image, returning to the step of 2-4.
Several pre-stored illumination data are determined through the steps S2-1 to S2-5, so as to facilitate the inspection of the object to be inspected.
Specifically, the standard reference object is set as an object without defects, and if the object to be inspected is a lens piece, the standard reference object is set as a lens piece without defects; if the object to be inspected is the mobile phone shell, the standard reference object is set as the mobile phone shell without defects.
Further, as a specific embodiment of the appearance inspection method provided by the present invention, step S2-5 is set as:
judging whether an electric signal corresponding to the current real-time image is in a threshold value or not through the focusing photographing device, if so, recording the current real-time image as image comparison data, simultaneously recording the focal length data, the wavelength data and the brightness data of the current focusing photographing device corresponding to the current real-time image, forming current prestored lighting data through the current focal length data, the current image comparison data, the current wavelength data and the current brightness data, and returning to execute the step S2-3 until the detection point is confirmed to be selected; and if the current real-time image is not the clearest image, returning to the step of 2-4.
When the real-time image is clearest, the electric signal of the image sensor of the focusing photographing device reaches a threshold value. When the focusing photographing device photographs without changing the focal length, the wavelength condition and the brightness condition are changed, the electric signal generated by the focusing photographing device changes in a distribution function, the distribution function changes in a wave crest, and when the electric signal reaches a threshold value, the electric signal is in the position of the wave crest. Or when the focusing photographing device photographs without changing the wavelength, the focal length condition and the brightness condition are changed, the electric signal generated by the focusing photographing device changes in a distribution function, the distribution function changes in a wave crest, and when the electric signal reaches a threshold value, the electric signal is in the wave crest position. Or when the focusing photographing device photographs without changing the brightness, the focal length condition and the wavelength condition are changed, the electric signal generated by the focusing photographing device changes in a distribution function, the distribution function changes in a wave crest, and when the electric signal reaches a threshold value, the electric signal is in the wave crest position.
Specifically, step S2-4 is set to: selecting the wavelength of an illuminating device according to the material of an object to be inspected, keeping the wavelength of the illuminating device unchanged, adjusting the brightness of the illuminating device to illuminate a detection point, and simultaneously controlling the focal length of the focusing photographing device to photograph the current detection point to obtain a corresponding real-time image.
Specifically, the real-time image is obtained under the illumination with the same wavelength, so that whether the electric signal corresponding to the real-time image reaches the threshold value or not is rapidly confirmed under the condition of the same wavelength, and the pre-stored illumination data corresponding to each detection point is obtained.
Further, as a specific embodiment of the appearance inspection method provided by the present invention, step S1-5 is set as:
judging whether the current photographing data is the same as the current image contrast data or not through an image contrast system, if so, returning to execute the step S1-3 until all the pre-stored lighting data are selected; and 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.
The image contrast system is convenient for rapidly comparing the photographing data with the image contrast data, the object to be checked does not need to be checked by eyes manually and directly, and the speed and the accuracy of checking the object to be checked are improved.
Specifically, the image contrast system is the same as the photo processing center of the appearance inspection system described above.
Referring to fig. 10, the present invention further provides an appearance inspection system, including:
a selection module 101 for selecting an object to be inspected;
the data selection module 102 is used for selecting a plurality of pre-stored illumination data according to the object to be checked, wherein each pre-stored illumination data comprises wavelength data, brightness data, focal length data and image contrast data;
a pre-storing selection module 103, which selects one of the pre-stored lighting data;
the illumination photographing module 104 is used for controlling an illumination device of an 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 controlling a 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 105 is configured to determine whether the current photographing data is the same as the current image comparison data, and if the current photographing data is the same as the current image comparison data, return to the step of selecting one of the pre-stored lighting data until all of the pre-stored lighting data are selected; and if the current photographing data is different from the current image contrast data, the object to be inspected is unqualified.
Further, referring to fig. 10, as an embodiment of the appearance inspection system provided by the present invention, the appearance inspection system further includes:
a reference selection module 106 for selecting a standard reference object according to the object to be checked;
a detection point positioning module 107, configured to determine a plurality of detection points on the detected surface of the standard reference object according to a plurality of detection points on the detected surface of the object to be detected, where each detection point corresponds to each detection point;
a detection point selection module 108 for selecting one of the detection points;
the real-time image acquisition module 109 is used for adjusting the wavelength and the brightness of the lighting device to light one detection point, and simultaneously controlling the focal distance between the focusing photographing device and the current detection point to photograph so as to obtain a corresponding real-time image;
a clearest image recognition module 1010, configured to determine whether the current real-time image is a clearest image, record the current real-time image as the image contrast data if the current real-time image is the clearest image, record the focal length data of the current focus-adjustable photographing device, the wavelength data of the current lighting device, and the brightness data corresponding to the current real-time image, form the current pre-stored lighting data according to the current focal length data, the current image contrast data, the current wavelength data, and the current brightness data, and return to the step of selecting one of the detection points until it is determined that the detection point is selected; and if the current real-time image is not the clearest image, returning to the step of executing the step of adjusting the wavelength and the brightness of the lighting device to light one detection point, and controlling the focusing photographing device to photograph the current detection point to obtain the corresponding real-time image.
Further, as a specific embodiment of the appearance inspection system provided in the present invention, the clearest image recognition module 1010 is configured to: judging whether an electric signal corresponding to the current real-time image is in a threshold value or not through the focusing photographing device, if so, recording the current real-time image as image comparison data, simultaneously recording the focal length data, the wavelength data and the brightness data of the current focusing photographing device corresponding to the current real-time image, forming current prestored lighting data through the current focal length data, the current image comparison data, the current wavelength data and the current brightness data, and returning to execute the step of selecting one detection point until the detection point is confirmed to be selected; and if the current real-time image is not the clearest image, returning to the step of executing the step of adjusting the wavelength and the brightness of the lighting device to light one detection point, and controlling the focusing photographing device to photograph the current detection point to obtain the corresponding real-time image.
Further, as a specific embodiment of the appearance inspection system provided by the present invention, the image comparison module 105 is configured to: judging whether the current photographing data is the same as the current image contrast data or not through an image contrast system, if so, returning to the step of selecting one pre-stored lighting data by the appearance inspection system until all the pre-stored lighting data are selected; and 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.
For a specific limitation of the visual inspection system, reference may be made to the above-mentioned limitation of a visual inspection method, which is not described herein again. The various modules in an appearance inspection system described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor of a computer device, and can also be stored in a storage in the computer in a software form, so that the processor can call and execute the modules.
Referring to fig. 11, the present invention further provides a computer device, where the computer device includes a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the computer program to implement the steps of the appearance inspection method, such as steps S1-1 to S1-5 shown in fig. 9, or the computer program implements the functions of the modules of the inspection apparatus, such as the functions of modules 105 to 1010 shown in fig. 10, when executed by the processor. To avoid repetition, further description is omitted here.
Referring to fig. 11, the present invention further provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the visual inspection method. Such as steps S1-1 to S1-5 shown in fig. 9, or the computer program is executed by a processor to implement the functions of the respective modules of the above-described inspection apparatus, such as the functions of the modules 105 to 1010 shown in fig. 10. To avoid repetition, further description is omitted here.
It will be understood by those skilled in the art that all or part of the processes of implementing an appearance inspection method described above can be implemented by quality-related hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the method as described in the above embodiment ten. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. The non-volatile memory may include read only memory, programmable ROM, electrically erasable programmable ROM, or flash memory. Volatile memory may include random access memory or external cache memory IQ. Random access memory is available in a variety of forms such as, without limitation, 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.
Further, referring to fig. 12 and 13, the lens element according to the present invention is described, where the lens element includes a lens 11a and a fixing base 11c, the lens 11a is embedded in the fixing base 11c, a light-passing area of the lens 11a is a light-passing hole 11b, a detected surface 11d is disposed on an end surface of the fixing base 11c, the detection points include a first detection point 11e, a second detection point 11f, and a third detection point 11g, centers of the first detection point 11e, the second detection point 11f, and the third detection point 11g are located on a straight line, and the first detection point 11e, the second detection point 11f, and the third detection point 11g sequentially approach the lens 11a from an outer edge of the end surface of the fixing base 11 c. The first checkpoint 11e, the second checkpoint 11f and the third checkpoint 11g differ in height. The lens member can be inspected by using the above-described inspection apparatus, appearance inspection system, and appearance inspection method.
In addition to the above appearance inspection method, as a preferred method, a second inspection method may be further included, referring to fig. 14, an inspection method according to another embodiment of the present invention includes the following steps:
s1-1: one end of a lens piece to be inspected faces a collecting end of an image sensing device of an inspection device, and the other end of the lens piece faces a monochromatic surface of a monochromatic graphic card of the inspection device;
s1-2: obtaining an inspection image of the monochromatic surface by the image sensing device;
s1-3: judging whether the inspection image has an impurity image, if so, determining that the current lens is unqualified; and if the inspection image does not have the impurity image, the current lens piece is qualified.
By the steps S1-1 to S1-2, the lens piece to be inspected is placed between the acquisition end of the image sensing device and the single color surface for inspection, and the operation is simple. Is very convenient. Whether the corresponding lens piece is provided with the defective object or not is judged through the inspection image, the user does not need to directly observe the light through hole of the lens piece by eyes, and the efficiency of inspecting the light through hole of the lens piece is improved.
Further, referring to fig. 14 and fig. 15, as an embodiment of the inspection method provided by the present invention, in step S1-1, the method further includes the following steps:
s2-1: one end of a range extender faces towards the acquisition end of the image sensing device, and the other end of the range extender faces towards the monochromatic surface;
s2-2: one end of the lens piece faces to a collecting end of the image sensing device, and the other end of the lens piece faces to one end of the distance increasing lens facing to the collecting end.
Through the steps S2-1 to S2-2, the distance-increasing mirror is convenient to use. When the lens piece is placed in the detection area, the distance-increasing lens increases the focal length of the lens piece, so that the acquisition end of the image sensing device acquires an inspection image of a single color surface through the current light through hole of the lens piece and the distance-increasing lens. The acquisition end of the image sensing device, the light through hole of the lens piece and the range extender are matched to simulate to carry out far-focus shooting on a monochromatic surface, the distance between a monochromatic image card and the acquisition end of the image sensing device is not required to be set to be far, and the size of the inspection device is reduced.
Further, referring to fig. 14 and fig. 16, as an embodiment of the inspection method provided by the present invention, in step S1-3, the method further includes the following steps:
s3-1: acquiring a standard image;
s3-2: and judging whether the inspection image is the same as the standard image or not, if so, determining that the current lens piece is qualified, and if not, determining that the current lens piece is unqualified.
The standard image and the inspection image are compared through steps S3-1 to S3-2 to quickly find whether the inspection image is different from the standard image, thereby quickly determining whether the current lens piece is acceptable.
Further, referring to fig. 16 and 17, as an embodiment of the inspection method provided by the present invention, in step S3-1, the method includes the following steps:
s4-1: selecting a standard lens piece;
s4-2: one end of the standard lens piece faces to the collecting end of the image sensing device, and the other end of the standard lens piece faces to the monochromatic surface;
s4-3: the standard image is obtained by the image sensing device.
Through the steps S4-1 to S4-3, the step of acquiring the standard image is simple. Through the image sensing device, the standard lens piece and the single-color surface, a standard image is quickly obtained.
Referring to fig. 18, an embodiment of the present invention further provides an inspection apparatus, including:
the placement module 701 is used for enabling one end of a lens piece to be inspected to face the acquisition end of an image sensing device of the inspection device and enabling the other end of the lens piece to face the monochromatic surface of a monochromatic graphic card of the inspection device;
a photographing module 702, configured to obtain an inspection image of the monochrome surface through the image sensing device;
the inspection module 703 is configured to determine whether an impurity image exists on the inspection image, and if the impurity image exists on the inspection image, the current lens is not qualified; and if the inspection image does not have the impurity image, the current lens piece is qualified.
The manual operation is reduced by the placement module 701, the photographing module 702 and the inspection module 703, and the efficiency of inspecting the lens piece is improved.
Further, referring to fig. 18 as an embodiment of the inspection apparatus provided by the present invention, the placing module 701 further includes:
the far focus module 7011 is configured to enable one end of a range extender to face the acquisition end of the image sensing device, and enable the other end of the range extender to face the monochromatic surface;
and the lens module 7012 faces one end of the lens piece to the collecting end of the image sensing device, and the other end of the lens piece to one end of the distance increasing lens facing to the collecting end.
The telescopic lens is installed through the telescopic module 7011, and the acquisition end of the image sensing device, the light through hole of the lens piece and the telescopic lens are matched to simulate to carry out telescopic shooting on a single-color surface through the lens module 7012.
Further, referring to fig. 12, as an embodiment of the inspection apparatus provided by the present invention, the inspection module 703 includes:
an image acquisition module 7031, which acquires a standard image;
the determining module 7034 is configured to 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 is qualified, and if the inspection image is not the same as the standard image, the current lens is not qualified.
The acquisition of the standard image is realized by the image acquisition module 7031. The judgment module 7034 realizes fast comparison between the inspection image and the standard image, and improves the comparison efficiency between the inspection image and the standard image.
Further, referring to fig. 19, as an embodiment of the inspection apparatus provided in the present invention, the image obtaining module 7031 includes the following modules:
a selection module 70311 that selects a standard lens piece;
an action module 70312, which directs one end of the standard lens element to the collecting end of the image sensing device and the other end to the monochromatic surface;
a criteria module 70314, the criteria image is passed through the image sensing device.
Through the matching of the selection module 70311, the action module 70312 and the standard module 70314, the standard image acquisition efficiency of the standard image is improved.
For a specific limitation of the inspection apparatus, reference is made to the above limitation of an inspection method, which is not described herein again. The modules in the inspection device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor of a computer device, and can also be stored in a storage in the computer in a software form, so that the processor can call and execute the modules.
Likewise, the present invention also provides a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the inspection method, such as the steps S1-1 to S1-3 shown in fig. 14, or the like. The computer program, when executed by the processor, implements the functions of the modules of the above-described inspection apparatus, for example, the functions of the modules 701 to 703 shown in fig. 18. To avoid repetition, further description is omitted here.
Referring to fig. 14 to 19, the present invention further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the inspection method. Such as steps S1-1 through S1-3 shown in fig. 14, or. The computer program, when executed by the processor, implements the functions of the modules of the above-described inspection apparatus, for example, the functions of the modules 701 to 703 shown in fig. 18. To avoid repetition, further description is omitted here.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. An appearance inspection method, comprising the steps of:
selecting an object to be checked;
selecting a plurality of pre-stored illumination data according to the object to be checked, wherein each pre-stored illumination data comprises wavelength data, brightness data, focal length data and image contrast data;
selecting one pre-stored lighting data;
controlling an illuminating device of an 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 controlling a focus-adjustable photographing device of the appearance inspection system to photograph the inspected surface according to the focal length data to obtain photographing data;
judging whether the current photographing data is the same as the current image contrast data or not, if so, returning to the step of selecting one pre-stored illumination data until all the pre-stored illumination data are selected; and if the current photographing data is different from the current image contrast data, the object to be inspected is unqualified.
2. The visual inspection method of claim 1, further comprising, before said selecting a plurality of pre-stored illumination data based on said object to be inspected, the steps of:
selecting a standard reference object according to the object to be checked;
determining a plurality of detection points on the detected surface of the standard reference object according to a plurality of detection points on the detected surface of the object to be detected, wherein each detection point corresponds to each detection point one by one;
selecting a detection point;
adjusting the wavelength and the brightness of the illuminating device to illuminate one detection point, and simultaneously controlling the focal distance between the focusing photographing device and the current detection point to photograph so as to obtain a corresponding real-time image;
judging whether the current real-time image is the clearest image or not, if so, recording the current real-time image as image contrast data, simultaneously recording the focal length data, the wavelength data and the brightness data of the current focusing photographing device corresponding to the current real-time image, forming current prestored lighting data through the current focal length data, the current image contrast data, the current wavelength data and the current brightness data, and returning to execute the step of selecting a detection point until the detection point is confirmed to be selected; and if the current real-time image is not the clearest image, returning to the step of executing the step of adjusting the wavelength and the brightness of the lighting device to light one detection point, and controlling the focusing photographing device to photograph the current detection point to obtain the corresponding real-time image.
3. An appearance inspection system, comprising:
the selection module selects an object to be checked;
the data selection module is used for selecting a plurality of pre-stored illumination data according to the object to be checked, wherein each pre-stored illumination data comprises wavelength data, brightness data, focal length data and image contrast data;
the pre-storage selection module selects one pre-storage illumination data;
the illumination photographing module is used for controlling an illumination device of an 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 controlling a 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 is used for judging whether the current photographing data is the same as the current image comparison data or not, and if the current photographing data is the same as the current image comparison data, the step of selecting one pre-stored lighting data is returned until all the pre-stored lighting data are selected; and if the current photographing data is different from the current image contrast data, the object to be inspected is unqualified.
4. The visual inspection system of claim 3, further comprising:
the reference selection module is used for selecting a standard reference object according to the object to be checked;
the detection point positioning module is used for determining a plurality of detection points on the detected surface of the standard reference object according to a plurality of detection points on the detected surface of the object to be detected, wherein each detection point corresponds to each detection point one by one;
the detection point selection module selects one detection point;
the real-time image acquisition module is used for adjusting the wavelength and the brightness of the lighting device to light one detection point and simultaneously controlling the focus between the focusing photographing device and the current detection point to photograph so as to obtain a corresponding real-time image;
a clearest image recognition module for judging whether the current real-time image is a clearest image, if so, recording the current real-time image as the image contrast data, simultaneously recording the focal length data, the wavelength data and the brightness data of the current focusing photographing device corresponding to the current real-time image, forming the current prestored lighting data by the current focal length data, the current image contrast data, the current wavelength data and the current brightness data, and returning to execute the step of selecting one detection point until the detection point is confirmed to be selected; and if the current real-time image is not the clearest image, returning to the step of executing the step of adjusting the wavelength and the brightness of the lighting device to light one detection point, and controlling the focusing photographing device to photograph the current detection point to obtain the corresponding real-time image.
5. An inspection method, comprising the steps of:
one end of a lens piece to be inspected faces a collecting end of an image sensing device of an inspection device, and the other end of the lens piece faces a monochromatic surface of a monochromatic graphic card of the inspection device;
obtaining an inspection image of the monochromatic surface by the image sensing device;
judging whether the inspection image has an impurity image, if so, determining that the current lens is unqualified; and if the inspection image does not have the impurity image, the current lens piece is qualified.
6. An inspection method as claimed in claim 5, wherein in said step of orienting said lens member to be inspected with one end thereof facing a capture end of an image sensing device of an inspection device and the other end thereof facing a monochrome face of a monochrome graphics card of said inspection device, the steps of:
one end of a range extender faces towards the acquisition end of the image sensing device, and the other end of the range extender faces towards the monochromatic surface;
one end of the lens piece faces to a collecting end of the image sensing device, and the other end of the lens piece faces to one end of the distance increasing lens facing to the collecting end.
7. The inspection method according to claim 5, wherein in said judging whether there is a foreign matter image on said inspection image, if there is said foreign matter image on said inspection image, said lens member at present is rejected; if the inspection image does not have the impurity image, the lens piece is qualified currently, and the method further comprises the following steps:
acquiring a standard image;
and judging whether the inspection image is the same as the standard image or not, if so, determining that the current lens piece is qualified, and if not, determining that the current lens piece is unqualified.
8. An inspection apparatus, comprising:
the lens piece to be inspected comprises a placement module, a detection module and a control module, wherein one end of the lens piece to be inspected faces the acquisition end of an image sensing device of the inspection device, and the other end of the lens piece faces the monochromatic surface of a monochromatic graphic card of the inspection device;
the photographing module is used for obtaining the inspection image of the single-color surface through the image sensing device;
the inspection module is used for judging whether the inspection image has the impurity image or not, and if the inspection image has the impurity image, the current lens piece is unqualified; and if the inspection image does not have the impurity image, the current lens piece is qualified.
9. An inspection apparatus as in claim 8, wherein said placement module further comprises:
the far-focus module enables one end of a distance-increasing lens to face the acquisition end of the image sensing device, and the other end of the distance-increasing lens to face the monochromatic surface;
and the lens module enables one end of the lens piece to face the collecting end of the image sensing device, and the other end of the lens piece to face one end of the distance increasing lens, which faces the collecting end.
10. An inspection apparatus as claimed in claim 8, wherein said inspection module comprises:
the image acquisition module acquires a standard image;
and the judging module is used for judging whether the inspection image is the same as the standard image or not, if the inspection image is the same as the standard image, the current lens piece is qualified, and if the inspection image is not the same as the standard image, the current lens piece is unqualified.
CN202110693398.1A 2020-07-02 2021-06-22 Appearance inspection method and system, and inspection method and device Pending CN113689323A (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN2020106269464 2020-07-02
CN202010626946.4A CN111915563A (en) 2020-07-02 2020-07-02 Appearance inspection method, system, equipment and storage medium
CN2020107836541 2020-08-06
CN202010783654.1A CN112102152A (en) 2020-08-06 2020-08-06 Visual inspection method

Publications (1)

Publication Number Publication Date
CN113689323A true CN113689323A (en) 2021-11-23

Family

ID=78576578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110693398.1A Pending CN113689323A (en) 2020-07-02 2021-06-22 Appearance inspection method and system, and inspection method and device

Country Status (1)

Country Link
CN (1) CN113689323A (en)

Similar Documents

Publication Publication Date Title
US6464126B2 (en) Bonding apparatus and bonding method
CN109765234B (en) Device and method for simultaneously carrying out optical detection on front and back surfaces of object
KR101150755B1 (en) Apparatus for photographing image
KR960006968B1 (en) Semiconductor inspection apparatus and the method
CN110441323B (en) Product surface polishing method and system
CN107084993A (en) Double camera single-station positive and negative vision inspection apparatus
CN209978819U (en) Detection equipment and detection system
CN110987970A (en) Object surface defect detection system and detection method
KR960005092B1 (en) Bonding wire inspection method
US9638908B2 (en) Image measurement device
CN111999309A (en) Positioning column defect industrial vision detection equipment and detection method
JPH05160232A (en) Bonding wire inspecting apparatus
CN212514319U (en) Positioning column defect industrial vision detection equipment
JPH05160231A (en) Bonding wire inspecting apparatus
KR101653176B1 (en) Defect inspecting apparatus for ir filter with automatic focus control unit
CN106200036B (en) Lighting detection equipment
CN213121656U (en) Appearance inspection device and appearance inspection system
CN213544424U (en) Inspection equipment
CN113689323A (en) Appearance inspection method and system, and inspection method and device
CN104154991B (en) A kind of illuminance measuring method for testing and this illuminance measuring electricity testing device
CN217739490U (en) Gene sequencer and positioning precision detection equipment of motion platform module thereof
CN111915563A (en) Appearance inspection method, system, equipment and storage medium
WO2021261149A1 (en) Surface inspection device and surface inspection system
KR101198406B1 (en) Pattern inspection device
CN213121665U (en) Inspection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination