Medicine checking device of automatic medicine selling machine and control system of medicine checking device
By designing a drug verification device and control system for an automated drug vending machine, the problem of inconsistent drug postures was solved, enabling drug posture correction and accurate verification, ensuring consistency between drugs and orders, and providing moisture protection, thereby improving the reliability and efficiency of the automated drug vending machine.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- JIANGSU GAREA HEALTH TECH
- Filing Date
- 2026-02-05
- Publication Date
- 2026-05-05
AI Technical Summary
Automatic medicine vending machines cannot guarantee that the medicine boxes are in the same position when dispensing medicine, which affects the dispensing process. They also lack an effective verification structure, resulting in inconsistencies between the medicine boxes and those purchased by the customer.
An automated medicine vending machine medicine verification device was designed, including components such as shelves, conveyor rails, cameras, roller label printers and barcode scanners. Combined with a multi-dimensional medicine verification logic module and control system, it ensures accurate medicine posture correction and verification through visual recognition, barcode scanning and inventory management.
It achieves automatic correction and accurate verification of the posture of medicine boxes, ensuring that the medicines match the orders, has a moisture-proof function, and updates the inventory status in real time, thus improving the reliability and efficiency of automatic medicine vending machines.
Smart Images

Figure CN121982811A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of drug verification, and in particular to a drug verification device and its control system for an automatic drug vending machine. Background Technology
[0002] Automated medicine vending machines are intelligent devices that integrate medicine storage, sales, and management. They support 24 / 7 uninterrupted service and allow users to select, pay for, and collect medicines via touchscreen or mobile phone. Their core advantages include small footprint, convenient payment, and round-the-clock response to urgent medication needs.
[0003] When dispensing medicine, automatic medicine vending machines cannot guarantee the posture of the medicine boxes, which may affect the dispensing process if the medicine boxes are in different postures. In addition, they lack a structure to check the medicine boxes, so they cannot guarantee that the medicine box being dispensed is consistent with the one purchased by the customer.
[0004] Therefore, it is necessary to propose a drug verification device and its control system for an automatic drug vending machine to solve the above problems. Summary of the Invention
[0005] The main objective of this invention is to provide a drug verification device and its control system for an automatic drug vending machine, which can effectively solve the problems in the background art.
[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A medicine verification device for an automatic medicine vending machine includes a shelf, a wall installed on the right side of the shelf, a first conveying track installed on the outer wall of the shelf and the wall, a second conveying track installed on the outer wall of the wall, a frame installed in the inner cavity of the shelf, a medicine box installed in the inner cavity of the frame, and a first push plate movably connected in the inner cavity of the frame. A camera is installed on the top of the outer wall of the wall, an adjustment plate is movably connected to the top of the second conveyor track, a roller label printer is set on the right side of the second conveyor track, a scanner is set on the right side of the roller label printer, and a conveying component is set on the top of the scanner. A verification chamber is provided on the right side of the conveying component. A dustproof plate is movably connected to the top of the verification chamber. A drive component is installed at the bottom of the verification chamber. Moisture-proof fans are symmetrically installed on both sides of the bottom of the verification chamber.
[0007] Preferably, the top of the first push plate is rotatably connected to a roller, the side of the first push plate is attached to the bottom of the side of the frame, and the outer wall of the shelf is equipped with a first hydraulic push rod, which is connected to the first push plate.
[0008] Preferably, retractable blocks are symmetrically installed on both sides of the first push plate, a fixed rod is installed in the inner cavity of the shelf, a spring is wound around the outer wall of the fixed rod, one end of the spring is connected to the retractable block, the other end of the spring is installed in the inner cavity of the shelf, and the retractable block is movably connected in the inner cavity of the shelf and sleeved on the outer wall of the fixed rod.
[0009] Preferably, there are two cameras: one camera is located at the top of the second conveyor track, and the other camera is located in the center of the top of the verification chamber.
[0010] Preferably, a first lead screw is rotatably connected to the inner cavity of the wall, the first lead screw is driven by a motor installed in the wall, and one end of the adjusting plate is movably connected to the inner cavity of the wall and threadedly connected to the first lead screw.
[0011] Preferably, a glass plate is installed in the center of the conveying assembly, a guide post is installed in the inner cavity at one top end of the conveying assembly, a second lead screw is installed in the inner cavity at the other top end of the conveying assembly, and the side of the second push plate near the roller label printer is inclined.
[0012] Preferably, both ends of the bottom of the second push plate are movably connected to the inner cavities at both ends of the conveying assembly. One end of the bottom of the second push plate is sleeved on the outer wall of the guide post, and the other end of the bottom of the second push plate is threaded to the outer wall of the second lead screw. A servo motor is installed on the side of the conveying assembly, and the servo motor is connected to the second lead screw through a first rotating shaft.
[0013] Preferably, guide rods are symmetrically installed in the inner cavities on both sides of the top of the verification chamber, and the bottom sides of the dustproof plate are symmetrically and movably connected to the inner cavities on both sides of the top of the verification chamber and sleeved on the outside of the guide rods. A second hydraulic push rod is installed on the outer wall of the wall, and the second hydraulic push rod is connected to the dustproof plate.
[0014] Preferably, a belt is installed in the inner cavity of the drive assembly, and pulleys are installed on both sides of the inner cavity of the belt. The pulleys are used to drive the dehumidifying fan. A drive motor is installed at the bottom of the drive assembly, and the drive motor is connected to one of the pulleys through a second rotating shaft.
[0015] A control system for a drug verification device in an automated drug vending machine includes: The order parsing and task allocation module is used to receive order data from the user interface of the automatic medicine vending machine and the pharmacy management system, and perform order validity verification: check whether the drug ID exists, whether the quantity exceeds the inventory, and whether the drug is within the expiration date. If the verification fails, a prompt is immediately sent to the user interface and recorded; if the verification passes, a task instruction package is generated, which includes the target frame ID, drug posture correction parameters, and verification code. The multi-dimensional drug verification logic module uses a left-side camera for visual verification. It receives pre-processed images from the left camera and extracts features from the drug box using an AI image recognition algorithm based on a convolutional neural network. These features are then compared with standard features in the drug database. If the similarity is ≥98% and the identified drug ID matches the order requirements, the first step is considered successful. If the similarity is 85%-97%, the camera parameters are adjusted to re-encode the image and compare it again. If the similarity is <85%, the visual verification is deemed inconsistent, and an anomaly is marked. The code scanning verification process involves receiving the drug traceability code and order association code sent by the scanner and comparing them with the code to be verified in the task instruction package. If both codes match, the scan is considered successful; otherwise, if only one code matches or neither code matches, the scan is considered abnormal and the code value difference is recorded. The camera on the right performs a secondary visual verification, receiving images of the barcode on the top of the medicine box and the label on the bottom, extracting the code information using OCR recognition technology, and comparing it again with the code to be verified; at the same time, an edge detection algorithm is used to check whether the medicine box is damaged, and if it is damaged, the integrity of the medicine is determined to be abnormal. The real-time inventory update and early warning module immediately reduces the corresponding drug inventory by one and updates the inventory status after the medicine box is shipped normally: inventory ≥ 10 is marked as sufficient, 3 ≤ inventory < 10 is marked as tight, inventory < 3 is marked as scarce, and if the inventory is 0, the module removes the drug from the list of available drugs.
[0016] Compared with the prior art, the present invention provides a medicine verification device and its control system for an automatic medicine vending machine, which has the following beneficial effects: 1. The medicine verification device and its control system of the automatic medicine vending machine can store different types of medicine boxes through multiple frames. After the first hydraulic push rod is activated, the bottom medicine box can be pushed out of the inner cavity of the shelf by the first push plate, so that it can fall on the top of the first conveyor track for subsequent conveying. After the bottom medicine box is pushed out, the bottom medicine box in the inner cavity of the frame can fall on the top of the first push plate. After the first push plate is reset, it can fall into the inner cavity of the shelf, waiting for the next first push plate to process it. Through the set spring, in conjunction with the shrink block, the first push plate can be driven to perform auxiliary reset.
[0017] 2. The medicine verification device and its control system of the automatic medicine vending machine can verify the posture of the medicine box by means of a camera installed on the second conveyor track and the top of the verification compartment. With the help of a movable adjustment plate, it can knock down the medicine box in a vertical position so that it can be moved in a flat position for subsequent movement.
[0018] 3. The medicine verification device and its control system of the automatic medicine vending machine can print labels on medicine boxes through a roller label printer, scan medicine boxes through glass through a barcode scanner, and push verified medicine boxes into the verification compartment for storage through a movable second push plate.
[0019] 4. The medicine verification device and its control system of the automatic medicine vending machine, through the dustproof plate, can close the top of the verification compartment after the medicine box is loaded in the verification compartment. The driving component can drive the dehumidifying fan to work, thereby dehumidifying the medicine box loaded in the inner cavity of the verification compartment. Attached Figure Description
[0020] Figure 1 This is a schematic diagram of the overall structure of the present invention; Figure 2 This is a schematic diagram of the framework of the present invention; Figure 3 This is a schematic diagram of the structure of the transmission component of the present invention; Figure 4 This is a schematic diagram of the structure of the verification chamber of the present invention.
[0021] In the diagram: 1. Shelf; 2. Medicine box; 3. Frame; 4. First push plate; 5. Roller; 6. Shrink block; 7. Fixing rod; 8. Spring; 9. First hydraulic push rod; 10. First conveyor track; 11. Second conveyor track; 12. Wall; 13. Camera; 14. Adjusting plate; 15. First lead screw; 16. Roller label printer; 17. Scanner; 18. Conveyor assembly; 19. Glass; 20. Second lead screw; 21. Guide column; 22. Servo motor; 23. Second push plate; 24. Verification compartment; 25. Guide rod; 26. Dustproof plate; 27. Second hydraulic push rod; 28. Drive assembly; 29. Pulley; 30. Belt; 31. Moisture-proof fan. Detailed Implementation
[0022] To make the technical means, creative features, objectives and effects of this invention easier to understand, the invention will be further described below in conjunction with specific embodiments.
[0023] Example 1: like Figure 1 , Figure 2As shown, a medicine verification device for an automatic medicine vending machine includes a shelf 1, a wall 12 installed on the right side of the shelf 1, a first conveying track 10 installed on the outer wall of the shelf 1 and the wall 12, a second conveying track 11 installed on the outer wall of the wall 12, a frame 3 installed in the inner cavity of the shelf 1, a medicine box 2 installed in the inner cavity of the frame 3, a first push plate 4 movably connected in the inner cavity of the frame 3, a roller 5 rotatably connected to the top of the first push plate 4, the side of the first push plate 4 abutting the bottom of the side of the frame 3, a first hydraulic push rod 9 installed on the outer wall of the shelf 1, the first hydraulic push rod 9 connected to the first push plate 4, shrink blocks 6 symmetrically installed on both sides of the first push plate 4, a fixing rod 7 installed in the inner cavity of the shelf 1, a spring 8 wound around the outer wall of the fixing rod 7, one end of the spring 8 connected to the shrink block 6, the other end of the spring 8 installed in the inner cavity of the shelf 1, and the shrink block 6 movably connected in the inner cavity of the shelf 1 and sleeved on the outer wall of the fixing rod 7. Multiple frames 3 can store different types of medicine boxes 2. After the first hydraulic push rod 9 is activated, the bottom medicine box 2 can be pushed out of the inner cavity of the shelf 1 by the first push plate 4, so that it can fall on the top of the first conveyor track 10 for subsequent conveying. After the bottom medicine box 2 is pushed out, the bottom medicine box 2 in the inner cavity of the frame 3 can fall on the top of the first push plate 4. After the first push plate 4 is reset, it can fall into the inner cavity of the shelf 1, waiting for the next first push plate 4 to process it. The spring 8, in conjunction with the shrink block 6, can drive the first push plate 4 to perform auxiliary reset.
[0024] Example 2: like Figure 1 , Figure 3 As shown, a medicine verification device for an automatic medicine vending machine includes a camera 13 mounted on the top of the outer wall of the wall 12; an adjusting plate 14 movably connected to the top of the second conveyor track 11; a roller label printer 16 located on the right side of the second conveyor track 11; a barcode scanner 17 located on the right side of the roller label printer 16; a conveying assembly 18 located on top of the barcode scanner 17; and two cameras 13, one located on top of the second conveyor track 11 and the other located on top of the verification compartment 24. In the center, a first lead screw 15 is rotatably connected in the inner cavity of the wall 12. The first lead screw 15 is driven by a motor installed in the wall 12. One end of the adjusting plate 14 is movably connected in the inner cavity of the wall 12 and threadedly connected to the first lead screw 15. A glass 19 is installed in the center of the conveying assembly 18. A guide post 21 is installed in the inner cavity of one top end of the conveying assembly 18. A second lead screw 20 is installed in the inner cavity of the other top end of the conveying assembly 18. The side of the second push plate 23 near the roller label printer 16 is inclined. The camera 13, located on the top of the second conveyor track 11 and the verification chamber 24, can verify the posture of the medicine box 2. With the help of the movable adjustment plate 14, the vertical medicine box 2 can be knocked down so that it can be moved in a flat position. The roller label printer 16 can print labels on the medicine box 2. The barcode scanner 17 can scan the medicine box 2 through the glass 19. The movable second push plate 23 can push the verified medicine box 2 into the verification chamber 24 for storage.
[0025] Example 3: like Figure 1 , Figure 4 As shown, a medicine verification device for an automatic medicine vending machine includes a verification chamber 24 on the right side of a conveying assembly 18. A dustproof plate 26 is movably connected to the top of the verification chamber 24, and a drive assembly 28 is installed at the bottom. Moisture-proof fans 31 are symmetrically installed on both sides of the bottom of the inner cavity of the verification chamber 24. Both ends of a second push plate 23 are movably connected to the inner cavities at both ends of the conveying assembly 18. One end of the bottom of the second push plate 23 is sleeved on the outer wall of a guide post 21, and the other end of the bottom of the second push plate 23 is threaded to the outer wall of a second lead screw 20. A servo motor 22 is installed on the side of the conveying assembly 18. The servo motor 22 is connected via a first... The rotating shaft is connected to the second lead screw 20. Guide rods 25 are symmetrically installed in the inner cavities on both sides of the top of the verification chamber 24. The bottom sides of the dustproof plate 26 are symmetrically and movably connected to the inner cavities on both sides of the top of the verification chamber 24 and sleeved on the outside of the guide rods 25. The outer wall of the wall 12 is equipped with a second hydraulic push rod 27, which is connected to the dustproof plate 26. A belt 30 is installed in the inner cavity of the drive assembly 28. Pulleys 29 are installed on both sides of the inner cavity of the belt 30. The pulleys 29 are used to drive the moisture-proof fan 31. A drive motor is installed at the bottom of the drive assembly 28. The drive motor is connected to one of the pulleys 29 through the second rotating shaft. After the medicine box 2 is loaded into the verification chamber 24, the top of the verification chamber 24 can be closed by the dustproof plate 26. The dehumidifying fan 31 can be driven by the drive component 28 to work, thereby dehumidifying the medicine box 2 loaded in the cavity of the verification chamber 24.
[0026] A control system for a drug verification device in an automated drug vending machine includes: The order parsing and task allocation module is used to receive order data from the user interface of the automatic medicine vending machine and the pharmacy management system, and perform order validity verification: check whether the drug ID exists, whether the quantity exceeds the inventory, and whether the drug is within the expiration date. If the verification fails, a prompt is immediately sent to the user interface and recorded; if the verification passes, a task instruction package is generated, which includes the ID of the target frame 3, the drug posture correction parameters, and the verification code. The multi-dimensional drug verification logic module uses the left-side camera 13 for visual verification. It receives the pre-processed image from the left-side camera 13 and extracts the features of the drug box 2 using an AI image recognition algorithm based on a convolutional neural network. The features are then compared with the standard features in the drug database. If the similarity is ≥98% and the identified drug ID matches the order requirements, the first step is considered passed. If the similarity is 85%-97%, the camera 13 is controlled to adjust its parameters and re-capture the image for comparison. If the similarity is <85%, the visual verification is deemed inconsistent, and an anomaly is marked. The barcode verification process involves receiving the drug traceability code and order association code sent by the barcode scanner 17 and comparing them with the code to be verified in the task instruction package. If both codes match, the scan is considered successful. If only one code matches or neither code matches, the scan is considered abnormal and the code value difference is recorded. The right-side camera 13 performs a secondary visual verification, receiving images of the top barcode and bottom label of the medicine box 2 captured by the right-side camera 13. It extracts the barcode information using OCR recognition technology and compares it with the barcode to be verified again. At the same time, it checks whether the medicine box 2 is damaged using an edge detection algorithm. If it is damaged, it is determined that the integrity of the medicine is abnormal. The real-time inventory update and early warning module immediately reduces the corresponding drug inventory by one and updates the inventory status after the drug in medicine box 2 is shipped normally: inventory ≥ 10 is marked as sufficient, 3 ≤ inventory < 10 is marked as tight, inventory < 3 is marked as scarce, and if the inventory is 0, the module removes the drug from the list of available drugs.
[0027] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of this invention is defined by the appended claims and their equivalents.
Claims
1. A medicine verification device for an automatic medicine vending machine, comprising a shelf (1), characterized in that: A wall (12) is installed on the right side of the shelf (1). A first conveyor rail (10) is installed on the outer wall of the shelf (1) and the wall (12). A second conveyor rail (11) is installed on the outer wall of the wall (12). A frame (3) is installed in the inner cavity of the shelf (1). The inner cavity of the frame (3) is used to install medicine boxes (2). A first push plate (4) is movably connected in the inner cavity of the frame (3). A camera (13) is installed on the top of the outer wall of the wall (12), an adjustment plate (14) is movably connected to the top of the second conveying track (11), a roller label printer (16) is provided on the right side of the second conveying track (11), a scanner (17) is provided on the right side of the roller label printer (16), and a conveying assembly (18) is provided on the top of the scanner (17). A verification chamber (24) is provided on the right side of the conveying component (18). A dustproof plate (26) is movably connected to the top of the verification chamber (24). A drive component (28) is installed at the bottom of the verification chamber (24). Moisture-proof fans (31) are symmetrically installed on both sides of the bottom of the inner cavity of the verification chamber (24).
2. The drug verification device for an automatic drug vending machine according to claim 1, characterized in that: The top of the first push plate (4) is rotatably connected to a roller (5), the side of the first push plate (4) is attached to the bottom of the side of the frame (3), and the outer wall of the shelf (1) is equipped with a first hydraulic push rod (9), which is connected to the first push plate (4).
3. The drug verification device for an automatic drug vending machine according to claim 2, characterized in that: Shrink blocks (6) are symmetrically installed on both sides of the first push plate (4). A fixing rod (7) is installed in the inner cavity of the shelf (1). A spring (8) is wound around the outer wall of the fixing rod (7). One end of the spring (8) is connected to the shrink block (6). The other end of the spring (8) is installed in the inner cavity of the shelf (1). The shrink block (6) is movably connected in the inner cavity of the shelf (1) and sleeved on the outer wall of the fixing rod (7).
4. The drug verification device for an automatic drug vending machine according to claim 1, characterized in that: There are two cameras (13), one of which is located at the top of the second conveyor track (11), and the other camera (13) is located at the center of the top of the verification chamber (24).
5. The drug verification device for an automatic drug vending machine according to claim 1, characterized in that: A first lead screw (15) is rotatably connected in the inner cavity of the wall (12). The first lead screw (15) is driven by a motor installed in the wall (12). One end of the adjusting plate (14) is movably connected in the inner cavity of the wall (12) and threadedly connected to the first lead screw (15).
6. The drug verification device for an automatic drug vending machine according to claim 1, characterized in that: A glass (19) is installed in the center of the conveying assembly (18), a guide post (21) is installed in the inner cavity at one end of the top of the conveying assembly (18), a second lead screw (20) is installed in the inner cavity at the other end of the top of the conveying assembly (18), and the side of the second push plate (23) near the roller label printer (16) is inclined.
7. The drug verification device for an automatic drug vending machine according to claim 6, characterized in that: Both ends of the bottom of the second push plate (23) are movably connected to the inner cavities at both ends of the conveying assembly (18). One end of the bottom of the second push plate (23) is sleeved on the outer wall of the guide post (21), and the other end of the bottom of the second push plate (23) is threaded to the outer wall of the second lead screw (20). A servo motor (22) is installed on the side of the conveying assembly (18), and the servo motor (22) is connected to the second lead screw (20) through the first rotating shaft.
8. The drug verification device for an automatic drug vending machine according to claim 1, characterized in that: Guide rods (25) are symmetrically installed in the inner cavities on both sides of the top of the verification chamber (24). The bottom sides of the dustproof plate (26) are symmetrically and movably connected to the inner cavities on both sides of the top of the verification chamber (24) and sleeved on the outside of the guide rods (25). A second hydraulic push rod (27) is installed on the outer wall of the wall (12). The second hydraulic push rod (27) is connected to the dustproof plate (26).
9. The drug verification device for an automatic drug vending machine according to claim 1, characterized in that: A belt (30) is installed in the inner cavity of the drive assembly (28), and pulleys (29) are installed on both sides of the inner cavity of the belt (30). The pulleys (29) are used to drive the dehumidifying fan (31). A drive motor is installed at the bottom of the drive assembly (28), and the drive motor is connected to one of the pulleys (29) through a second rotating shaft.
10. A control system for a drug verification device of an automatic medicine vending machine, comprising a drug verification device for an automatic medicine vending machine as described in any one of claims 1-9, characterized in that: include: The order parsing and task allocation module is used to receive order data from the user interface of the automatic medicine vending machine and the pharmacy management system, and perform order validity verification: check whether the drug ID exists, whether the quantity exceeds the inventory, and whether the drug is within the expiration date. If the verification fails, a prompt is immediately sent to the user interface and recorded. If the verification passes, a task instruction package is generated, which includes the ID of the target frame (3), the drug posture correction parameters, and the code to be verified. The multi-dimensional drug verification logic module uses the left-side camera (13) for visual verification. It receives the pre-processed image from the left-side camera (13) and extracts the features of the drug box (2) using an AI image recognition algorithm based on convolutional neural networks. The features are compared with the standard features of the drug database. If the similarity is ≥98% and the identified drug ID matches the order requirements, the first pass is determined. If the similarity is 85%-97%, the camera (13) is controlled to adjust the parameters and retake the picture for comparison. If the similarity is <85%, the visual verification is determined to be inconsistent and an abnormal type is marked. Scan the code to verify and check the drug traceability code and order association code sent by the scanner (17). Compare the code to be verified with the code in the task instruction package. If both codes are consistent, the test is passed. If only one code matches or both codes do not match, the scanning is deemed abnormal, and the code value difference is recorded. The camera (13) on the right side performs a secondary visual check, receiving images of the top barcode and bottom label of the medicine box (2) captured by the camera (13) on the right side. It extracts the code information through OCR recognition technology and compares it with the code to be verified again. At the same time, it checks whether the medicine box (2) is damaged through edge detection algorithm. If it is damaged, it is determined that the integrity of the medicine is abnormal. The real-time inventory update and early warning module will immediately reduce the corresponding drug inventory by one and update the inventory status after the drug box (2) is shipped normally: inventory ≥ 10 is marked as sufficient, 3≤ inventory < 10 is marked as tight, inventory < 3 is marked as scarce, and if the inventory is 0, the module will remove the drug from the list of available drugs.