Double-stay-wire detection device and method based on vision and photoelectric composite technology
The double-gut detection device using visual and photoelectric composite technology solves the problem of the inability to effectively detect the quality of double-guts in the existing technology, achieves comprehensive quality inspection and online accurate elimination of double-guts, and provides intelligent data management support.
Patent Information
- Application Number
- CN202410593438.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-14
AI Technical Summary
The existing market lacks equipment specifically used to detect double pull wires, and cannot effectively detect whether the spacing between the double pull wires is appropriate, whether the pull wire is located in the middle of the U-shaped slider, etc., making quality problems difficult to solve.
A dual pull wire detection device based on vision and photoelectric composite technology is used, including an integrated dedicated controller, image collector and encoder. The working status of the machine is judged through image collection, photoelectric data processing and encoder to achieve accurate statistics and detection of pull wire defects. Rejection can detect whether the pull wire is missing, offset, or in the middle of the U-shaped slider.
It realizes comprehensive quality inspection of double cables, solves the problems of overall or partial deviation of cables, joints and transparent paper splicing, provides online precise elimination and per-package statistics functions, and supports intelligent data management.
Smart Images

Figure CN118594969A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of detection technology, and in particular relates to a double-pull wire detection device and method based on vision and photoelectric composite technology. Background Art
[0002] In order to attract consumers' attention, the trend of specialization of cigarettes has gradually become the mainstream. In addition to the diversification of packaging styles, the ways of opening cigarette boxes are also unique, including the common flip-top, full-open, side-open, bottom-open, and oblique-open. Many high-end cigarettes are fully open or side-open. The difference from the traditional flip-top packaging is that two pull cords are required to open the outer transparent paper. Compared with a single pull cord, double pull cords not only have quality problems such as missing pull cords, pull cord joints, and transparent paper splicing, but also may have problems such as overall pull cord offset and incorrect spacing.
[0003] At present, there is no testing equipment specially designed for double pull wires on the market. Many equipments are only slightly modified based on the original single pull wire detection, and can only realize functions such as whether the pull wire exists and the splicing joint. However, it is impossible to effectively detect whether the distance between the double pull wires is appropriate, whether the pull wire is located in the middle of the U-shaped pull head, etc. Therefore, the market urgently needs a device specially designed for double pull wire detection to comprehensively solve the above-mentioned quality problems. Summary of the invention
[0004] In view of the above-mentioned technical problems existing in the prior art, the present invention proposes a double-pull wire detection device and method based on vision and photoelectric composite technology, which has a reasonable design, overcomes the shortcomings of the prior art, and has good effects.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] A double-pull wire detection device based on vision and photoelectric composite technology, including an integrated dedicated controller, an image collector and an encoder;
[0007] An integrated dedicated controller configured for human-machine interactive display, camera light source control, image and optoelectronic data processing, I / O control, and communication with the electrical cabinet; including a display module, a core processing module, an embedded ARM control module, a power module, and an I / O module;
[0008] An image collector is configured to collect wire pulling images and detect splicing joints; it includes a black and white camera, a low distortion lens, an LED strip light source, and a through-beam optical fiber sensor;
[0009] The encoder is configured to determine the working status of the machine and to accurately count and eliminate wire drawing defects;
[0010] When the encoder captures the machine working signal and the machine is not running with empty materials, the integrated dedicated controller controls the light source to flash, the camera to take pictures, and the photoelectric sensor to collect data, and then processes the image data and sends the detection results to the embedded ARM control module. The embedded ARM control module controls the I / O output and communicates with the electrical cabinet; if a defect is detected, the electrical cabinet is controlled to remove it at the corresponding workstation.
[0011] Preferably, the display module uses a liquid crystal color touch screen as a window for interacting with the user to display the human-computer interaction program;
[0012] The core processing module is configured to process the image of the pull wire collected by the black and white camera, calculate and determine whether the pull wire is missing, offset, or in the middle of the U-shaped pull head, and send the calculation result to the embedded ARM control module;
[0013] The embedded ARM control module is configured to control the stroboscopic light source and the black-and-white camera, receive the processing results of the host computer program, control the input and output of the I / O, communicate with the electric cabinet, and send the detection results to the electric cabinet system to achieve online precise rejection;
[0014] The power module is configured to provide power to the display module, the core processing module, and the embedded ARM control module;
[0015] The I / O module is configured to be responsible for external input and output work.
[0016] Preferably, the black and white camera is configured to be able to clearly capture the image of the wire drawing;
[0017] The LED strip light source is configured to focus light on the pull-wire area through a focusing lens so as to clearly distinguish the pull-wire from the transparent paper; the LED strip light source is composed of multiple lamp beads.
[0018] Preferably, the low distortion lens is a 6mm low distortion lens.
[0019] In addition, the present invention also mentions a double-pull wire detection method based on visual and photoelectric composite technology, which adopts the double-pull wire detection device based on visual and photoelectric composite technology as described above, and specifically includes the following steps:
[0020] Step S1: vertically project the collected wire drawing image to obtain one-dimensional curve data;
[0021] Step S2: Find all candidate peak points in the calculation curve;
[0022] Step S3: determining the exact position of the edge of the pull wire and the U-shaped pull head from the candidate crest points;
[0023] Step S4: learning and calculating the center position templateCenter of the double-pull wire of the template;
[0024] Step S5: Calculate the center distance of the real double pull wire and the center distance of the template double pull wire, and calculate the center position deviation of the pull wire and the corresponding U-shaped pull head to determine whether the pull wire is missing, the whole or part is offset, and whether the pull wire is in the middle of the U-shaped pull head;
[0025] Step S6: Use photoelectric technology to detect defects including wire joints and transparent paper splicing.
[0026] Preferably, in step S2, all candidate peak points in the curve are calculated as follows:
[0027]
[0028] Where x is a one-dimensional curve array and x.Length is the length of the array. The curve value of the candidate peak point is greater than the threshold 100 and is a local peak.
[0029] Preferably, in step S3, the calculation formula for determining the exact position pos of the edge of the pull line and the U-shaped pull head from the candidate peak points is as follows:
[0030]
[0031] Among them, list.Length is the length of the candidate peak array.
[0032] Preferably, in step S4, the template double-pull wire center position templateCenter is:
[0033]
[0034] Among them, templatepos[0] stores the left edge position of the first pull wire of the template double pull wire, templatepos[1] stores the right edge position of the first pull wire of the template double pull wire, templatepos[2] stores the left edge position of the second pull wire of the template double pull wire, and templatepos[3] stores the right edge position of the second pull wire of the template double pull wire.
[0035] Preferably, in step S5, during real-time detection, when there is only a pull wire without a U-shaped pull head, the edge position of the pull wire is stored in POS, and the center distance CenterSpace of the double pull wire is calculated to be equal to 6mm to determine whether the pull wire is broken or has a local offset defect; if CenterSpace meets the requirements, then calculate whether the center position of the double pull wire realtimeCenter and the center position of the template double pull wire templateCenter are within the set deviation Offset range to determine the overall offset defect;
[0036]
[0037]
[0038] When there are pull cords and U-shaped sliders, the POS stores the edge positions of the pull cords and U-shaped sliders. The center positions of each pull cord, lineCenter1, lineCenter2, and the positions of each U-shaped slider, paperCenter1, paperCenter2, are calculated to determine whether the pull cord is in the middle of the U-shaped slider.
[0039]
[0040] Beneficial technical effects brought by the present invention:
[0041] The whole set of devices of the present invention adopts the method of vision and photoelectric fusion. Regardless of the type of wire, whether it is transparent wire, gold wire, laser hot silver wire, etc., it can detect a series of quality problems such as the presence of wire, wire joints, transparent paper splicing, overall or partial offset of double wires, whether the wire is in the middle of the U-shaped pull head, etc. It solves the problem that wires cannot be accurately removed due to the lack of phase information, and realizes statistics by package, which is convenient for intelligent data management, provides strong support for production, and has a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is the electrical principle block diagram of the present invention;
[0043] Figure 2 It is a structural schematic diagram of the integrated dedicated controller of the present invention;
[0044] Among them, 1-USB interface; 2-power switch; 3-input and output interface; 4-power interface;
[0045] Figure 3 It is a structural schematic diagram of the image collector of the present invention;
[0046] 5- black and white camera; 6- low distortion lens; 7- LED strip light source; 8- focusing lens; 9- optical fiber head of the through-beam sensor;
[0047] Figure 4 It is the normal double pull line without U-shaped pull head and the corresponding projection curve diagram;
[0048] Figure 5 It is the double pull line and corresponding projection curve of normal U-shaped pull head;
[0049] Figure 6 It is the missing and corresponding projection curve of the tension line;
[0050] Figure 7 The double pull line deviates from the U-shaped pull head and the corresponding projection curve diagram;
[0051] Figure 8 It is the local offset of the double tension wire and the corresponding projection curve. DETAILED DESCRIPTION
[0052] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0053] A double-pull wire detection device based on vision and photoelectric composite technology, the principle is as follows Figure 1 As shown, the detection device is composed of an integrated dedicated controller, an image acquisition system, and an encoder.
[0054] An integrated dedicated controller, the structure of which is as follows Figure 2 As shown in the figure, it consists of a display module, a core processing module, an embedded ARM control module, a power module, and an I / O module. The display module uses an 8.4-inch LCD color touch screen as a window for interacting with the user and displaying the human-computer interaction program. The core processing module processes the wire image collected by the camera, calculates and determines whether the wire is missing, offset, in the middle of the U-shaped pull head, etc., and sends the calculation results to the embedded ARM control module. The embedded ARM control module controls the stroboscopic light source and the black and white camera, accepts the processing results of the host computer program, controls the input and output of the I / O, communicates with the electric cabinet, and sends the detection results to the electric cabinet system to achieve online precise elimination. The power module is responsible for providing power to the display module, the core processing module, and the embedded ARM control module. The I / O module is responsible for external input and output.
[0055] The structure of the image collector is as follows: Figure 3 As shown, it is composed of a black and white camera, a low-distortion lens, an LED strip light source, a focusing lens and a beam-type optical fiber sensor. The present invention adopts an oblique lighting method to highlight the brightness of the edge of the wire so as to identify the edge position of the wire, so it is suitable for various types of wires without distinction. Compared with a color camera, a black and white camera can capture the wire image more clearly, the contrast of the wire edge is more obvious, the sensitivity is higher, and the effect is more significant. The LED strip light source is installed vertically along the wire direction, and the light is focused on the wire area through a focusing lens so as to clearly distinguish the wire from the transparent paper. In addition, the continuous and uninterrupted working characteristics of the wire lead to the need for high-frequency lighting and shooting to ensure comprehensive coverage of the detection. Even if the light source adopts stroboscopic technology, its working intensity is much higher than other workstation detection products, and the decay rate is relatively fast. The LED strip light source is composed of multiple lamp beads. Even if a certain line fails, the entire light source only dims slightly and can continue to provide lighting, which will not cause it to be unusable. Considering that the wire width is only 2.5mm, the present invention adopts a 6mm low-distortion lens.
[0056] The encoder is installed on the moving gear of the machine to convert the mechanical position into the phase angle. The embedded ARM control module introduces the encoding signal, which has three functions. First, it can accurately judge the operating status of the machine and effectively reduce the idle time of the light source camera; second, the defect information can be accurately located on each pack of cigarettes, avoiding the phenomenon of multiple or missed rejections due to the lack of phase information in the past, thereby realizing the accurate rejection of the wire; third, it realizes accurate statistics by pack, avoiding multiple repeated invalid statistics of a pack, which is not conducive to production management and problem troubleshooting.
[0057] A double-pull wire detection method based on vision and photoelectric composite technology uses a double-pull wire detection device based on vision and photoelectric composite technology, which can not only detect the presence of pull wires, pull wire joints, and transparent paper splicing, but also identify whether the double pull wires are offset as a whole or locally, and whether the pull wires are in the middle of the U-shaped pull head. It is characterized by comprising the following implementation steps:
[0058] S1. Project the collected wireline image vertically to obtain a one-dimensional curve, such as Figure 4 As shown. It can be seen that there are four peaks in the curve, which are the four edges of the two pull lines, and the rest is very flat. When the U-shaped pull head of each pack of cigarettes is illuminated, it can be seen that the pull line is in the middle of the U-shaped pull head, so two small peaks will be formed on both sides of each pull line, such as Figure 5 shown.
[0059] S2. Find all candidate peak points in the calculation curve. The calculation method is as follows:
[0060]
[0061] Where x is a one-dimensional curve array and x.Length is the length of the array. The curve value of the candidate peak point must be greater than the threshold 100 and be a local peak.
[0062] S3. The width of the pull line corresponds to 52 pixels. The distance between the edge of the U-shaped pull head and the edge of the pull line is about 30 to 45 pixels. The edge of the pull line and the U-shaped pull head must be the maximum value in their local area [-25, 25]. Determine their positions from the candidate peak points. The calculation formula is as follows:
[0063]
[0064] Where list.Length is the length of the candidate peak array.
[0065] S4. Learn the standard template double pull line, and calculate the template pull line position templatepos according to the above formula. Then the template double pull line center position templateCenter is:
[0066]
[0067] Among them, templatepos[0] stores the left edge position of the first pull wire of the template double pull wire, templatepos[1] stores the right edge position of the first pull wire of the template double pull wire, templatepos[2] stores the left edge position of the second pull wire of the template double pull wire, and templatepos[3] stores the right edge position of the second pull wire of the template double pull wire.
[0068] S5. During real-time detection, when there is only a pull wire without a U-shaped pull head, the edge position of the pull wire is stored in the POS. The center distance CenterSpace of the double pull wire is calculated to see if it is equal to 6mm to determine whether there are defects such as pull wire breakage and local offset. If CenterSpace meets the requirements, calculate whether the center position of the double pull wire realtimeCenter and the center position of the template double pull wire templateCenter are within the set deviation Offset range to determine defects such as overall offset.
[0069]
[0070]
[0071] When there are pull cords and U-shaped sliders, the edge positions of the pull cords and U-shaped sliders are stored in POS. The center position of each pull cord, lineCenter1, lineCenter2, and the position of each U-shaped slider, paperCenter1, paperCenter2, are calculated to determine whether the pull cord is in the middle of the U-shaped slider.
[0072]
[0073] Figure 6 The pull wire 2 is missing, only two wave peaks are found, and the calculated center distance between the template pull wire 2 and the center distance between the U-shaped pull head 2 are both within the set deviation range; Figure 7 For the overall deviation of the wire, the center distance between the calculated template wire 1 and wire 2, as well as the center distance between the U-shaped pull head 1 and U-shaped pull head 2 are all out of the set deviation range; Figure 8 For the curling of wire 2, the calculated center distance with the template wire 2 is not within the set deviation range. Figure 6 to Figure 8 The test results were all unqualified.
[0074] S6. There are two ways to splice transparent paper: one is to stick it with tape, and the other is to use a soldering iron. When the soldering iron method is chosen, it is equivalent to using two layers of transparent paper. For visual cameras, the difference between one layer and two layers of transparent paper is not obvious. Therefore, the optical fiber head of the through-beam sensor can be installed above the lens and on the reflective plate, so that the detection of the wire joint can be realized while the detection of the transparent paper splicing can be realized.
[0075] The use of visual technology can accurately detect quality problems such as missing wires, overall or partial offset, and whether they are located in the middle of the U-shaped pull head. The use of photoelectric technology can detect quality defects such as wire joints and transparent paper splicing, overcoming the problem of inaccurate visual recognition during soldering iron hot connection. The use of these two technologies at the same time can effectively detect all quality defects of the current double pull wires and achieve accurate online removal.
[0076] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. A double-pull wire detection device based on vision and photoelectric composite technology, characterized in that: Includes an all-in-one dedicated controller, image collector and encoder; An integrated dedicated controller configured for human-machine interactive display, camera light source control, image and optoelectronic data processing, I / O control, and communication with the electrical cabinet; Including display module, core processing module, embedded ARM control module, power module and I / O module; An image collector is configured to collect wire pulling images and detect splicing joints; it includes a black and white camera, a low distortion lens, an LED strip light source, and a through-beam optical fiber sensor; The encoder is configured to determine the working status of the machine and to accurately count and eliminate wire drawing defects; When the encoder captures the machine working signal and the machine is not running with empty materials, the integrated dedicated controller controls the light source to flash, the camera to take pictures, and the photoelectric sensor to collect data, and then processes the image data and sends the detection results to the embedded ARM control module. The embedded ARM control module controls the I / O output and communicates with the electrical cabinet; if a defect is detected, the electrical cabinet is controlled to remove it at the corresponding workstation.
2. The double-pull wire detection device based on vision and photoelectric composite technology according to claim 1 is characterized in that: The display module uses a liquid crystal color touch screen as a window for interaction with users and displays the human-computer interaction program; The core processing module is configured to process the image of the pull wire collected by the black and white camera, calculate and determine whether the pull wire is missing, offset, or in the middle of the U-shaped pull head, and send the calculation result to the embedded ARM control module; The embedded ARM control module is configured to control the stroboscopic light source and the black-and-white camera, receive the processing results of the host computer program, control the input and output of the I / O, communicate with the electric cabinet, and send the detection results to the electric cabinet system to achieve online precise rejection; The power module is configured to provide power to the display module, the core processing module, and the embedded ARM control module; The I / O module is configured to be responsible for external input and output work.
3. The double-pull wire detection device based on vision and photoelectric composite technology according to claim 1 is characterized in that: A black and white camera is configured to clearly capture a wire drawing image; The LED strip light source is configured to focus light on the pull-wire area through a focusing lens so as to clearly distinguish the pull-wire from the transparent paper; the LED strip light source is composed of multiple lamp beads.
4. The double-pull wire detection device based on vision and photoelectric composite technology according to claim 1 is characterized in that: The low distortion lens is a 6mm low distortion lens.
5. A double-pull wire detection method based on visual and photoelectric composite technology, characterized in that: The double-pull wire detection device based on vision and photoelectric composite technology as claimed in claim 1 specifically comprises the following steps: Step S1: vertically project the collected wire drawing image to obtain one-dimensional curve data; Step S2: Find all candidate peak points in the calculation curve; Step S3: determining the exact position of the edge of the pull wire and the U-shaped pull head from the candidate crest points; Step S4: learning and calculating the center position templateCenter of the double-pull wire of the template; Step S5: Calculate the center distance of the real double pull wire and the center distance of the template double pull wire, and calculate the center position deviation of the pull wire and the corresponding U-shaped pull head to determine whether the pull wire is missing, the whole or part is offset, and whether the pull wire is in the middle of the U-shaped pull head; Step S6: Use photoelectric technology to detect defects including wire joints and transparent paper splicing.
6. The double-pull wire detection method based on vision and photoelectric composite technology according to claim 5 is characterized in that: In step S2, all candidate peak points in the curve are calculated as follows: Where x is a one-dimensional curve array and x.Length is the length of the array. The curve value of the candidate peak point is greater than the threshold 100 and is a local peak.
7. The double-pull wire detection method based on vision and photoelectric composite technology according to claim 5 is characterized in that: In step S3, the calculation formula for determining the exact position pos of the edge of the pull line and the U-shaped pull head from the candidate peak points is as follows: j∈(start, end), k∈(0,list.Length), where list.Length is the length of the candidate peak array.
8. The double-pull wire detection method based on vision and photoelectric composite technology according to claim 5 is characterized in that: In step S4, the center position of the double-pull wire of the template templateCenter is: Among them, templatepos[0] stores the left edge position of the first pull wire of the template double pull wire, templatepos[1] stores the right edge position of the first pull wire of the template double pull wire, templatepos[2] stores the left edge position of the second pull wire of the template double pull wire, and templatepos[3] stores the right edge position of the second pull wire of the template double pull wire.
9. The double-pull wire detection method based on vision and photoelectric composite technology according to claim 5 is characterized in that: In step S5, during real-time detection, when there is only a pull wire without a U-shaped pull head, the edge position of the pull wire is stored in POS, and the center distance CenterSpace of the double pull wire is calculated to be equal to 6mm to determine whether the pull wire is broken or has a local offset defect; if CenterSpace meets the requirements, then calculate whether the center position of the double pull wire realtimeCenter and the center position of the template double pull wire templateCenter are within the set deviation Offset range to determine the overall offset defect; When there are pull cords and U-shaped sliders, the POS stores the edge positions of the pull cords and U-shaped sliders. The center positions of each pull cord, lineCenter1, lineCenter2, and the positions of each U-shaped slider, paperCenter1, paperCenter2, are calculated to determine whether the pull cord is in the middle of the U-shaped slider.
Citation Information
Patent Citations
Defect detection device for drawn wire on transparent packaging material
CN104354935A
Defect detecting method for bracing wire on transparent packing material
CN104512579A
Intelligent digital double stay wire detecting system and method for cigarette package
CN109946229A
Cigarette carton appearance detection device based on artificial intelligence
CN111906049A
Tobacco bale draws line detecting device
CN208149791U
