Soft capsule surface defect sorting device based on machine vision

The soft capsule sorting device, which utilizes machine vision and mechanical transmission, solves the problem of material accumulation during color sorting, achieves automated capsule sorting, improves sorting quality and stability, simplifies maintenance, enhances the stability of expert sorting work, and solves technical problems related to color sorting machines, thus achieving stability and efficiency in sorting operations.

CN121017097AInactive Publication Date: 2025-11-28GUANGDONG JIANGZHENG PHARMACEUTICAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511208975.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-27
Publication Date
2025-11-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing color sorters cannot effectively separate soft capsules when there is too much material or when the material is piled up, which can easily lead to the mixing and damage of capsules, affecting the sorting quality. In addition, the system is complex and difficult to maintain.

Method used

A machine vision-based soft capsule surface defect sorting device is adopted, which includes a conveyor line, a quantitative guiding mechanism and a limiting sorting mechanism. It uses the gravity sliding of materials and mechanical transmission to achieve quantitative processing, and combined with camera monitoring, it can automatically sort out unqualified materials.

Benefits of technology

It effectively prevents material accumulation, improves sorting quality and stability, simplifies maintenance, increases work efficiency, and ensures the effectiveness of camera capture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121017097A_ABST
    Figure CN121017097A_ABST
Patent Text Reader

Abstract

The invention discloses a soft capsule surface defect sorting device based on machine vision, and belongs to the technical field of capsule sorting devices.The soft capsule surface defect sorting device comprises a conveying line which is installed on a frame, extends in the preset direction and is used for bearing and conveying soft capsules; the quantitative guiding mechanism comprises a material guiding box fixed to the frame, the two ends of the side wall of the material guiding box are both slidably connected with first inclined plates, the horizontal extending ends of the first inclined plates are movably connected with baffles through first rotating shafts, and triangular plates fixed to the cross beam are arranged below the baffles. The inner wall of the triangular plate is connected with the movable frame through a first spring. The technical problems that when the soft capsule materials to be sorted are too many or are stacked in the conveying process, the color sorter cannot conduct effective separation, the situation that the soft capsule materials are doped and damaged easily exists, and the sorting quality is greatly affected can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the technical field of capsule sorting devices, specifically relating to a machine vision-based soft capsule surface defect sorting device. Background Technology

[0002] Soft capsules are sealed capsules made of materials such as gelatin, glycerin, and water, filled with liquid, semi-solid, or suspended active ingredients. They are widely used in pharmaceuticals, health products, and food. Their soft outer shell effectively protects the contents, improves taste, enhances ingredient stability, and allows for precise dosage control.

[0003] The oily matrix or liquid environment inside soft capsules makes fat-soluble ingredients easier to be absorbed by the intestines. Compared with tablets or powders, the absorption rate is increased by about 20-30%. The core functions of soft capsules include isolating oxygen and light, masking unpleasant odors, precisely controlling dosage, and being suitable for the efficient delivery of fat-soluble ingredients.

[0004] In the operation of soft capsule surface defect sorting mechanisms, color sorters are generally used for screening and separation. However, when there are too many soft capsules to be sorted or when they accumulate during the conveying process, the color sorter cannot effectively separate them, which can easily lead to the presence of contaminated and damaged soft capsules, greatly affecting the sorting quality. In addition, the color sorter system is relatively complex in design, and damage to any component or circuit system can affect the sorting work, making maintenance difficult and impacting work efficiency. Summary of the Invention

[0005] The purpose of this invention is to provide a machine vision-based soft capsule surface defect sorting device to solve the technical problem that when there are too many soft capsules to be sorted or when they accumulate during the conveying process, the color sorter cannot effectively separate them, which easily leads to the presence of contaminated and damaged soft capsules, greatly affecting the sorting quality.

[0006] To achieve the above objectives, the present invention adopts the following technical solution:

[0007] A machine vision-based soft capsule surface defect sorting device includes:

[0008] A conveyor line, which is mounted on a frame and extends in a predetermined direction, for carrying and conveying soft capsules;

[0009] A quantitative guiding mechanism includes a guide box fixed on a frame. Both ends of the side wall of the guide box are slidably connected to a first inclined plate. A baffle is movably connected to the horizontal extension end of the first inclined plate through a first rotating shaft. A triangular plate is fixed on a crossbeam below the baffle. The inner wall of the triangular plate and the movable frame are connected by a first spring.

[0010] Both sides of the top of the mobile frame are integrally formed with abutment rods that pass through the triangular plates, and the bottom of the mobile frame and the first panels at both ends are connected by a first swing rod. The extension end of one end of the first panel is connected to a first gear plate, and the bottom of the first gear plate is connected to a second gear plate fixed on the second panel through a first rotating tooth meshing.

[0011] Furthermore, both ends of the first swing rod are mounted on the movable frame and the first panel by means of rotational connection. The outer wall of the first panel is provided with an inclined surface adapted to it. The first gear plate, the first rotating tooth and the second gear plate are all placed in the first housing fixed on the guide box.

[0012] Furthermore, the top of the first inclined plate is equipped with a first side plate placed at the discharge port, and the top of the first side plate is connected to a second side plate placed at the inlet via a bracket. Both the discharge port and the inlet extend into the second housing on the outer wall of the guide box.

[0013] Furthermore, the second housing is detachably connected to the outer wall of the guide box, and the upper and lower ends of the inner wall of the second housing are connected to the inlet and outlet of the material.

[0014] Furthermore, it also includes a limiting sorting mechanism placed at the downward inclined direction of the conveyor line. The limiting sorting mechanism includes cover plates fixed at both ends of the frame. A motor is fixedly installed at one end of the cover plate. The output shaft of the motor passes through the cover plate and is connected to the turntable through a movable shaft. A ring-shaped rotating plate is fixedly installed on the movable shaft. The rotating plate has limiting holes in the length direction that are individually connected to the soft capsules.

[0015] Furthermore, the protrusion on the turntable and the slider on the first positioning frame are connected by a second swing rod. One end of the slider is connected to a third gear plate extending into the interior of the second positioning frame. The third gear plate is engaged with a second rotating tooth fixed on a second rotating shaft. A swing plate that abuts against and fits against the surface of the conveyor line is installed on the second rotating shaft.

[0016] Furthermore, both ends of the second swing rod are mounted on the turntable and the slider by a rotatable connection. The first positioning frame is provided with a guide groove that connects to the slider, and both the first positioning frame and the second positioning frame are connected to the frame by locking with positioning pins.

[0017] Furthermore, a support plate mounted on the frame is provided between the cover plate and the first positioning frame. A cylinder is connected to the support plate, and the piston rod on the cylinder is connected to the push plate. The push plate is abutted and limited at the opening on the frame, and a rotating plate corresponding to the push plate is provided at the other end of the frame opening. The rotating plate is movably connected to the rotating groove on the side wall of the frame through a rotating shaft.

[0018] Furthermore, a first collection box and a second collection box are respectively connected below the conveyor line and the rotating plate.

[0019] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0020] (1) In this invention, the conveyor line is not only used to carry and transport soft capsules, but also to provide support points for the quantitative guiding mechanism. It can also use the weight of the material itself to slide down and achieve effective sorting through the limiting sorting mechanism. At the same time, the soft capsules can be quantitatively processed to prevent the material from accumulating and sliding down, which is beneficial to the camera's shooting work. This will screen out materials that do not meet the standards and improve the sorting quality.

[0021] (2) In this invention, the guide box is used to transport and store soft capsules. However, if there is too much material, overflow may occur. The first inclined plate overcomes the elastic support force of the second spring and moves downward. During the collision and contact with the abutment rod, the baffle is subjected to an upward force and opens the guide chute, so that the material falls onto the first panel. During the downward movement of the abutment rod and the moving frame, the first panels at both ends move outward under the rotational connection of the first swing rod. Under the action of gear meshing transmission, the second panels at both ends at the bottom move in the center and close, and the material falls onto the second panel. When the material decreases, the first panel moves in the center and closes under the elastic recovery action of the first spring, and the second panel moves outward and opens the guide chute, thus forming a moving cycle. This can form a closed and effective quantitative processing of the continuously transported material, prevent the material on the conveyor line from being too much and affecting the subsequent sorting work, thereby improving the stability of the device operation.

[0022] (3) In this invention, when the first inclined plate moves downward, it means that there is too much material in the guide box. The first inclined plate will drive the first side plate and the second side plate to move synchronously. This will open the inlet on the second shell. The material will automatically slide into the second shell through the second inclined plate, thereby preventing the material from overflowing. Moreover, when the first inclined plate returns to its original position, the material decreases and the outlet opens. The material in the second shell will be automatically discharged through the second inclined plate, which can play an automatic replenishment and adjustment role for the material. The automation performance is strong.

[0023] (4) In this invention, during the rotation of the rotating plate, soft capsules of standard size can be pushed out through the limiting hole on the rotating plate. During the rotation, the force can be transmitted to the slider. Under the action of mechanical transmission, the swing plate swings back and forth. The material can be quantitatively processed twice during the back and forth swing. During the downward swing, the swing plate forms a certain height difference with the conveyor line, thereby blocking the vertical soft capsules and keeping them in a horizontal state. The soft capsules in the rolling state are convenient for the camera to monitor and also facilitate passing through the limiting hole into the first collection box. The design is reasonable, the integration is strong, and the safety effect of the device is guaranteed. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0025] Figure 1 This is a schematic diagram of the machine vision-based soft capsule surface defect sorting device of the present invention. Figure 1 ;

[0026] Figure 2 This is a schematic diagram of the machine vision-based soft capsule surface defect sorting device of the present invention. Figure 2 ;

[0027] Figure 3 This is a front view of the machine vision-based soft capsule surface defect sorting device of the present invention.

[0028] Figure 4 This is a schematic diagram of the interior of the feed box of the present invention;

[0029] Figure 5 This is the present invention. Figure 4 Enlarged view of point A;

[0030] Figure 6 This is a schematic diagram of the meshing transmission of the first rotating tooth of the present invention;

[0031] Figure 7 This is a schematic diagram of the structure of the second housing of the present invention;

[0032] Figure 8 This is the present invention. Figure 1 Enlarged view of point B;

[0033] Figure 9 This is the present invention. Figure 2 Enlarged view of point C;

[0034] Figure 10 This is a schematic diagram of the meshing transmission of the second rotating tooth of the present invention;

[0035] Figure 11 This is a schematic diagram showing the connection between the slider and the camera of the present invention.

[0036] Reference numerals: 1. Conveyor line; 2. Quantitative guiding mechanism; 3. Guide box; 4. First inclined plate; 5. First rotating shaft; 6. Baffle; 7. Triangular plate; 8. Moving frame; 9. First spring; 10. Abutment rod; 11. First panel; 12. First swing rod; 13. First gear plate; 14. First rotating gear; 15. Second panel; 16. Second gear plate; 17. First housing; 18. First side plate; 19. Second side plate; 20. Second housing; 21. Second inclined plate 21. Plate; 22. Limiting sorting mechanism; 23. Motor; 24. Turntable; 25. Rotating plate; 26. Limiting hole; 27. First positioning frame; 28. Slider; 29. ​​Second swing rod; 30. Second positioning frame; 31. Third gear plate; 32. Second rotating shaft; 33. Second rotating gear; 34. Swing plate; 35. Support plate; 36. Cylinder; 37. Push plate; 38. Rotating plate; 39. First collection box; 40. Second collection box; 41. Second spring; 42. Camera. Detailed Implementation

[0037] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0038] Reference manual attached Figure 1 - Appendix Figure 11 As shown, a machine vision-based soft capsule surface defect sorting device includes: a conveyor line 1, which is mounted on a frame and extends along a preset direction to carry and convey soft capsules; a quantitative guiding mechanism 2, which includes a guide box 3 fixed on the frame, with a first inclined plate 4 slidably connected to both ends of the side wall of the guide box 3, and a baffle 6 movably connected to the horizontal extension end of the first inclined plate 4 through a first rotating shaft 5; a triangular plate 7 fixed on a crossbeam is provided below the baffle 6, and the inner wall of the triangular plate 7 and the movable frame 8 are connected by a first spring 9.

[0039] The top two sides of the movable frame 8 are integrally formed with abutment rods 10 that pass through the triangular plate 7, and the bottom of the movable frame 8 and the first panels 11 at both ends are connected by the first swing rods 12. The extended end of one end of the first panel 11 is connected to the first gear plate 13, and the bottom of the first gear plate 13 is connected to the second gear plate 16 fixed on the second panel 15 through the meshing of the first rotating teeth 14.

[0040] Specifically, the conveyor line 1 is not only used to carry and transport soft capsules, but also provides a support point for the quantitative guiding mechanism 2. It can also use the weight of the material itself to slide down and achieve effective sorting through the limiting sorting mechanism 22. At the same time, it can perform corresponding quantitative processing of soft capsules to prevent the material from accumulating and sliding down, which is conducive to the shooting work of the camera 42, thereby screening out materials that do not meet the standards and improving the sorting quality.

[0041] The first spring 9 and the second spring 41 can both buffer and adjust the up and down movement of the first inclined plate 4. The horizontal extension end on the first inclined plate 4, together with the baffle 6 on the first rotating shaft 5, can limit the rotation of the baffle 6 in one direction. Thus, the baffle 6 can only rotate upward and cannot rotate downward under the action of the material's gravity to open the guide chute, thereby affecting the normal material conveying operation of the device.

[0042] When the contact rod 10 is subjected to the downward force of the baffle 6, the second spring 41 drives the moving frame 8 and the baffle 6 to move downward synchronously. After the second spring 41 is pulled to the limit value of the elastic force, the moving frame 8 remains stationary, and the baffle 6 continues to move downward to open the guide chute. After the material is reduced, the moving frame 8 and the first inclined plate 4 return to their original positions under the elastic recovery action.

[0043] Both ends of the first swing rod 12 are mounted on the movable frame 8 and the first panel 11 by means of rotational connection. The outer wall of the first panel 11 is provided with an inclined surface adapted to it. The first gear plate 13, the first rotating tooth 14 and the second gear plate 16 are all placed in the first housing 17 fixed on the guide box 3. Under the rotational connection of the first swing rod 12, in conjunction with the meshing transmission of the first rotating tooth 14, a quantitative area is formed between the first panel 11, the second panel 15 and the inner wall of the guide box 3. In this way, during the back and forth movement of the first panel 11 and the second panel 15, a quantitative amount of material can be effectively and stably transported to the conveyor line 1, thereby avoiding the phenomenon of material accumulation or excess.

[0044] The first housing 17 provides the corresponding space for the meshing transmission of the first rotating tooth 14, and both ends of the first rotating tooth 14 are provided with bearings placed on the inner wall of the first housing 17, so that the position of the first rotating tooth 14 remains relatively stationary, which facilitates the horizontal movement of the first gear plate 13 and the second gear plate 16.

[0045] The top of the first inclined plate 4 is equipped with a first side plate 18 placed at the discharge port. The top of the first side plate 18 is connected to a second side plate 19 placed at the inlet via a bracket. Both the discharge port and the inlet extend into the second housing 20 on the outer wall of the guide box 3. The second housing 20 can accommodate excess material. When there is too much material, it can automatically enter the second housing 20 through the inlet, thereby activating the automatic compensation and adjustment function for excess material.

[0046] The second housing 20 is detachably connected to the outer wall of the guide box 3. The upper and lower ends of the inner wall of the second housing 20 are connected to the inlet and outlet of the material. The second inclined plate 21 is fixed in the second housing 20 by bolt assembly, thereby achieving the effect of easy disassembly and improving work efficiency.

[0047] Specifically, the guide box 3 is used to transport and store soft capsules. However, if there is too much material, overflow may occur. The first inclined plate 4 overcomes the elastic support force of the second spring 41 and moves downward. During the collision and contact with the abutment rod 10, the baffle 6 is subjected to an upward force and opens the guide chute, allowing the material to fall onto the first panel 11. During the downward movement of the moving frame 8 driven by the abutment rod 10, the first panels 11 at both ends move outward under the rotational connection of the first swing rod 12. Under the action of gear meshing transmission, the second panels 15 at both ends below move in the center and close, and the material falls onto the second panel 15. When the material decreases, under the elastic recovery action of the first spring 9, the first panel 11 moves in the center and closes, and the second panel 15 moves outward, opening the guide chute, thus forming a moving cycle. This can form a closed and effective quantitative processing of the continuously transported material, preventing the material on the conveyor line 1 from being too much and affecting the subsequent sorting work, thereby improving the stability of the device operation.

[0048] When the first inclined plate 4 moves downward, it means that there is too much material in the guide box 3. The first inclined plate 4 will drive the first side plate 18 and the second side plate 19 to move synchronously. This opens the inlet on the second housing 20, and the material automatically slides into the second housing 20 through the second inclined plate 21, thereby preventing the material from overflowing. Moreover, when the first inclined plate 4 returns to its original position, the material decreases, the outlet opens, and the material in the second housing 20 is automatically discharged through the second inclined plate 21. This can play an automatic replenishment and adjustment role for the material, with strong automation performance.

[0049] The machine vision-based soft capsule surface defect sorting device also includes a limiting sorting mechanism 22 placed at the downward inclined direction of the conveyor line 1. The limiting sorting mechanism 22 includes cover plates fixed at both ends of the frame. A motor 23 is fixedly installed at one end of the cover plate. The output shaft of the motor 23 passes through the cover plate and is connected to the turntable 24 through a movable shaft. A ring-shaped rotating plate 25 is fixedly installed on the movable shaft. The rotating plate 25 has limiting holes 26 in the length direction that are individually connected to the soft capsules. The rotating plate 25, which is in an active state, can not only screen and sort products that meet the standards, but also prevent materials from getting stuck during rotation. Under the counter-pushing force, the materials can be rolled and slid off again.

[0050] The inclined end on the conveyor line 1 can automatically roll and slide down using the gravity of the material, thereby reducing power consumption and saving resources to a certain extent. In addition, the extended end of the slider 28 that moves horizontally back and forth in the guide groove of the first positioning frame 27 is adapted to be equipped with a camera 42. The cameras 42 are evenly distributed in the width direction on the conveyor line 1. Since the position of the conveyor line 1 is inclined, the height difference between the camera 42 and the conveyor line 1 changes when the camera 42 moves back and forth. In this way, the camera 42 can achieve automatic focusing by changing its height, thereby effectively acquiring comprehensive, effective and clear image information.

[0051] During the rotation of the turntable 24, the rotation of the turntable 24 can be converted into the reciprocating linear motion of the slider 28 in conjunction with the second swing rod 29. At the same time, under the meshing transmission of the third gear plate 31, the swing plate 34 swings at a corresponding angle. The front end of the swing plate 34 near the guide box 3 can contact the surface of the conveyor line 1, thereby resisting and limiting the rolling and sliding material. The rolling and sliding material continues to move downward. Then, the rear end of the swing plate 34 passes through the corresponding height difference gap during the swing, thereby resisting and limiting the height of the sliding material, which can convert the vertical material into a horizontal state, thus facilitating the subsequent sorting work.

[0052] Specifically, the protrusion on the turntable 24 and the slider 28 on the first positioning frame 27 are connected by a second swing rod 29. One end of the slider 28 is connected to a third gear plate 31 extending into the second positioning frame 30. The third gear plate 31 is meshed with a second rotating tooth 33 fixed on the second rotating shaft 32. The second rotating shaft 32 is equipped with a swing plate 34 that abuts against and fits against the surface of the conveyor line 1.

[0053] The second swing arm 29 is mounted on the turntable 24 and the slider 28 by means of rotational connection at both ends. The first positioning frame 27 is provided with a guide groove that connects to the slider 28. The first positioning frame 27 and the second positioning frame 30 are both connected to the frame by means of locking and fixing with positioning pins.

[0054] Specifically, a support plate 35 is provided between the cover plate and the first positioning frame 27 and is mounted on the frame. A cylinder 36 is connected to the support plate 35. The piston rod of the cylinder 36 is connected to the push plate 37. The push plate 37 is abutted and limited to the opening on the frame. A rotating plate 38 corresponding to the push plate 37 is provided at the other end of the frame opening. The rotating plate 38 is movably connected to the rotating groove on the side wall of the frame through a rotating shaft.

[0055] During rotation, the rotating plate 25 pushes out standard-sized soft capsules through the limiting hole 26. During rotation, force is transmitted to the slider 28, causing the swing plate 34 to swing back and forth. This swinging motion allows for secondary quantitative processing of the material. Furthermore, the swing plate 34 forms a height difference with the conveyor line 1 during downward swinging, thus blocking the vertical soft capsules and keeping them horizontal. This facilitates the rolling of the soft capsules, making monitoring by the camera 42 easier, and also allows them to pass through the limiting hole 26 into the first collection box 39. The design is reasonable, highly integrated, and ensures the safe operation of the device.

[0056] When the non-standard-sized soft capsules are at the front end of the rotating plate 25, the cylinder 36 is activated in conjunction with the image monitoring of the camera 42. Under the pushing action of the push plate 37, the rotating plate 38 remains active, and the opening can be opened directly during the pushing process to allow the material to enter the second collection box 40. The standard-sized material enters the first collection box 39 through the limiting hole 26. The first collection box 39 and the second collection box 40 are respectively connected to the bottom of the conveyor line 1 and the rotating plate 38. The bottom of the first inclined plate 4 and the side wall of the guide box 3 are connected by the second spring 41.

[0057] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

[0058] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to specific implementations. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims

1. A machine vision-based soft capsule surface defect sorting device, characterized in that, include: A conveyor line (1) is mounted on a frame and extends in a predetermined direction to carry and convey soft capsules; A quantitative guiding mechanism (2) includes a guide box (3) fixed on a frame. Both ends of the side wall of the guide box (3) are slidably connected to a first inclined plate (4). The horizontal extension end of the first inclined plate (4) is movably connected to a baffle (6) through a first rotating shaft (5). A triangular plate (7) fixed on a crossbeam is provided below the baffle (6). The inner wall of the triangular plate (7) and the movable frame (8) are connected by a first spring (9). The top two sides of the movable frame (8) are integrally formed with abutment rods (10) that pass through the triangular plate (7). The bottom of the movable frame (8) and the first panels (11) at both ends are connected by a first swing rod (12). The extension end of one end of the first panel (11) is connected to a first gear plate (13). The bottom of the first gear plate (13) is engaged with a second gear plate (16) fixed on the second panel (15) through a first rotating tooth (14).

2. The machine vision-based soft capsule surface defect sorting device according to claim 1, characterized in that, Both ends of the first swing rod (12) are mounted on the moving frame (8) and the first panel (11) by means of rotational connection. An inclined surface adapted to it is provided on the outer wall of the first panel (11). The first gear plate (13), the first rotating tooth (14) and the second gear plate (16) are all placed in the first housing (17) fixed on the guide box (3).

3. The machine vision-based soft capsule surface defect sorting device according to claim 1, characterized in that, The first inclined plate (4) is topped by a first side plate (18) placed at the outlet. The top of the first side plate (18) is connected by a bracket to a second side plate (19) placed at the inlet. Both the outlet and the inlet extend into the second housing (20) on the outer wall of the guide box (3).

4. The machine vision-based soft capsule surface defect sorting device according to claim 3, characterized in that, The second housing (20) is detachably installed on the outer wall of the guide box (3), and the upper and lower ends of the inner wall of the second housing (20) are connected with second inclined plates (21) near the inlet and outlet.

5. The machine vision-based soft capsule surface defect sorting device according to claim 1, characterized in that, It also includes a limiting sorting mechanism (22) placed at the downward inclined direction of the conveyor line (1). The limiting sorting mechanism (22) includes a cover plate fixed at both ends of the frame. A motor (23) is fixedly installed at one end of the cover plate. The output shaft of the motor (23) passes through the cover plate and is connected to the turntable (24) through a movable shaft. A rotating plate (25) with a ring distribution is fixedly installed on the movable shaft. The rotating plate (25) has a limiting hole (26) in the length direction that is individually connected to the soft capsule.

6. The machine vision-based soft capsule surface defect sorting device according to claim 5, characterized in that, The protrusion on the turntable (24) and the slider (28) on the first positioning frame (27) are connected by a second swing rod (29). One end of the slider (28) is connected to a third gear plate (31) extending into the second positioning frame (30). The third gear plate (31) is meshed with a second rotating tooth (33) fixed on a second rotating shaft (32). The second rotating shaft (32) is equipped with a swing plate (34) that abuts against and fits against the surface of the conveyor line (1).

7. The machine vision-based soft capsule surface defect sorting device according to claim 6, characterized in that, The second swing rod (29) is mounted on the turntable (24) and the slider (28) by means of rotational connection at both ends. The first positioning frame (27) is provided with a guide groove connected to the slider (28). The first positioning frame (27) and the second positioning frame (30) are both connected to the frame by means of locking and fixing with positioning pins.

8. The machine vision-based soft capsule surface defect sorting device according to claim 7, characterized in that, A support plate (35) is provided between the cover plate and the first positioning frame (27) and mounted on the frame. A cylinder (36) is connected to the support plate (35). The piston rod of the cylinder (36) is connected to the push plate (37). The push plate (37) is abutted and limited to the opening on the frame. A rotating plate (38) corresponding to the push plate (37) is provided at the other end of the frame opening. The rotating plate (38) is movably connected to the rotating groove on the side wall of the frame through a rotating shaft.

9. The machine vision-based soft capsule surface defect sorting device according to claim 3, characterized in that, The first collection box (39) and the second collection box (40) are respectively connected below the conveyor line (1) and the rotating plate (38). The bottom of the first inclined plate (4) and the side wall of the guide box (3) are connected by a second spring (41).