Automatic detection device and method for defects of plastic medicine bottles
By designing an automatic detection device and method, 360-degree rotation detection and automatic sorting of bottles were achieved, solving the problem of inconvenient detection in existing technologies and improving detection efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANDONG MEDSON MEDICAL TECH CO LTD
- Filing Date
- 2026-03-23
- Publication Date
- 2026-06-12
AI Technical Summary
Existing technology cannot achieve 360-degree rotation detection without blind spots during bottle transport, resulting in inconvenience in detection.
An automatic detection device for defects in plastic medicine bottles was designed. The device uses a conveyor belt to rotate the bottle and combines detection components to take pictures and analyze the images from multiple angles. It uses AI vision to identify defects and uses a sorting component to automatically sort qualified and unqualified bottles.
It enables comprehensive inspection of bottles, improves inspection efficiency and accuracy, and can automatically sort and record inspection data, thereby improving production quality.
Smart Images

Figure CN122193224A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of bottle defect detection technology, and in particular to an automatic detection device and method for defects in plastic medicine bottles. Background Technology
[0002] As the quality requirements for plastic medicine bottles increase, the cost of manually inspecting products is becoming increasingly high. The market has begun to use advanced automated vision inspection equipment to inspect products in all aspects. The characteristics of machine vision inspection are to improve the flexibility and automation of production, replacing human vision with machine vision. At the same time, in the process of mass industrial production, the efficiency and accuracy of manually inspecting product quality are low. Using machine vision inspection devices can greatly improve production efficiency and the degree of automation.
[0003] According to the patent document CN209513642U, an automatic visual inspection device for defects in large-mouth plastic medicine bottles is disclosed. It includes an inlet / outlet conveyor line and three sets of inspection devices. The first set of inspection devices has optical cameras at both ends of the bottle, relative to the bottle mouth and bottom, with a front light source installed at the bottom optical camera. The second set of inspection devices has an optical camera at the top of the bottle mouth, with a front light source installed at the camera. The third set of inspection devices has four sets of optical cameras arranged in a ring around the outside of the bottle, with an integrating light source installed on the outside. The third set of inspection devices has a retractable side visual inspection module at the top of the bottle mouth that can extend into the bottle. This technical solution achieves 360-degree inspection without blind spots through the cooperation of the three sets of inspection devices, maximizing the optimization of the shortcomings of existing technologies. Defects such as black spots and foreign objects can be effectively removed through 360-degree inspection. However, while this solution achieves effective 360-degree removal, it cannot simultaneously rotate and inspect the bottle while it is being moved by the conveyor belt, which is inconvenient during use. Summary of the Invention
[0004] This disclosure aims to at least partially address one of the technical problems in the related art.
[0005] Therefore, the purpose of this disclosure is to provide an automatic detection device and method for defects in plastic medicine bottles.
[0006] To achieve the above objectives, this disclosure provides an automatic detection device for defects in plastic medicine bottles, comprising: a fixed base, a support fixed to the bottom of the fixed base, a motor housing fixedly mounted on the side of the support, a fixed box fixedly mounted on the top of the fixed base, and a control box fixedly mounted on the side of the fixed box; an extrusion assembly, the extrusion assembly including a lifting mechanism, a fixed frame mounted on the lifting mechanism, an extrusion cylinder and an optical component mounted inside the fixed frame, the extrusion cylinder being rotatably mounted on the fixed frame; and a detection assembly including a detection box, the detection box having a sliding groove, a support mechanism fixed inside the sliding groove, a slider fixed to one end of the support mechanism, an adjusting roller rotatably mounted on the slider, and a bottle being movably mounted between the adjusting rollers.
[0007] Optionally, a detection seat is fixedly installed inside the detection box, and a detection mechanism is fixedly installed on the detection seat. The detection mechanism includes a supplementary light and a high-definition camera. A support plate is welded to one end of the fixed seat, and a sorting component is fixedly installed on the support plate.
[0008] Optionally, the sorting component includes a fixed block, on which a displacement mechanism is fixedly installed, on which a telescopic column is installed, and at one end of the telescopic column is a reinforcing block, and on which a movable seat is welded.
[0009] Optionally, a rotating column is fixed on the inner wall of the movable seat, a support roller is rotatably mounted on the rotating column, a limiting roller is movably mounted between the support rollers, and a rotating shaft is rotatably mounted on the limiting roller.
[0010] Optionally, a reinforcing rod is welded to the bottom of the rotating shaft, a reinforcing plate is welded to one end of the reinforcing rod, a horizontal plate is welded to the bottom of the reinforcing plate, a pushing mechanism is fixedly installed on the horizontal plate, a collection box is fixedly installed on the pushing mechanism, and the collection box is fixedly installed on the support.
[0011] Optionally, a fixing rod is fixedly installed on the side of the fixed box, a limiting plate is welded on the fixing rod, a conveyor belt is movably installed on the bottom of the limiting plate, the conveyor belt has a slot, and the conveyor belt is rotatably installed on the fixed seat.
[0012] Optionally, a driven roller and a driving roller are respectively installed on the fixed base. The driven roller and the driving roller are movably installed on the fixed base. A motor base is fixedly installed inside the motor housing. A drive motor is fixedly installed on the motor base. An output shaft is fixedly installed on the drive motor.
[0013] Optionally, a square post is welded onto the output shaft, a transmission roller is welded onto the square post, a protrusion is welded onto the transmission roller, the protrusion is movable and in contact with the inner wall of the conveyor belt, and a tension roller is rotatably mounted on the side of the conveyor belt.
[0014] Optionally, a fixing groove is movably installed on the support plate, and the rotating column is movably installed inside the fixing groove. The limiting roller and the support roller have the same diameter.
[0015] The automatic detection method for defects in plastic medicine bottles implemented by the device according to claim 1, the detection method includes the following steps: Step 1: Loading and positioning. The plastic medicine bottles to be tested are fed into the testing station one by one by the conveyor belt. The testing components perform center positioning and posture correction on the medicine bottles to ensure that the testing angle is consistent. Step 2: Image acquisition and preprocessing. Image acquisition uses an industrial camera to photograph the medicine bottle from multiple angles, while a light source system is used to highlight the bottle's outline and defect features to obtain clear image data. The acquired images are then processed by AI vision, including filtering, enhancement, binarization, and edge extraction, to remove noise and improve the contrast between the defect area and the background, preparing for subsequent recognition. Step 3: Defect identification and judgment. Defect identification and analysis uses image recognition algorithms to identify common defects in the bottle, including bubbles, cracks, dents, impurities, abnormal transparency, bottle mouth deformation, bottle bottom damage, etc., and performs quantitative analysis on the size, location, and shape of the defects. Step 4: Automatic sorting. Based on the judgment results, the sorting component automatically separates qualified bottles from unqualified bottles. Unqualified products enter the waste area or undergo further manual re-inspection. Step 5: Data recording and feedback. The data recording and feedback system automatically records the test data, defect information and test time for each medicine bottle, generates a quality inspection report, and can feed the data back to the production equipment to adjust the injection molding process parameters and improve the overall production quality.
[0016] The technical solution provided in this disclosure may include the following beneficial effects: 1. The present invention involves placing the bottle inside the slot of the conveyor belt. When the bottle moves to the detection box, it falls from the slot between the adjusting rollers. The squeezing cylinder at the bottom of the fixed frame pushes the bottle downward, while the conveyor belt moves to the top of the bottle. As the conveyor belt moves, the bottle rotates. When the bottle rotates, the detection component performs rotation detection, thereby providing comprehensive detection of bottle defects. 2. In this invention, the bottles are collected after inspection by means of support rollers and limiting rollers. When a defective bottle is detected, the limiting roller or support roller at the corresponding position is moved so that one end of the fixed seat opens, allowing the defective bottle to fall into the collection box through the opening and be discharged outward for collection. In addition, the inertia generated by the bottle falling from the conveyor belt causes it to rotate and displace on the roller, making it easier to move the bottle to the other end for collection. 3. In this invention, after the bottle body is rotated and detected under the movement of the conveyor belt, when the slot at another location moves to the bottle body, the adjusting roller generates an inward squeezing force to push the bottle body upward to the conveyor belt for transmission. The limiting plate completes the limiting and fixing of the bottle body, ensuring the stable movement of the bottle body position.
[0017] Additional aspects and advantages of this disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this disclosure. Attached Figure Description
[0018] The above and / or additional aspects and advantages of this disclosure will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, in which: Figure 1 This is a schematic diagram of the steps and structure of an automatic detection method for defects in plastic medicine bottles according to an embodiment of this disclosure; Figure 2 This is a schematic diagram of the structure of an automatic detection device for defects in plastic medicine bottles according to an embodiment of this disclosure; Figure 3 This is a schematic diagram of the structure of a sorting component of an automatic detection device for defects in plastic medicine bottles according to an embodiment of this disclosure; Figure 4 This is a schematic diagram of the structure of the automatic detection device for defects in plastic medicine bottles according to an embodiment of this disclosure; Figure 5 This is a schematic diagram of the structure of the limiting plate of the automatic detection device for defects in plastic medicine bottles according to an embodiment of this disclosure; Figure 6 This is a schematic diagram of the conveyor belt mechanism of an automatic detection device for defects in plastic medicine bottles according to an embodiment of this disclosure; Figure 7 This is a schematic diagram of the structure of the detection component of an automatic detection device for defects in plastic medicine bottles according to an embodiment of this disclosure; Figure 8 This is a schematic diagram of the structure of an automatic detection device for defects in plastic medicine bottles according to an embodiment of this disclosure after the adjusting roller has been removed; Figure 9 This is a schematic diagram of the transmission roller of an automatic detection device for defects in plastic medicine bottles according to an embodiment of this disclosure; Figure 10This is a side view of the automatic detection device for defects in plastic medicine bottles according to an embodiment of this disclosure after the bottle body is installed.
[0019] As shown in the figure: 1. Fixed seat; 2. Conveyor belt; 3. Slot; 4. Limiting plate; 5. Fixing rod; 6. Fixed box; 7. Extrusion assembly; 8. Control box; 9. Motor box; 10. Support; 11. Support plate; 12. Sorting assembly; 13. Movable seat; 14. Fixed block; 15. Displacement mechanism; 16. Telescopic column; 17. Fixed slot; 18. Support roller; 19. Rotating column; 20. Limiting roller; 21. Rotating shaft; 22. Reinforcing rod ; 23. Reinforcing plate; 24. Horizontal plate; 25. Pushing mechanism; 26. Lifting mechanism; 27. Fixing frame; 28. Extrusion cylinder; 29. Detection assembly; 30. Tensioning roller; 31. Motor base; 32. Drive motor; 33. Detection box; 34. Slide groove; 35. Support mechanism; 36. Slider; 37. Adjusting roller; 38. Detection seat; 39. Detection mechanism; 40. Output shaft; 41. Square column; 42. Transmission roller; 43. Bottle body. Detailed Implementation
[0020] Embodiments of this disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are used only to explain this disclosure, and should not be construed as limiting this disclosure. Rather, embodiments of this disclosure include all variations, modifications, and equivalents falling within the spirit and scope of the appended claims.
[0021] like Figures 1 to 10As shown, an automatic detection device for defects in plastic medicine bottles includes: a fixed base 1, with a support 10 fixed to the bottom of the fixed base 1, a motor housing 9 fixedly mounted on the side of the support 10, a fixed box 6 fixedly mounted on the top of the fixed base 1, and a control box 8 fixedly mounted on the side of the fixed box 6; an extrusion assembly 7, including a lifting mechanism 26, with a fixed frame 27 mounted on the lifting mechanism 26, an extrusion cylinder 28 and an optical component installed inside the fixed frame 27, the extrusion cylinder 28 being rotatably mounted on the fixed frame 27; and a detection assembly 29, including a detection... The detection box 33 has a sliding groove 34, and a support mechanism 35 is fixed inside the sliding groove 34. A slider 36 is fixed to one end of the support mechanism 35. An adjusting roller 37 is rotatably mounted on the slider 36. A bottle 43 is movably mounted between the adjusting rollers 37. The lifting mechanism 26 is a linear reciprocating electric push rod. The electric push rod is later connected to a telescopic switch via an electric wire. The telescopic switch controls the telescopic movement of the lifting mechanism 26. The support mechanism 35 is a support spring. When the support spring is compressed, it generates a rebound force. The rebound force causes the adjusting rollers 37 to push the bottle 43 upward and discharge it.
[0022] In this embodiment, a detection seat 38 is fixedly installed inside the detection box 33, and a detection mechanism 39 is fixedly installed on the detection seat 38. The detection mechanism 39 includes a supplementary light and a high-definition camera. A support plate 11 is welded to one end of the fixed seat 1, and a sorting component 12 is fixedly installed on the support plate 11. The sorting component 12 includes a fixing block 14, a displacement mechanism 15 is fixedly installed on the fixing block 14, a telescopic column 16 is installed on the displacement mechanism 15, a reinforcing block is fixed to one end of the telescopic column 16, and a movable seat 13 is welded to the reinforcing block. A rotating column 19 is fixed on the inner wall of the movable seat 13. A support roller 18 is rotatably mounted on the rotating column 19. A limiting roller 20 is movably mounted between the support rollers 18. A rotating shaft 21 is rotatably mounted on the limiting roller 20. The displacement mechanism 15 and the pushing mechanism 25 are both linear reciprocating electric push rods. The electric push rods are later connected to a telescopic switch via wires. The telescopic switch controls the telescopic movement of the electric push rods. This device uses optical means to detect and measure new materials, and provides standardization and certification services for the detection. It completes the detection of materials through industrial vision, visual intelligence, AI vision, visual inspection, and visual measurement.
[0023] In this embodiment, a reinforcing rod 22 is welded to the bottom of the rotating shaft 21, a reinforcing plate 23 is welded to one end of the reinforcing rod 22, a horizontal plate 24 is welded to the bottom of the reinforcing plate 23, a pushing mechanism 25 is fixedly installed on the horizontal plate 24, a collection box is fixedly installed on the pushing mechanism 25, and the collection box is fixedly installed on the support 10. A fixing rod 5 is fixedly installed on the side of the fixed box 6, a limiting plate 4 is welded to the fixing rod 5, a conveyor belt 2 is movably installed at the bottom of the limiting plate 4, a slot 3 is opened on the conveyor belt 2, and the conveyor belt 2 is rotatably installed on the fixed seat 1. The limiting plate 4 realizes the interval detection between the bottles 43 to avoid tilting or collision caused by the bottles 43 during cleaning and use.
[0024] In this embodiment, a driven roller and a driving roller are respectively installed on the fixed base 1. The driven roller and the driving roller are movably mounted on the fixed base 1. A motor base 31 is fixedly installed inside the motor housing 9. A drive motor 32 is fixedly mounted on the motor base 31. An output shaft 40 is fixedly mounted on the drive motor 32. A square column 41 is welded to the output shaft 40. A transmission roller 42 is welded to the square column 41. A protrusion is welded to the transmission roller 42. The protrusion movably contacts the inner wall of the conveyor belt 2. A tension roller 30 is rotatably mounted on the side of the conveyor belt 2. A fixed groove 17 is movably mounted on the support plate 11. A rotating column 19 is movably mounted inside the fixed groove 17. The limiting roller 20 and the support roller 18 have the same diameter. The transmission roller 42 increases the friction between itself and the conveyor belt 2 through the protrusion, so that the conveyor belt 2 can move stably.
[0025] The automatic detection method for defects in plastic medicine bottles implemented by the device according to claim 1, the detection method includes the following steps: Step 1: Loading and positioning. The plastic medicine bottles to be tested are fed into the testing station one by one by the conveyor belt. The testing components perform center positioning and posture correction on the medicine bottles to ensure that the testing angle is consistent. Step 2: Image acquisition and preprocessing. Image acquisition uses an industrial camera to photograph the medicine bottle from multiple angles, while a light source system is used to highlight the bottle's outline and defect features to obtain clear image data. The acquired images are then processed by AI vision, including filtering, enhancement, binarization, and edge extraction, to remove noise and improve the contrast between the defect area and the background, preparing for subsequent recognition. Step 3: Defect identification and judgment. Defect identification and analysis uses image recognition algorithms to identify common defects in the bottle, including bubbles, cracks, dents, impurities, abnormal transparency, bottle mouth deformation, bottle bottom damage, etc., and performs quantitative analysis on the size, location, and shape of the defects. Step 4: Automatic sorting. Based on the judgment results, the sorting component automatically separates qualified bottles from unqualified bottles. Unqualified products enter the waste area or undergo further manual re-inspection. Step 5: Data recording and feedback. The data recording and feedback system automatically records the test data, defect information and test time for each medicine bottle, generates a quality inspection report, and can feed the data back to the production equipment to adjust the injection molding process parameters and improve the overall production quality.
[0026] Working principle: In use, the bottle 43 is placed between the limiting plates 4, which space the bottles 43. The drive motor 32 is started to rotate the output shaft 40 and the square column 41. The rotation of the square column 41 drives the transmission roller 42 to rotate. The transmission roller 42 increases the friction between itself and the conveyor belt 2 through the protrusions, so that the conveyor belt 2 can move stably. When the conveyor belt 2 moves, the bottle 43 enters the interior of the slot 3. A baffle is fixed between the fixed seats 1. The bottom of the bottle 43 installed inside the slot 3 contacts the baffle. As the bottle 43 moves, the bottom of the bottle separates from the baffle and enters the top of the detection box 33. After losing the support of the baffle, the bottle 43 falls into the interior of the detection box 33. The lifting mechanism 26 is activated to push the fixed frame 27 downward. After the fixed frame 27 moves downward, it pushes the bottle body 43 downward through the squeezing cylinder 28. After the bottle body 43 moves downward, the adjusting roller 37 moves horizontally inside the detection box 33. After the adjusting roller 37 moves to both sides, the height of the bottle body 43 decreases. After the conveyor belt 2 slowly moves to the top of the bottle body 43, the fixed frame 27 rises. When the fixed frame 27 squeezes the bottle body 43 downward, the camera inside the fixed frame 27 completes the preliminary detection. The drive motor 32 is activated again to drive the conveyor belt 2 to move. When the conveyor belt 2 moves down the inner wall, it drives the bottle body 43 to rotate on the adjusting roller 37. When the bottle body 43 rotates, it cooperates with the detection mechanism 39 to perform a comprehensive detection. After the bottle 43 is rotated and detected by the conveyor belt 2, when the slot 3 at another location moves to the bottle 43, the support mechanism 35 pushes the adjusting roller 37 to generate an inward squeezing force to push the bottle 43 upward onto the conveyor belt 2 for transmission. The limiting plate 4 completes the limiting and fixing of the bottle 43, ensuring the stable movement of the bottle 43. When a defect is detected in the bottle 43 at a certain location, the displacement mechanism 15 or the pushing mechanism 25 is activated to move the limiting roller 20 or the support roller 18, so that one end of the fixed seat 1 opens, allowing the defective bottle 43 to fall into the collection box through the opening and be discharged outward for collection. In addition, the inertia generated by the bottle falling from the conveyor belt 2 causes it to rotate and displace on the limiting roller 20 and the support roller 18, making it easier for the bottle 43 to move to the other end for collection.
[0027] In the description of this disclosure, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this disclosure, unless otherwise stated, "a plurality of" means two or more.
[0028] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain.
[0029] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0030] Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present disclosure.
Claims
1. An automatic detection device for defects in plastic medicine bottles, characterized in that, include: A fixed base (1) is provided with a support (10) at its bottom, a motor box (9) is fixedly installed on the side of the support (10), a fixed box (6) is fixedly installed on the top of the fixed base (1), and a control box (8) is fixedly installed on the side of the fixed box (6). The extrusion assembly (7) includes a lifting mechanism (26), a fixed frame (27) is mounted on the lifting mechanism (26), and an extrusion cylinder (28) and an optical component are installed inside the fixed frame (27). The extrusion cylinder (28) is rotatably mounted on the fixed frame (27). The detection component (29) includes a detection box (33), a groove (34) is opened on the detection box (33), a support mechanism (35) is fixed inside the groove (34), a slider (36) is fixed at one end of the support mechanism (35), an adjusting roller (37) is rotatably installed on the slider (36), and a bottle body (43) is movably installed between the adjusting rollers (37).
2. The automatic detection device for defects in plastic medicine bottles according to claim 1, characterized in that, The detection box (33) is fixedly installed with a detection seat (38), and a detection mechanism (39) is fixedly installed on the detection seat (38). The detection mechanism (39) includes a supplementary light and a high-definition camera. A support plate (11) is welded to one end of the fixed seat (1), and a sorting component (12) is fixedly installed on the support plate (11).
3. The automatic detection device for defects in plastic medicine bottles according to claim 2, characterized in that, The sorting component (12) includes a fixed block (14), on which a displacement mechanism (15) is fixedly installed, and on which a telescopic column (16) is installed, and at one end of the telescopic column (16) a reinforcing block is fixed, and on the reinforcing block a movable seat (13) is welded.
4. The automatic detection device for defects in plastic medicine bottles according to claim 3, characterized in that, A rotating column (19) is fixed on the inner wall of the movable seat (13). A support roller (18) is rotatably mounted on the rotating column (19). A limiting roller (20) is movably mounted between the support rollers (18). A rotating shaft (21) is rotatably mounted on the limiting roller (20).
5. The automatic detection device for defects in plastic medicine bottles according to claim 4, characterized in that, A reinforcing rod (22) is welded to the bottom of the rotating shaft (21), a reinforcing plate (23) is welded to one end of the reinforcing rod (22), a horizontal plate (24) is welded to the bottom of the reinforcing plate (23), a pushing mechanism (25) is fixedly installed on the horizontal plate (24), a collection box is fixedly installed on the pushing mechanism (25), and the collection box is fixedly installed on the support (10).
6. The automatic detection device for defects in plastic medicine bottles according to claim 1, characterized in that, A fixing rod (5) is fixedly installed on the side of the fixed box (6). A limiting plate (4) is welded on the fixing rod (5). A conveyor belt (2) is movably installed on the bottom of the limiting plate (4). A slot (3) is opened on the conveyor belt (2). The conveyor belt (2) is rotatably installed on the fixed seat (1).
7. The automatic detection device for defects in plastic medicine bottles according to claim 6, characterized in that, The driven roller and the driving roller are respectively installed on the fixed base (1). The driven roller and the driving roller are movably installed on the fixed base (1). The motor housing (9) is fixedly installed with a motor base (31). The motor base (31) is fixedly installed with a drive motor (32). The drive motor (32) is fixedly installed with an output shaft (40).
8. The automatic detection device for defects in plastic medicine bottles according to claim 7, characterized in that, A square column (41) is welded on the output shaft (40), a transmission roller (42) is welded on the square column (41), a protrusion is welded on the transmission roller (42), the protrusion moves to contact the inner wall of the transmission belt (2), and a tension roller (30) is rotatably installed on the side of the transmission belt (2).
9. The automatic detection device for defects in plastic medicine bottles according to claim 4, characterized in that, A fixing groove (17) is movably installed on the support plate (11), and the rotating column (19) is movably installed inside the fixing groove (17). The limiting roller (20) and the support roller (18) have the same diameter.
10. The automatic detection method for defects in plastic medicine bottles implemented by the device according to claim 1, characterized in that, The detection method includes the following steps: Step 1: Loading and positioning. The plastic medicine bottles to be tested are fed into the testing station one by one by the conveyor belt. The testing components perform center positioning and posture correction on the medicine bottles to ensure that the testing angle is consistent. Step 2: Image acquisition and preprocessing. Image acquisition uses an industrial camera to photograph the medicine bottle from multiple angles, while a light source system is used to highlight the bottle's outline and defect features to obtain clear image data. The acquired images are then processed by AI vision, including filtering, enhancement, binarization, and edge extraction, to remove noise and improve the contrast between the defect area and the background, preparing for subsequent recognition. Step 3: Defect identification and judgment. Defect identification and analysis uses image recognition algorithms to identify common defects in the bottle, including bubbles, cracks, dents, impurities, abnormal transparency, bottle mouth deformation, bottle bottom damage, etc., and performs quantitative analysis on the size, location, and shape of the defects. Step 4: Automatic sorting. Based on the judgment results, the sorting component automatically separates qualified bottles from unqualified bottles. Unqualified products enter the waste area or undergo further manual re-inspection. Step 5: Data recording and feedback. The data recording and feedback system automatically records the test data, defect information and test time for each medicine bottle, generates a quality inspection report, and can feed the data back to the production equipment to adjust the injection molding process parameters and improve the overall production quality.