Adaptive bottle cap inspection method
By collecting and splicing side images of bottle caps on the conveyor belt, and using sensors and image processing technology to identify defective products, the problem of low inspection efficiency and high defective rate of bottle caps of different specifications is solved, and an efficient and high-efficiency adaptive bottle cap inspection system is realized. accuracy and cost savings.
Patent Information
- Application Number
- CN202410962087.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult to implement adaptive inspection of bottle caps of different specifications with existing technology, which results in the need to rearrange equipment when changing production lines, affecting efficiency. In addition, differences in the shape, specifications and colors of bottle caps lead to a high defective rate.
Adopting an adaptive bottle cap inspection method, by collecting and splicing side images of bottle caps on the conveyor belt, using sensors to record and locate image differences, screening out the location of the difference images, and combining image processing technology to identify defective products, including at least two sections of collection areas and data The processing module realizes adaptive clamping and image verification of bottle caps of different specifications.
It realizes fast and simple status verification of bottle caps of different specifications, reduces equipment and labor costs, reduces the risk of defective products leaving the factory, and improves inspection efficiency and accuracy.
Smart Images

Figure CN118505697B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of product inspection, and in particular to an adaptive bottle cap inspection method. Background Art
[0002] When it comes to bottle cap products of different specifications, due to the different conditions of the bottle caps, the calibration used needs to be unified. However, at present, replacing the production line will affect the efficiency of the equipment production line, and the production line inspection equipment needs to be rearranged.
[0003] Differences in shape, specification, and color on the side of the bottle cap affect usage and also affect the defective rate.
[0004] Therefore, there is an urgent need for an adaptive bottle cap inspection method. Summary of the invention
[0005] The present application discloses an adaptive bottle cap inspection method, which solves the problems of the prior art.
[0006] In the first aspect, the adaptive bottle cap inspection method comprises:
[0007] The present application provides an adaptive bottle cap inspection method, comprising:
[0008] Capture side images of bottle caps moving and rotating on a conveyor belt;
[0009] Record and locate the bottle caps corresponding to different images;
[0010] The stitched images are compared to find the differences between images collected at different times and / or locations, and the bottle caps corresponding to the locations of the difference images are selected.
[0011] Furthermore, for the conveyor belt, including:
[0012] At least two collecting areas, the position where the bottle caps to be tested are clamped in the first collecting area is different from the position where the bottle caps to be tested are clamped in the second collecting area, and the bottle caps first pass through the first collecting area and then pass through the second collecting area and are finally screened out;
[0013] The image of the second acquisition area is collected to verify the position of the bottle cap clamped in the first acquisition area.
[0014] Furthermore, the recording and locating of bottle caps corresponding to different images specifically includes:
[0015] Sensors arranged at intervals on the conveyor belt collect side image data of the bottle caps in the area;
[0016] The overlapping areas captured by two adjacent sensors are distinguished, corrected and merged, including: each sensor and the adjacent sensor perform perspective changes based on the difference in observation angles in the overlapping area, and restore the captured wide-angle image to a two-dimensional plane canvas, confirm the relative position relationship of two adjacent sensors in the overlapping area based on the overlapping area, and locate the canvas.
[0017] Furthermore, the bottle caps are clamped and rotated in the two collecting areas. For each collecting area, the bottle caps are driven in opposite directions at two sides perpendicular to the moving direction of the conveyor belt. The two collecting areas rotate the bottle caps at the same speed. The bottle caps are spaced at the same intervals on the conveyor belt and driven from one end to the other.
[0018] For each side of each acquisition area, sensors are arranged at the upper and lower parts of the rotating bottle cap clamping part for acquiring the side image of the moving and rotating bottle cap.
[0019] Furthermore, sensors are provided at the upper and lower parts of the clamping position, and the collected images of the upper half of the bottle cap and the lower half of the bottle cap are spliced according to the relative position relationship of adjacent sensors, and the image of the clamping position is left blank;
[0020] The difference occlusion area collected by the two acquisition areas is used to fill the blank space between the images.
[0021] Furthermore, the stitched image is compared with the image differences collected at different times and / or different positions, and the bottle caps corresponding to the positions of the difference images are screened out, which specifically includes:
[0022] When the stitched image is compared with the difference of the images collected at different times, the collected images are rasterized, and for each rasterized image that appears, the same rasterized image that appears at different times is found, and the corresponding timestamp is recorded;
[0023] Analyze and fit the timestamp interval function that appears in each rasterized image, verify all the corresponding timestamps through the timestamp interval function, select the bottle caps corresponding to the timestamps that do not meet the timestamp interval function, and mark them as defective products.
[0024] Furthermore, the stitched image is compared with the image differences collected at different times and / or different positions, and the bottle caps corresponding to the positions of the difference images are screened out, which specifically includes:
[0025] When the stitched image is compared with the difference of images collected at different positions, the stitched image is sliced, the image slices at different positions and the corresponding bottle caps are marked, each slice image is recorded and sorted into the comparison library, the same slice images are screened out, and the subsequent slice images collected at different positions are continuously added while the same slice images are also screened out. After processing the side images of the bottle caps that subsequently enter the collection area, the similarity of the slice images is judged based on the comparison library, and the bottle caps corresponding to the slice image positions that do not meet the minimum similarity threshold are selected and marked as defective products.
[0026] Furthermore, the method of slicing the stitched image includes: slicing a rectangular image with a width of half a bottle cap or one and a half bottle caps along one end of the bottle cap.
[0027] Furthermore, the method of slicing the stitched image includes: slicing a parallelogram image covering more than half of the side surface of the bottle cap.
[0028] In a second aspect, the present application provides an adaptive bottle cap inspection system, comprising a first acquisition area, a second acquisition area and a data processing module, for implementing the adaptive bottle cap inspection method as described in any one of the first aspects;
[0029] The first and second collection areas are used to differentially clamp the bottle caps to be inspected at different positions, and are also used to adaptively adjust the clamping distance to bottle caps of different specifications;
[0030] The first section collection area and the second section collection area are provided with sensors for collecting side images of bottle caps moving and rotating on the conveyor belt;
[0031] The data processing module is used to receive the side images of the bottle caps collected in the first collection area and the second collection area, and to record and locate the bottle caps corresponding to the different images; and to stitch the images to compare the differences of the images collected at different times and / or different positions, and to select the bottle caps corresponding to the positions of the difference images.
[0032] The present application provides an adaptive bottle cap inspection method, which uses a simple image processing method to verify the status of grouped bottle caps on a large scale. It is convenient and fast, saves equipment costs, saves labor costs, avoids defective products from leaving the factory, and promptly solves the problem of difficulty in screening defective products. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The drawings described herein are used to provide a further understanding of the embodiments of the present application, constitute a part of the present application, and do not constitute a limitation on the embodiments of the present application. In the drawings:
[0034] Figure 1 A flow chart of an adaptive bottle cap inspection method provided for an exemplary embodiment of the present application.
[0035] Figure 2A schematic diagram of the main structure of an adaptive bottle cap inspection system provided by an exemplary embodiment of the present application.
[0036] Figure 3 A schematic diagram of two collection areas in an adaptive bottle cap inspection system provided by an exemplary embodiment of the present application.
[0037] In the figure:
[0038] 1. The first collection area; 2. Bottle cap; 3. The second collection area. DETAILED DESCRIPTION
[0039] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0040] The specific application scenario of this application is the bottle cap inspection scenario on the production line.
[0041] The present application conceives of capturing images through moving bottle caps, cross-comparing the images, and if they are similar, the inspection is successful, otherwise the bottle caps in the corresponding images are defective. However, there are occlusions between the bottle caps, and the shaking of the bottle caps will affect the cross-comparison of the images. Therefore, the bottle caps are clamped to solve the occlusion and shaking problems of the bottle caps at the same time.
[0042] The present application provides an adaptive bottle cap inspection method, which aims to solve the above technical problems in the prior art.
[0043] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0044] Embodiment 1: This embodiment provides an adaptive bottle cap inspection method, such as Figure 1 As shown, including:
[0045] S1. Capturing the side image of the bottle cap 2 moving and rotating on the conveyor belt; for the conveyor belt, comprising: at least two acquisition areas, the position of the bottle cap 2 to be tested clamped in the first acquisition area 1 is different from the position of the bottle cap 2 to be tested clamped in the second acquisition area 3, the bottle cap 2 first passes through the first acquisition area 1 and then passes through the second acquisition area 3 and is finally screened out; capturing the image of the second acquisition area 3 to verify the position of the bottle cap 2 clamped in the first acquisition area 1.
[0046] S2, record and locate the bottle cap 2 corresponding to different images;
[0047] The sensors arranged at intervals on the conveyor belt collect the side image data of the bottle cap 2 in the area;
[0048] S3, stitching images to compare the differences between images collected at different times and / or at different locations;
[0049] The overlapping areas captured by two adjacent sensors are distinguished, corrected and merged, including: each sensor and the adjacent sensor perform perspective changes based on the difference in observation angles in the overlapping area, and restore the captured wide-angle image to a two-dimensional plane canvas, confirm the relative position relationship of two adjacent sensors in the overlapping area based on the overlapping area, and locate the canvas.
[0050] This embodiment 1 provides a possible implementation method, wherein the stitched image compares the difference between images collected at different times and / or different positions, and screens out the bottle cap 2 corresponding to the position of the difference image, specifically including:
[0051] When the stitched image is compared with the difference of the images collected at different times, the collected images are rasterized, and for each rasterized image that appears, the same rasterized image that appears at different times is found, and the corresponding timestamp is recorded;
[0052] The timestamp interval function appearing in each rasterized image is analyzed and fitted, all the corresponding timestamps are verified by the timestamp interval function, and the bottle caps 2 corresponding to the timestamps that do not conform to the timestamp interval function are selected and marked as defective products.
[0053] This embodiment 1 provides another possible implementation method, wherein the stitched image is compared with the difference of images collected at different times and / or different positions, and the bottle cap 2 corresponding to the position of the difference image is screened out, specifically including:
[0054] When the stitched image is compared with the difference of images collected at different positions, the stitched image is sliced, the image slices at different positions and the corresponding bottle caps 2 are marked, each slice image is recorded and sorted into the comparison library, the same slice images are screened out, and the slice images collected at different positions are continuously added while the same slice images are also screened out. After the side images of the bottle caps 2 that enter the collection area subsequently are processed, the similarity of the slice images is judged based on the comparison library, and the bottle caps 2 corresponding to the slice image positions that do not meet the minimum similarity threshold are selected and marked as defective products.
[0055] The various methods in the embodiments of the present application involve slicing the stitched image including: slicing a rectangular image with a width of half the bottle cap 2 or one and a half the bottle cap 2 along one end of the bottle cap 2. In this way, at least for a whole image, it is convenient to locate the position of the bottle cap 2, while ensuring the workload of data processing.
[0056] The method of slicing the spliced image includes: slicing a parallelogram image covering more than half of the side of the bottle cap 2. The parallelogram setting can ensure that no unsliced image is missed, and the size of the sliced model is consistent, which is convenient for cross-comparison of image similarity.
[0057] S4, filter out the bottle cap 2 corresponding to the position of the difference image.
[0058] Embodiment 2, this embodiment provides an adaptive bottle cap 2 inspection system, such as Figure 2 , 3As shown, it includes a first acquisition area 1, a second acquisition area 3 and a data processing module, which are used to implement an adaptive bottle cap inspection method of Example 1, wherein the first acquisition area 1 and the second acquisition area 3 are used to differentially clamp the bottle caps 2 to be inspected at different positions, and are also used to adaptively adjust the clamping distance to bottle caps 2 of different specifications; the first acquisition area 1 and the second acquisition area 3 are provided with sensors for collecting side images of bottle caps 2 moving and rotating on a conveyor belt; the data processing module is used to receive the side images of bottle caps 2 collected by the first acquisition area 1 and the second acquisition area 3, and is used to record and locate the bottle caps 2 corresponding to different images; and is also used to stitch images to compare the differences of images collected at different times and / or different positions, and screen out the bottle caps 2 corresponding to the positions of the difference images. In the two acquisition areas, the bottle cap 2 is clamped and rotated. For each acquisition area, the sides of the bottle cap 2 are perpendicular to the moving direction of the conveyor belt and the bottle cap 2 is transmitted in opposite directions. The speed of rotating the bottle cap 2 in the two acquisition areas is consistent. The bottle cap 2 is uniformly spaced on the conveyor belt and is transmitted from one end to the other. For each side of each acquisition area, sensors are provided at the upper and lower parts of the clamped bottle cap 2 for rotation to collect the side image of the moving and rotating bottle cap 2. Sensors are provided at the upper and lower parts of the clamping part. The images of the upper half of the bottle cap 2 and the lower half of the bottle cap 2 collected are spliced according to the relative position relationship of adjacent sensors, and the image of the clamping part is vacated. The blank images of the clamping part are filled with each other through the difference occlusion areas collected by the two acquisition areas. In the several embodiments provided in the present application, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the modules is merely a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0059] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0060] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0061] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0062] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods or systems. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects.
[0063] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0064] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
[0065] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims above.
[0066] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. An adaptive bottle cap inspection method, characterized in that: include: Capturing a side image of a bottle cap (2) moving and rotating on a conveyor belt; For conveyor belts, this includes: At least two collecting areas, the position of the bottle cap (2) to be tested in the first collecting area (1) is different from the position of the bottle cap (2) to be tested in the second collecting area (3), and the bottle cap (2) first passes through the first collecting area (1) and then passes through the second collecting area (3) before being screened out; Acquire an image of the second acquisition area (3) to verify the position of the bottle cap (2) clamped by the first acquisition area (1); The bottle cap (2) is clamped and rotated in two collecting areas. For each collecting area, the sides of the bottle cap (2) are perpendicular to the moving direction of the conveyor belt and the bottle cap (2) is driven in opposite directions. The two collecting areas rotate the bottle cap (2) at the same speed. The bottle caps (2) are uniformly spaced on the conveyor belt and driven from one end to the other. For each side of each collecting area, sensors are provided at the upper and lower parts of the clamped bottle cap (2) for collecting the side image of the moving and rotating bottle cap (2). Sensors are provided at the upper and lower parts of the clamping position. The collected images of the upper half of the bottle cap (2) and the lower half of the bottle cap (2) are spliced according to the relative position relationship of adjacent sensors, and the image of the clamping position is left blank. The difference occlusion area collected by the two acquisition areas is used to fill the blank clamped part of the image with each other; Recording and locating bottle caps (2) corresponding to different images, specifically including: collecting side image data of the bottle caps (2) in the area of the sensors arranged at intervals on the conveyor belt; distinguishing and correcting and merging the overlapping areas collected by two adjacent sensors, including: each sensor and the adjacent sensor perform perspective changes based on the difference in observation angles of the overlapping area, and restoring the collected wide-angle image to a two-dimensional plane canvas, confirming the relative position relationship of the two adjacent sensors based on the overlapping area and locating the canvas; The stitched images are compared to find out the differences between images collected at different times and / or different positions, and the bottle caps (2) corresponding to the positions of the difference images are selected.
2. The adaptive bottle cap inspection method according to claim 1, characterized in that: The stitching image compares the difference between images collected at different times and / or different positions, and screens out the bottle caps (2) corresponding to the positions of the difference images, specifically including: When the stitched image is compared with the difference of the images collected at different times, the collected images are rasterized, and for each rasterized image that appears, the same rasterized image that appears at different times is found, and the corresponding timestamp is recorded; Analyze and fit the timestamp interval function that appears in each rasterized image, fit the timestamp interval function to verify the timestamps corresponding to all the records, select the bottle caps (2) corresponding to the timestamps that do not meet the timestamp interval function, and mark them as defective products.
3. The adaptive bottle cap inspection method according to claim 1, characterized in that: The stitching image compares the difference between images collected at different times and / or different positions, and screens out the bottle caps (2) corresponding to the positions of the difference images, specifically including: When the stitched image is compared with the difference of images collected at different positions, the stitched image is sliced, the image slices at different positions and the corresponding bottle caps (2) are marked, each slice image is recorded and sorted into a comparison library, the same slice images are screened out, and the slice images collected at different positions are continuously added while the same slice images are also screened out. After the side images of the bottle caps (2) that enter the collection area are processed, the similarity of the slice images is judged based on the comparison library, and the bottle caps (2) corresponding to the slice image positions that do not meet the minimum similarity threshold are selected and marked as defective products.
4. The adaptive bottle cap inspection method according to claim 3, characterized in that: The method of slicing the spliced image includes: slicing a rectangular image with a width of half the bottle cap (2) or one and a half bottle caps (2) along one end of the bottle cap (2).
5. The adaptive bottle cap inspection method according to claim 3, characterized in that: The method of slicing the spliced image includes: slicing a parallelogram image covering more than half of the side of the bottle cap (2).
6. An adaptive bottle cap inspection system, characterized in that: It comprises a first collection area (1), a second collection area (3) and a data processing module, and is used to implement the adaptive bottle cap inspection method according to any one of claims 1 to 5; The first collecting area (1) and the second collecting area (3) are used to differentially clamp the bottle caps (2) to be inspected at different positions, and are also used to adaptively adjust the clamping distance to bottle caps (2) of different specifications; Sensors are provided on the first collection area (1) and the second collection area (3) for collecting side images of bottle caps (2) moving and rotating on the conveyor belt; The data processing module is used to receive the side images of the bottle caps (2) collected by the first collection area (1) and the second collection area (3), and is used to record and locate the bottle caps (2) corresponding to different images; and is also used to stitch images to compare the differences between images collected at different times and / or different positions, and to select the bottle caps (2) corresponding to the positions of the difference images.
