Defect detection method for pre-filled syringe

Through multi-area camera shooting and rotation control, combined with multiple signal analyses, rapid automatic detection of prefilled syringes is achieved, which solves the problems of low efficiency and error-prone in traditional methods, and improves detection accuracy and production efficiency.

CN118655138APending Publication Date: 2024-09-17SHANGHAI MICROVIEW ELECTRONICS TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410701669.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The integrity defect detection of prefilled syringes is inefficient and error-prone. It is difficult for traditional methods to fully cover the detection area, and there are problems of missed detection and mixed detection.

Method used

Multiple area scan cameras are used to capture pre-filled syringes, combined with rotation control and various auxiliary signal analyses, to detect component positions and defect status in real time. Machine vision technology and deep learning models are used to achieve rapid automatic detection.

Benefits of technology

It achieves high recognition rate and rapid detection, with detection accuracy reaching over 99.5% and detection speed completed within 0.8 seconds, reducing detection costs and improving user experience and production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655138A
    Figure CN118655138A
Patent Text Reader

Abstract

The invention relates to a method for detecting defects of a pre-filled syringe, which comprises the following steps of: respectively shooting the pre-filled syringe by using a plurality of area-array cameras, and controlling the pre-filled syringe to rotate to obtain a detection image; on the basis of the detection image, detecting the part position of the pre-filled syringe in real time; according to a preset detection standard of the position of each part of the pre-filled syringe, respectively identifying a defect state of the position of each part; and integrating the defect state of each part position, and generating a detection result of the pre-filled syringe. According to the invention, by shooting the image in the rotation process of the pre-filled syringe and identifying the defect state of the position of each part based on the preset large model, rapid automatic detection in the production process of the pre-filled syringe is realized, the problems of missing detection and mixed detection in the traditional detection process are avoided, the production efficiency is improved, the detection cost is effectively reduced, and the production efficiency is improved. And the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of medical consumables, and in particular relates to a method for detecting defects of prefilled syringes. Background Art

[0002] Prefilled syringes are a new type of drug packaging developed in the 1990s. After more than ten years of promotion and use, they have played a good role in preventing the spread of infectious diseases and the development of medical care. Prefilled syringes are mainly used for packaging and storage of high-end drugs and are directly used for injection or for flushing in ophthalmology, otology, orthopedics and other surgeries.

[0003] Prefilled syringes are a type of medical consumables, and the demand for integrity defect detection is increasing. However, with the rising labor costs, low efficiency of manual detection, traditional algorithms are prone to missed identification, and mixed defect types are detected. Summary of the invention

[0004] Aiming at the problems that traditional methods for integrity defect detection of prefilled syringes are inefficient and error-prone, a defect detection method for prefilled syringes is proposed.

[0005] The technical solution of the present invention is:

[0006] A method for detecting defects in prefilled syringes, comprising:

[0007] S10: using a plurality of area array cameras to respectively photograph the prefilled syringe, controlling the rotation of the prefilled syringe, and acquiring a detection image;

[0008] S20: Based on the detection image, detecting the position of the components of the prefilled syringe in real time;

[0009] S30: According to the preset inspection standard of each component position of the prefilled syringe, the defect state of each component position is identified respectively;

[0010] S40: Integrate the defect status of each component position to generate the inspection result of the prefilled syringe.

[0011] Optionally, the prefilled syringe is photographed separately using multiple area array cameras, and the prefilled syringe is controlled to rotate. In the process of acquiring the detection image, the multiple area array cameras are controlled to work synchronously, and when the product position is first identified, the prefilled syringe is controlled to start rotating.

[0012] Optionally, the process of using a plurality of area array cameras to photograph the prefilled syringe respectively, controlling the rotation of the prefilled syringe, and acquiring the detection image further includes at least one of the following:

[0013] Detecting an audio signal generated by the prefilled syringe, and performing a first auxiliary determination on the position state of the prefilled syringe by analyzing the frequency characteristics and amplitude characteristics of the audio signal;

[0014] Detecting a pressure signal applied to the prefilled syringe, and performing a second auxiliary determination on the position state of the prefilled syringe by analyzing the amplitude and time characteristics of the pressure signal;

[0015] Detecting a gravity signal of the prefilled syringe, and performing a third auxiliary determination on the position state of the prefilled syringe by analyzing the amplitude characteristics and time characteristics of the gravity signal;

[0016] Perform electromagnetic detection on the prefilled syringe, detect the electromagnetic interference signal and electromagnetic reflection signal of the prefilled syringe, extract the frequency characteristics and amplitude characteristics of the electromagnetic interference signal and the electromagnetic reflection signal, and perform a fourth auxiliary determination on the position status of the prefilled syringe.

[0017] Optionally, the process of using a plurality of area array cameras to photograph the prefilled syringes separately includes:

[0018] Taking at least one area array camera as a reference camera, obtaining an exposure reference value of the reference camera;

[0019] Monitor the exposure data of the images taken by each area array camera and adjust the exposure parameters of each area array camera in real time;

[0020] The exposure values ​​of images taken by multiple area array cameras at the same time are averaged to reduce exposure differences.

[0021] Optionally, the prefilled syringe is arranged on a rotating platform to realize rotation control; during the process of controlling the rotation of the prefilled syringe, the rotation angle, rotation speed, rotation acceleration and rotation angular velocity data of the rotating platform are detected, and combined with the detected image, the component position and status information of the prefilled syringe are monitored in real time based on the machine vision technology of the closed-loop control system.

[0022] Optionally, the process of detecting the position of the components of the prefilled syringe in real time based on the detection image includes:

[0023] Perform optical calibration on multiple area array cameras respectively to obtain the fitting relationship between the grayscale value and exposure of the target area photographed by each area array camera;

[0024] Based on the fitting relationship, a brightness test is performed according to the detection image to perform contour marking and brightness calculation on the prefilled syringe;

[0025] The component position of the prefilled syringe is identified based on the contour mark and the brightness calculation result.

[0026] Optionally, the process of optically calibrating the multiple area array cameras respectively to obtain the fitting relationship between the grayscale value and the exposure of the target area photographed by each area array camera includes:

[0027] Controlling the area array camera to collect multiple frames of images containing the target area under a preset exposure time and aperture size, so as to perform image processing to obtain multiple frames of grayscale images and corresponding average grayscale values;

[0028] Obtain the brightness value of the target area to be photographed, and obtain multiple exposure values ​​corresponding to multiple images of the target area through a preset expression;

[0029] Based on the multiple grayscale values ​​and the multiple exposure amounts, fitting modeling is performed on the sensitivity curves of the multiple area array cameras to obtain fitting functions of the multiple grayscale values ​​and the multiple exposure amounts.

[0030] Optionally, the process of controlling the area array camera to collect multiple frames of images containing the target area under preset exposure time and aperture size to perform image processing to obtain multiple frames of grayscale images includes:

[0031] The image super-resolution technology based on the event camera measures the brightness change of each pixel and encodes the timestamp and pixel coordinates of the brightness change.

[0032] Based on the contour marking of the prefilled syringe, potential grayscale image reconstruction and multi-image fusion are performed to reconstruct a high-quality high-resolution grayscale image.

[0033] Optionally, during the process of reconstructing the latent grayscale image and fusing multiple images, the grayscale image generated by the contour marking acquired by the camera is converted into a grayscale space domain, the grayscale residual is estimated using a spatiotemporal voxel grid, and is simultaneously input into a latent frame reconstruction network together with the grayscale image, the grayscale image generated by the contour marking and the spatiotemporal voxel grid are separately encoded, and the feature maps acquired are separately fused and decoded at each layer of feature maps to calculate the grayscale residual to reconstruct the latent frame of the grayscale image; the grayscale image generated by the contour marking and the grayscale information encoded in the event data are converted into the pixel grayscale values ​​of the latent frame, the feature maps of different frames in multiple pyramid levels are extracted based on the convolution theory, and the offset between the feature maps of the different frames is calculated to align the latent frames and input them into a fusion layer, so that the fusion layer splices the aligned latent frames by channel.

[0034] Optionally, the process of detecting the position of the components of the prefilled syringe in real time based on the detection image and thereafter includes:

[0035] Based on multi-angle visual monitoring and combined with three-dimensional reconstruction technology, the first shape information of the prefilled syringe is captured;

[0036] Adopting an elastic matching algorithm, fusing the pressure sensor data and the gravity sensor data based on the first shape information, identifying the shape change data of the prefilled syringe, and generating second shape information;

[0037] Using deep learning technology, feature extraction is performed on the monitoring image based on a pre-trained deep learning model, and feature matching of each component position is performed in combination with the second shape information to determine the status information of each component position of the prefilled syringe.

[0038] The present invention captures images during the rotation of the prefilled syringe and identifies the defect status of each component position based on a preset large model, thereby realizing rapid and automatic detection during the production of the prefilled syringe, avoiding the problems of missed detection and mixed detection in the traditional detection process, improving production efficiency, effectively reducing detection costs, and improving user experience. According to actual measurements, the beneficial effects of the present invention include at least:

[0039] 1) High recognition rate, comprehensive coverage of product detection surface, detection accuracy above 99.5%;

[0040] 2) Fast detection speed: 4 cameras can detect dozens of pictures of a product within 0.8 seconds;

[0041] 3) It is highly improveable and editable. Users can regularly add modifications based on the test results of samples and train and update the model by themselves. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic diagram of the process of the method for detecting defects of prefilled syringes of the present invention.

[0043] Figure 2 The present invention is a specific flow chart of the defect detection of the prefilled syringe. DETAILED DESCRIPTION

[0044] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0045] First embodiment:

[0046] The present invention provides a method for detecting defects of prefilled syringes. Figure 1 It is a schematic diagram of the process of the method for detecting defects of prefilled syringes of the present invention.

[0047] like Figure 1As shown, in one embodiment, a method for detecting defects in prefilled syringes includes:

[0048] S10: using a plurality of area array cameras to photograph the prefilled syringes respectively, controlling the rotation of the prefilled syringes, and acquiring detection images.

[0049] In the application of machine vision technology in the field of industrial production, industrial-grade area array cameras are the core hardware of visual applications. In the image captured by the camera, the image details are determined by the resolution. The resolution is determined by the selected lens focal length. For the same camera, the resolution is determined by the selected lens focal length. The area array camera realizes pixel matrix shooting, which can be widely used in the measurement of data such as area, shape, size, position and temperature. For example, the prefilled syringe can be set on a rotating platform, and the host computer monitors the position status of the product to be tested in real time. After the product enters the detection area, the product rises and rotates quickly within 0.8 seconds. The host computer gives 4 area array cameras respectively. For the prefilled syringe currently set on the rotating platform, it can take the overall image or take the head, shoulder, tube body, and handle separately, and the soft trigger command takes pictures. According to the needs of product inspection, if it is necessary to capture the full appearance of the product, each camera can take multiple shots during the rotation process.

[0050] S20: Based on the detection image, detect the component positions of the prefilled syringe in real time.

[0051] Exemplarily, after obtaining partial or whole images of the prefilled syringe taken by multiple area array cameras, the head position, shoulder position, tube body position, handle position, etc. are segmented out respectively through pixel segmentation.

[0052] S30: According to the preset detection standard of each component position of the prefilled syringe, the defect status of each component position is identified respectively.

[0053] Exemplarily, after the head position of the prefilled syringe is identified, the head is classified into normal, head scratches\indentations, round heads, dirty heads and other defects. Exemplarily, after the shoulder position of the prefilled syringe is identified, defects such as broken shoulders, shoulder outer lines, and shoulder black marks are annotated according to pixel segmentation. Exemplarily, after the tube body position of the prefilled syringe is identified, defects such as scratches, no tube, and dirt are annotated according to pixel segmentation, among which the distinction between no tube and dirty defects requires giving PLC instructions to the review area. Exemplarily, after the handle position of the prefilled syringe is identified, the handle position is annotated according to pixel segmentation to defects such as handle deformation, scratches on the inner circle of the handle, and abnormal handle edges.

[0054] S40: Integrate the defect status of each component position to generate the inspection result of the prefilled syringe.

[0055] Exemplarily, after the defect condition of each component position is obtained, all component position detection results are integrated and sent to the PLC.

[0056] In this embodiment, by capturing images during the rotation of the prefilled syringe, the defect status of each component position is identified based on a preset large model, so that rapid and automatic inspection of the prefilled syringe production process can be achieved, which can improve production efficiency and reduce inspection costs.

[0057] Optionally, the prefilled syringe is photographed separately using multiple area array cameras, and the prefilled syringe is controlled to rotate. In the process of acquiring the detection image, the multiple area array cameras are controlled to work synchronously, and when the product position is first identified, the prefilled syringe is controlled to start rotating.

[0058] Exemplarily, a prefilled syringe product rotating device platform is introduced to realize the rotation of the product during the photo shooting process. The device can be a rotating platform or a clamping device, which can control the product to rotate in the horizontal or vertical direction. Among them, multiple area array cameras can work synchronously so as to capture images of different parts within a predetermined time. In order to accurately identify the position of the prefilled syringe components during the rotation process, the current position of the prefilled syringe product is first identified before the rotation starts. When the product position is first identified, the prefilled syringe is controlled to start rotating.

[0059] Optionally, the process of using a plurality of area array cameras to respectively photograph the prefilled syringe, controlling the rotation of the prefilled syringe, and acquiring the detection image may further include:

[0060] An audio signal generated by the prefilled syringe is detected, and a first auxiliary determination is made on the position state of the prefilled syringe by analyzing the frequency characteristics and amplitude characteristics of the audio signal.

[0061] Exemplarily, a microphone or other sound device is used to perform sound or ultrasonic monitoring of the product. Sound monitoring can detect audio signals generated by the product, such as noise generated by mechanical movement or vibration. By analyzing the characteristics of the audio signal, such as frequency and amplitude, the position status information of the product can be obtained. The captured audio signal can be processed and analyzed, for example, using a signal processing algorithm to extract the frequency, amplitude and other characteristics of the sound signal, and determine the product position status.

[0062] Optionally, the process of using a plurality of area array cameras to respectively photograph the prefilled syringe, controlling the rotation of the prefilled syringe, and acquiring the detection image may further include:

[0063] The pressure signal received by the prefilled syringe is detected, and the amplitude and time characteristics of the pressure signal are analyzed to perform a second auxiliary determination on the position state of the prefilled syringe.

[0064] For example, a pressure sensor or other pressure equipment is used to monitor the pressure of the product. Pressure monitoring can detect the size and distribution of the pressure on the product, thereby obtaining the position status information of the product. The monitored pressure signal can be processed and analyzed, for example, using a signal processing algorithm to extract the amplitude, time and other characteristics of the pressure signal, and determine the position status of the product.

[0065] Optionally, the process of using a plurality of area array cameras to respectively photograph the prefilled syringe, controlling the rotation of the prefilled syringe, and acquiring the detection image may further include:

[0066] The gravity signal of the prefilled syringe is detected, and a third auxiliary determination is made on the position state of the prefilled syringe by analyzing the amplitude characteristics and time characteristics of the gravity signal.

[0067] For example, a gravity sensor or other gravity equipment is used to monitor the gravity of the product. Gravity monitoring can detect the magnitude and distribution of gravity on the product, thereby obtaining the position status information of the product. The monitored gravity signal is processed and analyzed, for example, using a signal processing algorithm to extract the amplitude, time and other characteristics of the gravity signal, and determine the position status of the product.

[0068] Optionally, the process of using a plurality of area array cameras to respectively photograph the prefilled syringe, controlling the rotation of the prefilled syringe, and acquiring the detection image may further include:

[0069] Perform electromagnetic detection on the prefilled syringe, detect the electromagnetic interference signal and electromagnetic reflection signal of the prefilled syringe, extract the frequency characteristics and amplitude characteristics of the electromagnetic interference signal and the electromagnetic reflection signal, and perform a fourth auxiliary determination on the position status of the prefilled syringe.

[0070] Exemplarily, electromagnetic sensors or other electromagnetic devices are used to perform electromagnetic monitoring on products. Electromagnetic monitoring can detect the electromagnetic interference or signal reflection characteristics of the product, thereby obtaining the position status information of the product. The monitored electromagnetic signals are processed and analyzed, for example, using signal processing algorithms to extract the frequency, amplitude and other characteristics of the electromagnetic signals, and determine the position status of the product.

[0071] Optionally, the process of using a plurality of area array cameras to photograph the prefilled syringes separately includes:

[0072] Taking at least one area array camera as a reference camera, obtaining an exposure reference value of the reference camera;

[0073] Monitor the exposure data of the images taken by each area array camera and adjust the exposure parameters of each area array camera in real time;

[0074] The exposure values ​​of images taken by multiple area array cameras at the same time are averaged to reduce exposure differences.

[0075] For example, during the shooting process of the area array camera, a real-time feedback mechanism can be established to monitor the exposure of each camera and adjust the exposure parameters in time to ensure the exposure accuracy of each camera. At the same time, the exposure values ​​of the images taken by multiple cameras are averaged to reduce the exposure difference, which can be achieved through software algorithms. It is also possible to select a camera as a reference camera and use its exposure setting as the benchmark value for other cameras to ensure that the exposure of other cameras is consistent with the reference camera, thereby achieving exposure and focus accuracy.

[0076] Optionally, the prefilled syringe is arranged on a rotating platform to realize rotation control; during the process of controlling the rotation of the prefilled syringe, the rotation angle, rotation speed, rotation acceleration and rotation angular velocity data of the rotating platform are detected, and combined with the detected image, the component position and status information of the prefilled syringe are monitored in real time based on the machine vision technology of the closed-loop control system.

[0077] For example, the inertial sensor can be used to detect the rotation angle and speed of the rotating platform, as well as parameters such as the acceleration and angular acceleration of the rotating platform, so as to monitor the motion state of the rotating platform in real time and improve the accuracy of detection.

[0078] Optionally, the process of detecting the position of the components of the prefilled syringe in real time based on the detection image includes:

[0079] Perform optical calibration on multiple area array cameras respectively to obtain the fitting relationship between the grayscale value and exposure of the target area photographed by each area array camera;

[0080] Based on the fitting relationship, a brightness test is performed according to the detection image to perform contour marking and brightness calculation on the prefilled syringe;

[0081] The component position of the prefilled syringe is identified based on the contour mark and the brightness calculation result.

[0082] For example, multiple cameras can be optically calibrated to obtain the corresponding data of the grayscale value and exposure of the target area of ​​the prefilled syringe in the image taken by each camera, and the fitting mathematical expression of the grayscale value and exposure can be calculated; according to the fitting curve, the fitting function of the image grayscale value and exposure can be obtained. According to the fitting function, the camera can be used to collect images, and brightness testing can be performed through image processing to perform contour marking and brightness calculation of the target area of ​​the prefilled syringe that needs to be photographed.

[0083] Optionally, the process of optically calibrating the multiple area array cameras respectively to obtain the fitting relationship between the grayscale value and the exposure of the target area photographed by each area array camera includes:

[0084] Controlling the area array camera to collect multiple frames of images containing the target area under a preset exposure time and aperture size, so as to perform image processing to obtain multiple frames of grayscale images and corresponding average grayscale values;

[0085] Obtain the brightness value of the target area to be photographed, and obtain multiple exposure values ​​corresponding to multiple images of the target area through a preset expression;

[0086] Based on the multiple grayscale values ​​and the multiple exposure amounts, fitting modeling is performed on the sensitivity curves of the multiple area array cameras to obtain fitting functions of the multiple grayscale values ​​and the multiple exposure amounts.

[0087] Exemplarily, a brightness meter is placed in place, and the brightness meter is used to measure the brightness of the target area; by controlling the digital camera to capture an image containing the target area at a specific shutter time (exposure time) and aperture size, the image is processed to obtain a grayscale image and a grayscale value, wherein the grayscale value is the average grayscale value of all pixels in the target area in the image; the brightness of the target object is known, and the exposure of the target object in the image can be calculated by a preset expression. A set of corresponding data of grayscale value and exposure is obtained under a fixed shutter time and aperture size. By controlling the digital camera, the shutter time of the digital camera is continuously changed, and a set of multiple pictures with different shutter times under the same brightness are taken; the brightness of the brightness source is changed and the above process is repeated, and finally multiple sets of data are analyzed to obtain the corresponding relationship between grayscale value and exposure under a fixed aperture size, and the photosensitivity curve of the digital camera is obtained to complete the optical calibration. Under the premise that the aperture size of the optical calibration is fixed, the grayscale value has a good linear relationship with the exposure when it is 0 to 200, and the fitting function of the image grayscale value and exposure can be obtained according to the fitting curve. According to the fitting function, the camera can be used to capture images, and brightness testing can be achieved through image processing to perform contour marking and brightness calculation on the target area of ​​the prefilled syringe that needs to be photographed.

[0088] Optionally, the process of controlling the area array camera to collect multiple frames of images containing the target area under preset exposure time and aperture size to perform image processing to obtain multiple frames of grayscale images includes:

[0089] The image super-resolution technology based on the event camera measures the brightness change of each pixel and encodes the timestamp and pixel coordinates of the brightness change.

[0090] Based on the contour marking of the prefilled syringe, potential grayscale image reconstruction and multi-image fusion are performed to reconstruct a high-quality high-resolution grayscale image.

[0091] For example, the image super-resolution (SR) technology based on the event camera can improve the resolution of the grayscale image taken by the event camera, thereby obtaining a high-resolution grayscale image with richer details. The high-resolution grayscale image can not only obtain better visualization effects, but also build a bridge between the event camera and high-level visual tasks, which helps to improve the accuracy of high-level visual tasks. The event camera asynchronously measures the brightness change of each pixel and outputs a series of event streams, encoding the timestamp of the brightness change, the pixel coordinates and the positive and negative polarity.

[0092] For example, in order to obtain a higher resolution image through the event camera, based on the contour marking of the target area of ​​the prefilled syringe that needs to be photographed, potential grayscale image reconstruction and multi-image fusion can be performed to reconstruct a high-quality high-resolution grayscale image. Based on a series of event data, the pixel values ​​of the fused high-resolution grayscale image are stable and continuous. The edge details of the contour of the target area of ​​the prefilled syringe are sharper, so as to accurately identify the image features of the target area.

[0093] Optionally, during the process of reconstructing the latent grayscale image and fusing multiple images, the grayscale image generated by the contour marking acquired by the camera is converted into a grayscale space domain, the grayscale residual is estimated using a spatiotemporal voxel grid, and is simultaneously input into a latent frame reconstruction network together with the grayscale image, the grayscale image generated by the contour marking and the spatiotemporal voxel grid are separately encoded, and the feature maps acquired are separately fused and decoded at each layer of feature maps to calculate the grayscale residual to reconstruct the latent frame of the grayscale image; the grayscale image generated by the contour marking and the grayscale information encoded in the event data are converted into the pixel grayscale values ​​of the latent frame, the feature maps of different frames in multiple pyramid levels are extracted based on the convolution theory, and the offset between the feature maps of the different frames is calculated to align the latent frames and input them into a fusion layer, so that the fusion layer splices the aligned latent frames by channel.

[0094] Exemplarily, in the step of reconstructing the latent grayscale image, since the spatial domain of the event stream is sparse, the grayscale image generated by the contour mark obtained by the area array camera can be converted into the grayscale spatial domain as the event signal. You can choose to use the spatiotemporal voxel grid as the representation of the event signal to estimate the grayscale residual value, and input it into the latent frame reconstruction network at the same time as the grayscale image. The contour mark grayscale image and the event spatiotemporal voxel grid are encoded separately, and the feature map at each layer is fused, and the acquired feature map is decoded, and the grayscale residual is calculated to reconstruct the grayscale image latent frame.

[0095] In the multi-image fusion step, the grayscale information encoded in the grayscale image and event data is converted into the pixel grayscale value of the latent frame. The feature maps of different frames in multiple pyramid levels are extracted by deformable convolution, and the offset between them is calculated to align the latent frames. The aligned latent frames are input into the fusion layer, and then the high-resolution grayscale image of the target area of ​​the prefilled syringe is reconstructed by channel splicing, so that the image features of the target area can be accurately extracted.

[0096] Optionally, the process of detecting the position of the components of the prefilled syringe in real time based on the detection image and thereafter includes:

[0097] Based on multi-angle visual monitoring and combined with three-dimensional reconstruction technology, the first shape information of the prefilled syringe is captured;

[0098] Adopting an elastic matching algorithm, fusing the pressure sensor data and the gravity sensor data based on the first shape information, identifying the shape change data of the prefilled syringe, and generating second shape information;

[0099] Using deep learning technology, feature extraction is performed on the monitoring image based on a pre-trained deep learning model, and feature matching of each component position is performed in combination with the second shape information to determine the status information of each component position of the prefilled syringe.

[0100] For example, deep learning technology is used to train the model to identify products of different shapes and postures, and to optimize the detection algorithm. The deep learning model has strong feature extraction and classification capabilities, which can help improve the adaptability to shape changes. The elastic matching algorithm can overcome the impact of shape changes to a certain extent, and achieve accurate detection of the product position status through flexible matching of product shapes. This algorithm can tolerate shape changes to a certain extent and improve the robustness of detection.

[0101] The present application realizes rapid and automatic inspection in the production process of prefilled syringes by capturing images during the rotation process of the prefilled syringes and identifying the defect status of each component position based on a preset large model, thereby avoiding the problems of missed inspections and mixed inspections in traditional inspection processes, improving production efficiency, effectively reducing inspection costs, and improving user experience.

[0102] Second embodiment:

[0103] Figure 2 The present invention is a specific flow chart of the defect detection of the prefilled syringe.

[0104] like Figure 2 As shown, in one embodiment, the defect detection process for the prefilled syringe may include the following steps:

[0105] Step 1: Take photos. The host computer monitors the position of the product to be inspected in real time. After the product enters the inspection area, it rises and rotates quickly within 0.8 seconds. The host computer gives soft trigger instructions to 4 area array cameras (respectively photographing the head, shoulders, tube body, and handle) to take photos. It is necessary to capture the full appearance of the product, and each camera takes photos multiple times during the rotation process.

[0106] Step 2: Detect (head), segment the head position through pixel segmentation, and then classify the head into normal, head scratches / indentations, round head, dirty head and other defects according to the head position.

[0107] Step 3: Detect (shoulder), segment the shoulder position through pixel segmentation, and then mark the shoulder position with defects such as broken shoulder, outer shoulder lines, and black shoulder marks based on pixel segmentation.

[0108] Step 4: Detect (tube body), segment and mark defects such as scratches, missing tubes, dirt, etc. according to pixels. To distinguish between missing tubes and dirt defects, PLC instructions need to be given to the review area.

[0109] Step 5: Detect (handle), segment the handle position through pixel segmentation, and then mark the handle position according to pixel segmentation to identify defects such as handle deformation, scratches on the inner circle of the handle, and abnormal handle edges.

[0110] Step 6: Integrate all image detection results from all cameras and send them to PLC.

[0111] To implement the above defect detection steps, the system can be set up according to the following instructions.

[0112] First, arrange the area array camera.

[0113] 1. Number of cameras: It is preferred to use 4 area array cameras, which are used to photograph the head, shoulder, tube body and handle of the prefilled syringe. These 4 cameras should be able to fully capture all parts of the prefilled syringe while ensuring the appropriateness of the shooting angle and distance. The number of cameras can be changed based on actual needs and budget.

[0114] 2. Camera performance: Choose a high-resolution, fast-response area array camera to ensure that images with clear details are captured. The camera’s resolution should be able to meet the inspection requirements, and the response speed should also be fast enough to capture images of different parts within the predetermined time.

[0115] 3. Installation position: Install the camera to ensure that all parts of the prefilled syringe can be fully photographed, while ensuring the appropriate shooting angle and distance. The camera installation position should be adjusted according to the shape and size of the prefilled syringe.

[0116] Preferably, the camera is mounted in a fixed position to capture the entire product. Ensure that the camera angle and position can fully capture all parts of the prefilled syringe.

[0117] Preferably, a product rotating device is introduced to rotate the product during the photographing process. The device can be a rotating platform or a clamping device, which can control the product to rotate in the horizontal or vertical direction.

[0118] Preferably, a rotating platform is designed, which can realize the rotation function through motor drive or cylinder control. The rotating platform should be able to stably support the product and realize precise rotation angle control.

[0119] Preferably, the rotating platform may have the following features:

[0120] Structural stability: The rotating platform should be stable enough to support the weight of the product to be photographed and maintain smooth rotation.

[0121] Material selection: Choose durable and lightweight materials, such as aluminum alloy or engineering plastics, to ensure the stability and durability of the rotating platform.

[0122] Surface Finish: The surface finish should be smooth to avoid scratches or damage to the product.

[0123] Preferably, the control system of the rotating platform can be designed as follows:

[0124] If a motor is used, ensure that the motor can accurately control the rotation angle and has sufficient torque to rotate the product.

[0125] If cylinder control is used, ensure that the cylinder can control the rotation movement quickly and accurately.

[0126] An encoder feedback device can be added to the control system to monitor the position of the rotating platform in real time to ensure precise control of the rotation angle.

[0127] Optionally, during the adjustment of the rotation angle:

[0128] The rotation angle of the rotating platform can be adjusted according to the shape of the product and the part that needs to be photographed. Make sure the angle is adjusted accurately so that the camera can capture the full view of the product.

[0129] It is possible to consider introducing an automatic adjustment function to make the adjustment of the rotation angle more convenient and accurate.

[0130] Optionally, attention should be paid in the design and operation of the rotating platform:

[0131] It can ensure that the product can be firmly fixed on the rotating platform during the rotation process to prevent the product from slipping or shifting.

[0132] Emergency stop mechanisms can be designed to respond to unexpected situations, ensuring the safety of operators and products.

[0133] It can ensure that the four cameras can work synchronously so that images of different parts can be captured within a predetermined time. This can be achieved through hardware triggering or software triggering. Hardware triggering can be achieved through external triggers, while software triggering needs to be controlled on the host computer. Furthermore, the synchronization of product rotation and camera shooting is ensured so that the camera can capture the complete product image when the product rotates to the specified position.

[0134] Preferably, a control system is introduced to control the rotation angle of the rotating platform. The control system can communicate with the host computer so as to control the rotation of the product when taking pictures.

[0135] Preferably, during the synchronous control process:

[0136] A trigger signal can be set in the control system to ensure synchronization between product rotation and camera shooting.

[0137] Hardware / Software Triggering: The synchronization of product rotation and camera shooting can be achieved through hardware trigger signals (such as sensors) or software triggering (sending instructions through the control system).

[0138] During the defect detection process of prefilled syringes, the following control technology solutions can be implemented:

[0139] 1. Host computer monitoring: The host computer monitors the position status of the product to be inspected in real time, and controls each camera to take pictures through soft trigger instructions. The host computer should be able to monitor the position status of the product to be inspected in real time so that it can issue a photo command when the product reaches the inspection position. Soft trigger instructions can be implemented through serial port communication or network communication.

[0140] When it is necessary to detect the position status of a product, a combination of multiple monitoring methods can be used to improve the accuracy of the detection and judgment. For example, on the basis of visual monitoring, sound, pressure, gravity or electromagnetic monitoring can be combined to improve the accuracy of the detection and judgment. The following are some possible monitoring methods:

[0141] Visual monitoring is possible: cameras or other visual devices are used to capture and monitor products. Visual monitoring can provide high-resolution images for detailed inspection and analysis of products. In addition, visual monitoring can detect product features such as color, shape, size, etc., so as to classify and identify products. The captured images or videos can be processed and analyzed, such as using image processing algorithms to extract product features and classify and identify them.

[0142] Sound or ultrasonic monitoring can be performed: A microphone or other sound device can be used to perform sound or ultrasonic monitoring on the product. Sound monitoring can detect audio signals generated by the product, such as noise generated by mechanical movement or vibration. By analyzing the characteristics of the audio signal, such as frequency and amplitude, the position status information of the product can be obtained. The captured audio signal can be processed and analyzed, for example, using signal processing algorithms to extract the frequency, amplitude and other characteristics of the sound signal, and determine the position status of the product.

[0143] Pressure monitoring can be performed: pressure sensors or other pressure equipment can be used to monitor the pressure of products. Pressure monitoring can detect the size and distribution of the pressure on the product, thereby obtaining information about the position status of the product. The monitored pressure signal can be processed and analyzed, for example, using signal processing algorithms to extract the amplitude, time and other characteristics of the pressure signal, and determine the position status of the product.

[0144] Gravity monitoring can be performed: gravity sensors or other gravity equipment can be used to monitor the gravity of products. Gravity monitoring can detect the size and distribution of gravity on the product, thereby obtaining information about the product's position status. The monitored gravity signal is processed and analyzed, for example, using a signal processing algorithm to extract the amplitude, time and other characteristics of the gravity signal, and determine the product's position status.

[0145] Electromagnetic monitoring can be performed: electromagnetic sensors or other electromagnetic equipment can be used to perform electromagnetic monitoring on products. Electromagnetic monitoring can detect the electromagnetic interference or signal reflection characteristics of the product, thereby obtaining information about the product's location status. The monitored electromagnetic signals are processed and analyzed, for example, using signal processing algorithms to extract the frequency, amplitude and other characteristics of the electromagnetic signals, and determine the product's location status.

[0146] When the host computer monitors the position status of the product to be inspected in real time, the shape of the product may change during the rotation process, such as bending or twisting. This may cause the host computer to be unable to accurately monitor the position status of the product, thereby affecting the accuracy of the detection judgment. When faced with the problem that the change in product shape may affect the detection judgment, the following technical solutions can be adopted to solve or prevent this problem. In practical applications, it is necessary to select appropriate technical solutions according to specific circumstances, and combine multiple methods to cooperate with each other to cope with the challenges that may be brought about by product shape changes.

[0147] Multi-angle visual monitoring can be used. By taking images or videos of the product from different angles and combining them with 3D reconstruction technology, the shape information of the product can be captured more comprehensively. This can reduce the impact of shape changes caused by a single angle view and improve the accuracy of detection.

[0148] Real-time shape modeling technology can be used to accurately track and predict changes in product shape by continuously updating the subtle differences in the shape model of each product. This allows the detection algorithm to be adjusted in time when the shape changes, ensuring accurate monitoring of the product's position status.

[0149] Deep learning technology can be used to train models to recognize products of different shapes and postures and optimize detection algorithms. Deep learning models have strong feature extraction and classification capabilities, which can help improve adaptability to shape changes.

[0150] An elastic matching algorithm can be used. The elastic matching algorithm can overcome the impact of shape changes to a certain extent, and achieve accurate detection of product position status through flexible matching of product shapes. This algorithm can tolerate shape changes to a certain extent and improve the robustness of detection.

[0151] In addition to visual monitoring, other sensor data, such as pressure sensors, gravity sensors, etc., can also be combined to obtain more comprehensive product information. Through comprehensive analysis of multiple sensor data, the position status of the product can be judged more accurately and the impact of shape changes can be reduced.

[0152] A real-time feedback mechanism can be established to timely monitor the impact of shape changes on detection results, and adjust the detection algorithm parameters or strategies based on the feedback information to adapt to shape changes and ensure detection accuracy.

[0153] When the host computer monitors the position status of the product to be detected in real time, if the stability of the rotating platform is not high enough, the product may shift or tilt during the rotation process. This may affect the host computer's detection and judgment of the product's position status. When faced with the problem that the stability of the rotating platform may affect the detection and judgment, the following technical solutions can be used to solve or prevent this problem:

[0154] Increase the stability of the rotating platform: The stability of the rotating platform can be increased by optimizing the structural design of the rotating platform, adding stability support points, adjusting the center of gravity of the rotating platform, etc., thereby improving the accuracy of the detection and judgment of the position status of the product to be inspected.

[0155] Use inertial sensors: Inertial sensors can be used to detect the rotation angle and speed of the rotating platform, as well as parameters such as the acceleration and angular acceleration of the rotating platform, so as to monitor the motion state of the rotating platform in real time and improve the accuracy of detection.

[0156] Use encoder: The encoder can be used to detect parameters such as the rotation angle and speed of the rotating platform, thereby monitoring the motion state of the rotating platform in real time and improving the accuracy of detection.

[0157] Adopt closed-loop control system: The closed-loop control system can monitor the motion state of the rotating platform in real time and feed it back to the control system for control, thereby achieving precise control of the motion of the rotating platform and improving the accuracy of the detection and judgment of the position state of the product to be inspected.

[0158] Use machine vision technology: Machine vision technology can analyze images or videos of the products to be inspected and monitor the position status of the products to be inspected in real time, thereby reducing the requirements for the stability of the rotating platform and improving the accuracy of detection.

[0159] Adopt multi-sensor fusion technology: Multi-sensor fusion technology can fuse the data of multiple sensors, so as to realize accurate monitoring of the position status of the product to be inspected, reduce the requirements for the stability of the rotating platform, and improve the accuracy of detection.

[0160] If the rotation speed is too fast, the host computer may not be able to monitor the position status of the product in time, thus affecting the accuracy of the detection and judgment. The following technical solutions can be adopted to solve or prevent this problem:

[0161] The inertia of the rotating platform can be increased. Increasing the inertia of the rotating platform can slow down the rotation speed of the rotating platform, thereby reducing the influence of the rotation speed on the detection and judgment of the position state of the product to be detected.

[0162] A deceleration device may be used. The deceleration device may slow down the rotation speed of the rotating platform, thereby reducing the influence of the rotation speed on the detection and determination of the position state of the product to be detected.

[0163] A closed-loop control system can be used. The closed-loop control system can monitor the motion state of the rotating platform in real time and accurately control the rotation speed, thereby reducing the influence of the rotation speed on the detection and judgment of the position state of the product to be detected.

[0164] An encoder can be used to detect the rotation speed of the rotating platform, thereby monitoring the change of the rotation speed in real time and reducing the influence of the rotation speed on the detection and judgment of the position status of the product to be detected.

[0165] It can be combined with machine vision technology. Machine vision technology can analyze the image or video of the product to be inspected and monitor the position status of the product to be inspected in real time, thereby reducing the impact of rotation speed on the inspection results.

[0166] Multi-sensor fusion technology can be used. Multi-sensor fusion technology can fuse the data of multiple sensors to achieve accurate monitoring of the position status of the product to be inspected and reduce the impact of rotation speed on the inspection results.

[0167] 2. Each camera takes pictures according to the shooting instructions.

[0168] When taking photos, external sensors or triggers, such as motion sensors, photoelectric sensors, etc., can be deployed to detect specific events or signals of the object to be photographed. When the external trigger detects a signal, all cameras are triggered to shoot at the same time to ensure synchronization.

[0169] If there is a slight difference in the shooting time between cameras, it may also cause the image data to be out of sync, affecting the accuracy of subsequent image processing and analysis. You can use at least one of the following solutions to ensure the synchronization of multiple cameras taking pictures at the same time:

[0170] Use a dedicated hardware trigger or trigger signal generator to control all cameras to shoot simultaneously by sending a trigger signal. The hardware trigger can be connected to the trigger input port of each camera to ensure that they start shooting at the same time when receiving the trigger signal.

[0171] Use timestamps or precise timers in the control system to ensure that when a shooting command is sent, all cameras receive the command and execute the shooting action at the same time. Transmit synchronization commands over the network or bus to ensure that all cameras receive the same shooting command.

[0172] Use the Network Time Protocol (NTP) or a dedicated network synchronization device to ensure that the system time of multiple cameras is consistent. Send a synchronization signal through the network synchronization device so that all cameras can shoot at the same time when the signal is received.

[0173] In a multi-camera system, communication delays between the camera and the control system may cause the transmission of the photo command to be untimely, affecting the synchronization of multiple cameras. In this process, a high-speed network can be used to connect the camera and the control system to reduce communication delays. For example, using Gigabit Ethernet or fiber optic networks can improve data transmission speed and stability. You can also use dedicated networks, such as industrial Ethernet or synchronous Ethernet, to improve communication speed and synchronization. At the same time, using high-performance hardware devices, such as high-speed network cards, high-speed routers and switches, can improve data transmission speed and stability and reduce communication delays. Parameters such as network bandwidth, network topology, network delay and packet size can be adjusted to optimize network settings. In addition, you can use preview mode to transmit the camera's real-time preview image to the control system instead of transmitting the full high-resolution image, thereby reducing data transmission volume and communication delays.

[0174] When controlling multiple cameras to take pictures at the same time, inaccurate exposure and focus may occur, especially when the distance or lighting conditions of the target area of ​​the prefilled syringe are different. At this time, a real-time feedback mechanism can be established to monitor the exposure of each camera and adjust the exposure parameters in time to ensure the exposure accuracy of each camera. The exposure values ​​of the images taken by multiple cameras are averaged at the same time to reduce the exposure difference, which can be achieved through software algorithms. It is also possible to select a camera as a reference camera and use its exposure setting as the baseline value for other cameras to ensure that the exposure of other cameras is consistent with the reference camera.

[0175] Multiple cameras can be optically calibrated to obtain the corresponding data of the grayscale value and exposure of the target area of ​​the prefilled syringe in the image taken by each camera, and the fitting mathematical expression of the grayscale value and exposure can be calculated; optionally, the digital camera can be calibrated to obtain the corresponding relationship between the grayscale value and exposure of the digital camera. The specific process is as follows: a brightness meter is placed in place, and the brightness meter is used to measure the brightness of the target area; the digital camera is controlled to capture an image containing the target area at a specific shutter time (exposure time) and aperture size, and the image is processed to obtain a grayscale image and a grayscale value, wherein the grayscale value is the average grayscale value of all pixels in the target area in the image; the brightness of the target object is known, and the exposure of the target object in the image can be calculated by a preset expression. A set of corresponding data of grayscale value and exposure is obtained under a fixed shutter time and aperture size. By controlling the digital camera, the shutter time of the digital camera is constantly changed, and a group of multiple pictures with different shutter times under the same brightness are taken; the brightness of the brightness source is changed to repeat the above process, and finally multiple sets of data are analyzed to obtain the corresponding relationship between the grayscale value and the exposure under the fixed aperture size, and the photosensitivity curve of the digital camera is obtained to complete the optical calibration. Under the premise of the fixed aperture size of the optical calibration, the grayscale value has a good linear relationship with the exposure when it is from 0 to 200. According to the fitting curve, the fitting function of the image grayscale value and the exposure can be obtained. According to the fitting function, the camera can be used to collect images, and the brightness test can be realized through image processing, and the contour marking and brightness calculation of the target area of ​​the pre-filled syringe that needs to be photographed can be performed.

[0176] Image super-resolution (SR) technology based on event cameras can improve the resolution of grayscale images taken by event cameras, thereby obtaining high-resolution grayscale images with richer details. High-resolution grayscale images can not only achieve better visualization effects, but also build a bridge between event cameras and high-level visual tasks, which helps to improve the accuracy of high-level visual tasks. The event camera asynchronously measures the brightness change of each pixel and outputs a series of event streams, encoding the timestamp of the brightness change, pixel coordinates, and positive and negative polarity.

[0177] In order to obtain a higher resolution image through the event camera, based on the contour marking of the target area of ​​the prefilled syringe that needs to be photographed, potential grayscale image reconstruction and multi-image fusion can be performed to reconstruct a high-quality high-resolution grayscale image. Based on a series of event data, the pixel values ​​of the fused high-resolution grayscale image are stable and continuous. The edge details of the contour of the target area of ​​the prefilled syringe are sharper, so as to accurately identify the image features of the target area.

[0178] In the step of latent grayscale image reconstruction, since the spatial domain of the event stream is sparse, the grayscale image generated by the contour markers captured by the camera can be converted into the grayscale spatial domain as the event signal. You can choose to use the spatiotemporal voxel grid as the representation of the event signal to estimate the grayscale residual value, and input it into the latent frame reconstruction network at the same time as the grayscale image. The contour marker grayscale image and the event spatiotemporal voxel grid are encoded separately, and the feature maps at each layer are fused, and the acquired feature maps are decoded, the grayscale residual is calculated, and the grayscale image latent frame is reconstructed.

[0179] In the multi-image fusion step, the grayscale information encoded in the grayscale image and event data is converted into the pixel grayscale value of the latent frame. The feature maps of different frames in multiple pyramid levels are extracted by deformable convolution, and the offset between them is calculated to align the latent frames. The aligned latent frames are input into the fusion layer, and then the high-resolution grayscale image of the target area of ​​the prefilled syringe is reconstructed by channel splicing, so that the image features of the target area can be accurately extracted.

[0180] 3. Image processing: Use pixel segmentation technology to process the obtained image, segment the locations of different parts, and then classify the defects. Pixel segmentation technology can be implemented through open source image processing libraries such as OpenCV. The locations of different parts can be segmented through pre-trained models or manual annotation. Defect classification can be achieved through deep learning algorithms.

[0181] To segment the locations of different parts of a prefilled syringe through an image, computer vision and image processing techniques can be used, among which image segmentation is a key step.

[0182] Preprocess the image, including denoising, contrast enhancement, etc. Extract the image features of each part, such as shape, color, texture, etc., for further identification and positioning. Determine the position coordinates of each part based on the segmentation results and feature extraction to achieve accurate positioning. Use image segmentation algorithms, such as semantic segmentation, instance segmentation, or edge detection techniques, to segment out different parts of the syringe.

[0183] Suppose we want to segment the injection head, cartridge, and needle of a prefilled syringe:

[0184] Using instance segmentation technology, the injection head of the syringe can be segmented from the entire image. Through feature extraction, the circular outline and specific color of the injection head can be identified, thereby accurately calibrating its position.

[0185] With the help of semantic segmentation technology, the cartridge part can be separated from other parts. The cartridge usually has specific texture and color, which can be segmented and located by these features.

[0186] Using edge detection technology, the needle part of the syringe can be segmented from the surrounding area. The needle usually has a slender shape and specific edge features, which can be detected to locate its position.

[0187] 4. Defect detection algorithm: Apply deep learning algorithms, such as convolutional neural networks (CNN), to extract features and detect defects in images to identify integrity defects in prefilled syringes. The training of deep learning algorithms can be achieved by using existing data sets or collecting data yourself. The trained model can be used in real-time detection.

[0188] For example, when inspecting the head of a prefilled syringe, the position of the head is segmented through pixel segmentation, and the head position is then classified into defects such as normal, scratched, indented, rounded, or dirty.

[0189] For example, when inspecting the shoulder of a prefilled syringe, the shoulder position is segmented through pixel segmentation, and the shoulder position is then labeled based on pixel segmentation to identify defects such as broken shoulders, outer shoulder lines, and black shoulder marks.

[0190] For example, when inspecting the tube body of a prefilled syringe, defects such as scratches, missing tubes, and dirt can be identified based on pixel segmentation and labeling. Distinguishing between missing tubes and dirt defects requires giving PLC instructions to the review area.

[0191] For example, the handle position of a prefilled syringe can be detected by segmenting the handle through pixel segmentation. The handle position is then labeled based on pixel segmentation to identify defects such as handle deformation, scratches on the inner circle of the handle, and abnormalities on the edge of the handle.

[0192] 5. PLC communication: The data of all the image detection results of all the cameras are sent to the PLC for further processing or decision-making. PLC communication can be achieved through protocols such as Modbus and OPC UA. The PLC can decide whether to send the prefilled syringe to the next process or scrap it according to the detection results.

[0193] PLC communication refers to communication based on programmable logic controller (PLC). PLC is a computer control system used for industrial control and automation, which can control and monitor machines and equipment through programming. PLC communication refers to the process of data transmission and communication using PLC.

[0194] 6. Real-time monitoring: Ensure that the system can monitor and process the captured images in real time, and promptly detect and handle any potential problems. Real-time monitoring can be achieved through hardware and software. In terms of hardware, high-speed transmission protocols such as GigE Vision can be used to achieve high-speed transmission of image data. In terms of software, multi-threading or distributed computing can be used to accelerate the speed of image processing and defect detection.

[0195] The above-mentioned embodiments only express the implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for detecting defects in prefilled syringes, It is characterized in that include: S10: using a plurality of area array cameras to respectively photograph the prefilled syringe, controlling the rotation of the prefilled syringe, and acquiring a detection image; S20: Based on the detection image, detecting the position of the components of the prefilled syringe in real time; S30: According to the preset inspection standard of each component position of the prefilled syringe, the defect state of each component position is identified respectively; S40: Integrate the defect status of each component position to generate the inspection result of the prefilled syringe.

2. A method for detecting defects in prefilled syringes according to claim 1, It is characterized in that The multiple area array cameras are used to respectively photograph the prefilled syringe, and the prefilled syringe is controlled to rotate. In the process of acquiring the detection image, the multiple area array cameras are controlled to work synchronously, and when the product position is recognized for the first time, the prefilled syringe is controlled to start rotating.

3. A method for detecting defects in prefilled syringes according to claim 2, It is characterized in that The process of using a plurality of area array cameras to photograph the prefilled syringes respectively, controlling the rotation of the prefilled syringes, and obtaining the detection images further includes at least one of the following: Detecting an audio signal generated by the prefilled syringe, and performing a first auxiliary determination on the position state of the prefilled syringe by analyzing the frequency characteristics and amplitude characteristics of the audio signal; Detecting a pressure signal applied to the prefilled syringe, and performing a second auxiliary determination on the position state of the prefilled syringe by analyzing the amplitude and time characteristics of the pressure signal; Detecting a gravity signal of the prefilled syringe, and performing a third auxiliary determination on the position state of the prefilled syringe by analyzing the amplitude characteristics and time characteristics of the gravity signal; Perform electromagnetic detection on the prefilled syringe, detect the electromagnetic interference signal and electromagnetic reflection signal of the prefilled syringe, extract the frequency characteristics and amplitude characteristics of the electromagnetic interference signal and the electromagnetic reflection signal, and perform a fourth auxiliary determination on the position status of the prefilled syringe.

4. A method for detecting defects in prefilled syringes according to claim 3, It is characterized in that The process of using multiple area array cameras to photograph prefilled syringes includes: Taking at least one area array camera as a reference camera, obtaining an exposure reference value of the reference camera; Monitor the exposure data of the images taken by each area array camera and adjust the exposure parameters of each area array camera in real time; The exposure values ​​of images taken by multiple area array cameras at the same time are averaged to reduce exposure differences.

5. A method for detecting defects in prefilled syringes according to claim 4, It is characterized in that The prefilled syringe is arranged on a rotating platform to realize rotation control; in the process of controlling the rotation of the prefilled syringe, the rotation angle, rotation speed, rotation acceleration and rotation angular velocity data of the rotating platform are detected, and combined with the detected image, the component position and status information of the prefilled syringe are monitored in real time based on the machine vision technology of the closed-loop control system.

6. A method for detecting defects in prefilled syringes according to claim 5, It is characterized in that The process of detecting the position of the components of the prefilled syringe in real time based on the detection image includes: Perform optical calibration on multiple area array cameras respectively to obtain the fitting relationship between the grayscale value and exposure of the target area photographed by each area array camera; Based on the fitting relationship, a brightness test is performed according to the detection image to perform contour marking and brightness calculation on the prefilled syringe; The component position of the prefilled syringe is identified based on the contour mark and the brightness calculation result.

7. A method for detecting defects in prefilled syringes according to claim 6, It is characterized in that The process of optically calibrating the plurality of area array cameras respectively to obtain the fitting relationship between the grayscale value and the exposure of the target area photographed by each area array camera includes: Controlling the area array camera to collect multiple frames of images containing the target area under a preset exposure time and aperture size, so as to perform image processing to obtain multiple frames of grayscale images and corresponding average grayscale values; Obtain the brightness value of the target area to be photographed, and obtain multiple exposure values ​​corresponding to multiple images of the target area through a preset expression; Based on the multiple grayscale values ​​and the multiple exposure amounts, fitting modeling is performed on the sensitivity curves of the multiple area array cameras to obtain fitting functions of the multiple grayscale values ​​and the multiple exposure amounts.

8. A method for detecting defects in prefilled syringes according to claim 7, It is characterized in that The process of controlling the area array camera to collect multiple frames of images containing the target area under a preset exposure time and aperture size to perform image processing to obtain multiple frames of grayscale images includes: Image super-resolution technology based on event cameras measures the brightness change of each pixel and encodes the timestamp and pixel coordinates of the brightness change. Based on the contour marking of the prefilled syringe, potential grayscale image reconstruction and multi-image fusion are performed to reconstruct a high-quality high-resolution grayscale image.

9. A method for detecting defects in prefilled syringes according to claim 8, It is characterized in that In the process of reconstructing the latent grayscale image and fusing multiple images, the grayscale image generated by the contour mark obtained by the camera is converted into the grayscale space domain, the grayscale residual value is estimated using the spatiotemporal voxel grid, and the grayscale residual value is input into the latent frame reconstruction network at the same time as the grayscale image, the grayscale image generated by the contour mark and the spatiotemporal voxel grid are separately encoded, and the feature maps obtained by fusing and decoding the feature maps at each layer are separately fused to calculate the grayscale residual value to reconstruct the latent frame of the grayscale image; The grayscale image generated by the contour marking and the grayscale information encoded in the event data are converted into pixel grayscale values ​​of the potential frame, feature maps of different frames in multiple pyramid levels are extracted based on convolution theory, and the offsets between the feature maps of different frames are calculated to align the potential frames and input them into a fusion layer, so that the fusion layer splices the aligned potential frames by channel.

10. A method for detecting defects in prefilled syringes according to any one of claims 1 to 9, It is characterized in that The process of detecting the position of the components of the prefilled syringe in real time based on the detection image and the subsequent process include: Based on multi-angle visual monitoring and combined with three-dimensional reconstruction technology, the first shape information of the prefilled syringe is captured; Adopting an elastic matching algorithm, fusing the pressure sensor data and the gravity sensor data based on the first shape information, identifying the shape change data of the prefilled syringe, and generating second shape information; Using deep learning technology, feature extraction is performed on the monitoring image based on a pre-trained deep learning model, and feature matching of each component position is performed in combination with the second shape information to determine the status information of each component position of the prefilled syringe.

Citation Information

Cited By

  • Detection method of pre-encapsulated nest box

    CN119845981A

  • Detection method, device, medium and equipment for production of enteral nutrition infusion device

    CN120655969A