Automatic dispensing method and device

By using the image acquisition equipment of the light source equipment in the self-service drug distributor, the problem that traditional self-service drug distributors cannot achieve automatic drug distributors and drug identification errors is solved, and automatic drug distributors with high accuracy and high efficiency are achieved.

CN119929379AActive Publication Date: 2025-05-06SHENZHEN LACHESIS MOBILE MEDICAL TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510150325.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-11
Publication Date
2025-05-06
Estimated Expiration
2045-02-11

AI Technical Summary

Technical Problem

Traditional self-service drug distributors cannot automatically distribute drugs, and because the LED light source is blocked by the drug, the image captured by the camera is poor, resulting in drug identification errors and abnormal drug distributors.

Method used

By receiving the drug distribution signal, analyzing the signal to determine the drug distribution and sequence, obtaining the drug slot location and template of the drug, using the image acquisition device equipped with a light source device to check the drug templates in turn, and performing drug distribution operations based on the verification results.

Benefits of technology

The accuracy and efficiency of automatic drug delivery are achieved, and the accuracy of drug template verification is improved through image acquisition with sufficient light sources and the error rate of drug delivery is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119929379A_ABST
    Figure CN119929379A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of medicine dispensing machines, and discloses an automatic medicine dispensing method and device.The method comprises the steps that a medicine dispensing signal is received, and a plurality of dispensed medicines and the medicine dispensing sequence are determined by analyzing the medicine dispensing signal; medicine groove positions and medicine templates of a plurality of dispensed medicines are obtained; according to the medicine dispensing sequence, based on the medicine groove position and the medicine template of each dispensed medicine, an image acquisition device provided with a light source device is adopted to conduct template checking on each dispensed medicine in sequence, and a checking result of each dispensed medicine is obtained; and performing corresponding dispensing operation on each dispensed medicine based on the checking result of each dispensed medicine. According to the automatic medicine dispensing system, automatic medicine dispensing is achieved, the image collecting device provided with the light source device is adopted for template checking, it can be guaranteed that the image collecting device collects the medicine image under the condition that the light source is sufficient, the definition of the medicine image is effectively improved, the accuracy of medicine template checking is improved, and then the accuracy of automatic medicine dispensing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medicine dispensing machines, and in particular to an automatic medicine dispensing method and device. Background Art

[0002] Traditional self-service medicine dispensing machines cannot issue medicine instructions according to the medicine in the medicine slot, so they cannot realize automatic medicine dispensing technology, and cannot solve the problem of wrong medicine dispensing caused by human error when adding medicine. Moreover, for self-service medicine dispensing machines equipped with cameras, the LED light source is often set on the elevator. When dispensing large prescriptions, if there are too many medicines on the elevator, the LED light source will be blocked by the medicines, so that the picture taken by the camera in the self-service medicine dispensing machine will have poor clarity due to insufficient light source, which will lead to wrong medicine recognition and abnormal medicine dispensing. Therefore, there is a lot of room for improvement in existing self-service medicine dispensing machines. Summary of the invention

[0003] The present invention provides an automatic medicine dispensing method and device, which realizes automatic medicine dispensing and improves the accuracy of automatic medicine dispensing by improving the accuracy of medicine template verification.

[0004] In order to solve the above technical problems, the present invention provides an automatic medicine dispensing method, comprising:

[0005] receiving a medicine dispensing signal, and determining a number of medicines to be dispensed and a dispensing order by analyzing the medicine dispensing signal;

[0006] Obtaining the positions of the medicine slots and medicine templates of the medicines to be dispensed;

[0007] According to the medicine dispensing sequence, based on the medicine slot position and medicine template of each medicine to be dispensed, an image acquisition device provided with a light source device is used to check the template of each medicine to be dispensed in turn, and a check result of each medicine to be dispensed is obtained;

[0008] Based on the verification results of each of the dispensing drugs, corresponding dispensing operations are performed on each of the dispensing drugs.

[0009] When the present invention receives a medicine dispensing signal, it can derive multiple medicines that need to be dispensed and the dispensing order by analyzing the medicine dispensing signal, use an image acquisition device to perform template verification on each medicine to be dispensed in order, and perform corresponding dispensing operations on each medicine based on the verification result of the template of each medicine to be dispensed. Before dispensing, each medicine to be dispensed is first template verified, which can timely detect whether the medicine to be dispensed is correct, thereby improving the accuracy of automatic medicine dispensing; using an image acquisition device equipped with a light source device to perform template verification can ensure that the image acquisition device works under the condition of sufficient light source, and can improve the image acquisition clarity of the image acquisition device, thereby improving the accuracy of template verification, and then improving the accuracy of automatic medicine dispensing.

[0010] Further, the obtaining of the medicine slot positions and medicine templates of the plurality of medicines to be dispensed is specifically as follows:

[0011] Obtaining the medicine slot position and medicine template of each of the medicines to be dispensed in the medicine dispensing machine from a preset medicine information database;

[0012] The construction process of the preset drug information database is specifically as follows:

[0013] Lighting up a light source device provided on the image acquisition device;

[0014] Obtaining preset layer height positions corresponding to the positions of several layers of medicine slots in the medicine dispensing machine in a standard state, and controlling the image acquisition device to move in a preset vertical direction to the preset layer height positions corresponding to the positions of the medicine slots on each layer in sequence;

[0015] Whenever the image acquisition device moves to a preset layer height position, the image acquisition device is controlled to move horizontally in a preset horizontal direction to scan a plurality of medicine slot positions of the current layer;

[0016] When all the medicine slot positions in the standard state medicine dispensing machine are scanned, the medicine information and medicine template corresponding to each medicine slot position are identified;

[0017] Generate a plurality of associated information according to each of the medicine slot positions and the medicine information and medicine template corresponding to each of the medicine slot positions;

[0018] A preset drug information database is constructed based on the plurality of related information.

[0019] Further, according to the dispensing order, based on the medicine slot position and medicine template of each medicine to be dispensed, an image acquisition device provided with a light source device is used to sequentially check the template of each medicine to be dispensed, and the verification result of each medicine to be dispensed is obtained, specifically:

[0020] According to the order of dispensing medicines, an image acquisition device provided with a light source device is used to perform a template verification operation on each of the medicines to be dispensed in turn;

[0021] The template checking operation includes:

[0022] According to the position of the medicine slot of the medicine to be dispensed, the image acquisition device is controlled to move in the medicine dispensing machine, and the light source device provided in the image acquisition device is illuminated;

[0023] When the image acquisition device moves to the medicine slot position, controlling the image acquisition device to acquire a medicine image;

[0024] The drug image is template checked based on the drug template to obtain a check result.

[0025] When the present invention performs template verification on each medicine to be dispensed, the light source device arranged on the image acquisition device is lit, and according to the position of the medicine slot of the medicine to be dispensed, the light source device moves in the medicine dispensing machine with the image acquisition device. When the image acquisition device moves to the medicine slot position, the light source device can illuminate the medicine at the medicine slot position. At this time, the image acquisition device is controlled to collect the medicine image when the light source device is lit, so that a clear medicine image can be obtained under the condition of sufficient light source. The acquired medicine template is used to perform template verification on the collected medicine image, and the verification result of the corresponding medicine to be dispensed can be obtained, which provides a dispensing basis for subsequent dispensing operations.

[0026] Further, the image acquisition device is controlled to move in the medicine dispensing machine according to the position of the medicine slot, specifically:

[0027] Obtaining the medicine dispensing slot height position and the medicine dispensing slot horizontal position by analyzing the medicine dispensing slot position;

[0028] According to the height position of the medicine dispensing slot, the lifting machine is controlled to drive the image acquisition device to move vertically in the medicine dispensing machine; wherein the image acquisition device is fixed on the lifting machine;

[0029] When the image acquisition device moves to the height position of the medicine dispensing trough, the drag chain is controlled to drive the image acquisition device to move horizontally at the height position of the medicine dispensing trough according to the horizontal position of the medicine dispensing trough; wherein, the image acquisition device is fixed on the drag chain, and the drag chain is movably arranged on the lifting machine.

[0030] The image acquisition device of the present invention is fixed on a drag chain, which is movably arranged on a hoist. After obtaining the height position and the horizontal position of the medicine dispensing slot by analyzing the position of the medicine slot, since the image acquisition device is fixed on the hoist, the up and down movement of the hoist can be controlled to drive the up and down movement of the image acquisition device. When the image acquisition device moves to the height position of the medicine dispensing slot, the drag chain movably arranged on the hoist is controlled to move left and right, which can drive the image acquisition device fixed on the drag chain to move left and right, so that the image acquisition device moves to the horizontal position of the medicine dispensing slot. The present invention can move the image acquisition device to the accurate medicine slot position by controlling the movement of the hoist and the drag chain to acquire the medicine image at the medicine slot position, thereby improving the accuracy of the acquired medicine image.

[0031] Furthermore, when the image acquisition device moves to the medicine slot position, the image acquisition device is controlled to acquire the medicine image, specifically:

[0032] When the image acquisition device moves horizontally from the height position of the medicine dispensing slot to the horizontal position of the medicine dispensing slot, it is determined that the image acquisition device has moved to the medicine slot position, and the image acquisition device is controlled to acquire images of medicines.

[0033] Furthermore, the template verification is performed on the drug image based on the drug template to obtain a verification result, which is specifically:

[0034] Calculating the similarity between the drug template and the drug image to obtain the template similarity;

[0035] When the template similarity is greater than or equal to a preset similarity threshold, determining the verification result is a successful verification;

[0036] When the template similarity is less than a preset similarity threshold, the verification result is determined to be a verification failure.

[0037] Furthermore, the corresponding dispensing operation is performed on each of the dispensing drugs based on the verification result of each of the dispensing drugs, specifically:

[0038] When the verification result of the medicine to be dispensed is successful, the medicine to be dispensed is pushed down onto the elevator;

[0039] When the verification result of the dispensed medicine is a verification failure, a medicine dispensing abnormality signal is issued.

[0040] The present invention performs corresponding dispensing operations on each dispensing drug according to the verification result of each dispensing drug. When the verification result of the dispensing drug is successful, the dispensing drug is pushed onto the elevator, thereby improving the efficiency of automatic dispensing of the drug; when the verification result of the dispensing drug is a verification failure, a dispensing abnormality signal is issued to avoid issuing wrong drugs, which can effectively reduce the error rate of automatic dispensing of the drug.

[0041] Furthermore, when the verification result of the dispensed drug is a verification failure, the method further includes:

[0042] Determining whether the drug for which the verification result is failed is the first drug to be dispensed according to the drug dispensing sequence;

[0043] If the check result is that the drug that fails to be checked is not the first drug to be dispensed, it is determined that there is a drug to be dispensed on the elevator;

[0044] The dispensed medicines on the lifting machine are recovered through a recovery valve.

[0045] After detecting a drug that has failed to be verified, the present invention determines whether the drug that has failed to be verified is the first drug to be dispensed according to the dispensing order. If not, it means that a drug that has successfully been verified has existed before the drug that has been verified. At this time, a drug that has successfully been verified exists on the elevator. At this time, a recovery valve is used to recover the drugs on the elevator to prevent the successfully verified drugs from being lost, so that the drugs can be dispensed again later, thereby improving the accuracy of subsequent automatic dispensing.

[0046] Furthermore, after performing corresponding dispensing operations on each of the dispensing drugs based on the verification results of each of the dispensing drugs, the method further includes:

[0047] Control the image acquisition device to move to a preset starting position, specifically:

[0048] Controlling the drag chain to drive the image acquisition device to move to a preset horizontal position;

[0049] When the image acquisition device moves to a preset horizontal position, controlling the lifting machine to drive the image acquisition device to move to a preset vertical position;

[0050] When the image acquisition device moves vertically from the preset horizontal position to the preset vertical position, it is determined that the image acquisition device moves to the preset starting position.

[0051] After completing the corresponding dispensing operation for each dispensing medicine, the present invention controls the movement of the drag chain and the elevator to drive the movement of the image acquisition device, so that the image acquisition device moves to a preset starting position, thereby improving the convenience of subsequent medicine replenishment operations of the dispensing machine.

[0052] Accordingly, the present invention provides an automatic medicine dispensing device, comprising: a signal receiving module, an information acquiring module, a template checking module and a medicine dispensing module;

[0053] The signal receiving module is used to receive a medicine dispensing signal, and determine a number of medicines to be dispensed and the order of dispensing by analyzing the medicine dispensing signal;

[0054] The information acquisition module is used to obtain the positions of the medicine slots and medicine templates of the medicines to be dispensed;

[0055] The template checking module is used to check the templates of the medicines to be dispensed in sequence according to the medicine dispensing sequence, based on the medicine slot position and medicine template of each medicine to be dispensed, using an image acquisition device provided with a light source device, to obtain the checking results of each medicine to be dispensed;

[0056] The medicine dispensing module is used to perform corresponding medicine dispensing operations on each of the medicine dispensing drugs based on the verification results of each of the medicine dispensing drugs. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A schematic diagram of a flow chart of an embodiment of the automatic medicine dispensing method provided by the present invention;

[0058] Figure 2 A structural schematic diagram of the elevator provided by the present invention;

[0059] Figure 3 A schematic diagram of the structure of the recovery valve provided by the present invention;

[0060] Figure 4 A schematic diagram of a flow chart of another embodiment of the automatic medicine dispensing method provided by the present invention;

[0061] Figure 5 A schematic structural diagram of an embodiment of the automatic medicine dispensing device provided by the present invention;

[0062] Among them, 1. elevator; 2. medicine tank position; 3. recovery valve; 4. telescopic rod. DETAILED DESCRIPTION

[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0064] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0065] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0066] Example 1

[0067] like Figure 1 FIG. 1 is a flow chart of an embodiment of the automatic medicine dispensing method provided by the present invention. The method includes steps 101 to 104, and each step is specifically as follows:

[0068] Step 101: receiving a medicine dispensing signal, and determining a number of medicines to be dispensed and a dispensing order by analyzing the medicine dispensing signal.

[0069] Step 102: Obtain the positions of medicine slots and medicine templates of a plurality of the medicines to be dispensed.

[0070] Step 103: According to the medicine dispensing sequence, based on the medicine slot position and medicine template of each medicine to be dispensed, an image acquisition device equipped with a light source device is used to perform template verification on each medicine to be dispensed in turn to obtain verification results of each medicine to be dispensed.

[0071] Step 104: performing corresponding dispensing operations on each of the dispensing drugs based on the verification results of each of the dispensing drugs.

[0072] In an embodiment of the present invention, when a medicine dispensing signal is received, the medicine dispensing signal can be analyzed to obtain a plurality of medicines that need to be dispensed and the dispensing order corresponding to each medicine. The medicine slot positions and medicine templates of a plurality of medicines are obtained, and the templates of each medicine are checked in turn based on the medicine slot positions and medicine templates of each medicine according to the dispensing order, so that the corresponding medicine dispensing operation is performed on each medicine based on the verification results of the templates of each medicine. Among them, the template checking of each medicine is to control the image acquisition device to move to the medicine slot position of each medicine, and obtain the corresponding medicine image, and then the template checking of the obtained medicine image can be performed based on the medicine template of each medicine, and then the subsequent medicine dispensing operation is performed according to the verification results. The present invention first performs template checking on each medicine before dispensing, and can timely detect whether the medicine is correct, provide a dispensing basis for the subsequent dispensing operation, avoid the situation where the wrong medicine is placed in the medicine slot and causes the wrong medicine to be dispensed, and thus improve the accuracy of automatic dispensing.

[0073] In an embodiment of the present invention, an image acquisition device provided with a light source device is used to perform template verification. When a drug dispensing signal is received, the light source device on the image acquisition device is lit. When the image acquisition device moves to the medicine slot position, it can ensure that the image acquisition device performs image acquisition under the condition of sufficient light source, so as to improve the clarity of the acquired image, thereby improving the accuracy of template verification, and further improving the accuracy of automatic drug dispensing.

[0074] In summary, the embodiment of the present invention provides an automatic medicine dispensing method, including: receiving a medicine dispensing signal, determining a number of medicines to be dispensed and a dispensing order by analyzing the medicine dispensing signal; obtaining the medicine slot positions and medicine templates of a number of medicines to be dispensed; according to the dispensing order, based on the medicine slot positions and medicine templates of each medicine to be dispensed, using an image acquisition device provided with a light source device to perform template verification on each medicine to be dispensed in turn, and obtaining verification results of each medicine to be dispensed; and performing corresponding medicine dispensing operations on each medicine to be dispensed based on the verification results of each medicine to be dispensed. The present invention realizes automatic medicine dispensing, and uses an image acquisition device provided with a light source device to perform template verification, which can ensure that the image acquisition device collects medicine images when there is sufficient light source, effectively improves the clarity of the medicine image, thereby improving the accuracy of the medicine template verification, and further improving the accuracy of automatic medicine dispensing.

[0075] Example 2

[0076] like Figure 1 FIG. 1 is a flow chart of an embodiment of the automatic medicine dispensing method provided by the present invention. The method includes steps 101 to 104, and each step is specifically as follows:

[0077] Step 101: receiving a medicine dispensing signal, and determining a number of medicines to be dispensed and a dispensing order by analyzing the medicine dispensing signal.

[0078] In the embodiment of the present invention, when a medicine dispensing signal is received, the medicine dispensing signal can be parsed to obtain a plurality of medicines to be dispensed and a dispensing sequence corresponding to each medicine.

[0079] Step 102: Obtain the positions of medicine slots and medicine templates of a plurality of the medicines to be dispensed.

[0080] Further, in the embodiment of the present invention, the positions of the medicine slots and the medicine templates of the medicines to be dispensed are obtained, specifically:

[0081] Obtaining the medicine slot position and medicine template of each of the medicines to be dispensed in the medicine dispensing machine from a preset medicine information database;

[0082] The construction process of the preset drug information database is specifically as follows:

[0083] Lighting up a light source device provided on the image acquisition device;

[0084] Obtaining preset layer height positions corresponding to the positions of several layers of medicine slots in the medicine dispensing machine in a standard state, and controlling the image acquisition device to move in a preset vertical direction to the preset layer height positions corresponding to the positions of the medicine slots on each layer in sequence;

[0085] Whenever the image acquisition device moves to a preset layer height position, the image acquisition device is controlled to move horizontally in a preset horizontal direction to scan a plurality of medicine slot positions of the current layer;

[0086] When all the medicine slot positions in the standard state medicine dispensing machine are scanned, the medicine information and medicine template corresponding to each medicine slot position are identified;

[0087] Generate a plurality of associated information according to each of the medicine slot positions and the medicine information and medicine template corresponding to each of the medicine slot positions;

[0088] A preset drug information database is constructed based on the plurality of related information.

[0089] In an embodiment of the present invention, the medicine slot position and medicine template of each dispensing medicine can be obtained in a preset medicine information database. Among them, the preset medicine information database is constructed according to the medicine information and medicine slot position in the standard state medicine dispensing machine. Specifically: Since there are multiple layers of medicine slot positions in the standard state medicine dispensing machine, a number of preset layer height positions are first set according to the height positions of each layer in the standard state medicine dispensing machine. The preset vertical direction can be set to vertically upward or vertically downward. When the medicine slot position in the standard state medicine dispensing machine is scanned by an image acquisition device, the light source device set in the image acquisition device is first lit, and then the image acquisition device (such as a camera) is controlled to move along the preset vertical direction. Whenever it moves to the preset layer height position, after moving to the preset layer, the image acquisition device is controlled to move horizontally in the preset horizontal direction to scan multiple medicine slot positions of the current layer. The preset horizontal direction can be set to horizontal left or horizontal right. After the scanning of multiple medicine slot positions in the current layer is completed, it is moved to the next preset layer height position along the preset vertical direction, and moved horizontally along the preset horizontal direction to scan multiple medicine slot positions in the next layer until all medicine slot positions in the standard state medicine dispensing machine are scanned. Identify the scanned content of the image acquisition device, obtain the drug information and drug template corresponding to each drug slot position, associate each drug slot position with its corresponding drug information and drug template, generate multiple pieces of associated information, and use the generated associated information to build a preset drug information database.

[0090] As an example of an embodiment of the present invention, the preset vertical direction can be set to vertically upward, the preset horizontal direction can be set to horizontally rightward, the image acquisition device can be fixed on a drag chain, the drag chain can be movably set on a hoist, the image acquisition device can be controlled to move vertically upward by controlling the up and down movement of the hoist, and the image acquisition device can be controlled to move horizontally rightward by controlling the left and right movement of the drag chain. Therefore, the image acquisition device is controlled to move vertically upward from the starting position to the height positions of different layers in sequence, and all the medicine slot positions of the layer are scanned from left to right.

[0091] Optionally, a medicine slot light can be set at each medicine slot position in the standard state medicine dispenser. When scanning each medicine slot position in the standard state medicine dispenser, all the medicine slot lights in the standard state medicine dispenser are lit. When scanning is performed using an image acquisition device, the medicine slot lights will flash, and the image acquisition device will record the position of each medicine slot based on these light sources.

[0092] Step 103: According to the medicine dispensing sequence, based on the medicine slot position and medicine template of each medicine to be dispensed, an image acquisition device equipped with a light source device is used to perform template verification on each medicine to be dispensed in turn to obtain verification results of each medicine to be dispensed.

[0093] Further, in the embodiment of the present invention, according to the medicine dispensing order, based on the medicine slot position and medicine template of each medicine to be dispensed, an image acquisition device provided with a light source device is used to sequentially check the template of each medicine to be dispensed, and the verification result of each medicine to be dispensed is obtained, which is specifically:

[0094] According to the order of dispensing medicines, an image acquisition device provided with a light source device is used to perform a template verification operation on each of the medicines to be dispensed in turn;

[0095] The template checking operation includes:

[0096] According to the position of the medicine slot of the medicine to be dispensed, the image acquisition device is controlled to move in the medicine dispensing machine, and the light source device provided in the image acquisition device is illuminated;

[0097] When the image acquisition device moves to the medicine slot position, controlling the image acquisition device to acquire a medicine image;

[0098] The drug image is template checked based on the drug template to obtain a check result.

[0099] In an embodiment of the present invention, when the template is checked for each medicine to be dispensed, a light source device provided on the image acquisition device is lit. The light source device may be an LED lamp having the advantages of low power consumption, long life, and high brightness. The light source device is provided on the image acquisition device, and as the image acquisition device moves to the medicine slot position corresponding to the medicine to be dispensed, the light source device can indicate the medicine slot position where the medicine needs to be taken in a bright and clear manner, so that the image acquisition device can obtain a clear medicine image under the condition of sufficient light source, thereby effectively avoiding the situation where the medicine blocks the light source device and thus affects the verification and identification of the medicine template.

[0100] In an embodiment of the present invention, after acquiring a drug image, the acquired drug template can be used to perform template verification on the collected drug image, and a verification result corresponding to the drug to be dispensed can be obtained, thereby providing a basis for subsequent drug dispensing operations.

[0101] Further, in an embodiment of the present invention, the image acquisition device is controlled to move in the medicine dispensing machine according to the position of the medicine slot, specifically:

[0102] Obtaining the medicine dispensing slot height position and the medicine dispensing slot horizontal position by analyzing the medicine dispensing slot position;

[0103] According to the height position of the medicine dispensing slot, the lifting machine is controlled to drive the image acquisition device to move vertically in the medicine dispensing machine; wherein the image acquisition device is fixed on the lifting machine;

[0104] When the image acquisition device moves to the height position of the medicine dispensing trough, the drag chain is controlled to drive the image acquisition device to move horizontally at the height position of the medicine dispensing trough according to the horizontal position of the medicine dispensing trough; wherein, the image acquisition device is fixed on the drag chain, and the drag chain is movably arranged on the lifting machine.

[0105] In the embodiment of the present invention, the image acquisition device is fixed on the drag chain, and the drag chain is movably arranged on the elevator. The image acquisition device moves up and down with the movement of the elevator and moves left and right with the movement of the drag chain to capture image information and accurately locate the medicine.

[0106] In an embodiment of the present invention, the medicine dispensing slot height position and the medicine dispensing slot horizontal position are obtained by analyzing the medicine dispensing slot position, and the lifting machine is controlled to move up and down based on the medicine dispensing slot height position to drive the image acquisition device to move up and down. When the image acquisition device moves to the medicine dispensing slot height position, the drag chain movably arranged on the lifting machine is controlled to move left and right based on the medicine dispensing slot horizontal position to drive the image acquisition device fixed on the drag chain to move left and right, so that the image acquisition device moves to the medicine dispensing slot horizontal position. The present invention can move the image acquisition device to the accurate medicine slot position by controlling the movement of the lifting machine and the drag chain to acquire the medicine image at the medicine slot position, thereby improving the accuracy of the acquired medicine image.

[0107] As an example of an embodiment of the present invention, see Figure 2 , is a structural schematic diagram of the elevator provided by the present invention, the elevator 1 is movably arranged in the medicine dispensing machine, a drag chain is movably arranged on the elevator 1, and an image acquisition device is fixed on the drag chain. After the elevator 1 receives a driving signal for moving up and down, it drives the image acquisition device to move up and down; after the drag chain on the elevator 1 receives a driving signal for moving left and right, it drives the image acquisition device to move left and right, so that the image acquisition device moves to the medicine slot position 2, collects the image of the medicine at the medicine slot position 2, and accurately locates the medicine.

[0108] Further, in an embodiment of the present invention, when the image acquisition device moves to the medicine slot position, the image acquisition device is controlled to acquire the medicine image, specifically:

[0109] When the image acquisition device moves horizontally from the height position of the medicine dispensing slot to the horizontal position of the medicine dispensing slot, it is determined that the image acquisition device has moved to the medicine slot position, and the image acquisition device is controlled to acquire images of medicines.

[0110] Further, in the embodiment of the present invention, the template verification is performed on the drug image based on the drug template to obtain the verification result, which is specifically:

[0111] Calculating the similarity between the drug template and the drug image to obtain the template similarity;

[0112] When the template similarity is greater than or equal to a preset similarity threshold, determining the verification result is a successful verification;

[0113] When the template similarity is less than a preset similarity threshold, the verification result is determined to be a verification failure.

[0114] In an embodiment of the present invention, after a drug image is collected, a template check is performed according to the corresponding drug template. The template check method can determine whether the similarity between the drug template and the image feature points of the drug image is greater than or equal to a preset similarity threshold by calculating the similarity between the drug template and the drug image. When the template similarity is greater than or equal to the preset similarity threshold, the check is determined to be successful; when the template similarity is less than the preset similarity threshold, the check is determined to be unsuccessful.

[0115] Step 104: performing corresponding dispensing operations on each of the dispensing drugs based on the verification results of each of the dispensing drugs.

[0116] Further, in the embodiment of the present invention, the corresponding dispensing operation is performed on each of the dispensing drugs based on the verification result of each of the dispensing drugs, specifically:

[0117] When the verification result of the medicine to be dispensed is successful, the medicine to be dispensed is pushed down onto the elevator;

[0118] When the verification result of the dispensed medicine is a verification failure, a medicine dispensing abnormality signal is issued.

[0119] In the embodiment of the present invention, the verification result of the drug to be dispensed is used as the basis for dispensing, and the corresponding dispensing operation is performed. When the verification result of the drug to be dispensed is successful, the drug to be dispensed is pushed onto the elevator, thereby improving the efficiency of automatic dispensing. When the verification result of the drug to be dispensed is a failure, an abnormal dispensing signal is directly issued to avoid issuing wrong drugs, which can effectively reduce the error rate of automatic dispensing.

[0120] Furthermore, in the embodiment of the present invention, when the verification result of the dispensed drug is a verification failure, the method further includes:

[0121] Determining whether the drug for which the verification result is failed is the first drug to be dispensed according to the drug dispensing sequence;

[0122] If the check result is that the drug that fails to be checked is not the first drug to be dispensed, it is determined that there is a drug to be dispensed on the elevator;

[0123] The dispensed medicines on the lifting machine are recovered through a recovery valve.

[0124] In the embodiment of the present invention, after the drug that failed to be checked is detected, it is determined whether the drug that failed to be checked is the first drug to be dispensed according to the dispensing order. If so, it proves that there is no drug that has been successfully checked before the drug that was dispensed, and at this time, there is no successfully checked drug on the elevator, and the recovery valve may not be activated. If the drug that failed to be checked is not the first drug to be dispensed, it means that there is a successfully checked drug before the drug that was dispensed, and at this time, there is a successfully checked drug on the elevator, and the recovery valve is activated to recover the drugs on the elevator. Since the drug that failed to be checked appears, the drug dispensing failed this time, and the previously successfully checked drugs need to be recovered so that the drugs can be dispensed again later, thereby improving the accuracy of the subsequent automatic dispensing and preventing the loss of drugs.

[0125] As an example of an embodiment of the present invention, see Figure 3 , is a structural schematic diagram of the recovery valve provided by the present invention. The recovery valve 3 is opened by the telescopic rod 4. When the drug that fails to be checked is not the first drug to be dispensed, the recovery valve 3 is opened by controlling the telescopic rod 4, so that the drug falls from the elevator 1 to the recovery valve 3 through the telescopic rod 4, and the drug recovery is completed. After the drug recovery is completed, the recovery valve 3 is also closed by controlling the telescopic rod 4.

[0126] Furthermore, in the embodiment of the present invention, after performing corresponding dispensing operations on each of the dispensing drugs based on the verification results of each of the dispensing drugs, the method further includes:

[0127] Control the image acquisition device to move to a preset starting position, specifically:

[0128] Controlling the drag chain to drive the image acquisition device to move to a preset horizontal position;

[0129] When the image acquisition device moves to a preset horizontal position, controlling the lifting machine to drive the image acquisition device to move to a preset vertical position;

[0130] When the image acquisition device moves vertically from the preset horizontal position to the preset vertical position, it is determined that the image acquisition device moves to the preset starting position.

[0131] In the embodiment of the present invention, after the corresponding dispensing operation is completed for each dispensing drug, the image acquisition device is driven to move by controlling the movement of the drag chain and the elevator, so that the image acquisition device moves to the preset starting position. Regardless of whether the dispensing operation is successfully completed or abnormally terminated due to failure in drug template verification, the image acquisition device is driven back to the preset starting position by controlling the elevator and the drag chain, thereby avoiding the difficulty of relevant personnel adding drugs to the dispensing machine due to the elevator staying at a high level. Therefore, after the dispensing operation is completed, moving the image acquisition device to the preset starting position can effectively improve the convenience of subsequent drug replenishment operations of the dispensing machine.

[0132] As an example of an embodiment of the present invention, see Figure 4 , is a flow chart of another embodiment of the automatic medicine dispensing method provided by the present invention. When a medicine dispensing signal is received, the prescription medicine dispensing starts, the camera light is controlled to light up and the video recording is started, and after the light is turned on, the elevator is controlled to move to the specified layer, and the camera moves to the specified layer, and the camera is controlled to move to the front of the specified medicine slot position, and the template is checked and identified to take pictures, and it is determined whether the template check is successful. If the check fails, the camera light is turned off, and the elevator is controlled to drive the camera to automatically return to the origin, and a prescription medicine dispensing abnormal signal is issued at this time, and the medicine dispensing ends. If the check is successful, it is determined that the first box of medicine is successfully dispensed, and the camera moves to the medicine slot position of the second box of medicine, and the template is checked and identified for the second box of medicine, and so on, and the template is checked for all the medicines that need to be dispensed. Among them, when the template check of medicines other than the first box of medicines fails, the medicines that are successfully sent to the elevator are recovered, and a prescription medicine dispensing abnormal signal is issued, and the medicine dispensing ends. When all the medicines that need to be dispensed are successfully checked after the template check, all the medicines in the prescription are sent to the elevator, and the prescription medicine dispensing is successful, and the medicine dispensing ends.

[0133] In summary, the embodiment of the present invention provides an automatic medicine dispensing method, including: receiving a medicine dispensing signal, determining a number of medicines to be dispensed and a dispensing order by analyzing the medicine dispensing signal; obtaining the medicine slot positions and medicine templates of a number of medicines to be dispensed; according to the dispensing order, based on the medicine slot positions and medicine templates of each medicine to be dispensed, using an image acquisition device provided with a light source device to perform template verification on each medicine to be dispensed in turn, and obtaining verification results of each medicine to be dispensed; and performing corresponding medicine dispensing operations on each medicine to be dispensed based on the verification results of each medicine to be dispensed. The present invention realizes automatic medicine dispensing, and uses an image acquisition device provided with a light source device to perform template verification, which can ensure that the image acquisition device collects medicine images when there is sufficient light source, effectively improves the clarity of the medicine image, thereby improving the accuracy of the medicine template verification, and further improving the accuracy of automatic medicine dispensing.

[0134] Example 3

[0135] See also Figure 5, is a schematic structural diagram of an embodiment of an automatic medicine dispensing device provided by the present invention, the device comprises a signal receiving module 201, an information acquiring module 202, a template checking module 203 and a medicine dispensing module 204;

[0136] The signal receiving module 201 is used to receive a medicine dispensing signal, and determine a number of medicines to be dispensed and the order of dispensing by analyzing the medicine dispensing signal;

[0137] The information acquisition module 202 is used to obtain the positions of the medicine slots and medicine templates of the medicines to be dispensed;

[0138] The template checking module 203 is used to check the templates of the medicines to be dispensed in sequence according to the medicine dispensing sequence, based on the medicine slot position and medicine template of each medicine to be dispensed, using an image acquisition device provided with a light source device, to obtain the checking results of each medicine to be dispensed;

[0139] The medicine dispensing module 204 is used to perform corresponding medicine dispensing operations on each of the medicines to be dispensed based on the verification results of each of the medicines to be dispensed.

[0140] Further, in the embodiment of the present invention, the positions of the medicine slots and the medicine templates of the medicines to be dispensed are obtained, specifically:

[0141] Obtaining the medicine slot position and medicine template of each of the medicines to be dispensed in the medicine dispensing machine from a preset medicine information database;

[0142] The construction process of the preset drug information database is specifically as follows:

[0143] Lighting up a light source device provided on the image acquisition device;

[0144] Obtaining preset layer height positions corresponding to the positions of several layers of medicine slots in the medicine dispensing machine in a standard state, and controlling the image acquisition device to move in a preset vertical direction to the preset layer height positions corresponding to the positions of the medicine slots on each layer in sequence;

[0145] Whenever the image acquisition device moves to a preset layer height position, the image acquisition device is controlled to move horizontally in a preset horizontal direction to scan a plurality of medicine slot positions of the current layer;

[0146] When all the medicine slot positions in the standard state medicine dispensing machine are scanned, the medicine information and medicine template corresponding to each medicine slot position are identified;

[0147] Generate a plurality of associated information according to each of the medicine slot positions and the medicine information and medicine template corresponding to each of the medicine slot positions;

[0148] A preset drug information database is constructed based on the plurality of related information.

[0149] Further, in the embodiment of the present invention, according to the medicine dispensing order, based on the medicine slot position and medicine template of each medicine to be dispensed, an image acquisition device provided with a light source device is used to sequentially check the template of each medicine to be dispensed, and the verification result of each medicine to be dispensed is obtained, which is specifically:

[0150] According to the order of dispensing medicines, an image acquisition device provided with a light source device is used to perform a template verification operation on each of the medicines to be dispensed in turn;

[0151] The template checking operation includes:

[0152] According to the position of the medicine slot of the medicine to be dispensed, the image acquisition device is controlled to move in the medicine dispensing machine, and the light source device provided in the image acquisition device is illuminated;

[0153] When the image acquisition device moves to the medicine slot position, controlling the image acquisition device to acquire a medicine image;

[0154] The drug image is template checked based on the drug template to obtain a check result.

[0155] Further, in an embodiment of the present invention, the image acquisition device is controlled to move in the medicine dispensing machine according to the position of the medicine slot, specifically:

[0156] Obtaining the medicine dispensing slot height position and the medicine dispensing slot horizontal position by analyzing the medicine dispensing slot position;

[0157] According to the height position of the medicine dispensing slot, the lifting machine is controlled to drive the image acquisition device to move vertically in the medicine dispensing machine; wherein the image acquisition device is fixed on the lifting machine;

[0158] When the image acquisition device moves to the height position of the medicine dispensing trough, the drag chain is controlled to drive the image acquisition device to move horizontally at the height position of the medicine dispensing trough according to the horizontal position of the medicine dispensing trough; wherein, the image acquisition device is fixed on the drag chain, and the drag chain is movably arranged on the lifting machine.

[0159] Further, in an embodiment of the present invention, when the image acquisition device moves to the medicine slot position, the image acquisition device is controlled to acquire the medicine image, specifically:

[0160] When the image acquisition device moves horizontally from the height position of the medicine dispensing slot to the horizontal position of the medicine dispensing slot, it is determined that the image acquisition device has moved to the medicine slot position, and the image acquisition device is controlled to acquire images of medicines.

[0161] Further, in the embodiment of the present invention, the template verification is performed on the drug image based on the drug template to obtain the verification result, which is specifically:

[0162] Calculating the similarity between the drug template and the drug image to obtain the template similarity;

[0163] When the template similarity is greater than or equal to a preset similarity threshold, determining the verification result is a successful verification;

[0164] When the template similarity is less than a preset similarity threshold, the verification result is determined to be a verification failure.

[0165] Further, in the embodiment of the present invention, the corresponding dispensing operation is performed on each of the dispensing drugs based on the verification result of each of the dispensing drugs, specifically:

[0166] When the verification result of the medicine to be dispensed is successful, the medicine to be dispensed is pushed down onto the elevator;

[0167] When the verification result of the dispensed medicine is a verification failure, a medicine dispensing abnormality signal is issued.

[0168] Furthermore, in the embodiment of the present invention, when the verification result of the dispensed drug is a verification failure, the method further includes:

[0169] Determining whether the drug for which the verification result is failed is the first drug to be dispensed according to the drug dispensing sequence;

[0170] If the check result is that the drug that fails to be checked is not the first drug to be dispensed, it is determined that there is a drug to be dispensed on the elevator;

[0171] The dispensed medicines on the lifting machine are recovered through a recovery valve.

[0172] Furthermore, in the embodiment of the present invention, after performing corresponding dispensing operations on each of the dispensing drugs based on the verification results of each of the dispensing drugs, the method further includes:

[0173] Control the image acquisition device to move to a preset starting position, specifically:

[0174] Controlling the drag chain to drive the image acquisition device to move to a preset horizontal position;

[0175] When the image acquisition device moves to a preset horizontal position, controlling the lifting machine to drive the image acquisition device to move to a preset vertical position;

[0176] When the image acquisition device moves vertically from the preset horizontal position to the preset vertical position, it is determined that the image acquisition device moves to the preset starting position.

[0177] In summary, the embodiment of the present invention provides an automatic medicine dispensing device, which is based on the organic combination of modules, receives medicine dispensing signals, determines a number of medicines to be dispensed and the order of medicine dispensing by analyzing the medicine dispensing signals; obtains the medicine slot positions and medicine templates of a number of medicines to be dispensed; according to the order of medicine dispensing, based on the medicine slot positions and medicine templates of each medicine to be dispensed, uses an image acquisition device provided with a light source device to perform template verification on each medicine to be dispensed in turn, and obtains the verification results of each medicine to be dispensed; and performs corresponding medicine dispensing operations on each medicine to be dispensed based on the verification results of each medicine to be dispensed. The present invention realizes automatic medicine dispensing, and uses an image acquisition device provided with a light source device to perform template verification, which can ensure that the image acquisition device collects medicine images when there is sufficient light source, effectively improves the clarity of the medicine image, thereby improving the accuracy of the medicine template verification, and further improving the accuracy of automatic medicine dispensing.

[0178] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. An automatic medicine dispensing method, characterized in that: include: receiving a medicine dispensing signal, and determining a number of medicines to be dispensed and a dispensing order by analyzing the medicine dispensing signal; Obtaining the positions of the medicine slots and medicine templates of the medicines to be dispensed; According to the medicine dispensing sequence, based on the medicine slot position and medicine template of each medicine to be dispensed, an image acquisition device provided with a light source device is used to check the template of each medicine to be dispensed in turn, and a check result of each medicine to be dispensed is obtained; Based on the verification results of each of the dispensing drugs, corresponding dispensing operations are performed on each of the dispensing drugs.

2. The automatic medicine dispensing method according to claim 1, characterized in that: The obtaining of the positions of the medicine slots and the medicine templates of the medicines to be dispensed is specifically as follows: Obtaining the medicine slot position and medicine template of each of the medicines to be dispensed in the medicine dispensing machine from a preset medicine information database; The construction process of the preset drug information database is specifically as follows: Lighting up a light source device provided on the image acquisition device; Obtaining preset layer height positions corresponding to the positions of several layers of medicine slots in the medicine dispensing machine in a standard state, and controlling the image acquisition device to move in a preset vertical direction to the preset layer height positions corresponding to the positions of the medicine slots on each layer in sequence; Whenever the image acquisition device moves to a preset layer height position, the image acquisition device is controlled to move horizontally in a preset horizontal direction to scan a plurality of medicine slot positions of the current layer; When all medicine slot positions in the standard state medicine dispensing machine are scanned, the medicine information and medicine template corresponding to each medicine slot position are identified; Generate a plurality of associated information according to each of the medicine slot positions and the medicine information and medicine template corresponding to each of the medicine slot positions; A preset drug information database is constructed based on the plurality of related information.

3. The automatic medicine dispensing method according to claim 1, characterized in that: According to the medicine dispensing sequence, based on the medicine slot position and medicine template of each medicine to be dispensed, an image acquisition device provided with a light source device is used to sequentially check the template of each medicine to be dispensed, and the checking result of each medicine to be dispensed is obtained, which is specifically: According to the order of dispensing medicines, an image acquisition device provided with a light source device is used to perform a template verification operation on each of the medicines to be dispensed in turn; The template checking operation includes: According to the position of the medicine slot of the medicine to be dispensed, the image acquisition device is controlled to move in the medicine dispensing machine, and the light source device provided on the image acquisition device is illuminated; When the image acquisition device moves to the medicine slot position, controlling the image acquisition device to acquire a medicine image; A template check is performed on the drug image based on the drug template to obtain a check result.

4. The automatic medicine dispensing method according to claim 3, characterized in that: According to the position of the medicine slot, controlling the image acquisition device to move in the medicine dispensing machine is specifically: Obtaining the medicine dispensing slot height position and the medicine dispensing slot horizontal position by analyzing the medicine dispensing slot position; According to the height position of the medicine dispensing slot, the lifting machine is controlled to drive the image acquisition device to move vertically in the medicine dispensing machine; wherein the image acquisition device is fixed on the lifting machine; When the image acquisition device moves to the height position of the medicine dispensing trough, the drag chain is controlled to drive the image acquisition device to move horizontally at the height position of the medicine dispensing trough according to the horizontal position of the medicine dispensing trough; wherein, the image acquisition device is fixed on the drag chain, and the drag chain is movably arranged on the lifting machine.

5. The automatic medicine dispensing method according to claim 4, characterized in that: When the image acquisition device moves to the medicine slot position, controlling the image acquisition device to acquire the medicine image is specifically: When the image acquisition device moves horizontally from the height position of the medicine dispensing slot to the horizontal position of the medicine dispensing slot, it is determined that the image acquisition device has moved to the medicine slot position, and the image acquisition device is controlled to acquire images of medicines.

6. The automatic medicine dispensing method according to claim 5, characterized in that: The template verification of the drug image based on the drug template is performed to obtain a verification result, specifically: Calculating the similarity between the drug template and the drug image to obtain the template similarity; When the template similarity is greater than or equal to a preset similarity threshold, determining the verification result is a successful verification; When the template similarity is less than a preset similarity threshold, the verification result is determined to be a verification failure.

7. The automatic medicine dispensing method according to claim 6, characterized in that: The corresponding dispensing operation is performed on each of the dispensing drugs based on the verification result of each of the dispensing drugs, specifically: When the verification result of the medicine to be dispensed is successful, the medicine to be dispensed is pushed down onto the elevator; When the verification result of the dispensed medicine is a verification failure, a medicine dispensing abnormality signal is issued.

8. The automatic medicine dispensing method according to claim 7, characterized in that: When the check result of the dispensed drug is a check failure, the method further includes: Determining whether the drug for which the verification result is failed is the first drug to be dispensed according to the drug dispensing sequence; If the check result is that the drug that fails to be checked is not the first drug to be dispensed, it is determined that there is a drug to be dispensed on the elevator; The dispensed medicines on the lifting machine are recovered through a recovery valve.

9. The automatic medicine dispensing method according to claim 7, characterized in that: After performing corresponding dispensing operations on each of the dispensing drugs based on the verification results of each of the dispensing drugs, the method further includes: Control the image acquisition device to move to a preset starting position, specifically: Controlling the drag chain to drive the image acquisition device to move to a preset horizontal position; When the image acquisition device moves to a preset horizontal position, controlling the lifting machine to drive the image acquisition device to move to a preset vertical position; When the image acquisition device moves vertically from the preset horizontal position to the preset vertical position, it is determined that the image acquisition device moves to the preset starting position.

10. An automatic medicine dispensing device, characterized in that: include: Signal receiving module, information acquisition module, template checking module and medicine dispensing module; The signal receiving module is used to receive a medicine dispensing signal, and determine a number of medicines to be dispensed and the order of dispensing by analyzing the medicine dispensing signal; The information acquisition module is used to obtain the positions of the medicine slots and medicine templates of the medicines to be dispensed; The template checking module is used to check the templates of the medicines to be dispensed in sequence according to the medicine dispensing sequence, based on the medicine slot position and medicine template of each medicine to be dispensed, using an image acquisition device provided with a light source device, to obtain the checking results of each medicine to be dispensed; The medicine dispensing module is used to perform corresponding medicine dispensing operations on each of the medicine dispensing drugs based on the verification results of each of the medicine dispensing drugs.

Citation Information

Patent Citations

  • Method for regularly placing box packed medicine

    CN101058182A

  • Automatization hospital pharmacy

    CN101214107A

  • Circuit structure of interlocking protective device of pump adding system

    CN101881268A

  • Medicine dispensing method and device for medicine dispensing system

    CN112242025A