Bottle body coding detection device
By adjusting the position and angle of the image acquisition and lighting devices, a uniform image with high contrast and low background interference is obtained, which solves the imaging interference problem caused by container shape, color, filling state and material, and improves recognition accuracy and detection efficiency.
Patent Information
- Application Number
- CN202423011936.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2034-12-06
AI Technical Summary
In existing technologies for laser marking and inspection of containers, factors such as the shape, color, filling status, and material of the container can cause imaging interference, resulting in low recognition rates, increased labor costs, and reduced production efficiency.
A bottle coding detection device is used. By adjusting the position and angle of the image acquisition device and the lighting device, the lighting device illuminates from the normal side of the plane where the coding pattern is located, and the image acquisition device acquires from the other side of the normal, thereby obtaining a uniform image with high contrast and low background interference.
It effectively reduces or eliminates interference caused by container shape, color, filling state and material, improves recognition accuracy and detection efficiency, and is compatible with more application scenarios.
Smart Images

Figure CN223650476U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of detection device technology, specifically to a bottle body coding detection device. Background Technology
[0002] With the continuous development of technology, laser marking is being used more and more in daily life. Laser marking offers permanent traceability and has become an important means of product tracking and anti-counterfeiting. Currently, there are two main methods: manual visual inspection and machine vision inspection. Manual inspection has disadvantages such as low efficiency, high cost, inability to work for extended periods, and susceptibility to environmental influences.
[0003] Current machine vision inspection primarily employs backlit bright-field and striped dark-field methods. With backlit bright-field illumination, irregular bubbles form on the liquid surface when the container is filled with liquid. During backlit imaging, these bubbles obscure the markings, making them difficult to distinguish and interfering with recognition. Furthermore, when the liquid level is in the middle of the markings, a black line appears under backlight, which also makes the markings appear black (relative to the background). This causes the markings' feature information to be covered by the black line, rendering the characters unrecognizable during imaging and increasing inspection difficulty. Striped dark-field illumination is another method. When the container is filled with liquid, bubbles and the liquid level surface produce strong reflections, mixing these interferences with the character's feature information, resulting in uneven image quality and incomplete marking. When laser marking is applied to an opaque container surface (ceramic, glass, plastic, etc.), the container itself will reflect light. The material itself (the color of the container) is sometimes similar to the color of the coding. If the coding is light, the coding features will not be obvious (the contrast with the container itself is not high).
[0004] Factors such as the shape and color of the container, the state of the contents (liquid, solid, etc.), and the container material (glass, plastic, etc.) can all interfere with the coding image (reflection, low contrast, incomplete code information, uneven imaging, etc.). The two lighting methods mentioned above cannot simultaneously eliminate the effects of these factors. This leads to low recognition accuracy, increased labor costs, and negatively impacts the company's production efficiency. Utility Model Content
[0005] To address the aforementioned problems and improve the accuracy of bottle code detection, this invention proposes a bottle code detection device.
[0006] This utility model provides a bottle body coding detection device for detecting coding patterns printed on the outer surface of the container to be tested, including an image acquisition device and an illumination device;
[0007] The lighting device is located on one side of the coded pattern and is used to cover the coded pattern with the light emitted by the lighting device;
[0008] The image acquisition device is located on the same side as the lighting device and is used to receive the mirror projection image of the coded pattern;
[0009] The lighting device and the image acquisition device are located on opposite sides of the normal to the plane containing the coded pattern.
[0010] In this invention, the bottle coding detection device can reduce or eliminate interference caused by the shape, color, state of the filling (liquid bubbles, liquid level reflection, solid position), and material of the container to coding (reflection, low contrast, incomplete code information, uneven imaging, etc.), and obtain a uniform image with high contrast and low background interference. This not only greatly reduces the difficulty of recognition and improves the accuracy of recognition, but also improves the detection efficiency and is compatible with more application scenarios.
[0011] In some possible implementations, the lighting device and the image acquisition device are symmetrical with respect to the normal of the plane containing the coded pattern.
[0012] In some possible implementations, the lighting device is located above the image acquisition device.
[0013] In some possible implementations, the lighting device is located below the image acquisition device.
[0014] In some possible implementations, the image acquisition device is selected from one of an area scan camera, a line scan camera, or an optical camera; the camera lens is selected from one of a fixed-focus lens or a telecentric lens. The image acquisition device of this invention includes, but is not limited to, one of an area scan camera, a line scan camera, or an optical camera, and may also be an image acquisition device with a sensor, such as an image sensor module or an industrial line scan camera sensor. The camera lens includes, but is not limited to, one of a fixed-focus lens or a telecentric lens, and also includes other types of lenses that enable the camera to image, such as ruggedized lenses, zoom lenses, etc.
[0015] In some possible implementations, the light source of the lighting device is selected from one of a planar light source, an arc light source, a strip light source, or a coaxial light source. The lighting device of this utility model includes, but is not limited to, one of a planar light source, an arc light source, a strip light source, or a coaxial light source, and can also be customized according to the shape of the plane on which the coded pattern on the container to be tested is located.
[0016] In some possible implementations, the radius of the arc surface of the arc light source is greater than or equal to the radius of the arc surface of the area where the coded pattern is located on the container under test.
[0017] In some possible implementations, the light source is either visible or invisible light; the visible light is selected from white light, red light, blue light, green light, or combinations thereof, and the invisible light is selected from infrared or ultraviolet light. The light source type of the lighting device of this invention includes, but is not limited to, white light, red light, blue light, green light, infrared, or ultraviolet light, as long as the light source satisfies the requirement that the image acquisition device can receive a mirrored projection image of the coded pattern.
[0018] In some possible implementations, the container to be detected has a regular or irregular shape. The regular shape includes one of a cylinder, square, oblique plane, or cone. The irregular shape includes a polygon or a shape with curved surfaces on a plane. The shape of the container to be detected in this invention includes, but is not limited to, one of a cylinder, square, oblique plane, cone, polygon, or shape with curved surfaces on a plane, as long as the shape satisfies the requirement that the light emitted by the illumination device can cover the coded pattern on the container to be detected, and the image acquisition device can receive a mirrored projection image of the coded pattern.
[0019] In some possible implementations, the material of the container to be tested is selected from glass, plastic, resin, porcelain or ceramic. The material of the container to be tested in this invention includes, but is not limited to, glass, plastic, resin, porcelain or ceramic, as long as the material can meet the requirement that the light emitted by the lighting device can cover the coded pattern on the container to be tested, and the image acquisition device can receive the mirror projection image of the coded pattern.
[0020] Compared with the prior art, this utility model has one of the following beneficial effects:
[0021] 1. This utility model adjusts the position and angle of the image acquisition device and the lighting device so that the lighting device illuminates the coding pattern from the normal side of the plane where the coding pattern is located, and the image acquisition device acquires the image from the other side of the normal side of the plane where the coding pattern is located, thereby acquiring a mirror projection image of the lighting device on the coding pattern, and obtaining a uniform image with high contrast and low background interference for laser coding.
[0022] 2. Compared with the existing backlighting and striped dark lighting methods, the bottle coding detection device provided by this utility model has the advantages of both. It can reduce or eliminate the interference caused by the shape, color, state of the filling (liquid bubbles, liquid level reflection, solid position), and material of the container to coding (reflection, low contrast, incomplete code information, uneven imaging, etc.). Attached Figure Description
[0023] Figure 1 This is a schematic diagram of the bottle body coding detection device in Embodiment 1 of this utility model;
[0024] Figure 2 This is a photograph of the sample A being tested in Embodiment 2 of this utility model;
[0025] Figure 3 A schematic diagram of the layout for detection using the existing backlight field method;
[0026] Figure 4 To acquire an image of sample A using the existing backlighting and light field method;
[0027] Figure 5 The image shown is of sample A collected by the bottle coding detection device of this application in Embodiment 2 of this utility model.
[0028] Figure 6 This is a photograph of sample B in Embodiment 3 of this utility model.
[0029] Figure 7 This is a schematic diagram of the lighting device of the bottle coding detection device of this application in Embodiment 3 of this utility model;
[0030] Figure 8 This is a schematic diagram of the layout for detection using the existing top-strip dark-field illumination method;
[0031] Figure 9 To acquire an image of sample B using the existing top-strip dark-field illumination method;
[0032] Figure 10 The image of sample B is acquired using the bottle body coding detection device of this application in Embodiment 3 of this utility model;
[0033] Figure 11 This is a photograph of the sample C being tested in Embodiment 4 of this utility model;
[0034] Figure 12 To acquire an image of sample C using the existing backlighting and light field method;
[0035] Figure 13 This is an image of sample C collected by the bottle coding detection device of this application in Embodiment 4 of this utility model.
[0036] Among them, 1-image acquisition device; 2-lighting device; 3-container to be tested; 4-coded pattern. Detailed Implementation
[0037] The present invention will be further described in detail below with reference to the embodiments and accompanying drawings, but the implementation of the present invention is not limited thereto.
[0038] This utility model proposes a bottle body coding detection device.
[0039] Example 1
[0040] like Figure 1 As shown, the bottle coding detection device is used to detect the coding pattern 4 printed on the outer surface of the container 3 to be tested, and includes an image acquisition device 1 and a lighting device 2.
[0041] The outer surface of the container 3 to be tested is marked with a coding pattern 4, which can be numbers, letters, or patterns. The container 3 to be tested can be selected from containers in the food industry, pharmaceutical industry, cosmetics industry, and other filling industries. The shape of the container 3 to be tested can be regular or irregular. Regular shapes include one of the following: cylindrical, square, oblique plane, or conical. Irregular shapes include polygonal shapes or shapes with curved surfaces on a plane. The material of the container 3 to be tested is selected from one of the following: glass, plastic, resin, porcelain, or ceramic.
[0042] The illumination device 2 is located on one side of the coded pattern 4, and is used to cover the coded pattern 4 with the light emitted by the illumination device 2. The farther the illumination device 2 is from the coded pattern 4 (the better the directionality of the light), the larger the size of the selected light source, the larger the light spot on the coded pattern 4, the higher the contrast of the mirrored projection image of the coded pattern 4, and the lower the difficulty of recognition and detection. The shape of the light source of the illumination device 2 can be customized according to the shape of the coded pattern 4 on the container 3 to be inspected (e.g., planar, arc-shaped, inclined, etc.) to ensure the integrity of the coding image. The light source of the illumination device 2 is selected from one of the following: planar light source, arc-shaped light source, strip light source, or coaxial light source. The radius of the arc surface of the arc light source is greater than or equal to the radius of the arc surface of the area where the coded pattern 4 is located on the container 3 to be inspected. The type of light source is visible light or invisible light. Visible light is selected from one of white light, red light, blue light, green light, or a combination thereof, and invisible light is selected from one of infrared or ultraviolet light.
[0043] Image acquisition device 1 is located on the same side as illumination device 2 and is used to receive mirror projection images of coded pattern 4. Image acquisition device 1 is selected from one of area scan camera, line scan camera, or optical camera, and the camera lens is selected from one of fixed focal length lens or telecentric lens.
[0044] The lighting device 2 and the image acquisition device 1 are located on opposite sides of the normal to the plane containing the coded pattern 4. Furthermore, the lighting device 2 and the image acquisition device 1 are symmetrical with respect to the normal to the plane containing the coded pattern 4. When the area containing the coded pattern 4 is arc-shaped, the plane approximating the center point of the area is taken as the plane containing the coded pattern 4. The lighting device 2 can be located above or below the image acquisition device 1, as long as the image acquisition device 1 can successfully receive the mirrored projection image of the coded pattern 4.
[0045] This invention achieves mirrored projection lighting by placing the lighting device 2 and the image acquisition device 1 on the same side of the coded pattern 4 and adjusting the position and angle of the lighting device 2 so that the light projected by the lighting device 2 can cover the position of the coded pattern 4 on the container 3 to be inspected. Then, by adjusting the position and angle of the image acquisition device 1, the image acquisition device 1 can receive the mirrored projection image of the coded pattern 4, thereby obtaining a uniform image with high contrast and low background interference.
[0046] Example 2
[0047] Selected test sample A (see Figure 2 Sample A is a seasoning bottle for the food industry. The container itself is made of transparent material and is filled with a semi-transparent liquid. When sample A is transferred on the production line, the surface of the liquid will shake, the liquid level is unstable and bubbles are easily generated. The container markings are located on a conical plane.
[0048] The bottle coding detection device of Example 1 is used, in which the image acquisition device 1 and the illumination device 2 are placed on the same side of the coding pattern 4. The image acquisition device 1 is a black and white area array camera, and the light source of the illumination device 2 is a white planar light source. The illumination device 2 and the image acquisition device 1 are respectively located on both sides of the normal of the plane containing the coding pattern 4, and the illumination device 2 is placed directly in front of the container 3 to be detected, so that the light-emitting surface of the illumination device 2 faces the coding pattern 4. The light-emitting surface of the illumination device 2 is a certain distance away from the container 3 to be detected. The image acquisition device 1 is arranged above the illumination device 2, forming an angle with the horizontal direction, so that the image acquisition device 1 can capture the mirror projection image of the illumination device 2 on the coding pattern 4. The image acquired by the image acquisition device 1 is as follows. Figure 5 As shown.
[0049] Comparison with existing methods:
[0050] Existing detection methods mainly employ backlit light field imaging: the layout consists of image acquisition device 1 and illumination device 2 (see...). Figure 3The image acquisition device 1 is placed horizontally on both sides of the coded pattern 4, facing the coded pattern 4, so that it can capture a complete image of the coded pattern. The illumination device 2 is placed vertically on the other side of the container 1 to be inspected (opposite to the image acquisition device 1). The image acquired by the image acquisition device 1 is as follows: Figure 4 As shown. The image was obtained using a backlit light field method. The coded pattern 4 is not easily identifiable in the image, and the contrast is relatively low.
[0051] contrast Figure 4 and Figure 5 It can be seen that the image acquired using the bottle body coding detection device of this application can make the coding pattern 4 have the characteristics of high contrast, easy recognition, small background interference (no bubble liquid level interference), and uniform image.
[0052] Example 3
[0053] Select sample B to be tested (see Figure 6 This is a bottle cap for the liquor industry. The bottle cap surface has the characteristics of being opaque and highly reflective, and the coding position is a downward-sloping arc surface. The material has star-shaped reflective dots inside, and the color of the coding pattern 4 is close to the color of the bottle cap itself.
[0054] The bottle coding detection device of Example 1 is used, in which the image acquisition device 1 and the illumination device 2 are placed on the same side of the coding pattern 4. The image acquisition device 1 is a black and white area array camera, and the light source of the illumination device 2 is a white arc light source. The illumination device 2 and the image acquisition device 1 are respectively located on both sides of the normal of the plane where the coding pattern 4 is located. The plane with the smallest area of the coding pattern 4 is taken as the plane where the coding pattern 4 is located, and the arc-shaped surface light source customized according to the shape of the bottle cap (see Example 1) is used. Figure 7 The light source is placed in front of the coding, with its radius larger than the radius of the area containing the coding pattern 4 on the container 3 to be tested. The light-emitting surface of the lighting device 2 is aligned with the coding pattern 4, and the distance between the lighting device 2 and the sample B is adjusted. The image acquisition device 1 is positioned above the light source, forming an angle with the horizontal direction. The image acquisition device 1 acquires the mirror projection image of the curved surface light source on the coding pattern 4. The image acquired by the image acquisition device 1 is shown below. Figure 10 As shown.
[0055] Comparison with existing methods:
[0056] The existing detection method uses a top-strip dark-field illumination method for image acquisition: the image acquisition device 1 and the illumination device 2 are arranged on the same side of the coded pattern 4. The illumination device 2 uses a strip light source, which is placed above the container 3 to be inspected, with the emitting surface facing downwards. The image acquisition device 1 is placed horizontally and aligned with the coded pattern 4 so that it can acquire a complete image of the coded pattern 4 (see...). Figure 8Images acquired by the image acquisition device, such as... Figure 9 As shown, the image of coded pattern 4 has low contrast, with the upper half of the character being bright and the lower half being dark. The image is uneven and has star-shaped bright spots, resulting in a poor overall imaging effect.
[0057] contrast Figure 9 and Figure 10 It can be seen that the image acquired by the bottle coding detection device of this application has a higher contrast with the coded image 4 on the container to be detected, less background interference (star interference) from the sample itself, and a more uniform overall image (brightness of characters).
[0058] Example 4
[0059] Select sample C to be tested (e.g.) Figure 11 This is a beverage bottle for the food industry. The container itself is made of transparent material and is filled with a dark, semi-transparent liquid. The markings on the container are on a conical surface with an uneven surface, and the markings are on an irregular flat conical surface.
[0060] The bottle coding detection device of Example 1 is used, in which the image acquisition device 1 and the illumination device 2 are placed on the same side of the coding pattern 4. The image acquisition device 1 is a black and white area array camera, and the light source of the illumination device 2 is a white arc light source (see Example 1). Figure 7 The lighting device 2 and the image acquisition device 1 are located on opposite sides of the normal to the plane containing the coded pattern 4. The lighting device 2 is placed directly in front of the container 3 to be inspected, with its luminous surface facing the coded pattern 4. The luminous surface of the lighting device 2 is a certain distance from the container 3 to be inspected. The image acquisition device 1 is positioned above the lighting device 2, forming an angle with the horizontal direction, so that the image acquisition device 1 can acquire a mirror projection image of the lighting device 2 onto the coded pattern 4. The image acquired by the image acquisition device 1 is shown below. Figure 13 As shown.
[0061] Comparison with existing methods:
[0062] Existing detection methods mainly employ backlit light field imaging: the layout consists of imaging device 1 and illumination source 2 (see...). Figure 3 The image acquisition device 1 is placed horizontally on both sides of the coded pattern 4, facing the coded pattern 4, so that it can capture a complete image of the coded pattern. The illumination device 2 is placed vertically on the other side of the container 1 to be inspected (opposite to the image acquisition device 1). The image acquired by the image acquisition device 1 is as follows: Figure 12 As shown. Encoded pattern 4 is not easily identifiable in the image due to its low contrast.
[0063] contrast Figure 12 and Figure 13It can be seen that the image acquired using the bottle coding detection device of this application can give the coding pattern 4 the characteristics of high contrast, easy recognition, low background interference, and uniform image.
[0064] Application examples:
[0065] This reaction apparatus of the present invention can be applied to:
[0066] 1. Machine vision industry: online or offline imaging, recognition, and detection of laser markings on various containers (food, pharmaceutical, cosmetic, and other filled products).
[0067] Although the principles of this utility model have been described in detail above with reference to preferred embodiments, those skilled in the art should understand that the above embodiments are merely illustrative explanations of the implementation of this utility model and are not intended to limit the scope of this utility model. The details in the embodiments do not constitute a limitation on the scope of this utility model. Any obvious changes, such as equivalent transformations or simple substitutions, based on the technical solution of this utility model without departing from its spirit and scope fall within the protection scope of this utility model.
Claims
1. A bottle coding detection device for detecting coding patterns (4) printed on the outer surface of a container (3) to be tested, characterized in that, It includes an image acquisition device (1) and an illumination device (2); The lighting device (2) is located on one side of the coding pattern (4) and is used to cover the coding pattern (4) with the light emitted by the lighting device (2); The image acquisition device (1) is located on the same side as the lighting device (2) and is used to receive the mirror projection image of the coded pattern (4); The lighting device (2) and the image acquisition device (1) are located on opposite sides of the normal to the plane containing the coded pattern (4).
2. The bottle coding detection device according to claim 1, characterized in that, The lighting device (2) and the image acquisition device (1) are symmetrical with respect to the normal of the plane containing the coded pattern (4).
3. The bottle coding detection device according to claim 1, characterized in that, The lighting device (2) is located above the image acquisition device (1).
4. The bottle coding detection device according to claim 1, characterized in that, The lighting device (2) is located below the image acquisition device (1).
5. The bottle coding detection device according to claim 1, characterized in that, The image acquisition device (1) is selected from one of an area scan camera, a line scan camera, or an optical camera; The camera lens is selected from either a fixed-focus lens or a telecentric lens.
6. The bottle coding detection device according to claim 1, characterized in that, The light source of the lighting device (2) is selected from one of the following: a planar light source, an arc light source, a strip light source, or a coaxial light source.
7. The bottle coding detection device according to claim 6, characterized in that, The radius of the arc surface of the arc-shaped light source is greater than or equal to the radius of the arc surface of the area where the coded pattern is located on the container under test.
8. The bottle body coding detection device according to claim 6, characterized in that, The type of light source is visible light or invisible light; The visible light is selected from white light, red light, blue light, green light, or a combination thereof; The invisible light is selected from either infrared or ultraviolet light.
9. The bottle coding detection device according to claim 1, characterized in that, The container to be tested (3) has a regular shape or an irregular shape; The regular shape includes one of the following: cylindrical, square, oblique plane, or conical. The irregular shape includes polygons or shapes with curved surfaces on a plane.
10. The bottle coding detection device according to claim 1, characterized in that, The material of the container to be tested (3) is selected from glass, plastic, resin, porcelain or ceramic.