Visual-based granular foreign matter rejection method for effervescent tablet cover drying process

By applying micro-vibration and directional airflow to the effervescent tablet cap, combined with a low-angle light source and linear polarization technology, the detection rate and reliability issues in transparent particle detection were solved, achieving efficient particle rejection.

CN123168093APending Publication Date: 2026-11-27SHANGHAI BLOPAK NEW MATERIAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611694947.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies are insufficient to effectively detect and remove transparent silica gel desiccant particles from effervescent tablet caps, resulting in low detection rates and reduced reliability. Furthermore, the detection results are easily affected by the reflectivity of the cap structure.

Method used

By applying micro-vibration and directional pulsed airflow to the effervescent tablet cap, the transparent particles are loosened and fall onto the receiving liner. Images are acquired using a low-angle grazing light source and a linear polarizer, and the position and number of particles are determined using multi-frame grazing images, thus improving the reliability of detection.

Benefits of technology

It improves the detection rate and reliability of transparent desiccant particles, ensures the accuracy of detection results, and directly translates them into physical rejection actions, avoiding manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123168093A_ABST
    Figure CN123168093A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose a visual-based transparent foreign particle rejection method for effervescent tablet cover drying process. A specific embodiment of the method comprises: applying micro-vibration to the effervescent tablet cover and blowing directional pulse airflow to make the transparent particles fall onto the lower receiving liner; arranging low-angle grazing light sources and linear polarization components symmetrically on both sides above the liner, collecting particle falling images and determining the number of particles; driving the cover to rotate step by step, sweeping the sidewall after each step, and collecting multiple frames of sweeping images; determining the background image, determining the residual image, and extracting the connected domain; if the angle position of the transparent particle corresponding to the connected domain relative to the cover remains consistent in multiple frames, it is determined as a residual particle; if the number of particles is greater than zero or there is a residual particle, output a defective product judgment signal; in response to the defective product signal, driving the rejection nozzle to blow the cover into the waste product channel. The embodiment can improve the detection rate and detection reliability without changing the production line beat.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments disclosed herein relate to the field of computer technology, and specifically to a vision-based method for removing foreign matter and defective products such as transparent desiccant particles during the drying process of effervescent tablet caps. Background Technology

[0002] Effervescent tablet caps are typically white polypropylene injection molded parts. The top features a cage-like perforated structure formed by intersecting ribs, and the sidewalls of the cap have evenly distributed oblong vent holes. The inner wall of the cap has threads that mate with the bottle opening. To ensure the stability of the effervescent tablets during their shelf life, the cap usually contains transparent silica gel desiccant granules with a particle size between 0.5mm and 3mm. After drying and before filling and sealing, the caps need to be inspected online to remove any desiccant granules trapped in the gaps. Currently, online inspection of effervescent tablet caps typically involves using a multi-camera visual inspection machine at a fixed position to image the cap. A top-view camera and a bottom-view camera, along with a ring light, capture images of the cap's surface and inner surface, while a side-view camera captures images of the sidewalls and threads. The image processing unit compares the acquired images with a template image to identify surface defects such as scratches, missing glue, and discoloration. Caps deemed defective are blown into the reject channel by a rejection nozzle. For example, the relevant production line uses a six-camera inspection machine to complete multi-angle imaging of the cover, inner surface and side surface within a single piece cycle using bright field illumination.

[0003] However, when using the above method to detect transparent desiccant particles in crevices, the following technical problems often arise: First, the transparent silicone particles are nearly transparent to visible light, and their reflectivity is similar to that of the white polypropylene cover. Under bright-field illumination, the grayscale difference between the particles and the background is small. Furthermore, the intersecting ribs on the top of the cover, the walls of the elongated holes on the side walls, and the side walls of the internal threaded teeth create lateral obstruction at three clamping locations. Under a fixed camera position, the imaging optical path cannot reach the particle's location, causing the particles to blend into the cover structure in the image, resulting in a low detection rate and reduced detection reliability.

[0004] Second, in order to highlight the difference between particles and background, multiple frames of images are usually captured from the same cover at different angles. The background between frames is obtained by statistically analyzing the pixel values ​​at the same position in each frame. The strong reflection generated by the cover's own structure will also be included in the background. Particles falling into the gaps will be canceled out by the background, and particles that remain in the gaps and are not released are not easily distinguished.

[0005] Third, the two test results are both driven by the same vibration and air blowing action. When the vibration mechanism or air nozzle is blocked or the air pressure is insufficient, both test results will be empty at the same time, making it easy to judge the unqualified as qualified. Summary of the Invention

[0006] The summary portion of this disclosure is intended to provide a brief overview of the concepts, which will be described in detail in the detailed description portion. This summary portion is not intended to identify key or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.

[0007] Some embodiments of this disclosure provide a vision-based method and apparatus for removing foreign matter and defective products such as transparent desiccant particles during the effervescent tablet cap drying process, in order to solve one or more of the technical problems mentioned in the background section above.

[0008] In a first aspect, some embodiments of this disclosure provide a vision-based method for removing defective transparent desiccant particles during the drying process of effervescent tablet caps. The method includes: applying micro-vibration to the effervescent tablet cap to loosen transparent particles trapped in the circumferential elongated hole, the top cross-rib hollow cavity, and the threaded gaps; blowing a directional pulsed airflow onto the effervescent tablet cap to cause the loosened transparent particles to fall onto a receiving liner plate below the cap, wherein the effervescent tablet cap is fixed to the detection seat with its opening facing downwards; symmetrically arranging low-angle grazing light sources on both sides above the receiving liner plate, and respectively setting linear polarizers on the emission side of the low-angle grazing light sources and the receiving surface camera side; acquiring images of the falling particles from the receiving liner plate using the receiving surface camera, and determining the number of particles in the falling particle images; and driving the effervescent tablet... The lid rotates in steps around its own axis. In response to each rotation step, a sweep line light source sweeps the side wall of the lid, and a side-view camera captures multiple frames of swept images, wherein the number of frames in the multiple swept images is the same as the number of rotation steps. Based on the multiple frames of swept images, a background image is determined, and the difference between each frame of swept image and the background image is calculated to obtain a residual map. Connected components are extracted from the residual map to obtain each connected component. In response to the fact that the angular position of the transparent particle corresponding to the connected component relative to the effervescent tablet lid remains consistent in the multiple frames of swept images, the corresponding transparent particle is determined to be a residual particle. In response to the fact that the number of particles is greater than zero or that residual particles exist, a defective product determination signal is output. In response to receiving the defective product determination signal, a rejection nozzle is driven to blow the effervescent tablet lid into the waste channel.

[0009] Secondly, some embodiments of this disclosure provide a vision-based device for removing foreign particles and defective products of transparent desiccant in the drying process of effervescent tablet caps, comprising: a vibration release and pulse air blowing unit configured to apply micro-vibration to the effervescent tablet cap, causing transparent particles trapped in the circumferential elongated hole, the top cross-rib hollow cavity, and the thread gap to loosen them, and blowing a directional pulse airflow onto the effervescent tablet cap, causing the loosened transparent particles to fall onto a receiving liner plate below the cap, wherein the effervescent tablet cap is fixed to the detection seat with its opening facing downwards; a receiving surface dark-field imaging unit configured to symmetrically arrange low-angle grazing light sources on both sides above the receiving liner plate, and to respectively provide linear polarizers on the emission side of the low-angle grazing light sources and the receiving surface camera side, and to acquire images of the falling particles on the receiving liner plate by the receiving surface camera, and to determine the number of particles in the falling particle images; and a cap rotation sweeping unit configured to drive the effervescent tablet cap. The device rotates in steps around its own axis. In response to each rotation step, a sweeping line light source sweeps the side wall of the cover, and a side-view camera captures multiple frames of swept images, wherein the number of frames in the multiple swept images is the same as the number of rotation steps. A connected component determination unit is configured to determine a background image based on the multiple frames of swept images, and to subtract each frame of swept images from the background image to obtain a residual map, and to extract connected components from the residual map to obtain each connected component. A residue determination unit is configured to determine that the corresponding transparent particles are residual particles in response to the angular position of the transparent particles corresponding to the connected components relative to the effervescent tablet cover remaining consistent in the multiple frames of swept images. A signal output unit is configured to output a defective product judgment signal in response to the number of particles being greater than zero or the presence of residual particles. An air blowing unit is configured to drive a rejection nozzle to blow the effervescent tablet cover into the waste channel in response to receiving the defective product judgment signal.

[0010] The above-described embodiments of this disclosure have the following beneficial effects: A vision-based method for removing transparent desiccant particles and defective products during the effervescent tablet cap drying process, as described in some embodiments of this disclosure, can detach transparent particles trapped in the cap's gaps. The difference between the particles and the background is no longer affected by the reflectivity of the cap structure, thus improving the detection rate and reliability. Specifically, the reason for insufficient reliability in detecting transparent particles in the gaps is that the reflectivity of the transparent particles is similar to that of the white cap, and the particles are respectively blocked by the cross ribs on the top of the cap, the wall of the elongated hole on the side wall, and the side wall of the threaded teeth on the inner wall. Under a fixed camera position, the imaging optical path cannot simultaneously cover all three locations. Based on this, some embodiments of the present disclosure disclose a visual method for removing defective transparent desiccant particles from the effervescent tablet cap drying process. First, micro-vibration is applied to the effervescent tablet cap to loosen the transparent particles trapped in the circumferential elongated hole, the top cross-rib hollow cavity, and the threaded gap. Then, a directional pulsed airflow is blown onto the effervescent tablet cap, causing the loosened transparent particles to fall onto a receiving liner plate below the cap. The effervescent tablet cap is fixed to the detection seat with its opening facing downwards. Thus, the opening of the cap cavity faces downwards, and the particles detached from the gaps are no longer obstructed by the bottom wall of the cap and have a path to fall under their own weight. Micro-vibration causes relative displacement between the particles and the wall of the gap, disrupting their original tightness. The directional pulsed airflow carries the loosened particles from the three locations blocked by the cross-ribs, the wall of the elongated hole, and the side wall of the threaded teeth to the receiving liner plate below the cap. The particles thus leave the structural range of the cap itself and move to a plane separated from the cap and unobstructed above. Then, low-angle grazing light sources are symmetrically arranged on both sides above the aforementioned receiving liner. Linear polarizers are respectively installed on the emission side of the low-angle grazing light sources and the receiving surface camera side. The receiving surface camera captures the image of falling particles from the receiving liner, and the number of particles in the image is determined. Thus, the grazing light is incident at an angle close to the surface of the receiving liner, and the surface reflects the light outside the camera's field of view, appearing dark. Transparent particles scatter the grazing light towards the camera, forming bright spots. The grayscale difference between the particles and the background in the image is widened. The linear polarizers allow the partial light transmission caused by the injection molding flow orientation of the cover and the polarization state change caused by scattering from spherical particles to present different responses in the image. Therefore, the particles falling on the receiving surface are counted separately from the cover debris; the particle count represents the particles on the receiving surface rather than the reflection from the cover surface. Next, the effervescent tablet cap is driven to rotate step by step around its own axis. In response to each rotation step, a sweep line light source sweeps the side wall of the cap, and a side-view camera captures multiple frames of swept images, wherein the number of frames in the multiple swept images is the same as the number of rotation steps. Thus, each circumferential gap of the cap sequentially enters the illumination range of the sweep line light source in one scan, and particles that are not released and remain in the gaps leave a response in the side-view image.The number of frames is the same as the number of rotation steps, ensuring that the imaging result of each gap at each corner is retained in one frame, allowing for comparison of the same gap's appearance under different cap orientations. Furthermore, based on the aforementioned multi-frame scanned images, a background image is determined, and the difference between each scanned image and the background image is calculated to obtain a residual map. Connected components are then extracted from the residual map to obtain individual connected components. Thus, the cap structure common to all frames and the reflections appearing at each corner are absorbed by the background image. Particles appearing at one or more steps leave connected components on the residual map. Due to differences in grayscale, the differences between the particles and the reflections of the cap structure become extractable regions. Subsequently, in response to the consistent angular position of the transparent particles corresponding to the aforementioned connected components relative to the effervescent tablet cap in the aforementioned multi-frame scanned images, the corresponding transparent particles are identified as residual particles. Therefore, the particles rotating with the lid maintain a constant angular position relative to the lid between adjacent frames, while the reflective structure of the lid, which changes with the viewing angle, does not possess this property. The two are distinguished by this geometric quantity of angular position, allowing particles embedded in the gaps and not carried out by vibration or airflow to be identified. Secondly, in response to the aforementioned particle count being greater than zero or the presence of residual particles, a defective product determination signal is output. Thus, a particle count greater than zero indicates released particles. Residual particles indicate unreleased particles. By merging these two, any detection path marks the lid as defective; a missed detection in one path is compensated by another, improving the detection rate and reliability. Finally, in response to receiving the defective product determination signal, the rejection nozzle is driven to blow the effervescent tablet lid into the waste channel. Thus, the lid determined to be defective physically leaves the production line. The particle destination is determined by the image counting and scan verification results; there is no manual intervention between the detection result and the rejection action. In summary, this implementation method can directly convert the detection results into physical rejection actions of the cover, enabling the detection and rejection of transparent particles in the gaps, thereby improving the detection rate and reliability without changing the production line cycle time. Attached Figure Description

[0011] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale.

[0012] Figure 1 This is a flowchart of some embodiments of a vision-based method for removing foreign matter and defective products from transparent desiccant particles during the effervescent tablet cap drying process according to the present disclosure; Figure 2 This is a schematic diagram of the structure of some embodiments of a vision-based transparent desiccant particle foreign object defective product rejection device for an effervescent tablet cap drying process according to the present disclosure. Detailed Implementation

[0013] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0014] It should also be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings. Unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other.

[0015] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0016] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0017] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0018] This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.

[0019] refer to Figure 1 The flowchart 100 illustrates some embodiments of a vision-based method for removing foreign matter (particulate matter) from transparent desiccant particles during the effervescent tablet cap drying process according to this disclosure. This vision-based method for removing foreign matter (particulate matter) from transparent desiccant particles during the effervescent tablet cap drying process includes the following steps: Step 101: Apply micro-vibration to the effervescent tablet cap to loosen the transparent particles trapped in the circumferential elongated hole, the top cross-rib hollow cavity, and the thread gap, and blow directional pulsed airflow to the effervescent tablet cap to make the loosened transparent particles fall onto the receiving liner plate below the cap.

[0020] In some embodiments, the execution entity (e.g., an electronic device, a vision processing unit at the inspection station, and a programmable logic controller) of the above-described vision-based method for removing foreign matter and defective products from transparent desiccant particles during the effervescent tablet cap drying process can be hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is software, it can be installed in the hardware devices listed above. It can be implemented as multiple software programs or software modules to provide distributed services, or as a single software program or software module. No specific limitations are imposed here.

[0021] In some embodiments, the aforementioned execution body can apply micro-vibration to the effervescent tablet cap to loosen the transparent particles trapped in the circumferential elongated hole, the top cross-rib hollow cavity, and the thread gap, and blow directional pulsed airflow to the effervescent tablet cap to make the loosened transparent particles fall onto the receiving liner plate below the cap, wherein the effervescent tablet cap is fixed to the detection seat with the opening facing downward.

[0022] In some alternative implementations of some embodiments, the effervescent tablet cap is a white polypropylene injection molded part, the transparent granules are transparent silica gel desiccant granules, and the receiving liner is a matte black anodized aluminum plate.

[0023] The aforementioned top cross-rib hollow cavity is formed by cross-ribs arranged on the top of the cover.

[0024] The aforementioned circumferential oblong holes are evenly distributed along the circumferential sidewall of the cover, with a hole length of 3mm to 5mm.

[0025] The aforementioned thread clearance is located between the tips of two adjacent thread teeth, with a depth of 0.5 mm to 1.0 mm.

[0026] The surface reflectivity of the aforementioned receiving lining plate is less than 5%, and the flatness is no greater than 0.1 mm.

[0027] The aforementioned receiving liner is connected to the testing station via a quick-connect structure, covering the orthographic projection of the effervescent tablet cap in the horizontal direction and extending outward by at least 20mm. The aforementioned testing station is located between the drying discharge and filling processes.

[0028] As an example, the first step is to fix the effervescent tablet cap to be tested onto the testing seat with the opening facing downwards. The effervescent tablet cap can be a white polypropylene injection molded part with a cage-like hollow structure formed by intersecting ribs on the top of the cap. The cavity inside this cage-like hollow structure is the top intersecting rib hollow cavity. The sidewall of the cap has evenly distributed oblong vent holes along its circumference; these vent holes are circumferential oblong holes, with a length of 3mm to 5mm. The inner wall of the cap has threads that mate with the bottle opening; the groove between two adjacent thread crests is the thread gap, with a depth of 0.5mm to 1.0mm. The testing seat can be a positioning seat at the testing station to support the cap, with grippers on top. The grippers are lined with soft polyetheretherketone or silicone rubber to prevent indentations on the cap. The downward-facing opening can mean the opening of the cap cavity faces downwards and the top of the cap faces upwards. In this case, because the opening faces downwards, particles falling onto the threads on the inner wall of the cavity tend to detach downwards under their own weight. The aforementioned testing station is located between the drying discharge and filling processes, meaning that the caps pass through this station after being discharged from the drying hopper and before entering the filling and sealing process.

[0029] In practice, firstly, the gripper picks up the part from the discharge guide rail and places the cover onto the detection seat. The positioning sensor on the detection seat then outputs a positioning signal. Secondly, it checks whether the cross ribs on the top of the cover align with the positioning notch on the detection seat. Once aligned, the cover is pressed firmly onto the detection seat and held there until the airflow application ends.

[0030] For example, in a scenario where the cover has an outer diameter of 38mm and the cross ribs on the top of the cover have a span of 22mm, the positioning notch of the detection seat is opened at 22.2mm. After the cover is seated, the cross ribs fall into the notch, and the circumferential position of the cover is defined. Then, the gripper presses the cover with a clamping pressure of 0.15MPa.

[0031] The second step involves applying micro-vibration to the effervescent tablet cap to loosen the transparent particles trapped in the circumferential elongated hole, the cross-ribbed hollow cavity at the top, and the threaded gaps. These transparent particles can be transparent silica gel desiccant particles attached to the cap, with a particle size between 0.5mm and 3mm, an approximately spherical shape, and an isotropic amorphous silica material. This micro-vibration can be mechanical vibration output from an electromagnetic vibration table or piezoelectric vibrator mounted at the bottom of the testing base. The vibration direction is primarily perpendicular to the top of the cap, with a secondary direction parallel to the top. The component parallel to the top of the cap subjects the particles embedded in the circumferential elongated hole to a periodic inertial force along the hole's axis. The vibration is transmitted to the cap via the testing base, creating a periodic relative acceleration between the cap and the particles embedded in the gaps.

[0032] In practice, the aforementioned actuator can start the vibration table after the clamping signal is valid, allowing the vibration table to operate at the set frequency and amplitude for the set duration. Rubber vibration isolation pads are installed between the vibration table and the frame to prevent vibration from being transmitted to the camera and light source via the frame.

[0033] For example, in a scenario where one to three silica gel particles with a diameter of 1.5 mm are sandwiched inside the cover, the vibration table operates at a frequency of 350 Hz and a peak-to-peak amplitude of 0.5 mm for 300 ms. The static friction between the particles and the wall of the elongated hole is overcome by the periodic inertial force, and the particles move along the hole wall toward the hole opening and come out of the hole.

[0034] The third step involves blowing a directional pulsed airflow onto the effervescent tablet cap, causing the loosened transparent particles to fall onto a receiving liner plate beneath the cap. This directional pulsed airflow can be a compressed air pulse controlled by a high-frequency solenoid valve and ejected through a stainless steel throttling nozzle. The ejection direction is set according to the three clamping positions on the cap, and the ejection time is connected to the application period of micro-vibration. The first airflow causes the particles to detach from the cap at an angle downwards, while the second airflow only causes particles embedded in the threaded gaps to detach from the thread sidewalls and fall back under their own weight. The receiving liner plate can be a flat plate located directly below the cap, with its surface facing the cap. After the airflow ends, it is moved by a slide table into the field of view of the receiving surface camera and the low-angle grazing light source. The translational acceleration of the slide table is no greater than 0.3g, ensuring that the particles on the plate do not roll during movement.

[0035] In practice, the solenoid valve can be activated at a set time after the vibration table starts, allowing the airflow to reach the particle's location during the period when the particles have been loosened but have not yet fallen back to the bottom of the gap. After the airflow is ejected, the particles leave the cover and move along the combined direction of the first airflow direction and the direction of gravity, eventually landing on the surface of the receiving liner. It should be noted that the jet direction of each air nozzle avoids the optical axis of the receiving surface camera lens and the light-emitting surface of the low-angle grazing light source. A transparent protective glass and an air curtain are installed in front of the light-emitting surfaces of the lens and the light source. The air curtain blows towards the glass surface in each cycle, preventing particles from adhering to the surface of the optical components.

[0036] For example, in a scenario where the vibration has lasted for 250ms and the particle has detached about 0.3mm from the orifice, the solenoid valve opens for 100ms with an air pressure of 0.35MPa. The airflow from the nozzle pushes the particle away from the orifice, and the particle falls about 40mm within 0.12s and lands on the receiving liner. The distance between the receiving liner and the orthogonal projection of the cover is set to 45mm.

[0037] In some optional implementations of certain embodiments, the aforementioned execution entity may apply micro-vibration to the effervescent tablet cap and blow directional pulsed airflow onto the effervescent tablet cap, including: The aforementioned micro-vibrations have frequencies ranging from 200Hz to 500Hz, amplitudes ranging from 0.3mm to 0.8mm, and durations ranging from 200ms to 400ms. The frequencies and amplitudes were determined through frequency sweep tests using samples taken on-site, selecting frequency bands with high particle shedding rates, no cap displacement, and no abnormal noise from impact with the testing seat. It should be noted that all amplitudes mentioned in this disclosure refer to peak-to-peak amplitude.

[0038] In practice, pre-prepared parameter formulas can be used according to product batches, and the frequency, amplitude, and duration can be written into the vibration table driver. For example, in the batch with the highest proportion of 1.5mm particles, the frequency is set to 350Hz, the amplitude to 0.5mm, and the duration to 300ms. In the batch with an increased proportion of 0.8mm particles, the frequency is increased to 450Hz and the amplitude is decreased to 0.35mm to avoid excessive vibration of fine particles.

[0039] The initiation time of the aforementioned micro-vibration occurs after the effervescent tablet cap is fixed to the aforementioned detection seat. This initiation time can be determined by both the clamping signal and the positioning signal; the vibration circuit is not active if the clamping signal is not received.

[0040] In practice, the start command to the vibration table can be sent only after the clamping pressure of the gripper reaches the set value and the positioning sensor of the detection seat outputs a high level.

[0041] For example, in a scenario where the clamping pressure is 0.15MPa and the positioning signal is established 80ms after loading, the vibration table starts 10ms after the positioning signal is established, and the cover is already in a compressed state when the vibration begins.

[0042] The aforementioned directional pulsed airflow includes a first airflow and a second airflow. The first airflow is blown obliquely downwards along the circumference of the cover, and the second airflow is blown upwards from the inside of the cover cavity opening. The first airflow can be ejected from multiple nozzles arranged circumferentially around the cover, with the injection axis of each nozzle forming an acute angle with the cover axis and pointing towards the cross-rib hollow cavity on the top of the cover and the elongated oval hole on the side wall of the cover. The second airflow can be ejected upwards from the cavity opening into the cover from a nozzle located below the cover, with its injection direction towards the gaps in the inner wall threads. Its function is to dislodge particles embedded in the thread gaps from the sidewalls of the threads, allowing them to fall back under their own weight.

[0043] In practice, the installation angle and ejection sequence of the air nozzles can be set according to the three clamping positions on the cover, so that the first airflow covers the top cross rib hollow cavity and the circumferential elongated hole, and the second airflow covers the thread tooth gap.

[0044] For example, in a scenario where the cover has 12 oblong holes evenly distributed around its circumference and 6 intersecting ribs on its top, 8 first air nozzles are arranged circumferentially. The included angle between the axes of two adjacent air nozzles is 45°, and the axis of each air nozzle forms a 35° angle with the axis of the cover and points to the height of the oblong holes. The spray angle of each air nozzle is not less than 50°, so that the spray cones of two adjacent air nozzles overlap each other on the circumference of the oblong holes, and any one of the 12 oblong holes is within the spray range of at least one air nozzle.

[0045] The pressure of the first airflow is 0.2 MPa to 0.5 MPa, and it forms an angle of 30° to 45° with the axis of the effervescent tablet cap. This angle can be the angle between the nozzle injection axis and the cap axis. The smaller the angle, the closer the airflow is to the side wall of the cap, and the stronger the blowing effect on the particles inside the orifice.

[0046] In practice, the pressure of the first airflow can be set according to the pressure reducing valve of the air circuit, and the included angle can be fixed according to the mounting hole position of the air nozzle bracket on the detection seat. For example, in the scenario where the length of the oblong hole is 4mm and the particle size is 1.5mm, the air pressure is 0.35MPa and the included angle is 35°. The action time of a single pulse on the particles in the hole is about 100ms. The nozzle diameter of each air nozzle is 0.8mm, and the thrust of a single air nozzle under the above air pressure is about 0.18N. The 8 air nozzles are equally distributed circumferentially, and their radial reaction forces cancel each other out. The axial component is directed towards the detection seat, and the resultant force pressing on the cover is about 1.4N, which is less than the frictional resistance of 2.7N between the gripping surfaces of the claws. The displacement of the cover under the action of the airflow does not exceed 0.1mm.

[0047] The pressure of the second airflow is 0.2 MPa to 0.5 MPa, and it is applied at the tail end of the aforementioned micro-vibration. This tail end can be the period corresponding to the last 20% to 30% of the micro-vibration duration. It should be noted that at this time, the particles have been loosened but have not yet fallen back to the bottom of the gap.

[0048] In practice, the solenoid valve for the second airflow can be opened after a set delay following the start of the vibration table, so that the ejection period of the second airflow overlaps with the tail end of the micro-vibration. For example, in a scenario where the micro-vibration lasts for 300ms, the second airflow can be opened at 220ms after the vibration starts and last for 80ms, with its ejection period overlapping with the last 80ms of the micro-vibration.

[0049] The pulse width of both the first and second airflows is 80ms to 150ms, applied in 2 to 3 short pulses superimposed together. The pulse width can be the duration of a single opening of the solenoid valve. Superimposing the pulses multiple times within a single release cycle, with a brief interval between adjacent openings, allows the airflow to impact the particles multiple times rather than in a single continuous purge. The 2 to 3 pulses refer to the total number of times the first and second airflows are applied within the same release cycle.

[0050] In practice, the opening and interval timing can be set according to the response time of the solenoid valve and the volume of the air path.

[0051] For example, in a scenario where the solenoid valve response time is 8ms, the first airflow is opened twice with a pulse width of 100ms and an interval of 40ms between the two times, and the second airflow is opened once with a pulse width of 80ms. The three pulses are completed within a release cycle of 300ms.

[0052] Step 102: Low-angle grazing light sources are symmetrically arranged on both sides above the receiving liner, and linear polarizers are set on the emission side of the low-angle grazing light sources and the receiving surface camera side, respectively. The receiving surface camera collects the image of the falling particles on the receiving liner and determines the number of particles in the image.

[0053] In some embodiments, the execution entity may symmetrically arrange low-angle grazing light sources on both sides above the receiving liner, and provide linear polarizers on the emission side of the low-angle grazing light sources and the receiving surface camera side, respectively, and acquire the falling particle image of the receiving liner by the receiving surface camera, and determine the number of particles in the falling particle image.

[0054] As an example, the first step involves symmetrically arranging low-angle grazing light sources on both sides above the receiving liner. These low-angle grazing light sources can be light-emitting elements positioned above the receiving liner, with the emitted light incident at a small angle to the surface of the liner. The incident angle of the emitted light on the liner surface is close to grazing, causing the liner surface to reflect the light away from the receiving surface camera, while the particles falling on the liner surface scatter the light towards the receiving surface camera. The symmetrical arrangement on both sides can be achieved by placing two sets of light sources on either side of the centerline of the receiving liner, with their emission directions opposite, so that the falling particles are illuminated regardless of which side they are veering towards.

[0055] In practice, a set of light-emitting elements can be fixed on each side of the receiving liner, and the spacing between the two sets can be determined according to the orthographic projection size of the cover.

[0056] For example, in a scenario where the outer diameter of the cover is 38mm, the distance between the two sets of light sources is 85mm, the size of the receiving liner is 90mm×90mm, and it extends 26mm on each side based on the orthographic projection of the cover. The maximum displacement of the falling particles under airflow disturbance does not exceed 20mm, and all falling particles are within the surface of the receiving liner.

[0057] The second step involves placing linear polarizers on both the emission side of the low-angle grazing light source and the camera side of the receiving surface. These linear polarizers can be optical elements that ensure the light passing through them retains only a single vibration direction component. One element on the emission side of the light source is a polarizer, and the other on the camera incident side is an analyzer. The transmission directions of the two elements are perpendicular to each other. This perpendicularity means that the vibration direction retained by the polarizer and the vibration direction retained by the analyzer are orthogonal. The light emitted from the light source becomes linearly polarized after passing through the polarizer. When this linearly polarized light illuminates an object on the receiving surface, if the object's scattering does not change the polarization state, it is blocked by the analyzer. If the object's scattering changes the polarization state, some light passes through the analyzer. Since the transparent silicone particles are isotropic, the light entering the particles undergoes multiple refractions and reflections before exiting, and its polarization state is depolarized. Therefore, some light passes through the analyzer, forming bright spots in the image. The debris is made of polypropylene injection molded parts. Its molecules are oriented along the injection flow direction, resulting in weak birefringence. Furthermore, its surface primarily exhibits specular reflection, maintaining its polarization state. Consequently, most of the reflected light is blocked by the analyzer and remains dark in the image. Therefore, by using two receiving-surface cameras, one without an analyzer, the bright spots in the polarization channel can be compared with those in the unpolarized channel to separate the spherical particles from the polypropylene debris.

[0058] In practice, rotatable polarizer holders can be installed on the light source emission side and the front of the camera lens respectively, and the transmission directions of the two plates can be adjusted to be perpendicular to each other according to the scale.

[0059] For example, in a scenario where the polarizer on the light source side is 0° and the polarizer on the camera side is 90°, the two polarizers are orthogonal. The linearly polarized light reflected from the substrate is blocked by the analyzer, and the substrate appears dark in the image.

[0060] The third step involves acquiring images of the falling particles from the receiving liner using a receiving surface camera, and determining the number of particles in the images. The receiving surface camera can be an imaging device positioned above the imaging position, with its lens facing the surface of the receiving liner, its field of view covering the surface of the receiving liner at the imaging position. The receiving surface camera and the detection seat are horizontally offset from each other, with no obstruction between them. The falling particle images can be images of the receiving liner surface and the particles falling on it, acquired by the receiving surface camera in a single exposure. The number of particles can be the number of connected regions in the falling particle image that conform to the particle morphology characteristics. The particle morphology characteristics can include the equivalent diameter and roundness of the connected regions. Connected regions with an equivalent diameter between 0.5 mm and 3.0 mm and a roundness of not less than 0.8 are counted as particles.

[0061] In practice, the camera on the receiving surface can be triggered to expose the image of the falling particles at a set time after the micro-vibration and airflow have ended, thus obtaining the image. Then, the image is segmented into foreground and background according to a grayscale threshold. This grayscale threshold can be set as the sum of three times the standard deviation of the grayscale mean of the receiving liner area in the falling particle image. Next, connected components are marked for the foreground pixels, and then the equivalent diameter of each connected component is calculated based on its pixel count and pixel size, and the roundness is calculated based on its perimeter and area. Finally, the connected components that satisfy both conditions are counted to obtain the number of particles.

[0062] For example, in a scenario where the particles on the receiving plate have come to rest 120ms after the airflow ends, the receiving surface camera takes a 100μs exposure to capture an image of the falling particles. Then, five connected regions are marked in this image, with pixel counts of 706, 382, ​​240, 150, and 96, respectively. The converted equivalent diameters are 1.50mm, 1.10mm, 0.87mm, 0.69mm, and 0.55mm, and the roundness is 0.86, 0.81, 0.42, 0.38, and 0.35. The first two regions satisfy both the equivalent diameter and roundness conditions, while the latter three are excluded due to insufficient roundness, and the particle count is recorded as 2.

[0063] In some optional implementations of certain embodiments, the execution entity may use a low-angle grazing light source and a receiving surface camera, and the receiving surface camera may capture images of the falling particles on the receiving liner, and determine the number of particles in the falling particles images. This may include the following steps: The aforementioned low-angle grazing light source forms a grazing angle with the surface of the receiving liner, wherein the grazing angle is between 10° and 25°, and the emission wavelength of the low-angle grazing light source is 850nm or 940nm. The grazing angle refers to the angle between the principal ray of the emitted light from the light source and the surface of the receiving liner. The smaller the angle, the further the reflection of light from the liner is from the camera, and the more pronounced the scattering of light by the particles. The near-infrared wavelength is chosen because the scattering difference between silicone and polypropylene is more significant in this wavelength range than under visible light, and it avoids the influence of visible light illumination in the workshop.

[0064] In practice, the grazing angle can be determined according to the installation angle of the light source bracket, and a light-emitting diode of the corresponding wavelength can be selected.

[0065] For example, in a scenario where silicone particles and a polypropylene cover are both in the field of view, with a grazing angle of 18° and a wavelength of 850nm, the grayscale difference between the particles falling into the field of view and the board surface can reach more than 4040 grayscale levels.

[0066] The front end of the aforementioned receiving surface camera is configured with a near-infrared bandpass filter corresponding to the aforementioned emission wavelength. This near-infrared bandpass filter can be a filter that allows light within a center wavelength range of ±10nm to pass through, and its center wavelength is consistent with the emission wavelength of the low-angle grazing light source.

[0067] In practice, a filter can be mounted at the front of the lens to ensure that the light entering the camera is primarily near-infrared light emitted from the light source. For example, in a scenario where the light source wavelength is 850nm, the passband of the filter can be set to 850nm ± 10nm, thus filtering out visible light from the workshop lighting.

[0068] The aforementioned receiving surface camera includes a first receiving surface camera and a second receiving surface camera, which share the same optical axis. The first and second receiving surface cameras can be two imaging devices positioned on the same optical axis, both acquiring images of the same field of view via beam-splitting elements. The difference lies in whether a linear polarizer is configured at the front end of the lens.

[0069] In practice, the aforementioned execution entity can be equipped with a beam splitter prism within the same lens mount to split the incident light into two paths, which are then sent to two cameras respectively. For example, in a scene with a field of view of 90mm×90mm, the beam splitter prism has a splitting ratio of 50:50, and the pixels of the two cameras each receive half of the light flux from the same field of view, thus extending the exposure time to 200μs.

[0070] The first receiving surface camera is equipped with the aforementioned linear polarizer, while the second receiving surface camera is not equipped with the aforementioned linear polarizer. The image acquired through the channel equipped with the linear polarizer is the polarization channel image. The image acquired through the channel without the linear polarizer is the unpolarized channel image.

[0071] In practice, polarizer mounts and empty mounts can be installed according to the positions of the two cameras on the optical axis. For example, a polarizer with a scale of 90° can be installed in front of the lens of the first receiving camera, and an unpolarized window with the same transmittance can be installed in front of the lens of the second receiving camera. The light transmission of the two paths is balanced during calibration.

[0072] The first step involves acquiring polarized channel images and unpolarized channel images using the first and second receiving surface cameras, respectively. These polarized channel images and unpolarized channel images can be two images acquired at the same exposure time and from the same field of view.

[0073] In practice, the same trigger signal can be sent to two cameras to acquire two images at the same time.

[0074] For example, in a scenario where the trigger signal is a rising edge and the exposure delay of both cameras is 20μs, the time difference between the two images does not exceed 40μs, and the particles on the receiving surface are in the same position in the two images.

[0075] The second step is to calculate the pixel-by-pixel difference between the polarization channel image and the unpolarization channel image to obtain a polarization difference image. This polarization difference image can be an image composed of the absolute value of the difference between the grayscale values ​​at the same pixel location in the two images.

[0076] In practice, the difference can be calculated point by point by pixel address and the absolute value can be taken. For example, in a scenario where the gray level of the polarized channel image is 180 and the gray level of the unpolarized channel image is 60 at a certain pixel location, the difference value at that location is 120, and that location appears bright in the polarized difference image.

[0077] The third step is to identify connected regions with bright responses in the polarization difference image as candidate particles to obtain the particle count. These bright responses can be pixels with difference values ​​higher than an adaptive threshold. The candidate particles can refer to regions formed by connecting bright response pixels that conform to the shape of spherical particles.

[0078] In practice, connected components can be extracted from polarization difference images and counted after filtering based on morphological features. For example, if five connected components are extracted from a polarization difference image, and two of them match the shape of spherical particles, the number of candidate particles is 2, and the particle count is recorded as 2. In some optional implementations of certain embodiments, the execution entity can determine the connected components with highlighted responses in the polarization difference image as candidate particles to obtain the particle count, which may include the following steps: The first step involves performing background noise reduction and flat-field correction on the aforementioned polarization difference image to obtain a corrected image. The background noise reduction process can be a procedure to suppress random noise based on the statistics of the pixel neighborhood. The flat-field correction process can be a procedure to normalize the pixel response differences based on a pre-acquired uniform field image.

[0079] In practice, a uniform field image can be acquired and saved once each shift when the machine is turned on, and then used for calibration during inspection. For example, when the receiving liner is in an empty field, a uniform field image can be acquired. During inspection, each pixel of the polarization difference image is divided by the normalized value of the corresponding pixel in the uniform field image, reducing the grayscale fluctuation at the plate surface from ±12 grayscale levels to ±3 grayscale levels.

[0080] The second step involves segmenting the corrected image to obtain a segmented image. This segmentation process can be described as dividing the corrected image into foreground and background categories using an adaptive threshold, which can be determined by local grayscale statistics of the image. The segmented image is then a binary image.

[0081] In practice, the aforementioned execution entity can divide the corrected image into several local windows, and determine the threshold for each window based on the mean and standard deviation of the grayscale value within the window. For example, in a scenario where the window is 32×32 pixels, the mean grayscale value within the window is 20, and the standard deviation is 6, the threshold can be the mean plus three times the standard deviation, i.e., 38. Pixels with a grayscale value higher than 38 are designated as foreground pixels.

[0082] The third step is to extract the connected components from the segmented image. These connected components can be regions formed by connecting foreground pixels in a four-neighbor or eight-neighbor relationship.

[0083] In practice, connected components can be labeled in a binary image, and each connected component can be assigned a number. For example, in a scenario where four connected components are labeled in a segmented image with pixel counts of 706, 382, ​​240, and 150, the four connected components are assigned numbers 1 to 4 respectively.

[0084] The fourth step is to determine the equivalent diameter and roundness of each of the obtained connected components. The equivalent diameter can be the diameter of a circle with the same area as the connected component. The roundness can be calculated based on the perimeter and area of ​​the connected component; a perfect circle has a value of 1, and the value decreases as the shape deviates from a circle.

[0085] In practice, the aforementioned executing entity can calculate the equivalent diameter based on the number of pixels and cell size of the connected region, and calculate the roundness based on the perimeter and area of ​​the connected region. For example, in a scenario where the cell size is 0.05mm and the number of pixels in connected region number 1 is 706, its area is 1.77mm² and its equivalent diameter is 1.50mm. The perimeter of this connected region is 5.08mm, and the roundness calculated based on the perimeter and area is 4π×1.765÷5.08²=0.86.

[0086] Fifth, in response to the aforementioned equivalent diameter being between 0.5 mm and 3.0 mm and the aforementioned roundness not less than 0.8, the aforementioned connected regions are determined as candidate particles. The lower and upper limits of the equivalent diameter are determined according to the actual particle size distribution of the desiccant particles, and the lower limit of roundness is used to distinguish approximately spherical particles from irregularly shaped plastic debris. In practice, the executing entity can apply both conditions to each connected region simultaneously, retaining only those regions where both conditions are met. For example, in a scenario where the equivalent diameter and roundness of the four connected regions are 1.50 mm / 0.86, 1.10 mm / 0.81, 0.87 mm / 0.42, and 0.69 mm / 0.38 respectively, the first two connected regions, with equivalent diameters between 0.5 mm and 3.0 mm and roundness not less than 0.8, are determined as candidate particles. The latter two, although their equivalent diameters are within the aforementioned range, are excluded because their roundness is less than 0.8.

[0087] The sixth step is to determine the number of each candidate particle obtained, which is then used as the particle count.

[0088] Step 103: Drive the effervescent tablet cap to rotate step by step around its own axis. In response to each rotation step, the side wall of the cap is swept by a sweep line light source, and multiple frames of swept images are captured by a side-view camera.

[0089] In some embodiments, the aforementioned execution entity can drive the effervescent tablet cap to rotate step by step around its own axis. In response to each rotation step being completed, a sweep line light source sweeps the side wall of the cap, and a side-view camera captures multiple frames of sweep images, wherein the number of frames of the multiple frames of sweep images is the same as the number of rotation steps.

[0090] As an example, the first step is to drive the effervescent tablet cap to rotate step by step around its own axis. The step-by-step rotation can be driven by a pneumatic push rod or stepper motor at the center of the positioning seat to rotate the cap around its own axis at a set angle one by one, and stop at the current position after each rotation. The number of rotation steps can be the number of times the cap rotates and stops in one detection.

[0091] In practice, the aforementioned execution entity can send a command to the stepper motor to rotate according to the step angle after the camera on the receiving surface has completed its exposure, and the encoder will provide feedback of the position signal after each step is completed. For example, in a scenario with a step angle of 45° and a rotation number of 8 steps, the cover completes one rotation within 400ms, with each step taking approximately 50ms. The side-view camera exposes once per step, and a total of 8 scanned images are obtained in one round of detection, with the number of frames being the same as the number of steps.

[0092] The second step involves a sweeping light source sweeping the sidewall of the cover after each rotation step, with a side-view camera capturing multiple frames of swept images. The sweeping light source can be a light-emitting element that forms a narrow bright band on the sidewall of the cover, extending along the cover's axis. Each rotation of the cover causes the bright band to sweep across a section of the cover's circumference. The side-view camera can be an imaging device positioned to the side of the cover, with its lens optical axis perpendicular to the cover's axis, and its object-space resolution can be 0.04 mm. The swept images are those acquired by the side-view camera during each rotation step's pause; multiple frames of swept images are the collective term for the images obtained in each step. These swept images are used for supplementary detection of particles remaining in the sidewall opening after release. The primary particle count is still based on the results obtained from imaging the receiving surface. The bright band is incident horizontally, perpendicular to the cover's axis, and falls onto the sidewall at a small angle. It should be noted that, under this incident mode, the plastic surface of the cover sidewall reflects light out of the camera and appears dark. The particles embedded in the gaps form a shadow on their back side because they protrude from the wall surface, or reflect light into the camera due to the surface curvature and become a bright spot. The particles and the plastic wall thus present a distinguishable difference in the image.

[0093] In practice, the aforementioned execution entity can wait for a set duration to allow the cover to come to rest after the arrival signal is established at each step, and then trigger the side-view camera to expose. For example, in a scenario where each step pauses for 50ms, including a 15ms wait, the side-view camera exposes between the 16th and 20th ms of each step, acquiring a total of 8 scanned images across 8 steps.

[0094] In some alternative implementations of certain embodiments, driving the effervescent tablet cap to rotate stepwise about its own axis, and in response to each rotational step, having a sweeping line light source sweep the sidewall of the cap, includes: The step angle of the aforementioned step rotation is 30° to 60°. Here, the step angle refers to the central angle through which the cover rotates in each step. The smaller the angle, the more times the cover is swept around the circumference and the shorter the circumferential length of a single step.

[0095] In practice, the stepping angle can be determined according to the distribution density of the circumferential elongated holes on the cover. For example, in a scenario where there are 12 elongated holes evenly distributed on the circumference of the cover and the central angle between two adjacent holes is 30°, the stepping angle is 45°, so that each step spans one and a half hole distances, and the bright bands of two adjacent steps fall on two different openings that are 45° apart along the circumference.

[0096] The product of the aforementioned step angle and the number of rotation steps is not less than 360°, so that the cover rotates at least one full circle in one scan, and each part of the circumference sequentially enters the sweep range of the bright band. Here, the aforementioned product refers to the product of the angle rotated in a single step and the number of steps, and this product of not less than 360° ensures that the cover rotates at least one full circle in one scan.

[0097] In practice, both the step angle and the number of steps can be fixed in the parameter formula, and their product can be verified before distribution. For example, in a scenario with a step angle of 45° and 8 steps, the product is 360°, and the cover rotates exactly one full revolution. In a scenario with a step angle of 30° and 12 steps, the product is also 360°.

[0098] The settling time after each rotation step is completed is 10ms to 20ms. This settling time can be the waiting time between the establishment of the position signal and the start of camera exposure. The purpose of waiting is to allow residual vibration of the cover to decay and avoid motion blur in the image.

[0099] In practice, a timer can be started after the arrival signal is established, and the exposure trigger can be issued when the timer expires. For example, in a scenario where the settling time is 15ms and the residual vibration of the cover decays to 0.02mm within 12ms, the displacement of the cover during exposure is less than half a pixel.

[0100] The aforementioned sweeping light source forms a narrow sweeping light band with a width of no more than 2 mm on the side wall of the cover. Here, the aforementioned narrow sweeping light refers to the width of the bright band in the circumferential direction of the cover. The smaller the width, the narrower the circumferential range covered in a single step, and the more accurate the positioning of particles in the gap.

[0101] In practice, a line light source with a slit at the light outlet can be selected, or a cylindrical mirror can be used to shape the point light source into a narrow band. For example, in a scenario where the perimeter of the cover is 119mm and the step angle is 45°, the circumferential arc length corresponding to a single step is 14.9mm, the width of the bright band is 1.5mm, and the bright band sweeps across a segment of this arc length within a single step.

[0102] In each rotation step, at least one of the aforementioned circumferential elongated holes and the aforementioned top intersecting rib hollow cavity is directly facing the illumination direction of the aforementioned sweeping line light source. The angle between the opening direction of the finger hole or hollow cavity and the incident direction of the bright band can be less than a set value, allowing the bright band to be injected into the hole or cavity.

[0103] In practice, the installation orientation of the illuminated strip can be determined according to the circumferential distribution of the oblong holes and cross-rib hollow cavities on the cover, so that the two alternately face each other in each step. For example, in a scenario where the oblong holes and cross-rib hollow cavities are alternately distributed circumferentially, the illuminated strip is installed on the side of the cover at the same height as the cover axis, and there is always at least one opening facing the illuminated strip in each step.

[0104] Step 104: Based on the multi-frame sweeping images, determine the background image, and subtract each frame sweeping image from the background image to obtain a residual map, and extract connected components from the residual map to obtain each connected component.

[0105] In some embodiments, the execution entity may determine a background image based on the multi-frame swept images, subtract each frame swept image from the background image to obtain a residual image, and extract connected components from the residual image to obtain each connected component.

[0106] As an example, the first step is to determine the background image based on multiple scanned images. This background image can be an image obtained by statistically analyzing the pixel values ​​at the same pixel location in multiple scanned images, reflecting the stable components of the cover structure at each rotation step.

[0107] In practice, pixel values ​​across multiple frames can be statistically analyzed point-by-point, and the median of the ordered statistics can be taken as the background value for that location. For example, in an 8-frame scanned image, if the grayscale values ​​of a certain pixel location are 30, 32, 31, 160, 33, 30, 31, and 32 in each frame, the median background value for that location is 31.5. The 160 value, which is caused by a reflection at a certain step, is excluded. This statistical method is based on the premise that the same pixel location is mostly represented by a cover structure or supporting plate surface in each frame; taking the ordered statistics yields the background value for that location. Reflections or particles that only appear in a few frames are not included in the median because they occur in less than half of the frames.

[0108] The second step is to subtract the background image from each frame of the swept image to obtain a residual image. The residual image can be an image composed of the grayscale difference between each frame and the background image at the same pixel position. In the residual image, a bright state indicates that the position is brighter than the background in that frame, and a dark state indicates that it is darker.

[0109] In practice, the residual image can be obtained by subtracting each pixel from the others and taking the absolute value. For example, in a scene with a background value of 31.5 and a grayscale value of 180 at a certain position in a certain frame, the residual value at that position is 148.5, which appears as a bright state in the residual image.

[0110] The third step is to extract connected components from the residual map, obtaining each connected component. These connected components can be regions formed by connecting pixels whose residual values ​​are higher than a threshold. The threshold can be set to three times the standard deviation of the residual map for that frame, allowing the threshold to fluctuate with the noise level of that frame without requiring manual adjustment frame by frame.

[0111] In practice, the residual image can be thresholded for segmentation, and the segmented foreground pixels can be labeled as connected components based on four-neighbor or eight-neighbor relationships. The frame number and centroid coordinates of each connected component are recorded, and then the centroid coordinates of adjacent frames are compared in frame order. The centroid coordinates are used to characterize the position of the connected component in the image. Specifically, the centroid coordinates include row coordinates and column coordinates. The row coordinates can be the sum of the row coordinates of all foreground pixels within the connected component divided by the number of pixels in the connected component. The column coordinates can be the sum of the column coordinates of all foreground pixels within the connected component divided by the number of pixels in the connected component.

[0112] For example, in a scenario where 11 connected components are extracted from 8 frames of residual maps, 3 of these connected components appear repeatedly in 6 or more frames, and the row and column differences of the centroid coordinates between adjacent frames do not exceed 3 pixels, and are therefore considered to appear at the same location. The remaining 8 connected components appear only in a single frame.

[0113] In some optional implementations of certain embodiments, the execution entity may determine the background image based on the aforementioned multi-frame swept images, and may further include the following steps: The first step involves temporally sorting the pixel values ​​at each pixel location across the multi-frame scanned images. This process removes a predetermined number of pixel values ​​at either end of the sorted result and determines the median of the remaining pixel values, thus obtaining the anti-pollution background value for that pixel location. The temporal sorting can be based on pixel value magnitude, ensuring that the two ends of the sorted result correspond to extreme values ​​in each frame, representing the brightest and darkest areas. The predetermined number at each end can be the number of pixels removed from both ends after sorting; the purpose of this removal is to exclude extreme values ​​appearing in individual frames due to reflections from the cover structure. The anti-pollution background value can be the median of the remaining pixel values.

[0114] In practice, each pixel location can be sorted and then culled, with the median of the remaining values ​​taken. For example, in a scene with 8 frames and one pixel removed from each end, the sorted grayscale values ​​for a certain pixel location are 28, 29, 30, 31, 32, 33, 170, and 175. After removing the two ends, the remaining values ​​are 30, 31, 32, and 33, with a median of 31.5. If this location exhibits reflection in 4 frames, the sorted values ​​are 30, 30, 160, 165, 168, 170, 172, and 175. After removing the two ends, the remaining values ​​are 160, 165, 168, and 170, with a median of 166.5. This location is identified as being affected by reflection pollution.

[0115] The second step is to construct an anti-pollution background image based on the anti-pollution background values ​​at each pixel location. This anti-pollution background image can be an image composed of the anti-pollution background values ​​at each pixel location arranged according to their positions, and it has the same size and channels as the background image.

[0116] In practice, the anti-pollution background values ​​at each location can be written into a buffer of the same size to form a complete image. For example, in a scene with an image size of 1024×1024 pixels, the anti-pollution background image is also 1024×1024 pixels, and the values ​​at each location are derived from the obtained anti-pollution background values.

[0117] The third step is to subtract the anti-pollution background image from the background image to generate a background correction amount. This background correction amount can be the grayscale difference between the two images at the same pixel location, reflecting the degree of offset of the original background image relative to the anti-pollution background. The location with the larger offset is where the original background is contaminated by reflective light.

[0118] For example, in a scenario where the anti-pollution background value at a certain location is 166.5 and the original background value is 31.5, the correction amount at that location is 135, and the average correction amount for the entire image is 4.2 with a maximum value of 172.

[0119] The fourth step involves correcting the background image based on the aforementioned background correction amount to obtain a corrected background image. Then, the corrected background image is subtracted from each frame of the swept image to obtain a corrected residual image. The corrected background image can be an image where the values ​​at the contaminated locations are replaced with anti-contamination background values. The corrected residual image can be a residual image obtained by subtracting from the corrected background image.

[0120] In practice, the aforementioned implementing entity can replace the positions with anti-pollution background values ​​at which the correction amount exceeds the set value, while retaining the original values ​​at other positions. Then, the difference is calculated again in the second step to obtain the corrected residual map. For example, in a scenario where the correction threshold is 60, the position with a correction amount of 135 is replaced with 166.5, while the position with a correction amount of 12 retains its original value. After the difference is calculated again on the corrected background image, the positions of the particles that were originally absorbed by reflection will appear bright again.

[0121] Fifth, in response to the background correction amount exceeding the preset background drift threshold, a liner contamination alarm signal is output. The background drift threshold can be an upper limit of the correction amount set according to the cleanliness of the receiving liner. Exceeding this threshold indicates that the reflective characteristics of the receiving liner surface have changed: material accumulation or wear on the receiving liner surface will cause strong reflections on the surface during some rotation steps. This strong reflection only appears in a few frames and therefore does not enter the anti-contamination background value, but instead enters the background value statistically calculated based on the median. The difference between the two background images increases with the severity of material accumulation or wear. Therefore, the aforementioned background correction amount can be used as a measure of the liner's cleanliness. The aforementioned liner contamination alarm signal can be a signal to prompt replacement or cleaning of the receiving liner.

[0122] In practice, the aforementioned execution entity can compare the average value of the overall map correction with a threshold, and push a prompt to the human-machine interface and mark it in the detection record when the value exceeds the threshold. For example, no alarm is output when the threshold is 30 and the measured average value is 4.2. However, if the measured average value rises to 42 after two weeks of use of the lining, a lining contamination alarm signal is output, prompting the lining to be cleaned or replaced.

[0123] Furthermore, ensuring that the angular position of the transparent particle corresponding to the connected region relative to the effervescent tablet cap remains consistent across the multi-frame scanned images may include the following steps: The first step is to extract the connected components of the modified residual graph to obtain each connected component.

[0124] The second step involves taking the ratio of the number of frames in which the same connected component maintains a consistent angular position relative to the effervescent tablet lid across the multi-frame scanned images to the total number of frames in the multi-frame scanned images, as the angular position consistency rate of the connected component. This angular position consistency rate can be the proportion of the number of frames in which the connected component satisfies the angular position consistency condition out of the total number of frames. A ratio closer to 1 indicates that the connected component rotates more stably with the lid.

[0125] In practice, the number of frames that satisfy the condition for each connected component can be counted, and then divided by the total number of frames. For example, in a scenario with 8 frames, where the angular change of a certain connected component relative to the zero point does not exceed ±2° in 6 of those frames, the angular position consistency rate of that connected component is 6÷8=0.75.

[0126] The third step is to determine the residual area of ​​each connected component in the aforementioned multi-frame swept images. The residual area can be the pixel area occupied by the connected component in the residual map, and its size reflects the degree of difference between that location and the background.

[0127] In practice, the number of pixels in each connected component can be counted frame by frame, and the average value of each frame can be taken. For example, if the number of pixels in a certain connected component in 8 frames is 96, 102, 99, 104, 98, 101, 100, and 97 respectively, the average residual area is 99.6 pixels, which can be converted to 0.159 mm² based on a pixel area of ​​0.0016 mm².

[0128] The fourth step is to classify connected components with an angular position consistency rate below a set threshold as background reflections and remove them from each connected component. The set threshold can be a lower limit value used to distinguish between particles that rotate with the cover and reflections that change with the viewing angle; values ​​below the threshold indicate that the connected component does not rotate with the cover in most frames.

[0129] In practice, the angular position consistency rate of each connected component can be compared with a threshold item by item, and components that are below the threshold are removed from the connected components. For example, in a scenario with a threshold of 0.6, a connected component with an angular position consistency rate of 0.25 is judged as background reflection and is removed, while a connected component with an angular position consistency rate of 0.75 is retained.

[0130] Fifth, in the connected components after removing background reflections, those connected components with an angular position consistency rate not lower than the set threshold and an inter-frame fluctuation of the residual area not exceeding the set fluctuation threshold are identified as residual particles. The inter-frame fluctuation can be the ratio of the difference between the maximum and minimum residual areas of the connected component in each frame to the mean. Small fluctuations indicate that the connected component appears stably in each frame and its shape does not change with the viewing angle.

[0131] In practice, a residual area fluctuation condition can be applied to the retained connected components. Components meeting both conditions are classified as residual particles. For example, in a scenario where the fluctuation threshold is 20%, the average residual area of ​​a connected component is 99.6 pixels, the maximum is 104, and the minimum is 96, its fluctuation is (104-96)÷99.6=8.0%, which does not exceed the threshold, and the connected component is classified as a residual particle. Another connected component has a fluctuation of 35%, and although the corner position consistency rate meets the standard, it is still classified as a non-particle and removed.

[0132] Step 105: In response to the fact that the angular position of the transparent particle corresponding to the connected component relative to the effervescent tablet cap remains consistent across multiple scanned images, the corresponding transparent particle is determined to be a residual particle.

[0133] In some embodiments, the execution entity may determine that the corresponding transparent particle is a residual particle in response to the fact that the angular position of the transparent particle corresponding to the connected domain relative to the effervescent tablet cap remains consistent in the multi-frame scan image.

[0134] Step 106: In response to a particle count greater than zero or the presence of residual particles, output a defective product determination signal.

[0135] In some embodiments, the execution entity may output a defective product determination signal in response to the particle count being greater than zero or the presence of residual particles.

[0136] In some optional implementations of certain embodiments, the following steps may also be included: The first step involves placing tracer particles upstream of the receiving liner before applying the micro-vibration and the directional pulsed airflow. These tracer particles are of the same material and size as the transparent particles. Their purpose is not to be detected, but to demonstrate that the vibration and airflow have indeed brought the particles on the receiving liner into the field of view of the receiving surface. It should be noted that the placement location is upstream of the receiving liner, on the edge strip outside the particle counting zone, within the reach of the airflow and vibration.

[0137] In practice, the feeder can quantitatively add particles before the start of each cycle. For example, in a scenario where 3 tracer particles with a diameter of 1.5 mm are added per cycle, and the placement position is 42 mm away from the center line of the receiving liner, the tracer particles move towards the receiving liner under the action of vibration and airflow.

[0138] The second step involves acquiring tracer response images after the aforementioned directional pulsed airflow. These tracer response images can be acquired under the same imaging optical path on the receiving surface, with the acquisition time later than the airflow application time. They can be used to observe whether the tracer particles have reached the receiving liner. The receiving liner can be divided into a particle counting zone and a tracer response zone. The particle counting zone is the area covered by the orthographic projection of the cover and its 20mm outward extension. The tracer response zone is the edge strip outside the particle counting zone; the two zones do not overlap on the plate surface. The tracer particles are introduced upstream of the tracer response zone, fall within it after being acted upon by the airflow, and therefore do not enter the particle counting zone or participate in particle counting.

[0139] In practice, an exposure is performed immediately after the receiving surface camera acquires the image of the falling particles. In the image obtained from this exposure, only the tracer response region is counted, while the falling particle statistical region is not counted. For example, 120ms after the airflow ends, the receiving surface camera counts two connected regions with morphological characteristics in the tracer response region, while the number of connected regions in the falling particle statistical region is 0 at the same time. This stripe is the tracer response region.

[0140] The third step involves performing tracer particle detection processing on the aforementioned tracer response image to obtain detection results. These results include either the presence of tracer particles in the tracer response image or the absence of tracer particles in the tracer response image. The tracer particle detection processing can involve filtering the tracer response region based on morphological features similar to those in the falling particle image. The detection results can be one of two cases: using the detection of connected components matching the morphological features in the region as the criterion.

[0141] In practice, threshold segmentation and connected component filtering can be performed separately on the tracer response region, and a yes or no conclusion can be output. For example, in a scenario where two connected components with an equivalent diameter of 1.50 mm and a roundness of 0.85 are detected in the tracer response region, the detection result is that tracer particles are present. In a scenario where no connected components meeting the conditions are detected in this region, the detection result is that tracer particles are not present.

[0142] Fourth, in response to the above-mentioned particle count being greater than zero or the presence of the above-mentioned residual particles, the above-mentioned defective product determination signal is output. The above-mentioned defective product determination signal can be output when either of the two results is a hit, regardless of whether tracer particles are detected.

[0143] In practice, the two results can be combined using OR logic, and a signal is output when a match is found. For example, in a scenario where the number of particles is 2 and the number of residual particles is 0, a defective product determination signal is output; similarly, in a scenario where the number of particles is 0 and the number of residual particles is 1, a defective product determination signal is output.

[0144] Fifth, in response to the above-mentioned particle count being less than 1, the absence of the above-mentioned residual particles, and the presence of the above-mentioned tracer particles in the tracer response image, a pass / fail judgment signal is output. The pass / fail judgment signal indicates that the cover did not hit either of the two detection paths, and the release channel was proven to be unobstructed by the tracer particles.

[0145] In practice, a pass signal can be output when all three conditions are met simultaneously, allowing the cover to flow into the downstream process. For example, a pass signal can be output when the particle count is 0, the residual particle count is 0, and two tracer particles are detected in the tracer response area.

[0146] Step 6: In response to the above-mentioned particle count being less than 1, the absence of the above-mentioned residual particles, and the absence of the above-mentioned tracer response image containing the above-mentioned tracer particles, a station anomaly signal indicating a release channel malfunction is output, and the above-mentioned particle falling image and the above-mentioned tracer response image are stored in the sample library. The above-mentioned station anomaly signal indicates that the absence of both results is not due to a clean cover, but rather because vibration or airflow failed to expel the particles. The above-mentioned sample library can be a storage area for storing images awaiting review.

[0147] In practice, in this situation, the output of the qualified signal can be stopped, and the two images of this cycle can be stored in the sample library according to the cycle number. For example, in the scenario where the particle count is 0, the residual particle count is 0, and no tracer particles are detected in the tracer response area, an abnormal signal is output to the workstation, and the particle falling image and the tracer response image are stored together. The cover is then transferred to the re-inspection channel.

[0148] Step 7: Generate verification markers for the droplet images of the aforementioned workstation abnormality signals continuously stored in the sample library, and update the baseline deployment parameters of the aforementioned tracer particles. The verification markers can be verification identifiers attached to the stored images. The baseline deployment parameters can be the quantity and location of the tracer particles deployed, and their updates are based on the verification conclusion.

[0149] In practice, a verification mark can be generated for images that show abnormalities three times in a row, and the feed rate of the feeder can be adjusted after verification. For example, if no tracer particles are detected in the tracer response area for three consecutive cycles, and it is confirmed after verification that there is material accumulation on the surface of the receiving liner, the position of the tracer particles can be adjusted from 42mm to 44mm from the center line, and the receiving liner can be cleaned simultaneously.

[0150] Step 8: For workstations where the above-mentioned abnormal signals occur consecutively a set number of times, stop feeding materials and maintain the previous qualified parameters. The set number of times can be the number of consecutive times the workstation is deemed to need to stop. This number of consecutive times is greater than the number of consecutive times used in Step 7 to generate the review mark, ensuring the workstation enters the review phase first, and only stops feeding materials if the situation remains unresolved after the review. The aforementioned previous qualified parameters can be the vibration and airflow parameters used during the last consecutive production of qualified parts at that workstation.

[0151] In practice, a stop command can be issued to the feeding mechanism after the cumulative number of cycles reaches a set value, and the parameter formula can be rolled back to the previous stable version. For example, in a scenario where the number of cycles is set to 5, after the 5th consecutive abnormal cycle occurs, the feeding mechanism stops feeding parts, the air circuit and vibration circuit remain in standby mode, and the human-machine interface prompts that maintenance should be performed on the station.

[0152] Step 107: In response to receiving the defective product determination signal, drive the rejection nozzle to blow the effervescent tablet cap into the waste channel.

[0153] In some embodiments, the execution entity can, in response to receiving the defective product determination signal, drive the rejection nozzle to blow the effervescent tablet cap into the waste channel. The rejection nozzle can be a nozzle located on the discharge side of the inspection station, controlled by a high-frequency solenoid valve, with its nozzle facing the waste channel. The waste channel can be a bypass channel separate from the qualified product conveying path, where the cap blown into it will not enter the filling process. The rejection nozzle can share the same air path as the rejection nozzle of an existing appearance inspection machine. The defective product determination signal output by this method and the defective product signal output by the existing appearance inspection machine are ORed and incorporated into the same rejection trigger circuit; rejection is triggered when either one is valid. For example, the execution entity can activate the rejection nozzle within 50ms after the algorithm's determination is completed and continue for 120ms, causing the cap to be blown into the waste channel before leaving the inspection station.

[0154] In some optional implementations of certain embodiments, the following steps may also be included: The first step involves, in response to the aforementioned particle count being greater than zero and the absence of any residual particles, marking the defective product determination signal as a release detection, and writing the particle count and drop location into the detection record. Here, the release detection indicates that the particles have been counted on the receiving surface and there are no residues in the gaps, attributing this to the normal operation of the release mechanism. The detection record can be a list of detection result entries stored according to a cycle number.

[0155] In practice, the aforementioned executing entity can assign different tags to different combinations of the two results and write them into the database. For example, in a scenario where there are 2 particles and 0 residual particles, it is marked as a release detection, and the coordinates and equivalent diameter of the 2 particles on the receiving liner are recorded for subsequent statistical analysis of the release location distribution.

[0156] The second step involves, in response to the aforementioned particle count being less than 1 and the presence of residual particles, marking the defective product determination signal as a sweep detection, and triggering parameter adjustments for the aforementioned micro-vibration and the aforementioned directional pulsed airflow. Here, sweep detection indicates that particles were not released but were only detected during the rotating sweep, the cause of which is attributed to insufficient release. The parameter adjustments can be actions such as increasing the vibration amplitude or extending the airflow time. In practice, the actuator can adjust the parameters of the corresponding airflow path according to the type of gap where the residual particles are located. For example, when residual particles are concentrated in the thread gap, the pressure of the second airflow is increased from 0.35 MPa to 0.45 MPa, and the number of pulses is increased from 1 to 2.

[0157] Thirdly, in response to the aforementioned particle count being greater than zero and the presence of the aforementioned residual particles, the aforementioned defective product determination signal is marked as dual-path detection, and an alarm signal is output. Dual-path detection indicates that both the release and sweeping paths are simultaneously detected, suggesting that the amount of material retained in the cover exceeds the capacity of a single release.

[0158] In practice, the aforementioned executing entity can simultaneously output rejection instructions and alarm prompts in this situation. For example, in a scenario where there are 3 particles and 2 residual particles, it is marked as dual-path detection, and the human-machine interface will pop up an alarm and prompt for verification of the injection molding dimensions of the batch of caps.

[0159] Fourth, in response to the aforementioned defective product determination signal, the transparent particles blown off by the receiving liner are collected into the recycling hopper. The recycling hopper can be a collection container located below the receiving liner. The receiving liner is cleared by a cross-flow airflow during each cycle, and the blown-off particles are collected into this hopper via a funnel below the receiving liner.

[0160] In practice, after the rejection action is completed, the auxiliary air nozzle can be turned on to blow across the receiving liner while keeping the hopper discharge port unobstructed. For example, in a scenario where the receiving liner size is 90mm×90mm and the cross-blowing air pressure is 0.3MPa, the two particles on the plate surface are blown off the plate surface and fall into the hopper within 0.15s.

[0161] The fifth step is to inspect the transparent particles in the recycling hopper. This inspection process can be a screening or air separation process to separate the particles from the plastic debris in the hopper, with the aim of preventing the inclusion of cap debris in the recycled material.

[0162] In practice, separation can be based on differences in shape and density between particles and debris. For example, after the material in the hopper is screened by a vibrating screen with a 2.5mm aperture, silica particles with a diameter no larger than 2.5mm fall into the next hopper, while silica particles with a diameter larger than 2.5mm remain on the screen surface along with plastic debris and are periodically removed. The material remaining on the screen surface is then separated by air separation, with the silica particles, due to their greater density than the plastic debris, falling into the heavy phase outlet.

[0163] Step 6: In response to the absence of mixed plastic debris, the aforementioned transparent granules are returned to the drying hopper. This return can be achieved by pneumatically conveying the inspected and qualified granules back to the drying process hopper, allowing the granules to be reused in the filling process.

[0164] In practice, the aforementioned implementing entity can open the return air path when the inspection result is qualified; otherwise, it will be transferred to the waste bin. For example, in a scenario where the proportion of plastic debris in the undersize is less than 0.1%, it is determined that no plastic debris has been mixed in, and the particles are returned to the drying silo via a negative pressure pipeline.

[0165] In some optional implementations of certain embodiments, the following steps may also be included: The first step involves transmitting the pass signal, the aforementioned defective product judgment signal, and the rejection trigger signal via I / O hard contacts, and transmitting the aforementioned particle drop images, the aforementioned multi-frame swept images, and statistical process control data via Ethernet. The aforementioned I / O hard contacts can be points directly connected between a programmable logic controller and an existing appearance inspection machine via switching signals, with a transmission latency lower than Ethernet. The aforementioned Ethernet can be a bus connection used for transmitting images and statistical data. The aforementioned statistical process control data can be statistical data obtained by summarizing the inspection results of each cycle in chronological order, and may include the average number of particles, the range, and the number of times the limit was exceeded.

[0166] In practice, three signals with high real-time requirements can be routed via hard contacts, while images and statistical data with large data volumes can be routed via Ethernet. For example, a set of I / O terminals can be connected in parallel within the control cabinet of an existing six-camera inspection machine. The pass signal and the defective product judgment signal each occupy one terminal, and the rejection trigger signal occupies one terminal. The image is then uploaded to the industrial control computer via gigabit Ethernet.

[0167] The second step involves preventing the micro-vibration and directional pulsed airflow from being activated in response to the effervescent tablet cap not being secured to the detection seat. The lack of securing can be determined by both the clamping signal and the positioning signal; the absence of either signal constitutes a lack of securing.

[0168] In practice, normally open contacts for clamping and positioning signals can be inserted into the interlocking circuit. When the contacts are not closed, neither the vibration circuit nor the pneumatic solenoid valve is energized. For example, in a scenario where the positioning signal is not established due to the tilt of the cover, the vibration table does not start, the solenoid valve does not open, and the cover is blown into the waste channel by the rejection air nozzle after being released by the grippers.

[0169] Third, in response to the air pressure falling below a set threshold, the aforementioned directional pulsed airflow is prohibited. This set threshold can be the minimum air pressure required to ensure particles are blown away from the gap, and is monitored in real time by an air pressure sensor.

[0170] In practice, the output of the pressure sensor can be connected to a comparison circuit, and the solenoid valve can be deactivated when the pressure falls below a threshold. For example, in a scenario where the threshold is 0.2 MPa and the measured pressure is 0.16 MPa, the solenoid valve is prevented from opening, and the human-machine interface will display a message indicating insufficient air pressure.

[0171] Fourth, in response to the aforementioned missing or incomplete insertion of the receiving liner, the aforementioned directional pulse airflow is prohibited. The incomplete insertion can be determined by the positioning switch on the quick-connect structure of the receiving liner; the switch will not close when the liner is missing or not fully inserted.

[0172] In practice, the normally open contact of this switch can be connected in series with the pneumatic enable circuit. For example, in a scenario where the receiving liner is not fully inserted after replacement, the positioning switch remains open, airflow is prohibited, and particles are prevented from being blown to the unsupported position.

[0173] Fifth, in response to the aforementioned failures of the receiving surface camera and the low-angle grazing light source, a shutdown alarm signal is output. The aforementioned failures can be determined by the camera's heartbeat signal and the light intensity feedback from the light source.

[0174] In practice, if either the light source or the feeder fails, a stop command is issued to the feeding mechanism. For example, if the light intensity feedback of the light source drops to 70% of the rated value, it is determined to be a light source failure, a stop alarm signal is output, and feeding is stopped.

[0175] The sixth step is to blow a cleaning airflow across the receiving liner. This cleaning airflow can be an airflow blown from an auxiliary nozzle in a direction parallel to the liner surface. Its function is to sweep the residual particles on the liner surface into the hopper, leaving a clean receiving surface for the next cycle.

[0176] In practice, the auxiliary air nozzle can be activated after the rejection action is completed, and it can be used in parallel with the loading action of the next cycle. For example, in a scenario where the cycle time is 1.2 seconds per piece, the cross-blowing clearing can be activated 50 ms after the rejection action ends and last for 150 ms, and can be completed in parallel with the loading action of the next cover.

[0177] Further reference Figure 2 As an implementation of the methods shown in the above figures, this disclosure provides some embodiments of a vision-based transparent desiccant particle foreign object defective product rejection device for the effervescent tablet cap drying process. These device embodiments are similar to... Figure 1 The methods and embodiments shown correspond to those.

[0178] like Figure 2As shown, a vision-based transparent desiccant particle foreign object defect rejection device 200 for the effervescent tablet cap drying process includes: a vibration release and pulse air blowing unit 201, a receiving surface dark field imaging unit 202, a cap rotation sweeping unit 203, a connected domain determination unit 204, a residue determination unit 205, a signal output unit 206, and an air blowing unit 207. The vibration release and pulse air blowing unit 201 is configured to: apply micro-vibration to the effervescent tablet cap to loosen the transparent particles trapped in the circumferential elongated hole, the top cross-rib hollow cavity, and the thread gap; and blow a directional pulse airflow onto the effervescent tablet cap to cause the loosened transparent particles to fall onto the receiving liner plate below the cap. The effervescent tablet cap is fixed to the detection seat with its opening facing downwards. The receiving surface dark-field imaging unit 202 is configured to: symmetrically arrange low-angle grazing light sources on both sides above the receiving liner, and respectively set linear polarizers on the emission side of the low-angle grazing light sources and the receiving surface camera side; and acquire the falling particle image of the receiving liner by the receiving surface camera, and determine the number of particles in the falling particle image. The cover rotation sweeping unit 203 is configured to: drive the effervescent tablet cover to rotate stepwise around its own axis; in response to each rotation step, sweep the side wall of the cover by a sweeping linear light source, and acquire multiple frames of sweeping images by a side-view camera, wherein the number of frames of the multiple sweeping images is the same as the number of rotation steps. The connected component determination unit 204 is configured to: determine a background image based on the multiple frames of sweeping images, subtract each frame of sweeping images from the background image to obtain a residual map, and extract connected components from the residual map to obtain each connected component. The residue determination unit 205 is configured to determine that the corresponding transparent particle is a residue particle in response to the fact that the angular position of the transparent particle corresponding to the connected region relative to the effervescent tablet cap remains consistent in the multi-frame scan images. The signal output unit 206 is configured to output a defective product determination signal in response to the fact that the number of particles is greater than zero or that the residue particles are present. The blowing unit 207 is configured to drive the rejection nozzle to blow the effervescent tablet cap into the waste channel in response to receiving the defective product determination signal.

[0179] It is understandable that the effervescent tablet cap drying process is based on the units described in the visual transparent desiccant particle foreign object defect rejection device 200 and the reference. Figure 1 The steps described in the method correspond to each other. Therefore, the operations, features, and beneficial effects described above for the method also apply to the vision-based transparent desiccant particle foreign object defective product rejection device 200 and the units contained therein in the effervescent tablet cap drying process, and will not be repeated here.

[0180] The above description is merely a selection of preferred embodiments of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.

Claims

1. A visual method for removing foreign matter and defective products such as transparent desiccant particles during the drying process of effervescent tablet caps, characterized in that... include: Apply micro-vibration to the effervescent tablet cap to loosen the transparent particles trapped in the circumferential elongated hole, the top cross-rib hollow cavity, and the thread gap; and blow directional pulsed airflow to the effervescent tablet cap to make the loosened transparent particles fall onto the receiving liner plate below the cap. The effervescent tablet cap is fixed to the detection seat with the opening facing downward. Low-angle grazing light sources are symmetrically arranged on both sides above the receiving liner, and linear polarizers are respectively set on the emission side of the low-angle grazing light sources and the receiving surface camera side. The receiving surface camera acquires the image of the falling particles on the receiving liner and determines the number of particles in the image of the falling particles. The effervescent tablet cap is driven to rotate in steps around its own axis. In response to each rotation step, a sweep line light source sweeps the side wall of the cap, and a side-view camera captures multiple frames of sweep images. The number of frames in the multiple frames of sweep images is the same as the number of rotation steps. Based on the multi-frame swept images, a background image is determined, and the difference between each frame swept image and the background image is calculated to obtain a residual image. Connected components are then extracted from the residual image to obtain each connected component. In response to the fact that the angular position of the transparent particle corresponding to the connected region relative to the effervescent tablet cap remains consistent in the multi-frame scanned images, the corresponding transparent particle is determined to be a residual particle; In response to the particle count being greater than zero or the presence of residual particles, a defective product determination signal is output. In response to receiving the defective product determination signal, the rejection nozzle is driven to blow the effervescent tablet cap into the waste channel.

2. The method for visually removing foreign matter and defective products from transparent desiccant particles in the effervescent tablet cap drying process according to claim 1, characterized in that, The effervescent tablet cap is a white polypropylene injection molded part, the transparent granules are transparent silica gel desiccant granules, and the receiving liner is a matte black anodized aluminum plate; The top cross-rib hollow cavity is formed by cross-ribs arranged on the top of the cover; The circumferentially elongated holes are evenly distributed along the circumferential sidewall of the cover, and the hole length is 3mm to 5mm. The thread clearance is located between the tips of two adjacent thread teeth, with a depth of 0.5 mm to 1.0 mm; The surface reflectivity of the receiving lining plate is less than 5%, and the flatness is no greater than 0.1 mm; The receiving liner is connected to the testing station by a quick-connect structure, covering the orthographic projection of the effervescent tablet cap in the horizontal direction and extending outward by no less than 20mm. The testing station is located between the drying discharge and filling processes.

3. The method for visually removing transparent desiccant particles and foreign matter from effervescent tablet caps according to claim 1, characterized in that, The application of micro-vibration to the effervescent tablet cap and the blowing of directional pulsed airflow to the effervescent tablet cap include: The frequency of the micro-vibration is 200Hz to 500Hz, the amplitude is 0.3mm to 0.8mm, and the duration is 200ms to 400ms. The micro-vibration is initiated after the effervescent tablet cap is fixed to the detection seat; The directional pulse airflow includes: a first airflow and a second airflow, wherein the first airflow is blown obliquely downward along the circumference of the cover, and the second airflow is blown upward from the inside of the opening of the cover cavity. The pressure of the first airflow is 0.2 MPa to 0.5 MPa, and it forms an angle of 30° to 45° with the axis of the effervescent tablet cap; The pressure of the second airflow is 0.2 MPa to 0.5 MPa, and it is applied at the tail end of the micro-vibration. The single pulse width of both the first and second airflows is 80ms to 150ms, and they are applied in two to three short pulses superimposed.

4. The method for visually removing transparent desiccant particles and foreign matter from effervescent tablet caps according to claim 1, characterized in that, The low-angle grazing light source and the receiving surface camera, and the receiving surface camera acquiring images of the falling particles from the receiving liner, and determining the number of particles in the falling particle images, include: The low-angle grazing light source forms a grazing angle with the surface of the receiving liner plate, wherein the grazing angle is 10° to 25° and the emission wavelength of the low-angle grazing light source is 850nm or 940nm. The front end of the receiving surface camera is equipped with a near-infrared bandpass filter corresponding to the emission wavelength; The receiving surface camera includes a first receiving surface camera and a second receiving surface camera, and they share the same optical axis; The first receiving surface camera is equipped with the linear polarizer, while the second receiving surface camera is not equipped with the linear polarizer; The first receiving surface camera and the second receiving surface camera respectively acquire polarization channel images and non-polarization channel images; The polarization channel image and the unpolarized channel image are subtracted pixel by pixel to obtain a polarization difference image; Connected regions with high-brightness responses in the polarization difference image are identified as candidate particles to obtain the particle count.

5. The method for visually removing transparent desiccant particles and foreign matter from effervescent tablet caps according to claim 4, characterized in that, The step of determining the connected components with high-brightness responses on the polarization difference image as candidate particles to obtain the particle count includes: The polarization difference image is subjected to background noise removal and flat field correction to obtain a corrected image; The corrected image is segmented to obtain a segmented image; Extract connected components from the segmented image; For each of the obtained connected components, determine the equivalent diameter and roundness of the connected component; In response to the equivalent diameter being between 0.5 mm and 3.0 mm and the roundness being not less than 0.8, the connected component is determined to be a candidate particle; The number of each candidate particle is determined and recorded as the particle count.

6. The method for visually removing transparent desiccant particles and foreign matter from effervescent tablet caps according to claim 1, characterized in that, The process includes driving the effervescent tablet cap to rotate in steps around its own axis, and in response to each rotation step, having a sweeping line light source sweep the sidewall of the cap, including: The step angle of the step rotation is 30° to 60°; The product of the step angle and the number of rotation steps is not less than 360°, so that every part of the structure in the circumference of the cover is swept at least once in one scan. The settling time after each rotation step is completed is 10ms to 20ms; The sweep line light source forms a narrow sweep light with a width of no more than 2 mm at the side wall of the cover; In each rotation step, at least one of the circumferential elongated holes and the top intersecting rib hollow cavity is directly facing the illumination direction of the sweeping line light source.

7. The method for visually removing transparent desiccant particles and foreign matter from effervescent tablet caps according to claim 1, characterized in that, Also includes: In response to the particle count being greater than zero and the absence of residual particles, the defective product determination signal is marked as a release detection, and the particle count and drop position are written into the detection record; In response to the particle count being less than 1 and the presence of residual particles, the defective product determination signal is marked as swept detection, and the parameters of the micro-vibration and the directional pulsed airflow are adjusted. In response to the particle count being greater than zero and the presence of residual particles, the defective product determination signal is marked as dual-channel detection, and an alarm signal is output. In response to the defective product determination signal, the transparent particles blown off by the receiving liner are collected into the recycling hopper; The transparent particles in the recycling hopper are inspected and processed. In response to the absence of mixed plastic debris, the transparent granules are returned to the drying hopper.

8. The method for visually removing transparent desiccant particles and foreign matter from effervescent tablet caps according to claim 1, characterized in that, Also includes: The qualified signal, the defective product judgment signal and the rejection trigger signal are transmitted through IO hard contacts, and the falling particle image, the multi-frame swept image and statistical process control data are transmitted through Ethernet. In response to the effervescent tablet cap not being fixed to the detection seat, the micro-vibration and the directional pulse airflow are prohibited from being activated; In response to air pressure falling below a set threshold, the directional pulse airflow is prohibited. In response to the absence or incomplete placement of the receiving liner, the directional pulse airflow is prohibited. In response to a malfunction of the receiving surface camera and the low-angle grazing light source, a shutdown alarm signal is output; A clearing airflow is blown across the receiving liner.

9. The method for visually removing foreign matter and defective products from transparent desiccant particles in the effervescent tablet cap drying process according to claim 1, characterized in that, The step of determining the background image based on the multi-frame swept images further includes: For each pixel location, the pixel values ​​of the pixel location in the multi-frame swept image are sorted in time order to remove a set number of pixel values ​​located at both ends of the sorting result, and to determine the median of the remaining pixel values, so as to obtain the anti-pollution background value of the pixel location. An anti-pollution background image is constructed based on the anti-pollution background value at each pixel location; The background correction amount is generated by subtracting the anti-pollution background image from the background image. The background image is corrected based on the background correction amount to obtain the corrected background image, and the difference between the corrected background image and each frame of the swept image is calculated again to obtain the corrected residual image. In response to the background correction amount exceeding the preset background drift threshold, a liner contamination alarm signal is output; And the angular position of the transparent particle corresponding to the connected region relative to the effervescent tablet cap remains consistent across the multi-frame scanned images, including: Extract the connected components of the corrected residual graph to obtain each connected component; For each connected component, the ratio of the number of frames in which the same connected component maintains a consistent angular position relative to the effervescent tablet cap in the multi-frame swept images to the number of frames in the multi-frame swept images is taken as the angular position consistency rate of the connected component. Determine the residual area of ​​each connected component in the multi-frame swept image; Connected regions with an angular position consistency rate lower than a set threshold are identified as background reflections and are removed from each connected region. In the connected components after removing background reflections, the connected components whose corner position consistency rate is not lower than the set threshold and whose inter-frame fluctuation of the residual area does not exceed the set fluctuation threshold are determined to be residual particles.

10. The method for visually removing transparent desiccant particles and foreign matter from effervescent tablet caps according to claim 1, characterized in that, Also includes: Before the application of micro-vibration and the blowing of directional pulsed airflow, tracer particles are released upstream of the receiving liner, wherein the tracer particles are of the same material and particle size as the transparent particles; After the directional pulsed airflow is delivered, a tracer response image is acquired; The tracer response image is subjected to tracer particle detection processing to obtain a detection result, wherein the detection result includes: the tracer response image contains the tracer particles and the tracer response image does not contain the tracer particles; In response to the particle count being greater than zero or the presence of residual particles, the defective product determination signal is output; In response to the particle count being less than 1, the absence of residual particles, and the presence of tracer particles in the tracer response image, a pass / fail judgment signal is output. In response to the particle count being less than 1, the absence of residual particles, and the absence of tracer particles in the tracer response image, an abnormal station signal for the release channel is output, and the falling particle image and the tracer response image are stored in the sample library. Generate verification markers for the droplet images of the workstation abnormal signals that are continuously retained in the sample library, and update the baseline delivery parameters of the tracer particles; For workstations where the abnormal signal occurs a set number of times consecutively, material feeding is stopped, and the previous qualified parameters are maintained.