Method and device for optically inspecting containers

By emitting light in different wavelength ranges from a flat light-emitting surface and using image processing to distinguish defects and foreign objects, the problem of large space and workload required to detect foreign objects and defects in containers in the existing technology is solved, and efficient and accurate detection results are achieved. .

CN114127545BActive Publication Date: 2024-09-27KRONES AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080043086.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-06-06
Filing Date
2020-03-06
Publication Date
2024-09-27
Estimated Expiration
2040-03-06

AI Technical Summary

Technical Problem

Existing optical inspection methods require large installation space and workload to simultaneously detect foreign objects and defects in containers, especially in the case of small defects or low-curvature defects, where it is difficult to reliably evaluate local color contrast.

Method used

By emitting light in different wavelength ranges from a flat light-emitting surface, the image processing unit is used to evaluate local changes in the camera image and distinguish defects and foreign objects, enabling a single inspection unit to simultaneously detect foreign objects and defects, reducing installation space requirements.

Benefits of technology

It achieves simultaneous detection of foreign objects and defects in containers with less installation space and effort, improves detection accuracy and efficiency, and is suitable for scenarios such as beverage processing plants.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114127545B_ABST
    Figure CN114127545B_ABST
Patent Text Reader

Abstract

The invention relates to a method (100) for optically inspecting containers (2), wherein the containers (2) are conveyed (101) to an inspection unit (10) having an illumination unit (3) and a camera (4), wherein the illumination unit (3) emits (102) light from a planar luminous surface (30), wherein the light is transmitted or reflected (104) by the container (2), wherein the camera (4) captures (105) in at least one camera image (I) a corresponding at least one of the containers (2) and the light transmitted or reflected by the container, and wherein an image processing unit (6) evaluates at least one camera image for intensity information. A camera image (I) is provided for detecting (107) foreign bodies (8) and / or defects (7) in a container, wherein light is emitted (103) from emission positions (31-42) on a planar luminous surface (30) in different wavelength ranges in respectively different emission directions (A1, A2, A3) and is captured by a camera (4) in such a way that the different wavelength ranges can be distinguished from each other (106) in at least one camera image (I), and an image processing unit (6) evaluates at least one camera image (I) for the different wavelength ranges in order to distinguish (108) defects (7) from foreign bodies (8).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method and a device for optically inspecting containers, each having the characteristics of the broad terms of the claims. Background Art

[0002] Typically, such methods and devices are used to inspect containers for foreign bodies and / or defects. For this purpose, the containers are conveyed to an inspection unit having an illumination unit and a camera to enable inspection under transmitted or reflected light. The illumination unit emits light from a planar luminous surface, which is transmitted or reflected by the container and then captured by the camera as at least one camera image. Subsequently, the intensity information of the at least one camera image is evaluated by an image processing unit in order to detect foreign bodies and / or defects of the container.

[0003] For example, such methods and devices are used for sidewall, base and / or fill level inspection of empty containers or containers already filled with product.

[0004] To detect foreign objects, containers are usually inspected with a diffusely illuminated surface in order to suppress, for example, glass embossing or water drops in the camera image. Foreign objects can be, for example, dirt, product residues or label remnants.

[0005] On the other hand, defects are detected using a directional emitting light emitting surface to enhance the light refraction produced in the camera image. For example, the defect may be damage to the container, such as broken glass. Similarly, it is conceivable that the defect is a material spot that is defectively produced, such as a local material thickening.

[0006] Therefore, two different inspection units with illumination units having different radiation characteristics are usually used in order to allow equally good detection of foreign bodies and defects.

[0007] This has the disadvantage that the optical inspection of the containers requires a corresponding amount of effort and installation space.

[0008] A method for detecting defects in glass products and a device suitable for this purpose are known from US 2013 / 0215261 A1. In order to enhance the contrast, an illumination with several light patterns which are offset relative to one another is proposed here.

[0009] DE 10 2014 220 598 A1 discloses an inspection device for transmitted light inspection of containers, which has a device for subdividing the luminous surface into at least two mainly horizontally separated partial areas, which can be selectively opened and closed for side wall inspection and / or closure inspection of the container.

[0010] US 6,304,323 B1 discloses a method for detecting defects in bottles.

[0011] EP 0 472 881 A2 discloses a system and a method for optically inspecting the bottom surface of a transparent container.

[0012] US 2008 / 0310701 A1 discloses a method and a device for visually inspecting an object.

[0013] EP 0 926 486 B1 discloses a method for optically inspecting transparent containers using infrared and polarized visible light.

[0014] DE 10 2017 008 406 A1 discloses an inspection device with colored illumination for inspecting containers for contamination and three-dimensional container structures. For this purpose, the radiation source has several spatially separated radiation zones, which emit radiation in different wavelength ranges or with different intensities. In the case of decorative elements, this produces local color contrasts, while in the case of contamination, only local brightness contrasts are produced without local color contrasts.

[0015] However, in this case, for example in the case of particularly small defects or defects with a low curvature, it is often not possible to detect and reliably evaluate local color contrasts. Summary of the invention

[0016] The object of the present invention is to provide a method and a device for optically inspecting containers in which both foreign bodies and defects can be detected with little effort while requiring little installation space.

[0017] In order to solve this problem, the invention provides a method for optically inspecting containers having the features of the claims. Advantageous embodiments of the invention are defined in the dependent claims.

[0018] Extensive studies by the applicant have shown that the light emitted from the light-emitting surface passes through undamaged areas of the container with essentially no deflection or only slight deflection. In contrast, due to the associated local variations in the surface of the container, the light is refracted differently at defective areas than at undamaged areas. As a result, the light is deflected towards the camera from a different beam direction of the light-emitting surface via the defect than in the case of undamaged areas. In contrast, this is usually less true or not present at all for foreign matter, since, for example, contamination can lead to local absorption of the light without significantly affecting the light path towards the camera.

[0019] Since the light is emitted from the emission position of the planar luminous surface in different emission directions in different wavelength ranges, it is possible to determine for a pixel of the camera image independently of the intensity characteristics of the luminous surface whether the corresponding light component is deflected by a defect or passes through an undamaged area of ​​the corresponding container with little or no deflection. As a result of the fact that the image processing unit evaluates at least one camera image for various wavelength ranges, defects can be distinguished from foreign bodies, for example, based on local changes in the detected wavelength range. Conversely, the intensity information can still be evaluated in order to detect the absorption of light by foreign bodies particularly well if the radiation characteristics of the luminous surface are as diffuse as possible. The method according to the invention therefore makes it possible to detect both foreign bodies and defects equally well with a single inspection unit. The fact that this is done with a single inspection unit means that less installation space is required.

[0020] The optical inspection method can be used in beverage processing plants. The process can be implemented upstream or downstream of the container manufacturing process, the cleaning process, the filling process and / or the capping process. The method can be used in full or empty bottle inspection machines. For example, the method can be used to inspect returnable containers.

[0021] The container may be designed to hold beverages, foods, sanitary products, pastes, chemical products, biological products and / or pharmaceutical products. The container may be in the form of a bottle, in particular a plastic bottle or a glass bottle. In particular, the plastic bottle may be a PET, PEN, HD-PE or PP bottle. Similarly, the container may be a biodegradable container or bottle, the main component of which consists of renewable raw materials such as sugar cane, wheat or corn. The container may be provided with a closure, such as a crown stopper, a screw cap or a tearable cap. Similarly, the container may be empty, preferably without a closure.

[0022] It is contemplated that the method may be used to inspect the sidewall, base, mouth, threads and / or contents of a container. Foreign matter may be contamination, product residue and / or label residue, etc. For example, a defect may be damage to the container, such as broken glass. Similarly, it is contemplated that a defect is a defectively generated material spot, such as a local material thickening or material taper.

[0023] The containers can be conveyed to the inspection unit as a stream of containers by a conveyor. The conveyor can include a turntable and / or a linear conveyor. For example, it is conceivable that the conveyor includes a conveyor belt, and the containers are conveyed on the conveyor belt while entering the area between the lighting unit and the camera upright. It is conceivable that the container can hold one or more containers during the conveying process (PUK). For example, in the case where the lighting unit illuminates the bottom of the container and the camera inspects the bottom through the mouth of the container, the container can also be held by a transverse belt for conveyance.

[0024] The lighting unit can generate light using at least one light source such as an incandescent bulb, a fluorescent tube or at least one LED. Preferably, the light can be generated using an LED matrix and emitted in the direction of the light-emitting surface. The light-emitting surface can be designed to be larger than the camera viewing angle of the container. It is also conceivable that the light-emitting surface illuminates only a portion of the camera viewing angle of the container. The emission point or emission position can be meant to represent a local point or a planar portion of the light-emitting surface.

[0025] Wavelength range may mean here a certain color spectrum part of the light, for example. It is conceivable that the light emitting surface emits light in different emission directions from the emission point, and each light has a different wavelength or color. However, it is also conceivable that the wavelength ranges partially overlap. It is conceivable that different wavelength ranges are emitted by corresponding different light sources, in particular by LED emission. Light can be emitted in the visible spectrum range and / or in the invisible spectrum range of the wavelength spectrum. For example, the light in the visible spectrum range can be perceptible to the human eye and / or can be in the wavelength range of 380nm-750nm. The invisible spectrum range may not be perceptible to the human eye and / or can be in the ultraviolet UV or IR wavelength range. It is also conceivable that the visible spectrum range is combined with the invisible spectrum range. For example, for an amber glass container, the light emitting surface can emit light with red and infrared wavelength ranges in different emission directions.

[0026] “Light... is emitted from the emission position of the planar light emitting surface in different wavelength ranges in different emission directions” may mean here that light is emitted from a specific emission position of the planar light emitting surface in one emission direction in a different wavelength range compared to other emission directions, in particular in a different color.

[0027] The camera can detect at least one of the containers and the light transmitted or reflected by the container with a lens and an image sensor. The image sensor can be, for example, a CMOS or CCD sensor. It is conceivable that the camera transmits at least one camera image to an image processing unit using a data interface. It is conceivable that the light is generated by the lighting unit and then transmitted through the container to be finally captured by the camera. The camera can separate the wavelength range of the detected transmitted or reflected light for each pixel of the at least one camera image. For example, the camera can be a color camera that captures colors in different wavelength ranges, in particular in at least two (in particular three) color channels. For example, the color camera can include a Bayer filter to separate the colors.

[0028] The image processing unit can process the at least one camera image with a signal processor and / or with a CPU and / or a GPU. It is also conceivable that the image processing unit comprises a memory unit for this purpose, one or more data interfaces, such as a network interface or the like, a display unit and / or an input unit. It is conceivable that the image processing unit evaluates the at least one camera image using an image processing algorithm available as a computer program product in the memory unit.

[0029] It is conceivable that the wavelength range and / or the radiation characteristics of the emitted light are adjusted to suit a specific task, in particular to a container type. For example, for this purpose, the limits of a portion of the planar luminous surface including the emission position can be adjusted to suit the container height and / or width. In other words, the portions of the luminous surface that emit wavelength ranges that differ from each other in different emission directions can be enlarged or reduced. For example, depending on the current task, a multicolor LED can be driven differently for this purpose.

[0030] In addition to mutually different wavelength ranges, the light emitted from the light emitting surface can be encoded with polarization characteristics. In addition to directional encoding using different wavelength ranges, this allows the emitted light to be locally encoded with polarization. The camera can then separate both the different wavelength ranges and the polarization characteristics in at least one camera image. The polarization characteristics here can mean the fact that the light is emitted from different emission positions of the light emitting surface with different polarization directions. For example, a polarization filter with continuously changing polarization characteristics or several polarization filters with different orientations can be arranged in the light emitting surface so that the polarization of the emitted light changes locally. It is conceivable that the camera separates the polarization characteristics in at least one camera image. For this purpose, the camera can include, for example, multiple image sensors each having a polarization filter with different orientations, or a single image sensor with a polarization filter array. For example, for this purpose, the camera can include a Sony IMX250MZR or IMX250MYR type sensor.

[0031] It is conceivable that the image processing unit evaluates at least one camera image for different wavelength ranges in order to additionally detect local material impressions on the container, such as embossing, glass embossing and beads, and / or to distinguish local material impressions from foreign objects. Such material embossing can be used, for example, as a decorative element. The image processing unit can evaluate at least one camera image for intensity information and different wavelength ranges in order to identify a region with a changed wavelength range and changed intensity information as a container edge. Due to both a dimming of the light and a particularly large deflection occurring at the container edge, the container edge can be detected particularly easily. For example, the image processing unit evaluates at least one camera image for a third local region comprising intensity information that differs from the intensity information of the environment and a different wavelength range in order to conclude that a container edge is present.

[0032] It is conceivable that at all emission positions the same wavelength range is emitted in at least one of the different emission directions. Since an undamaged region of the container is traversed primarily in one emission direction toward the camera, this region appears in the at least one camera image in only one of the wavelength ranges, which makes it particularly easy to evaluate the at least one camera image. Conversely, the light is deflected by the defect and appears in the at least one camera image in different wavelength ranges. As a result, defects can be distinguished from undamaged regions particularly easily. However, it is also conceivable that the emission positions each have a different directional distribution with respect to the different wavelength ranges.

[0033] A light beam in one of the different emission directions may be refracted toward the camera at one of the defect locations, while another light beam in a different direction among the different emission directions extends toward the camera near the defect location.

[0034] The image processing unit can evaluate the at least one camera image for a first local area having intensity information that differs from the surrounding area to draw a conclusion about the presence of a foreign body. Due to the fact that defects usually absorb light, defects can be detected particularly easily via the deviating intensity information in the at least one camera image.

[0035] The image processing unit can evaluate the at least one camera image for a second partial area having a wavelength range that deviates from the environment in order to draw a conclusion about the presence of a defect. Since a defect of the container deflects light differently than the surrounding area of ​​the defect, the defect can be detected particularly easily in the at least one camera image in this way. For example, the defect can have a different color in the at least one camera image compared to the surrounding area of ​​the defect and / or an undamaged area of ​​the container. This fact indicates that the refraction of light is different from the refraction of the surrounding area and is therefore a defect.

[0036] The image processing unit can separate the at least one camera image into an intensity channel and a color channel, wherein the image processing unit detects foreign bodies based on the intensity channel and detects defects based on the color channel. This makes it particularly easy to evaluate foreign bodies and defects separately in the two channels. For example, the wavelength range can be a color. For example, using known methods, the at least one camera image can be transformed into an HSV color space, wherein the H channel corresponds to the color channel and the V channel corresponds to the intensity channel. The intensity channel here can mean a channel of relative brightness, absolute brightness or intensity.

[0037] Furthermore, the invention solves this problem by providing a device for optically inspecting containers having the features of the claims. Advantageous embodiments of the invention are defined in the dependent claims.

[0038] Due to the fact that the lighting unit is designed to emit light in wavelength ranges that are different from one another in different emission directions from the emission position of the respective planar luminous surface, it is possible to determine for each pixel of the camera image independently of the intensity characteristics of the luminous surface whether the corresponding light component has been deflected by the defect or has passed through an undamaged area of ​​the respective container without deflection or only slightly deflected. Since the image processing unit is designed to evaluate at least one camera image for various wavelength ranges, defects can be distinguished from foreign bodies, for example, based on local changes in the detected wavelength range. Conversely, the intensity information can still be evaluated in order to detect the absorption of light by foreign bodies particularly well in the case where the radiation characteristics of the luminous surface are as diffuse as possible. Therefore, with the device according to the invention, both foreign bodies and defects can be detected equally well with a single inspection unit. The fact that this is done with a single inspection unit means that less installation space is required.

[0039] The device for optically inspecting containers can be designed to carry out the method according to any one of the claims. The device can include the features described above, in particular can include the features according to any one of the claims mutatis mutandis.

[0040] The device for optical inspection can be arranged in a beverage processing plant. The beverage processing plant can include container processing machines, in particular container manufacturing machines, washing machines, filling machines, capping machines, labeling machines, direct printing machines and / or packaging machines. It is conceivable that the device for inspection is associated with one of the container processing machines. The device can thus be used for full or empty bottle inspection. For example, it is conceivable that the device is used for inspecting recycled returnable containers.

[0041] The lighting unit can be designed to emit light from the emission position in the visible spectral range in correspondingly different colors. This means that the lighting unit can be provided with a particularly frequently used colored light source, in particular an LED, and is therefore particularly cost-effective. In addition, commercially available containers are often at least partially transparent in the visible spectral range and can therefore be illuminated particularly well. For example, light in the visible spectral range can be perceptible to the human eye and / or lie in the wavelength range of 380 nm-750 nm.

[0042] The camera can be designed as a color camera. This allows the corresponding wavelength range to be recorded with a low spatial resolution. Preferably, the color camera can include a Bayer filter for separating the colors.

[0043] The lighting unit can include several light sources for the individual emission positions, the wavelength ranges of which are different from one another. This allows the emission intensity of the individual wavelength ranges to be adjusted independently. Thus, the lighting unit can be adjusted in a particularly simple manner to the transmission properties of the container, for example to the color of the container.

[0044] The lighting unit may include at least one lens, in particular a rod lens, a Fresnel lens or a biconvex lens, so as to focus the light from the corresponding plurality of light sources in different emission directions of the emission position. In this way, the lighting unit can be configured in a particularly simple manner so that it emits light in different wavelength ranges from each other in different emission directions. It is conceivable that the lighting unit includes several lenses, in particular a rod lens, which are arranged side by side in a uniform linear grid along one direction. A rod lens here may mean a lens having a lens profile that is processed by linear extrusion. However, it is also conceivable that the lenses are arranged in a rectangular or hexagonal lens matrix.

[0045] The lighting unit may comprise at least one white light source and a downstream bandpass interference filter in order to emit light in individual wavelength ranges that differ from one another for individual emission positions by interference in different emission directions. As a result, the lighting unit may be constructed particularly easily with only a few components. A bandpass interference filter may here mean a filter system with thin layers in the light wavelength range that are designed to transmit a specific wavelength range in one emission direction. Since these layers are traversed by the white light in different directions with different optical paths, they have a transmission effect for correspondingly different light wavelengths.

[0046] The lighting unit may comprise a plurality of light sources, in particular LEDs, having mutually different wavelength ranges, wherein the respective light sources are associated with respective collimating optics in order to collect or collimate the light emitted onto the planar scattering element at a scattering angle of less than 20°, in particular less than 15°. In this way, the lighting unit may be constructed with particularly few light sources, while still allowing the emission intensity of the individual wavelength ranges to be adjusted independently. The two-dimensional scattering element may have a scattering angle of less than 10°, in particular less than 5°. The planar scattering element may be arranged along or form a planar luminous surface. For example, the planar diffusing element may comprise a diffusing foil and / or a diffusing disc. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Further features and advantages of the present invention are explained in more detail below with reference to the embodiments shown in the accompanying drawings. In the drawings:

[0048] Figure 1 is an embodiment of a method according to the invention for optically inspecting containers as a flow chart;

[0049] Figure 2 A perspective view showing a device for optically inspecting containers according to the invention;

[0050] Figure 3A is based on Figure 2 a detailed view of a light emitting surface of a lighting unit;

[0051] Figure 3B yes Figure 3A A side view detail of a light emitting surface having different emission directions;

[0052] Figure 4 is a detailed side view of an embodiment of a lighting unit having a lens for emitting different wavelength ranges in different emission directions;

[0053] Figure 5 is a detailed side view of another embodiment of an illumination unit having a bandpass interference filter for emitting different wavelength ranges in different emission directions;

[0054] Figure 6 is a detailed side view of another embodiment of a lighting unit having a diffuser disk for emitting mutually different wavelength ranges in different emission directions;

[0055] Figure 7A-7B During the inspection of foreign matter and defects Figure 2 and a side view of the light emitting surface and camera of FIG3 ;

[0056] Fig. 8A Show Figure 7A-7B camera images during inspection for foreign matter and defects; and

[0057] Figure 8B-Figure 8C Show Fig. 8A The intensity channel G and color channel C of the camera image I. DETAILED DESCRIPTION

[0058] exist Figure 1 In FIG. 1 , an embodiment of a method 100 for inspecting a container 2 according to the present invention is shown as a flow chart. Figure 2-Figure 6 The method 100 is explained in more detail.

[0059] exist Figure 2 In FIG. 1 , an embodiment of a device 1 for optically inspecting containers 2 according to the invention is shown as a perspective view. An inspection unit 10 with an illumination unit 3 and a camera 4 is shown. A conveyor 5 is arranged between the illumination unit 3 and the camera 4, the conveyor 5 being designed here merely as a conveyor belt by way of example, on which the containers 2 are conveyed in a direction R between the illumination unit 3 and the camera 4 (step 101). As an example, only a single container 2 being inspected is shown. However, the containers 2 are conveyed as a container stream on the conveyor 5 and are each optically inspected between the illumination unit 3 and the camera 4.

[0060] The lighting unit emits light from the planar light emitting surface 30 to transmit the light through the container 2 (step 102). The emitted light is transmitted via the container 2 toward the camera 4 (step 104). It is also conceivable that, due to the arrangement of the lighting unit 3 relative to the camera 4, the light is reflected via the container 2. The camera 4 is arranged on the inspection unit 10 so that the camera detects the container 2 and the light transmitted through the container 2 in at least one camera image (step 105).

[0061] The lighting unit 3 is configured to respectively Figure 3A-3B The emission positions 31-42 of the light emitting surface 30 shown in FIG. 1 emit light in different emission directions A1, A2, A3 in wavelength ranges different from each other (step 103). Figure 4-Figure 6 The structure of the illumination unit 3 is explained in more detail in the embodiment of .Therefore, the camera 4 is configured to detect light in such a way that different wavelength ranges can be distinguished from one another in at least one camera image (step 106).

[0062] Furthermore, an image processing unit 6 is shown, with which at least one camera image is evaluated for intensity information in order to detect foreign bodies and / or defects in the container (step 107). This can be achieved, for example, by image processing algorithms known per se for detecting local changes in at least one camera image.

[0063] Furthermore, the image processing unit 6 evaluates at least one camera image for different wavelength ranges in order to distinguish defects from foreign objects (step 108 ).

[0064] Refer to Figure 3 below - Figure 8C The method 100 and the apparatus 1 are explained in more detail.

[0065] exist Figure 3A In the Figure 2 Detailed view of the light emitting surface 30. In addition, Figure 3B Shown according to Figure 3A Detailed side view of a light emitting surface 30 with different emission directions. In detail, different emission positions 31-42 of the light emitting surface 30 can be seen, from which light with mutually different wavelength ranges is emitted in respective directions of the different emission directions A1-A3.

[0066] For example, light in the green wavelength range is emitted from the emission positions 31-42 in the emission direction A1, light in the yellow wavelength range is emitted in the emission direction A2, and light in the red wavelength range is emitted in the emission direction A3. Therefore, if the light emitting surface 30 is observed from a direction opposite to the emission direction A1, the light emitting surface appears green, while in the case of being observed from a direction opposite to the emission direction A2, the light emitting surface appears yellow, or in the case of being observed from a direction opposite to the emission direction A3, the light emitting surface appears red. Therefore, in a single one of the different emission directions A1-A3, the same wavelength range is emitted at all emission positions.

[0067] However, it is also conceivable that the emission positions 31 - 42 each have a different directional distribution with respect to different wavelength ranges.

[0068] The wavelength range can be distributed continuously in the emission directions A1-A3 or in discrete steps.

[0069] In fact, Figure 3A-3B In the embodiment, the individual ranges of emission positions 31-42 are shown purely graphically. However, it is also conceivable that the emission positions are distributed in a quadrilateral or hexagonal pattern on the light-emitting surface. In particular, the emission positions can form a continuum, rather than being discretely separated from each other.

[0070] In order to capture different wavelength ranges and store them in at least one camera image, the camera 4 in this exemplary embodiment is designed as a color camera.

[0071] Figure 4 A detailed side view of an embodiment of a lighting unit 3 with a lens L for emitting different wavelength ranges in different emission directions A1-A3 is shown. Only a section with two light modules M1, M2 arranged adjacent to each other is shown. The other light modules of the lighting unit are configured accordingly and are not shown in more detail here. Figure 4The illustration in is merely exemplary. It is conceivable that the lighting unit comprises only a single such light module M1.

[0072] Each of the light modules M1 and M2 includes light sources Q1-Q3 arranged adjacent to each other and a lens L, which is designed as a rod lens, for example. The light sources Q1-Q3 are of different types and emit light of different wavelength ranges. For example, the light source Q1 emits light of a green wavelength range, the light source Q2 emits light of a yellow wavelength range, and the light source Q3 emits light of a red wavelength range.

[0073] Light from light source Q1 is focused in emission direction A1, light from light source Q2 is collimated in emission direction A2, and light from light source Q3 is focused in emission direction A3 by lens L. As a result, lights having wavelength ranges different from each other can be emitted in different emission directions A1-A3 from emission positions 31-42, respectively.

[0074] The lens L is designed here, for example, as a rod lens, whereby the cross-sectional profile shown extends linearly perpendicular to the drawing plane. As a result, the lens has a focusing refractive power only in the drawing plane. For example, several light sources Q1-Q3 can thus be arranged in a row adjacent to one another in the longitudinal direction of the lens L, i.e. perpendicular to the drawing plane.

[0075] However, a rectangular or hexagonal arrangement of the lenses L is also conceivable.

[0076] Figure 5 A detailed side view of another embodiment of an illumination unit 3 with a bandpass interference filter F for emitting different wavelength ranges in different emission directions A1 - A3 is shown.

[0077] It is shown that the lighting unit 3 includes several white light sources Q4, of which only two are shown here as an example. However, it is also conceivable that the lighting unit 3 includes only a single white light source Q4. The light source emits broadband light in the spectral range of 380nm-750nm. The white light then passes through a downstream bandpass interference filter F to emit light in different wavelength ranges different from each other in different emission directions A1-A3 by interference for the emission positions 31-42, respectively. For this purpose, the bandpass interference filter F has a plurality of thin layers with a thickness within the spectral range of white light. Since the filtering characteristics of such a bandpass interference filter F are direction-dependent, the white light is transmitted in different colors based on the emission directions A1-A3.

[0078] Figure 6 A detailed side view of another embodiment of a lighting unit 3 with a diffusing disc ST for emitting different wavelength ranges in different emission directions A1 - A3 is shown.

[0079] It is shown that the lighting unit 3 comprises a plurality of light sources Q5-Q7 having mutually different wavelength ranges. These may be, for example, LEDs of different colors. Collimating optics O5-O7, such as parabolic mirrors or the like, are associated with the individual light sources in order to collimate the light emitted by the light sources Q5-Q7 onto a scattering element ST. The optical axis of the collimating optics O5 is in the direction of the emission direction A1, the optical axis of the collimating optics O6 is in the direction of the emission direction A2, and the optical axis of the collimating optics O7 is in the direction of the emission direction A3. In order to avoid light-free gaps between the emission directions A1-A3, a scattering element ST is provided for fanning out again the light that is bunched or collimated by the collimating optics O5-O7. Scattering angles of less than 20°, in particular less than 15°, are particularly advantageous. The scattering element ST may comprise, for example, a scattering foil.

[0080] exist Figure 7A-7B , the inspection of foreign matter 8 and defect 7 is shown according to Figure 2 and a side view of the light emitting surface 30 and camera 4 of FIG. Figure 7B In the Fig. 7A Details of D.

[0081] The planar luminous surface 30 shows various emission positions 31-42 in transverse section. Thus, the light is emitted in a planar manner in the direction of the camera 4 and thus passes through the container 2. The container 2 here consists of a transparent glass material, for example, so that the light is transmitted through the container 2.

[0082] The camera 4 comprises an image sensor 41 and a lens 42 to capture the container 2 in at least one camera image. It is conceivable that the camera 4 is configured as a color camera with a Bayer filter.

[0083] Also shown is a light beam S1 which, starting from a transmission position 39, illuminates the container 2 in a transmission direction A2. The light beam S1 hits a foreign object 8 which absorbs part of the energy of the light beam S1. As a result, the foreign object 8 appears in at least one camera image of the camera 4 with a reduced intensity compared to its immediate surroundings. Since the foreign object does not deflect the light beam S1, the foreign object appears in the at least one camera image in the same wavelength range as its immediate surroundings.

[0084] Furthermore, a light beam S2 is shown, which, starting from the irradiation position 37 in the emission direction A2, illuminates the container 2 in the vicinity of the defect 7. Here, depending on the material of the container 2, the light is absorbed only to a small extent, so that the corresponding pixel in at least one camera image appears with high intensity and in the wavelength range of the emission direction A2. Furthermore, as shown Figure 7BAs can be seen in FIG. 1 , the light beam S2 passes through the container 2 at a point where the container inner wall 22 and the container outer wall 21 are plane-parallel to each other. Therefore, depending on the angle of incidence, the light beam S2 undergoes only a slight shift, but the direction does not change. Therefore, the corresponding pixel appears in the at least one camera image with a high intensity and a wavelength range of the emission direction A2. Therefore, the corresponding pixel in the at least one camera image appears as an intact area of ​​the container 2 with a wavelength range of the emission direction A2.

[0085] In contrast, Figure 7B As can be seen in FIG. 1 , the defect 7 has local notch areas 71, 72 on the outer wall 21 of the container. This may be a notch caused by peeling, for example. Therefore, the light beams S3, S4 are deflected at the local notch surfaces 71, 72 by light refraction. More precisely, the light beam S3 is emitted from the emission position 38 in the emission direction A1 and is deflected towards the camera 4 by light refraction when passing through the container 2 at the first notch surface 71. In contrast, the light beam S4 starting from the emission position 34 passes through the container 2 in the emission direction A3 and is deflected towards the camera 4 by light refraction at the second notch surface 72. Therefore, the defect 7 is presented in at least one camera image in a wavelength range that is different from the surrounding area due to the local light refraction at the notch surfaces 71, 72, in particular in color.

[0086] Fig. 8A The camera image I during the inspection of foreign bodies 8 and defects 7 is shown in more detail.

[0087] It can be seen that in the camera image I, the container 2 appears in front of the luminous surface 30. Furthermore, it can be seen that the foreign body 8 is imaged as a darkened first local area 8'. In contrast, the defect 7 is imaged as a second local area 7' having an intensity similar to that of the immediate surroundings, but because the light beam is locally deflected by the defect 7 (e.g. Fig. 7A ), the defect 7 thus appears there as a color value C3 with an emission direction A3 in the upper region and as a color value C1 with an emission direction A1 in the lower region.

[0088] Since light is emitted in each case from the emission positions 31-42 of the planar luminous surface 30 in different emission directions A1, A2, A3 in wavelength ranges that differ from one another and is detected in this way by the camera 4, undamaged areas of the container 2 and the surroundings U2 appear predominantly with the color value C2 of the emission direction A2 in the at least one camera image I. Similarly, foreign bodies 8 only darken the image information, but do not change the color value C2.

[0089] In contrast, the defects 7 appear with the color values ​​C1 and C3 and can therefore be distinguished particularly easily from the foreign bodies 8 by the image processing unit 6 .

[0090] Figure 8B-Figure 8C Shown according to Fig. 8A The intensity channel G and color channel C of the camera image I. Figure 2 The image processing unit 6 shown in FIG. Fig. 8A The camera image I shown in FIG. 1 is separated into an intensity channel G and a color channel C. The intensity channel G and the color channel C are separated by the image processing unit 6. For example, based on the HSV color model, the camera image I is segmented pixel by pixel into brightness values ​​in the intensity channel G and color values ​​in the color channel C.

[0091] The image processing unit 6 then evaluates the intensity channel G of the camera image I for a first partial region 8 ′ having intensity information deviating from the environment U1 in order to conclude the presence of a foreign object 8 . This is achieved, for example, by means of a filter for detecting brightness changes.

[0092] Furthermore, the image processing unit 6 evaluates the color channel C of the camera image I for a second partial region 7' ​​whose wavelength range deviates from the environment U2. Figure 8C As can be seen in FIG. 1 , the local area 7 ' of the defect 7 has a color value C3 in the upper area and a color value C1 in the lower area. In contrast, the immediately surrounding area U2 has a color value C2. Since the second local area 7 ' has different color values ​​C1, C3 than its surroundings U2, the defect 7 can be distinguished from the foreign matter 8.

[0093] After detecting foreign bodies 8 and / or defects 7, the image processing unit 6 generates a signal that the container 2 has foreign bodies 8 or defects 7. Based on this signal, a switch can be controlled to, for example, eject the affected container 2 for re-cleaning or recycling after inspection.

[0094] Since the light is emitted from the emission positions 31-42 of the planar luminous surface 30 in different wavelength ranges in different emission directions A1-A3, it is possible to determine for a pixel of the camera image I independently of the intensity characteristics of the luminous surface 30 whether the corresponding light portion has been deflected by the defect 7 or has passed through an undamaged area of ​​the corresponding container 2 with little or no deflection. Due to the fact that the image processing unit 6 evaluates at least one camera image I with respect to various wavelength ranges, it is possible to distinguish between defects 7 and foreign bodies 8, for example, based on local changes in the detected wavelength ranges. Conversely, in the case of a radiation characteristic of the luminous surface 30 that is as diffuse as possible, it is still possible to evaluate the intensity information in order to detect the absorption of light by foreign bodies 8 particularly well. The method according to the invention therefore enables both foreign bodies 8 and defects 7 to be inspected equally well with a single inspection unit 10. The fact that this is done with a single inspection unit 10 means that less installation space is required for this purpose.

[0095] It should be understood that the features mentioned in the above-described embodiments are not limited to this combination of features, but may also be alone or in any other combination.

Claims

1. A method (100) for optically inspecting a container (2), wherein: The containers (2) are conveyed (101) to an inspection unit (10) comprising a lighting unit (3) and a camera (4), wherein the lighting unit (3) emits light (102) from a planar light-emitting surface (30), wherein the light is transmitted or reflected (104) via the containers (2), wherein the camera (4) captures (105) at least one of the containers (2) in at least one camera image (I) and captures the light transmitted or reflected by the at least one container, and the at least one camera image (I) is evaluated with an image processing unit (6) for intensity information in order to detect (107) foreign bodies (8) and / or defects (7) in the containers, Features: At least one of the local points of the light emitting surface (30) and the planar portion of the light emitting surface (30) constitutes a plurality of emission positions (31-42), each emission position (31-42) emitting (103) the light in different emission directions (A1, A2, A3) with mutually different wavelength ranges so that the light is emitted from a specific emission position in at least one emission direction with a different wavelength range compared to at least one other emission direction, and wherein the light is detected by the camera (4) so ​​that the different wavelength ranges can be distinguished from each other in the at least one camera image (I) (106), and The image processing unit (6) evaluates the at least one camera image (I) for the different wavelength ranges in order to distinguish (108) the defect (7) from the foreign body (8).

2. The method (100) according to claim 1, wherein: In at least one of the different emission directions (A1, A2, A3), the same wavelength range is emitted at all emission positions (31-42).

3. The method (100) according to claim 1 or 2, wherein: A light beam (S3, S4) of one of the different emission directions (A1, A3) is refracted toward the camera (4) at one of the defects (7), and wherein in the vicinity (U2) of the defect (7), another light beam (S2) of another direction (A2) of the different emission directions extends toward the camera.

4. The method (100) according to claim 1 or 2, wherein: The image processing unit (6) evaluates the at least one camera image (I) for a first partial area (8') having intensity information that deviates from the surrounding area (U1) in order to draw conclusions about the presence of a foreign body (8).

5. The method (100) according to claim 1 or 2, wherein: The image processing unit (6) evaluates the at least one camera image (I) for a second partial region (7') having a wavelength range that deviates relative to the environment (U2) in order to draw conclusions about the presence of a defect (7).

6. The method (100) according to claim 1 or 2, wherein: The at least one camera image (I) is separated by the image processing unit (6) into an intensity channel (G) and a color channel (C), and wherein the image processing unit (6) detects the foreign matter (8) based on the intensity channel (G) and detects the defect (7) based on the color channel (C).

7. A device (1) for optically inspecting containers, for performing a method (100) according to any one of claims 1 to 6, comprising: an inspection unit (10) comprising an illumination unit (3) and a camera (4), an image processing unit (6) for processing at least one camera image (I) of the camera, a conveyor (5) for conveying the container (2) to the inspection unit (10), The lighting unit (3) is configured to emit light using a planar light emitting surface (30) so as to illuminate and / or transilluminate the container (2). wherein the camera (4) is arranged on the inspection unit (10) in order to detect at least one of the containers (2) in the at least one camera image (I) and to detect light transmitted or reflected by the at least one container, wherein the image processing unit (6) is configured to evaluate the at least one camera image (I) with respect to intensity information in order to detect foreign bodies (8) and / or defects (7) of the container (2), Features: At least one of the local points of the light emitting surface (30) and the planar portion of the light emitting surface (30) constitutes a plurality of emission positions (31-42), each emission position (31-42) emitting the light in different wavelength ranges in different emission directions (A1, A2, A3) so that the light is emitted from a specific emission position in at least one emission direction in a different wavelength range compared to at least one other emission direction, wherein the camera (4) is configured to distinguish the different wavelength ranges from one another in at least one camera image (I), and Therein, the image processing unit (6) is designed to evaluate the at least one camera image (I) for the different wavelength ranges in order to distinguish the defect (7) from the foreign body (8).

8. The device (1) according to claim 7, wherein: The lighting unit (3) is configured to emit the light having different colors within the visible spectrum from each of the emission positions (31-42).

9. The device (1) according to claim 7 or 8, wherein: The camera (4) is configured as a color camera.

10. The device (1) according to claim 7 or 8, wherein: The lighting unit (3) comprises a plurality of light sources (Q1-Q3, Q5-Q7) having mutually different wavelength ranges for the emission positions (31-42).

11. The device (1) according to claim 10, wherein: The lighting unit (3) comprises at least one lens (L1) for collimating the light from each of the plurality of light sources (Q1-Q3, Q5-Q7) in the different emission directions (A1, A2, A3) for the emission positions (31-42).

12. The device (1) according to claim 7 or 8, wherein: The lighting unit (3) comprises at least one white light source (Q4) and a downstream bandpass interference filter (F) so as to emit the light in the mutually different wavelength ranges in the different emission directions (A1, A2, A3) by interference for each of the emission positions (31-42).

13. The device (1) according to claim 7 or 8, wherein: The lighting unit (3) comprises a plurality of light sources (Q5-Q7) having mutually different wavelength ranges, and wherein each of the light sources (Q5-Q7) is associated with a beam-forming optical system (O5-O7) so as to collimate the light emitted from each of the light sources onto a planar scattering element (ST) having a scattering angle less than 20°.

14. The device (1) according to claim 11, wherein: The at least one lens includes a rod lens, a Fresnel lens, or a biconvex lens.

15. The device (1) according to claim 13, wherein: The plurality of light sources (Q5-Q7) are LEDs.

16. The device (1) according to claim 13, wherein: Each of the light sources (Q5-Q7) is associated with the beam-collecting optical system (O5-O7) so as to collimate the light emitted from the respective light source onto a planar scattering element (ST) having a scattering angle less than 15°.