Grid type light source and visual inspection system
By using an opaque grid light source to form a shadow area in the visual inspection system, and utilizing the brightness difference between bubbles and impurities, the problem of difficulty in distinguishing bubbles and impurities in traditional systems is solved, reducing computer processing complexity and avoiding missed detections.
Patent Information
- Application Number
- CN202420259210.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2034-02-02
AI Technical Summary
Traditional visual inspection systems are prone to errors when detecting bubbles and impurities in medicine bottles, causing the medicine bottles to be mistakenly marked as unqualified. Existing technology is difficult to effectively distinguish bubbles and impurities, which increases the complexity of computer software.
An opaque grid light source is used to form several spaced shadow areas on the medicine bottle to be tested, and the different brightness characteristics of bubbles and impurities are used to distinguish bubbles and impurities, which reduces the complexity of computer image processing.
The difference in brightness of bubbles and impurities in the shadow area formed by the grid light source facilitates computer identification, reduces the complexity of the computer program, and avoids missed detections.
Smart Images

Figure CN221707860U
Abstract
Description
Technical Field
[0001] The invention discloses a grid-type light source and a visual detection system, belonging to the technical field of visual detection. Background Art
[0002] In the field of machine vision inspection equipment for pharmaceutical machinery, the machine vision inspection system is a special equipment that uses optical imaging and computer data processing to perform automated intelligent inspection of the quality of packaged medicine bottles. The basic structure of a traditional visual inspection system includes a light source and an image acquisition device (such as an industrial camera) facing the light source. After filling, the medicine bottles are driven by a conveyor belt and pass through the light source and the image acquisition device in turn. The image acquisition device captures images of each medicine bottle and sends the collected image data to the computer. The computer analyzes the collected image data and judges the quality of the finished medicine bottles. When impurities appear in the medicine bottles, the medicine bottles are judged to be unqualified, and the unqualified medicine bottles are rejected through subsequent rejection equipment.
[0003] In the actual use of the current visual inspection system, it is found that when there are bubbles and impurities in a medicine bottle at the same time, the states of the bubbles and impurities in the image data are relatively similar. Therefore, errors often occur when the computer processes the collected image data, and medicine bottles are often mistakenly marked as unqualified and rejected.
[0004] In order to improve the accuracy of distinguishing bubbles and impurities in medicine bottles, in the prior art, those skilled in the art often work on improving the accuracy of computer processing of image data. However, this method greatly increases the complexity of computer software, and because the states of bubbles and impurities (such as size and color) are similar, it is difficult to distinguish and detect them in the current industry. Therefore, designing a technical solution that can facilitate accurate distinction of impurities and bubbles in medicine bottles in order to improve the accuracy of distinguishing unqualified drugs has become a problem to be solved in the field. Utility Model Content
[0005] The technical problem to be solved by the utility model is: to overcome the shortcomings of the prior art and to provide a grid-type light source and visual inspection system which forms a plurality of spaced shadow areas at the medicine bottle to be tested by setting an opaque grid, utilizes the different brightness characteristics of bubbles and impurities in the shadow areas to distinguish between bubbles and impurities, facilitates computer recognition, and greatly reduces the complexity of computer image processing.
[0006] The utility model adopts the technical solution to solve the technical problem as follows: the grid-type light source, the light-emitting part emitting light, is characterized in that a lamp rack is provided, a plurality of light-emitting parts are arranged in parallel in strips on the surface of the lamp rack, and an opaque grid is provided between any two adjacent light-emitting parts.
[0007] Preferably, all grids have the same width.
[0008] Preferably, in the vertical direction, the width of all the grids is greater than the width of the light-emitting portion.
[0009] Preferably, a light source is arranged in the lamp holder, and a light-transmitting material is arranged at each light-emitting portion.
[0010] Preferably, each light emitting portion is an independent light source.
[0011] Preferably, in the vertical direction, the width of the grid is 8-12 mm.
[0012] Preferably, the width of the grid is 10 mm.
[0013] A visual inspection system includes an industrial camera facing a grid-type light source, and is characterized in that two grid-type light sources are provided, and the grids in the two grid-type light sources are arranged at positions staggered up and down.
[0014] Preferably, a conveyor belt is provided between the grid-type light source and the industrial camera.
[0015] Preferably, an integrated lamp frame is provided, and the two grid-type light sources are located in the integrated lamp frame.
[0016] Compared with the prior art, the utility model has the following beneficial effects:
[0017] In the grid-type light source and visual inspection system, a light-proof grid is used to form several interval shadow areas at the medicine bottle to be tested. Since the bubbles in the shadow area are surrounded by liquid, a bright surface will be formed on the upper or lower part of the bubbles in the shadow area, while the impurities in the shadow area will not have the phenomenon of upper and lower bright surfaces. The brightness difference between the bubble and the impurity surface is used to facilitate computer recognition, which greatly reduces the complexity of computer image processing and the complexity of computer programs.
[0018] Since the width of the grid is greater than the width of the light-emitting portion, there will be a certain overlap in the shadow area of each medicine bottle at the two grid-type light sources, thereby avoiding missed detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is the front view of the grid-type light source.
[0020] Figure 2 This is the right view of the grille light source.
[0021] Figure 3 This is a schematic diagram of the working process of a grid-type light source.
[0022] Among them: 1. fixing hole 2, fixing plate 3, light-emitting part 4, lamp holder 5, grille 6, medicine bottle 7, shadow area 8, industrial camera 9, conveyor belt 10, inspection table. DETAILED DESCRIPTION
[0023] Figures 1 to 3 It is the best embodiment of the utility model, and the following Figures 1 to 3 The utility model is further described.
[0024] Embodiment 1:
[0025] like Figure 1~2 As shown, a grid-type light source comprises a rectangular lamp frame 4, on both sides of which are provided with an integral fixing plate 2, and at the upper and lower ends of each fixing plate 2 there are respectively provided fixing holes 1, through which the grid-type light source is fixed.
[0026] A plurality of light emitting parts 3 are arranged at the same intervals on the surface of the lamp frame 4 along the height direction of the lamp frame 4, and an opaque grille 5 is provided between any two adjacent light emitting parts 3. In this embodiment, the light source is arranged in the lamp frame 4, and a light-transmitting material is used at each light emitting part 3. When the light source is turned on, light is emitted from the light emitting part 3. In this grille-type light source, the light emitting part 3 is arranged horizontally, and the light emitting part 3 can also be arranged vertically.
[0027] In vertical height, the width of the grid 5 is greater than the width of the light emitting portion 3 , and the width of the grid 5 is in the range of 8 to 12 mm, preferably 1 mm.
[0028] The specific working process and working principle are as follows:
[0029] In visual inspection systems, such as Figure 1~2 At least two grid-type light sources are shown to be arranged side by side. In the two grid-type light sources, the grids 5 (light-emitting parts 3) are arranged alternately up and down.
[0030] Combination Figure 3 At each grid-type light source, at least one industrial camera 8 facing the grid-type light source is fixed, and a conveyor belt 9 is arranged between the industrial camera 8 and the grid-type light source. The filled medicine bottles 6 are driven by the conveyor belt 9 to pass through the industrial camera 8 and the grid-type light source in sequence. The industrial camera 8 and the conveyor belt 9 are arranged on the surface of the inspection table 10.
[0031] The light emitted from the luminous part 3 is shielded on the surface of the medicine bottle 6. Due to the effect of the grid 5, several shadow areas 7 are formed in the medicine bottle 6. If there are bubbles in the shadow area 7 at this time, since the outer periphery of the bubble is wrapped by liquid, the bubble in the shadow area 7 will form a bright surface in the upper or lower part of the bubble in the shadow area 7 (dark area) under the reflection of the light from the luminous part 3 at the upper or lower part of the grid 5, and the brightness of the impurities in the shadow area 7 will be significantly lower than that of the bubble. The principle is: (1) Since the bubble is a hollow structure, it is more transparent than the liquid; (2) The bubble has a scattering and dispersion effect on light; (3) Light is more likely to be totally reflected on the surface of the bubble.
[0032] When the medicine bottles 6 are moving, the industrial camera 8 takes a picture of each medicine bottle 6 and sends the collected image information to the computer. When the medicine bottles 6 move to another grid-type light source, since the grids 5 of the two grid-type light sources are staggered up and down, at the second grid-type light source, the positions of the shadow area 7 and the light area corresponding to the light emitting part 3 are alternated, and another industrial camera 8 collects the medicine bottles 6 for the second time.
[0033] As can be seen from the above, the impurities and bubbles in the shadow area 7 will have a significant difference in surface brightness under the light sources on the upper and lower sides, which makes it easier for the computer to identify them, greatly reducing the complexity of the computer's image processing and the complexity of the computer program. In addition, since the width of the grid 5 is greater than the width of the light-emitting portion 3, there will be a certain overlap in the shadow area 7 of each medicine bottle 6 at the two grid-type light sources, avoiding the occurrence of missed detection.
[0034] Embodiment 2:
[0035] The difference between this embodiment and the first embodiment is that in this embodiment, each light emitting portion 3 is an independent light source.
[0036] Embodiment 3:
[0037] The difference between this embodiment and Embodiment 1 is that in this embodiment, the lamp holder 4 is integrated, and two grid-type light sources in the visual inspection system are arranged in the integrated lamp holder 4 .
[0038] The above is only the preferred embodiment of the utility model, and does not limit the utility model in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the utility model without departing from the technical solution of the utility model still belongs to the protection scope of the technical solution of the utility model.
Claims
1. A grid-type light source, comprising a light-emitting portion (3) for emitting light, characterized in that: A lamp frame (4) is provided, and a plurality of light-emitting parts (3) are arranged in parallel in strips on the surface of the lamp frame (4), and an opaque grille (5) is provided between any two adjacent light-emitting parts (3).
2. The grid-type light source according to claim 1, characterized in that: In the vertical direction, all grids (5) have the same width.
3. The grid-type light source according to claim 1 or 2, characterized in that: In the vertical direction, the width of all the grids (5) is greater than the width of the light-emitting portion (3).
4. The grid-type light source according to claim 1, characterized in that: A light source is arranged in the lamp frame (4), and a light-transmitting material is arranged at each light-emitting portion (3).
5. The grid-type light source according to claim 1, characterized in that: Each light-emitting portion (3) is an independent light source.
6. A visual inspection system having a built-in grid-type light source according to any one of claims 1 to 5, comprising an industrial camera (8) facing the grid-type light source, characterized in that: Two grid-type light sources are provided, and the grids (5) in the two grid-type light sources are arranged at positions that are staggered up and down.
7. The visual inspection system according to claim 6, characterized in that: A conveyor belt (9) is arranged between the grid-type light source and the industrial camera (8).
8. The visual inspection system according to claim 6, characterized in that: An integrated lamp frame (4) is provided, and two grid-type light sources are located in the integrated lamp frame (4).
