Drug surface sampling device based on visual imaging
By introducing flip components into the drug surface sampling system, the 180° flip of the drug is achieved, which solves the problem that existing systems are difficult to sample all surfaces of the drug, improves detection efficiency and stability, and is especially suitable for aluminum-plastic panel pharmaceutical packaging products.
Patent Information
- Application Number
- CN202422682425.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2034-11-05
AI Technical Summary
The existing drug surface sampling system is difficult to effectively sample all surfaces of the drug, resulting in inefficient detection and unstable results.
A drug surface sampling device based on visual imaging is designed. By adding a flip assembly between the visual acquisition chamber and the delivery assembly, the 180° flip of the drug is achieved, thereby sampling all surfaces of the drug. The device includes a lifting bracket, a vision acquisition chamber and a flip assembly. It drives the flip shaft to rotate with an industrial camera and light source to ensure the intact sampling of the drug surface.
It realizes sampling of all surfaces of the drug, improves detection efficiency and stability of results, and is especially suitable for multi-faceted sampling of aluminum-plastic panel pharmaceutical packaging products.
Smart Images

Figure CN222105368U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to a drug sample detection device, in particular to a drug surface sampling device based on visual imaging. Background Art
[0002] In the process of drug production, the detection of drug surface defects is crucial to ensure the quality and safety of drugs. Drugs refer to drugs after packaging, and drug surface defects generally refer to defects in the external shape of drugs after packaging.
[0003] Traditional detection methods mainly rely on manual visual inspection, which is not only inefficient but also easily affected by subjective factors, resulting in unstable detection results. In recent years, with the development of machine vision technology, automated detection systems based on deep learning have gradually become mainstream, but these systems still have many problems when collecting small sample data, such as difficulty in sampling all surfaces of drugs. Utility Model Content
[0004] In view of the technical problem that the current sampling system is difficult to sample all surfaces of the medicine, the utility model provides a medicine surface sampling device based on visual imaging. By adding a flip component between the visual collection cabin and the conveying component, the medicine is flipped, thereby having the advantage of being able to sample all surfaces of the medicine.
[0005] The technical solution of the utility model is:
[0006] A drug surface sampling device based on visual imaging, mounted above a conveying component for conveying drugs, comprises:
[0007] A lifting bracket is located at the side of the conveying assembly, and has a lifting portion at the side thereof, and the lifting portion is located above the conveying assembly;
[0008] The visual collection cabin is arranged on the lifting part of the lifting bracket and is located above the conveying assembly, and its collection part is arranged downward and directly faces the top surface of the conveying assembly;
[0009] The flip assembly is provided at the bottom of the visual acquisition cabin and is located in the middle of the top surface of the conveying assembly, and its flip portion can be rotated 180°;
[0010] The flip assembly comprises:
[0011] The turning shaft is arranged in the horizontal direction and is located above the conveying assembly. The turning shaft is perpendicular to the conveying assembly and has a through slot in the middle thereof.
[0012] The motor has an output shaft which is connected to one end of the flip shaft and is used to drive the flip shaft to rotate intermittently, and each time it rotates 180 degrees.
[0013] Optionally, the lifting bracket is arranged on the top of a base, and the base is provided with universal wheels.
[0014] Optionally, the visual acquisition cabin includes:
[0015] A cabin body connected to the lifting portion of the lifting support; and
[0016] Located in the cabin:
[0017] Industrial cameras, with their lens ends set downwards;
[0018] A light source, the light emitted by which irradiates the top surface of the conveying component;
[0019] A sensor is used to sense the position of the drug on the delivery assembly.
[0020] Optionally, both ends of the flip axis are connected to the bottom of the visual collection cabin through a support rod respectively;
[0021] The end of the flip shaft is rotatably connected to the bottom end of the support rod;
[0022] The motor is arranged on one of the support rods.
[0023] Optionally, expansion structures are provided on both sides and the upper and lower surfaces of the through slot.
[0024] Optionally, the flip assembly further includes:
[0025] The pressure roller is arranged parallel to the flip axis and is located in front of the flip axis. There is a gap between the pressure roller and the flip axis. The bottom of the pressure roller is located on the plane where the top surface of the through groove is located, and the pressure roller can reciprocate in the vertical direction.
[0026] Optionally, a guide wheel is provided at the end of the pressure roller, and a wheel surface of the guide wheel contacts the top surface of the conveying assembly.
[0027] Optionally, the spacing between the bottom of the guide wheel and the bottom of the pressing roller is equal to the height of the medicine package.
[0028] Optionally, the surface of the pressure roller has a foam layer, and the bottom of the foam layer is located on the plane where the top surface of the through groove is located.
[0029] Compared with the prior art, the beneficial effects of the utility model are:
[0030] The conveying component passes the medicine to be sampled through the bottom of the visual collection cabin, and a flipping component is set at the bottom of the visual collection cabin to flip the medicine 180° through the flipping component, so as to sample different surfaces of the medicine. This technical solution flips the aluminum-plastic plate medicine packaging product to achieve multi-faceted sampling. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 It is a three-dimensional structural schematic diagram of the utility model;
[0033] Figure 2 It is an enlarged schematic diagram of the flip component;
[0034] Figure 3 It is a schematic diagram of the three-dimensional structure of the flip assembly;
[0035] Figure 4 It is the work flow chart of the utility model.
[0036] Reference numerals:
[0037] 10. Conveying component; 20. Medicine; 30. Lifting bracket; 40. Visual acquisition cabin; 50. Flipping component;
[0038] 31. base; 32. support column;
[0039] 41. Industrial camera; 42. Sensor;
[0040] 51. Flip shaft; 52. Motor; 53. Support rod; 54. Through slot; 55. Pressing roller; 56. Guide wheel; 57. Connecting rod; 58. Screw. DETAILED DESCRIPTION
[0041] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present invention. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0042] The disclosure below provides many different embodiments or examples for realizing different structures of the utility model. In order to simplify the disclosure of the utility model, the components and settings of specific examples are described below. Of course, they are merely examples, and the purpose is not to limit the utility model. In addition, the utility model may repeat reference numbers and / or reference letters in different examples, and such repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. In addition, the utility model provides various specific examples of processes and materials, but those of ordinary skill in the art may be aware of the application of other processes and / or the use of other materials.
[0043] The embodiments of the present utility model are described in detail below with reference to the accompanying drawings. Example
[0044] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present invention. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0045] The disclosure below provides many different embodiments or examples for realizing different structures of the utility model. In order to simplify the disclosure of the utility model, the components and settings of specific examples are described below. Of course, they are merely examples, and the purpose is not to limit the utility model. In addition, the utility model may repeat reference numbers and / or reference letters in different examples, and such repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. In addition, the utility model provides various specific examples of processes and materials, but those of ordinary skill in the art may be aware of the application of other processes and / or the use of other materials.
[0046] The embodiments of the present utility model are described in detail below with reference to the accompanying drawings.
[0047] Example:
[0048] See also Figure 1 , Figure 2 and Figure 3 This embodiment discloses a drug surface sampling device based on visual imaging, wherein the drug 20 surface sampling device is mounted above a conveying assembly 10, and the conveying assembly 10 is used to convey the drug 20 in a horizontal direction. During the conveying process, the drug 20 is located on the top surface of the conveying assembly 10. In addition, in the present application, the conveyed drug 20 is a drug packaged in an aluminum-plastic plate.
[0049] Among them, the drug surface sampling device includes a lifting bracket 30, a visual collection cabin 40 and a flip assembly 50. The lifting bracket 30 is arranged next to the conveying assembly 10. The visual collection cabin 40 is connected to the lifting bracket 30 and its position is controlled by the lifting bracket 30. The visual collection cabin 40 is located above the conveying assembly 10. The flip assembly 50 is connected to the visual collection cabin 40, and the flip assembly 50 is also located above the conveying assembly 10.
[0050] Specifically, the lifting bracket 30 is arranged in the vertical direction, and the lifting part of the lifting bracket 30 is located at the side thereof, and the lifting part can move in the vertical direction at the side of the lifting bracket 30. The visual acquisition cabin 40 is installed on the lifting part of the lifting bracket 30 and moves with the movement of the lifting part. In addition, the collection part of the visual acquisition cabin 40 is arranged downward and faces the top surface of the conveying assembly 10.
[0051] The flipping assembly 50 is connected to the bottom of the visual acquisition cabin 40, and the flipping assembly 50 also has a flipping part, which is located above the conveying assembly 10 and maintains a small gap with the conveying assembly 10 so that it can dock with the end of the medicine 20 on the conveying assembly 10. The flipping part of the flipping assembly 50 can directly drive the medicine 20 to flip 180°.
[0052] In this embodiment, the conveying component 10 passes the medicine 20 to be sampled through the bottom of the visual collection cabin 40, and a flipping component 50 is arranged at the bottom of the visual collection cabin 40. The flipping component 50 flips the medicine 20 180°, so as to sample different surfaces of the medicine 20. This technical solution flips the aluminum-plastic plate medicine 20 packaging product to achieve multi-faceted sampling.
[0053] In one specific embodiment:
[0054] The bottom end of the lifting bracket 30 is installed on the top of a base 31. The bottom surface of the base 31 is provided with a plurality of universal wheels (not shown in the figure), and the universal wheels have a locking function.
[0055] By installing the base 31, the stability of the lifting bracket 30 is improved, and by installing universal wheels, the device is made movable so that it can be used on different production lines.
[0056] In addition, the lifting bracket 30 includes a support column 32, which is vertically arranged on the top of the base 31. The interior of the support column 32 is a hollow structure, and a transmission mechanism (not shown in the figure) is arranged inside the support column 32. The transmission mechanism can be a belt transmission mechanism or a screw transmission mechanism.
[0057] In this embodiment, the transmission mechanism is a screw transmission mechanism, the screw is arranged along the length direction of the support column 32, and a slider is matched on the screw. At the same time, a slide groove is arranged longitudinally on the front side of the support column 32, so that the slider passes through the slide groove to form the lifting part of the lifting bracket 30, so as to facilitate the installation of the visual acquisition cabin 40.
[0058] In another specific embodiment:
[0059] The visual acquisition cabin 40 includes a cabin body, an industrial camera 41, a light source (not shown in the figure) and a sensor 42, wherein the cabin body is fixedly arranged on the lifting part of the lifting bracket 30, and the industrial camera 41, the light source and the sensor 42 are all arranged in the cabin body.
[0060] Specifically, the bottom of the cabin has an opening, and the industrial camera 41 and the light source are arranged downward from the opening of the cabin, so that the lens end of the industrial camera 41 and the light source emit light vertically downward toward the conveying component 10.
[0061] The sensing end of the sensor 42 is located on the conveying component 10 , and based on the conveying direction of the conveying component 10 , the sensing end of the sensor 42 is located upstream of the conveying component 10 .
[0062] In this embodiment, the industrial camera 41 is used to collect images, the light source is used to provide sufficient light, and the sensor 42 is used to sense whether a medicine 20 passes through the bottom of the visual collection cabin 40 .
[0063] In another specific embodiment:
[0064] The flip assembly 50 includes a flip shaft 51, a motor 52 and a support rod 53, wherein the support rod 53 is vertically arranged, the top end of the support rod 53 is fixedly connected to the bottom of the visual acquisition cabin 40, the bottom end of the support rod 53 is rotatably connected to the end of the flip shaft 51, and the output shaft of the motor 52 is dynamically connected to one end of the flip shaft 51.
[0065] Specifically, the two support rods 53 are fixedly arranged on both sides of the visual collection cabin 40, so that the two support rods 53 are also located on both sides of the conveying assembly 10. The two support rods 53 are arranged parallel to each other, and the bottom ends of the two support rods 53 are rotatably connected to the two ends of the flip shaft 51 respectively.
[0066] The motor 52 is disposed on one of the support rods 53 , and the output shaft of the motor 52 is connected to one end of the flip shaft 51 in power via a pair of gears.
[0067] In this embodiment, the flip shaft 51 is arranged on a horizontal plane, and the length direction of the flip shaft 51 is perpendicular to the conveying direction of the conveying assembly 10. A through slot 54 is provided in the middle of the flip shaft 51, and the length direction of the through slot 54 is consistent with the length direction of the flip shaft 51, and the through slot 54 runs through both sides of the flip shaft 51. The distance between the through slot 54 and the top surface of the conveying assembly 10 is equal to the height of the medicine 20.
[0068] The medicine packaged by the aluminum-plastic plate is a medicine 20, one side of which is a plate-like structure, and the other side has a plurality of convex structures. In the working process, first, the medicine 20 on the conveying component 10 needs to be placed with the flat plate structure side facing upward, and the convex structure contacts the top surface of the conveying component 10, so that there is a gap between the side of the medicine 20 with the flat plate structure and the top surface of the conveying component 10. When the conveying component 10 conveys the medicine 20 to the flipping component 50, one end of the flat plate structure is inserted into the through groove 54 in the middle of the flip shaft 51, and then the motor 52 drives the flip shaft 51 to rotate 180°, so as to realize the flipping of the medicine 20. It can be seen that the flip shaft 51 is the flipping part of the flipping component 50.
[0069] At this time, if the medicine 20 is stuck in the through groove 54 , the previous medicine 20 will be pushed out when the flat plate structure end of the next medicine 20 enters the through groove 54 .
[0070] The industrial camera 41 in the visual collection cabin 40 , under the control of the sensor 42 , photographs and samples the medicines 20 on both sides of the flip axis 51 .
[0071] Preferably, the flip shaft 51 is provided with a chamfered structure, which is located at the top and bottom of both sides of the through slot 54, so that the upper and lower sides of both sides of the through slot 54 are expanded. Through this design, it is convenient for the end of the flat plate structure on the medicine 20 to enter the through slot 54.
[0072] In another specific embodiment:
[0073] The flip assembly 50 also includes a pressure roller 55, a guide wheel 56 and a connecting rod 57. One end of the connecting rod 57 is slidably connected to the support rod 53, the pressure roller 55 is rotatably connected to the end of the connecting rod 57, and the guide wheel 56 is arranged on the end of the pressure roller 55.
[0074] Specifically, a connecting rod 57 is slidably provided on each of the two support rods 53 , and the connecting rod 57 can slide in the vertical direction on the support rod 53 . Both ends of the pressure roller 55 are rotatably provided on the two connecting rods 57 , so that the axis of the pressure roller 55 is parallel to the axis of the flip shaft 51 .
[0075] Two connecting rods 57 are passed through the two ends of the pressure roller 55 , respectively. A guide wheel 56 is provided on the two ends of the pressure roller 55 , respectively. The two guide wheels 56 are in contact with the top surface of the conveying assembly 10 .
[0076] The bottom of the pressing roller 55 is located on the plane where the top surface of the through groove 54 is located.
[0077] In order to prevent the previously flipped medicine 20 from being pushed out by the flat plate structure end of the next medicine 20, a pressing roller 55 is provided. During operation, since the guide wheel 56 contacts the top of the conveying assembly 10, the conveying assembly 10 drives the guide wheel 56 to rotate during movement, thereby driving the pressing roller 55 to rotate.
[0078] When the medicine 20 moves to the pressing roller 55, the pressing roller 55 contacts the top of the flat plate structure of the medicine 20, so that the medicine 20 will not be blocked and cannot move, so that the previous medicine 20 can be pushed out smoothly. When the previous medicine 20 is pushed out, the connecting rod 57 carries the pressing roller 55 to move upward, thereby making sufficient space for the rotation of the next medicine 20.
[0079] Preferably, one of the connecting rods 57 has a threaded hole, in which a screw rod 58 is matched. The screw rod 58 is arranged close to the supporting rod 53, and the top end of the screw rod 58 is matched with a motor that drives the screw rod 58 to rotate.
[0080] In addition, the distance between the bottom of the guide wheel 56 and the bottom of the pressure roller 55 is equal to the height of the medicine 20 package. Through this design, it is also convenient to determine the distance between the visual collection cabin 40 and the top surface of the conveying component 10.
[0081] Preferably, the surface of the pressing roller 55 has a foam layer, and the bottom of the foam layer is located on the plane where the top surface of the through groove 54 is located. By providing the foam layer, the friction between the pressing roller 55 and the medicine 20 can be increased.
[0082] In another specific embodiment:
[0083] See also Figure 4 ,The device also includes an acquisition controller, which mainly consists of five parts: a data acquisition module, an image segmentation module, a text description module, a defect generation module, and a sample storage module.
[0084] Among them, the data acquisition module is used to obtain the original image data of the surface of the drug 20. The image segmentation module is based on a large number of existing positive samples and divides the surface of the drug 20 into the background and the drug 20 area by training the segmentation model. The text description module describes the defect features through text. The defect generation module generates an image with defects through the text graph model based on the segmentation results and text description. The sample storage module is used to store the processed defect sample data.
[0085] The whole working process includes the following steps:
[0086] Step 1: Move the device to the side of the conveyor assembly 10 on the production line, adjust the lifting bracket 30, and adjust the visual acquisition cabin 40 to the top of the conveyor assembly 10. Start the acquisition controller, and adjust the equipment in the visual acquisition cabin 40 so that the image displayed in the visual acquisition cabin 40 is in the clearest position and state.
[0087] Step 2: Start the acquisition controller and input the defect description to be generated, such as "cracks on the tablet surface", "yellow spots on the tablet surface", "depressions on the tablet plate", etc.
[0088] Step 3: Start the production line, and when the medicine 20 passes the sensor 42, the industrial camera 41 is triggered to take a picture.
[0089] Step 4: The data acquisition module of the acquisition controller receives the image data of the industrial camera 41 and transmits it to the image segmentation module.
[0090] Step 5: The image segmentation module divides the image into the tablet part Image_A and the background part Image_B based on the SAM model.
[0091] The image segmentation module uses the SAM model to extract key features of the surface of the drug 20, including edges, textures, etc. The SAM model uses the Transformer architecture to extract features, with the encoder part being ResNet or other variants and the decoder part being Mask R-CNN or other variants.
[0092] F=Encoder(I)
[0093] M=Decoder(F,B)
[0094] Where I is the input image, F is the feature map extracted by the encoder, B is the bounding box, and M is the generated segmentation mask.
[0095] Step 6: According to the defect location in the text description, extract the relevant part of the image P by segmenting the area Image_A or Image_B mask.
[0096] Step 7: Input the text description and image P into the pre-trained defect generation model and output the generated defect image P1.
[0097] The defect generation module uses the generated segmentation masks and defect descriptions to generate image samples with defects using a pre-trained defect generation model.
[0098] Pdefect=Generate(I,M,t)
[0099] Where I is the input image, M is the segmentation mask, t is the defect description, and Pdefect is the generated defective image.
[0100] Step 8: The final defect sample image is saved in the storage device of the acquisition controller through the sample storage module.
[0101] Step 9. Repeat steps 4-8 until the device is turned off.
[0102] The present application has a simple structure. Through the lifting bracket 30, the spatial position of the visual collection cabin 40 can be quickly adjusted to adapt to the production line of various types of medicines 20. The defect generation and collection capabilities in the collection controller can increase the generalization of the device, which is suitable for a variety of medicines 20 production lines, effectively reducing the manual collection costs of enterprises. The various modules of the device are connected by bayonet and can be disassembled independently, which is convenient for assembly, maintenance and storage.
[0103] The above-mentioned embodiments only express the specific implementation methods of the utility model, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the utility model. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the utility model, which all belong to the protection scope of the utility model.
Claims
1. A drug surface sampling device based on visual imaging, mounted above a conveying component for conveying drugs, It is characterized in that include: A lifting bracket is located at the side of the conveying assembly, and has a lifting portion at the side thereof, and the lifting portion is located above the conveying assembly; The visual collection cabin is arranged on the lifting part of the lifting bracket and is located above the conveying assembly, and its collection part is arranged downward and directly faces the top surface of the conveying assembly; The flip assembly is arranged at the bottom of the visual collection cabin and located in the middle of the top surface of the conveying assembly, and its flip part can rotate 180°; The flip assembly comprises: The turning shaft is arranged in the horizontal direction and is located above the conveying assembly. The turning shaft is perpendicular to the conveying assembly and has a through slot in the middle thereof. The motor has an output shaft which is connected to one end of the flip shaft and is used to drive the flip shaft to rotate intermittently, and each time it rotates 180 degrees.
2. The drug surface sampling device based on visual imaging according to claim 1, It is characterized in that The lifting bracket is arranged on the top of a base, and the base is provided with universal wheels.
3. The drug surface sampling device based on visual imaging according to claim 1, It is characterized in that The visual acquisition cabin comprises: A cabin body connected to the lifting portion of the lifting bracket; and located in the compartment: Industrial cameras, with their lens ends set downwards; A light source, the light emitted by which irradiates the top surface of the conveying component; A sensor is used to sense the position of the drug on the delivery assembly.
4. The drug surface sampling device based on visual imaging according to claim 1, Features: Both ends of the flip axis are connected to the bottom of the visual collection cabin through a support rod respectively; The end of the flip shaft is rotatably connected to the bottom end of the support rod; The motor is arranged on one of the support rods.
5. The drug surface sampling device based on visual imaging according to claim 1, It is characterized in that Expansion structures are arranged on the upper and lower sides of both sides of the through slot.
6. The drug surface sampling device based on visual imaging according to claim 1, It is characterized in that The flip assembly also includes: The pressure roller is arranged parallel to the flip axis and is located in front of the flip axis. There is a gap between the pressure roller and the flip axis. The bottom of the pressure roller is located on the plane where the top surface of the through groove is located, and the pressure roller can reciprocate in the vertical direction.
7. The drug surface sampling device based on visual imaging according to claim 6, It is characterized in that A guide wheel is arranged at the end of the pressure roller, and the wheel surface of the guide wheel contacts the top surface of the conveying assembly.
8. The drug surface sampling device based on visual imaging according to claim 7, It is characterized in that The distance between the bottom of the guide wheel and the bottom of the pressing roller is equal to the height of the medicine package.
9. The drug surface sampling device based on visual imaging according to claim 6, It is characterized in that The surface of the pressing roller is provided with a foam layer, and the bottom of the foam layer is located on the plane where the top surface of the through groove is located.
Citation Information
Cited By
Information acquisition device based on image recognition
CN120064133A
