Medicine storage device and refrigerator

By setting up multiple transmitters and receivers in the refrigerator with an infrared detection device, and by adjusting the level signal and light source parameters, the problem of low accuracy in counting medicine bottles in the refrigerator was solved. This enabled accurate detection of medicine bottles and identification of foreign objects, reducing the labor intensity of operators.

CN122144305APending Publication Date: 2026-06-05SHENZHEN NUBOMED EQUIP

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN NUBOMED EQUIP
Filing Date
2024-03-04
Publication Date
2026-06-05

Smart Images

  • Figure CN122144305A_ABST
    Figure CN122144305A_ABST
Patent Text Reader

Abstract

The application discloses a medicine bottle infrared detection method, a medicine storage device and a storage medium, relates to the technical field of medicine bottle detection, and comprises the following steps: controlling a transmitting end of an infrared detection device to emit a detection signal to a medicine storage grid to be detected in a medicine grid, and controlling a receiving end of the infrared detection device to receive a reflection signal corresponding to the detection signal; the medicine storage grid is used for storing medicine bottles, the medicine grid is provided with a plurality of medicine storage grids, the infrared detection device is arranged on one side of the medicine grid, and the infrared detection device comprises a plurality of groups of transmitting ends and receiving ends, each transmitting end and receiving end is arranged opposite each medicine storage grid; when a level signal strength change value between any detection signal and reflection signal is within a preset first level signal strength change range, it is output that there is a medicine bottle in the corresponding medicine storage grid. The application can realize infrared counting of the medicine bottle through the infrared detection method, reduce the labor intensity of the operator, and improve the detection accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of Chinese application filed on March 4, 2024, with application number 202410244162.3 and invention title "Infrared Detection Method for Medicine Bottles, Medicine Storage Device and Storage Medium". Technical Field

[0002] This application relates to the field of medicine bottle detection technology, and in particular to a medicine storage device and a refrigerator. Background Technology

[0003] Currently, during the storage and refrigeration of medicine bottles, it is necessary to constantly monitor the quantity of all medicine bottles stored in the refrigerated cabinet to facilitate the operation and management of the medicine bottles.

[0004] In related technologies, because a refrigerator is a sealed space and stores multiple medicine bottles at a high density, installing a camera inside to photograph and inspect the bottles is limited by the storage density and space constraints. The camera's view is limited and cannot inspect different locations within the refrigerator, resulting in low accuracy in counting each bottle. Therefore, operators must manually inspect each bottle to confirm the quantity, increasing their workload and reducing accuracy. How to improve accuracy while reducing operator workload is a pressing issue that needs to be discussed and resolved. Summary of the Invention

[0005] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes an infrared detection method for medicine bottles, a medicine storage device, and a storage medium, which can achieve infrared counting of medicine bottles through infrared detection, reducing the labor intensity of operators while improving the accuracy of detection.

[0006] To solve the above-mentioned technical problems, this application proposes the following technical solution:

[0007] The first aspect of this application provides a method for infrared detection of medicine bottles, including:

[0008] The infrared detection device transmits a detection signal to the medicine storage compartment to be detected in the medicine compartment, and controls the infrared detection device receiver to receive the reflected signal corresponding to the detection signal; the medicine storage compartment is used to store medicine bottles, and the medicine compartment is provided with multiple medicine storage compartments; the infrared detection device is set on one side of the medicine compartment, and the infrared detection device includes multiple sets of the transmitter and the receiver, with each transmitter and the receiver facing each medicine storage compartment;

[0009] When the change in the level signal strength between any of the detected signals and the reflected signals is within a preset first level signal strength change range, the system outputs that a medicine bottle exists in the corresponding medicine storage compartment.

[0010] The infrared detection method for medicine bottles according to the first aspect of this application has at least the following beneficial effects: The infrared detection method for medicine bottles of this application can receive the reflected signal corresponding to the detection signal, and determine whether there is a medicine bottle in the medicine storage compartment based on the change value of the level signal intensity between the reflected signal and the detection signal. It can detect the medicine bottles in the medicine storage compartment in a timely manner without relying on the operator to count them manually. Moreover, the infrared detection device is smaller in size, and each medicine storage compartment can be equipped with an infrared detection device, thereby ensuring the accuracy of detection. Therefore, the embodiment of this application can improve the accuracy of detection while reducing the labor intensity of the operator.

[0011] According to some embodiments of the first aspect of this application, the infrared detection device is disposed at the bottom of the medicine compartment, the detection signal is emitted through the bottom of the medicine compartment, and the emitted signal is reflected towards the bottom of the medicine compartment. The detection method further includes:

[0012] When the change in the level signal intensity between any of the detection signals and the reflected signals is within a preset second level signal intensity change range, an output is sent indicating that there is a foreign object in the corresponding drug storage compartment.

[0013] If the reflected signal is not received within a preset time period, the corresponding medicine storage compartment is output as empty.

[0014] According to some embodiments of the first aspect of this application, each group of transmitting and receiving ends includes one transmitting end and one receiving end. A detection signal is emitted from one transmitting end toward one side wall of the corresponding drug storage compartment, and is received by another receiving end of the corresponding group from the other side wall of the corresponding drug storage compartment. Before controlling the transmitting end of the infrared detection device to emit a detection signal toward the drug storage compartment to be detected in the drug compartment, and controlling the receiving end of the infrared detection device to receive the reflected signal corresponding to the detection signal, the detection method further includes:

[0015] The light source parameters of the light source to be adjusted are obtained, and the brightness and color of each drug storage cell in the drug compartment are adjusted according to the light source parameters so as to emit at least one detection signal corresponding to the light source parameters to the drug storage cell within the same detection cycle.

[0016] After the receiving end of the infrared detection device receives the reflected signal corresponding to the detection signal, the detection method further includes:

[0017] The type of foreign object is determined based on the change in the level signal intensity between the light source parameters, the detection signal, and the reflection signal.

[0018] According to some embodiments of the first aspect of this application, after determining the type of foreign object based on the level signal intensity change value between the light source parameters, the detection signal, and the reflected signal, the method further includes:

[0019] Obtain the infrared detection device number and coordinates corresponding to the reflected signal;

[0020] The location of the medicine storage compartment containing foreign objects is confirmed based on the infrared detection device number and the coordinates.

[0021] According to some embodiments of the first aspect of this application, the transmitting end of the control infrared detection device transmits a detection signal to the drug storage compartment to be detected in the drug compartment, including:

[0022] The infrared detection device is controlled to transmit detection signals to each medicine storage compartment in the medicine compartment in a matrix scanning manner.

[0023] According to some embodiments of the first aspect of this application, when the change in the level signal intensity between any of the detected signals and the reflected signals is within a preset second level signal intensity change range, the output indicating the presence of foreign matter in the corresponding drug storage compartment includes:

[0024] Acquire the level signal intensity change value between the detection signal and the reflected signal of multiple adjacent drug storage cells within the same detection cycle;

[0025] When the change in the level signal intensity between the detection signal and the reflected signal is within a preset second level signal intensity change range, the output foreign object is located near multiple adjacent drug storage compartments.

[0026] A second aspect of this application provides a drug storage device, comprising:

[0027] A medicine storage box, wherein the medicine storage box is provided with at least one medicine compartment, and the medicine compartment is provided with multiple medicine storage compartments, the medicine storage compartments being used to store medicine bottles;

[0028] An infrared detection device is provided at the bottom of the medicine storage compartment, which is used to emit a detection signal and receive the reflected signal corresponding to the detection signal;

[0029] A controller, electrically connected to the infrared detection device, is used to perform the medicine bottle infrared detection method as described in the first aspect of this application.

[0030] According to some embodiments of the second aspect of this application, it also includes:

[0031] A backlight panel, the backlight panel being used to adjust the brightness of the light source;

[0032] A mask plate is disposed above the backlight plate to block the openings of the medicine storage compartment, so as to facilitate the detection of foreign objects on the medicine storage compartment.

[0033] According to some embodiments of the second aspect of this application, the distance between the bottom of the medicine storage compartment and the infrared detection device is 0.7 mm.

[0034] A third aspect of this application provides a computer-readable storage medium storing computer-executable signals for performing:

[0035] The infrared detection method for medicine bottles as described in the first aspect of this application.

[0036] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0037] Additional aspects and advantages of this application will become apparent and readily understood in conjunction with the following description of the embodiments, in which:

[0038] Figure 1 This is a main flowchart of an infrared detection method for medicine bottles provided in an embodiment of this application;

[0039] Figure 2 This is a sub-flowchart of an infrared detection method for medicine bottles provided in one embodiment of this application;

[0040] Figure 3 A sub-flowchart of a method for infrared detection of medicine bottles provided in another embodiment of this application;

[0041] Figure 4 A sub-flowchart of a method for infrared detection of medicine bottles provided in another embodiment of this application;

[0042] Figure 5 This is a schematic diagram of the structure of a medicine storage box provided in one embodiment of this application;

[0043] Figure 6 This is a schematic diagram of the structure of a drug compartment provided in one embodiment of this application;

[0044] Figure 7 This is a top view of the drug compartment in the absence of foreign matter, provided in an embodiment of this application;

[0045] Figure 8 This is a top view of the medicine compartment in the presence of foreign matter, provided for another embodiment of this application.

[0046] Reference numerals: medicine storage box 100; medicine compartment 110; medicine storage compartment 111; infrared detection device 112. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0048] It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown in the flowchart. The terminology in the specification, claims, and the foregoing figures is used to distinguish similar objects and is not necessarily used to describe a specific order or sequence.

[0049] In the description of this application, the use of "first" and "second" is for the purpose of distinguishing technical features only, and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated or the order of the technical features indicated.

[0050] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.

[0051] Currently, during the refrigeration and storage of medicine bottles, it is necessary to constantly monitor the quantity of all medicine bottles stored in the refrigerated cabinet for operator management. In related technologies, because a refrigerated cabinet is a sealed space and stores multiple medicine bottles at a high density, installing a camera inside the refrigerated cabinet to photograph and monitor the bottles is limited by the storage density and space constraints. The camera's view is limited and cannot detect different locations within the refrigerated cabinet, resulting in low accuracy in counting each bottle. Therefore, operators must manually inspect each bottle to confirm the quantity, increasing their workload and reducing accuracy. How to improve accuracy while reducing operator workload is a pressing issue that needs to be discussed and resolved.

[0052] Based on this, the infrared detection method, device and storage medium for medicine bottles of this application can realize infrared counting of medicine bottles through infrared detection method, which reduces the labor intensity of operators and improves the accuracy of detection.

[0053] Reference Figure 1 In a first aspect, embodiments of this application provide an infrared detection method for medicine bottles, including but not limited to steps S110 and S120.

[0054] Step S110: Control the transmitting end of the infrared detection device 112 to transmit a detection signal to the medicine storage compartment 111 to be detected in the medicine compartment 110, and control the receiving end of the infrared detection device 112 to receive the reflected signal corresponding to the detection signal; the medicine storage compartment 111 is used to store medicine bottles, the medicine compartment 110 is provided with multiple medicine storage compartments 111, the infrared detection device 112 is set on one side of the medicine compartment 110, the infrared detection device 112 includes multiple sets of transmitting ends and receiving ends, each transmitting end and receiving end is set facing each medicine storage compartment 111;

[0055] Step S120: When the change in the level signal strength between any detection signal and the reflected signal is within the preset first level signal strength change range, output that there is a medicine bottle in the corresponding medicine storage compartment 111.

[0056] It should be noted that the infrared detection method for medicine bottles in this application can receive the reflected signal corresponding to the detection signal, and determine whether there is a medicine bottle in the medicine storage compartment 111 based on the change in the level signal intensity between the reflected signal and the detection signal. It can detect the medicine bottles in the medicine storage compartment 111 in a timely manner without relying on manual counting by the operator. Moreover, the infrared detection device 112 is smaller in size, and each medicine storage compartment 111 can be equipped with an infrared detection device 112, thereby ensuring the accuracy of detection. Therefore, the embodiments of this application can improve the accuracy of detection while reducing the labor intensity of the operator.

[0057] It should be understood that the infrared detection device 112 can be a small detection device such as an infrared sensor. The infrared detection device 112 has multiple sets of transmitting and receiving ends. In this application, the infrared detection device 112 is located on one side of the medicine compartment 110. When there is an object blocking the infrared detection device 112, the reflected infrared signal will change in level.

[0058] It should be understood that this application may set one transmitter and multiple receivers, or multiple transmitters and one receiver. The number of transmitters and receivers is not limited here, as long as they can satisfy the purpose of this application to count the medicine bottles in the medicine storage compartment 111.

[0059] It should be understood that the range of change in the first level signal strength represents the signal change value of the infrared detection device 112 when it detects a medicine bottle and no foreign objects. The specific value needs to be determined according to the specifications of the medicine storage compartment 111. In practice, it can be determined based on empirical or experimental values.

[0060] It is understandable that controlling the transmitter of the infrared detection device 112 to transmit detection signals to the drug storage compartment 111 to be detected in the drug compartment 110 includes: sequentially controlling the transmitter of the infrared detection device 112 to transmit detection signals to each drug storage compartment 111 in the drug compartment 110 using a matrix scanning method.

[0061] For example, in one embodiment of this application, a medicine storage box 100 is used to store medicine bottles. The medicine storage box 100 is provided with multiple medicine compartments 110, and each medicine compartment 110 has multiple medicine storage compartments 111. Each medicine storage compartment 111 is used to store one medicine bottle. Each medicine storage compartment 111 is provided with an infrared detection device 112 below it (i.e., multiple infrared detection devices 112 are provided at the bottom of one medicine compartment 110). The multiple infrared detection devices 112 of the same medicine compartment 110 are all attached to a PCB board, and the PCB board controls the multiple infrared detection devices 112 to detect the medicine bottle. At this time, by using a matrix scanning method to detect the medicine bottle, the waste of MCU resources can be effectively reduced, the cost can be reduced, and the computing power consumption can be reduced to a certain extent.

[0062] For example, refer to Figure 7 When there are 10 drug storage compartments 111 in a drug compartment 110, and there are two rows and six columns of drug storage compartments 111, the infrared detection device 112 can detect the drug storage compartments 111 row by row or column by column.

[0063] It should be understood that the color of the medicine compartment 111 affects the infrared signal. Different colors of medicine compartment 111 will absorb the reflected signals from the apertures of nearby medicine compartments 111, resulting in differences in the level signals received by the infrared receivers of the corresponding sensors. Therefore, in actual operation, when the infrared detection device 112 emits a detection signal at preset intervals to detect the inside of the medicine compartment 110, if there is an item in the medicine compartment 110, it will reflect a signal back. The receiver of the infrared detection device 112 receives the reflected signal and transmits it to the controller (i.e., MCU). The MCU determines whether there is a medicine bottle in the medicine compartment 111 based on the change in the level signal intensity between the reflected signal and the detection signal. If there are no foreign objects or medicine bottles, and the background color of the medicine compartments 110 is the same, the difference in the reflected signals received by the receivers of each infrared detection device 112 is small. Therefore, the difference in the level signal intensity between the reflected signal and the detection signal can be used to determine whether there is a medicine bottle or a foreign object in the medicine compartment 111.

[0064] It is understood that the infrared detection device 112 is located at the bottom of the medicine compartment 110. The detection signal is emitted from the bottom of the medicine compartment 111 and the emitted signal is reflected to the bottom of the medicine compartment 111. The detection method also includes: when the change value of the level signal intensity between any detection signal and the reflected signal is within the preset second level signal intensity change range, outputting that there is a foreign object in the corresponding medicine compartment 111; when no reflected signal is received within a preset time period, outputting that the corresponding medicine compartment 111 is in an empty state.

[0065] It should be understood that the range of change in the second level signal strength represents the signal change value of the infrared detection device 112 when it detects the presence of a foreign object, and the range of change in the second level signal strength does not overlap with the range of change in the first level signal strength.

[0066] It should be noted that after the infrared detection device 112 transmits detection signals to each medicine compartment 111 in the medicine compartment 110 in a matrix scanning manner, the receiving end of the infrared detection device 112 will sequentially receive the reflected signals corresponding to the detection signals. When a medicine bottle is present in a medicine compartment 111, the differences between the multiple reflected signals received by the receiving end are all within a preset error range, that is, the change in the level signal strength between the reflected signal and the detection signal is within a preset first level signal strength change range. When a foreign object is present in a medicine compartment 111, the reflected signal received by the receiving end of the infrared detection device 112 below the medicine compartment 111 with the foreign object will change. Unlike the reflected signal received by the infrared detection device 112 when a medicine bottle is present, the difference in the reflected signal received by the infrared detection device 112 when a foreign object is present is not within the preset error range. Therefore, the controller can... The presence of foreign objects in the medicine storage compartment 111 is determined by judging the change in the level signal intensity between the reflected signal and the detection signal. Specifically, if the change in the level signal intensity between the reflected signal and the detection signal is within a preset second level signal intensity change range, foreign objects are present in the medicine storage compartment 111. The second level signal intensity change range does not overlap with the first level signal intensity change range. The first level signal intensity change range is the difference range of the level signal intensity change values ​​between the reflected signal and the detection signal received by the receiver of each infrared detection device 112 when there are no foreign objects and the background color of the medicine compartment 110 is the same.

[0067] For example, suppose that the medicine compartment 110 has 10 medicine storage compartments 111, and the 10 medicine storage compartments 111 are numbered 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10 respectively. The infrared detection device 112 of medicine storage compartments 111 1, 2, 3, 4, 7 and 8 all receive reflected signals of value A, and the infrared detection device 112 of medicine storage compartments 111 5, 6, 9 and 10 receives reflected signals of B1, B2, B3 and B4 respectively. Then it can be determined that there are foreign objects in the vicinity of medicine storage compartments 111 5, 6, 9 and 10.

[0068] It should be understood that when there are no medicine bottles or foreign objects in the medicine storage compartment 111, the detection signal emitted by the infrared detection device 112 below the medicine storage compartment 111 will pass directly through the hole in the medicine storage compartment 111 and will not be reflected. Therefore, the receiving end of the infrared detection device 112 will not receive the reflected signal. Thus, when the detection signal cannot be reflected back, it is determined that the medicine storage compartment 111 is empty.

[0069] It should be understood that the infrared detection device 112 of this application includes multiple sets of transmitters and receivers. Each set of transmitters and receivers includes one transmitter and one receiver. The infrared detection method used in this application is diffuse reflection, that is, a detection signal is emitted from one transmitter toward one side wall of the corresponding drug storage compartment 111, and is emitted and received by another receiver of the corresponding set from the other side wall of the corresponding drug storage compartment 111.

[0070] Reference Figure 2 This application provides an infrared detection method for medicine bottles, including but not limited to steps S109, S110, and S111.

[0071] Before S110, the method further includes step S109, obtaining the light source parameters of the light source to be adjusted, and adjusting the brightness and color of each drug storage cell 111 in the drug storage cell 110 according to the light source parameters, so as to emit at least one detection signal corresponding to the light source parameters to the drug storage cell 111 within the same detection cycle.

[0072] Following S110, the method further includes step S111, which determines the type of foreign object based on the change in the level signal intensity between the light source parameters, the detection signal, and the reflection signal.

[0073] For example, the light source parameters include brightness parameters and color parameters. The controller can adjust the light level of the light source according to the brightness parameters, and can also adjust the color of the light source according to the color parameters. The light source can be purple, white, orange, red or other colors. Within the same detection cycle, the infrared detection device 112 can send multiple detection signals corresponding to the light source parameters to the medicine storage compartment 111, that is, adjust the light level and color of the light source multiple times to improve the accuracy of detecting foreign objects.

[0074] Reference Figure 7 and Figure 8 , Figure 7 A top view of the drug compartment 110 in the absence of foreign matter, provided according to an embodiment of this application; Figure 8A top view of the medicine compartment 110 in the presence of foreign matter, provided for another embodiment of this application. It should be noted that, since there are many types of foreign objects, and their colors and shapes are also diverse, some foreign objects (e.g., transparent foreign objects, liquid reagents, broken test tube fragments, or foreign objects whose color matches the color of the medicine compartment 110) are not easily detected by the infrared detection device 112. Based on this, before controlling the infrared detection device 112 to emit a detection signal to the medicine compartment 111 to be tested in the medicine compartment 110, this application will also acquire the light source parameters of the light source to be adjusted, and adjust the brightness and color of each medicine compartment 111 in the medicine compartment 110 according to the light source parameters. Since the medicine compartment 110 is made of transparent material, the light emitted from the backlight plate at the bottom of the medicine compartment 110 can be directly projected from the medicine compartment 110 to adjust the brightness and color of the medicine compartment 111, so as to emit at least one detection signal corresponding to the light source parameters to the medicine compartment 111 in the same detection cycle, and determine whether there is a specific type of foreign object by detecting whether there is a specific change in the level signal intensity change value between the reflected signal and the detection signal.

[0075] For example, when different types of foreign objects are present above the medicine storage compartment 111, the changes in the intensity of the detection signal and the reflected signal will also be different. This application can also determine the type of foreign object based on the changes in the intensity of the detection signal and the reflected signal. Specifically, when the changes in the intensity of the detection signal and the reflected signal are within a preset third intensity range, the foreign object is a liquid reagent; when the changes in the intensity of the detection signal and the reflected signal are within a preset fourth intensity range, the foreign object is a test tube fragment. This application can detect whether there is a broken medicine bottle, a leaked reagent, or foreign object obstruction by using the intensity characteristics of the reflected signal, thus improving the accuracy of detection.

[0076] Reference Figure 3 In the first aspect, embodiments of this application provide an infrared detection method for medicine bottles, including but not limited to steps S310 and S320.

[0077] Step S310: Obtain the number and coordinates of the infrared detection device 112 corresponding to the reflected signal;

[0078] Step S320: Confirm the location of the medicine storage compartment 111 containing foreign objects based on the number and coordinates of the infrared detection device 112.

[0079] For example, when a foreign object is present above the medicine storage compartment 111, the operator needs to promptly remove the foreign object from the compartment 110 to prevent the infrared detection device 112 from being unable to read the medicine bottles in the compartment 110 when storing medicine bottles later. Based on this, when a foreign object is detected above the storage opening, the controller will obtain the number of the infrared detection device 112 that transmitted the reflected signal to the controller, as well as the coordinates of the infrared detection device 112. Based on the number and coordinates of the infrared detection device 112, the controller will determine the location of the medicine storage compartment 111 containing the foreign object, facilitating the operator to locate and remove the foreign object from the compartment 111.

[0080] Reference Figure 4 In the first aspect, embodiments of this application provide an infrared detection method for medicine bottles, including but not limited to steps S410 and S420.

[0081] Step S410: Obtain the level signal intensity change value between the detection signal and the reflected signal of multiple adjacent drug storage cells 111 within the same detection cycle;

[0082] Step S420: When the change in the level signal intensity between the detection signal and the reflected signal is within the preset second level signal intensity change range, the output foreign object is located near multiple adjacent drug storage cells 111.

[0083] Reference Figure 7 and Figure 8 It should be understood that, assuming there are 10 medicine storage compartments 111 in the medicine compartment 110, and the 10 medicine storage compartments 111 are numbered 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10 respectively, firstly, the change value of the level signal intensity between the detection signal and the reflected signal of multiple adjacent medicine storage compartments 111 within the same detection period is obtained. Among them, the reflected signal received by the infrared detection device 112 of medicine storage compartments 111 1, 2, 3, 4, 7 and 8 is value A, which is within the preset first level signal intensity change range, indicating that there is a medicine bottle in medicine storage compartment 111. The reflected signals received by the infrared detection device 112 of medicine storage compartments 5, 6, 9 and 10 are B1, B2, B3 and B4 respectively, which are within the preset second level signal intensity change range. At this time, it can be determined that there is a foreign object in the vicinity of medicine storage compartments 5, 6, 9 and 10. After that, the controller will obtain the number and coordinates of the infrared detection device 112 corresponding to B1, B2, B3, and B4. Based on the number and coordinates of the infrared detection device 112 of B1, B2, B3, and B4, it can be determined that the foreign object is located near number 5, number 6, number 9, and number 10.

[0084] Reference Figure 5 and Figure 6, Figure 5 This is a schematic diagram of the structure of a medicine storage box 100 provided in one embodiment of this application; Figure 6 This is a schematic diagram of the structure of a medicine compartment 110 provided in an embodiment of this application. It can be understood that the medicine storage device of this application includes: a medicine storage box 100, which has at least one medicine compartment 110, and multiple medicine storage compartments 111 within the medicine compartment 110, the medicine storage compartments 111 being used to store medicine bottles; an infrared detection device 112, which is located at the bottom of the medicine storage compartment 111 and is used to emit detection signals and receive reflected signals corresponding to the detection signals; and a controller, which is electrically connected to the infrared detection device 112 and is used to execute the medicine bottle infrared detection method as described in the first aspect embodiment of this application.

[0085] For example, the medicine storage box 100 of this application is provided with multiple medicine compartments 110, and each medicine compartment 110 is provided with multiple medicine storage compartments 111. Each medicine storage compartment 111 is used to store one medicine bottle. An infrared detection device 112 is located below the medicine storage compartment 111. The infrared detection device 112 has a transmitting end and a receiving end. When the operator stores the medicine bottle in the medicine storage compartment 111 or when there is a foreign object in the medicine storage compartment 111, if there is an object blocking the infrared detection device 112, the reflected signal will be sent back to the infrared detection device 112. The infrared detection device 112 is electrically connected to the controller. After receiving the reflected signal at the receiving end, the infrared detection device 112 transmits the reflected signal to the controller. The controller determines whether the object in the medicine storage compartment 111 is a medicine bottle or a foreign object based on the change in the level signal strength between the detection signal and the reflected signal.

[0086] It is understandable that the distance between the bottom of the medicine storage compartment 111 and the infrared detection device 112 is 0.7mm.

[0087] It should be understood that the optimal detection distance for the infrared detection device 112 is 0.7 mm from the object and 112. The height of the infrared detection device 112 is 1.5 mm, and the height of the infrared detection device 112 on the PCB board after being attached is approximately 1.7 mm. Considering the concave structure at the bottom of the medicine bottle and the detection efficiency of the infrared detection device 112, this application uses a 1 mm PC sheet attached to the PCB board and a 0.8 mm PC sheet attached to the PC medicine storage compartment 111, so that the distance between the infrared detection device 112 and the bottom of the medicine bottle is 0.7 mm when the medicine bottle is placed.

[0088] It should be noted that the infrared detection device 112 of this application is preferably an infrared diffuse reflection sensor.

[0089] Understandably, it also includes: a backlight panel, which is used to adjust the brightness of the light source; and a mask plate, which is located above the backlight panel and is used to block the holes of the medicine storage compartment 111 so as to detect foreign objects on the medicine storage compartment 111.

[0090] For example, since there are many types of foreign objects, and their colors and shapes are also diverse, some foreign objects (e.g., transparent foreign objects, liquid reagents, broken test tube fragments, or foreign objects whose color matches the color of the medicine compartment 110) are not easily detected by the infrared detection device 112. Based on this, this application also provides a backlight plate and a mask plate at the bottom of the medicine compartment 110. The backlight plate is located below the infrared detection device 112, and the mask plate is located above the backlight plate. The blocking area on the mask plate corresponds one-to-one with the hole position of the medicine compartment 111. Before controlling the infrared detection device 112 to emit a detection signal to the medicine compartment 111 to be tested in the medicine compartment 110, the infrared detection device 112 will also transmit a detection signal to the medicine compartment 111 to be tested in the medicine compartment 110. The light source parameters of the light source to be adjusted are obtained, and the brightness and color of each medicine storage cell 111 in the medicine cell 110 are adjusted according to the light source parameters. Since the medicine cell 110 is made of transparent material and the holes are blocked from light, the light emitted by the backlight plate at the bottom of the medicine cell 110 can be directly projected from the medicine cell 110. The brightness and color of the medicine cell 110 and the background color can be changed by adjusting the brightness and color of the light source of the backlight plate. At least one detection signal corresponding to the light source parameter is emitted to the medicine storage cell 111 within the same detection cycle. The presence of a specific type of foreign object is determined by detecting whether there is a specific change in the level signal intensity change value between the reflected signal and the detection signal.

[0091] Thirdly, embodiments of this application provide a computer-readable storage medium storing computer-executable signals for execution:

[0092] The method for infrared detection of medicine bottles according to any embodiment of the first aspect of the application.

[0093] For example, execute the above description. Figure 1 Method steps S110 to S120, Figure 2 Method steps S109 to S111 in the text Figure 3 Method steps S310 to S320 in the text Figure 4 Method steps S410 to S420.

[0094] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0095] Based on the above description of the embodiments, those skilled in the art will understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable signals, data structures, instruction modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible by a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable signals, data structures, instruction modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0096] The embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of this application.

Claims

1. A medicine storage device, characterized in that, include: A medicine storage box, wherein the medicine storage box is provided with at least one medicine compartment, and the medicine compartment is provided with multiple medicine storage compartments, the medicine storage compartments being used to store medicine bottles; Multiple infrared detection devices are disposed on one side of the medicine compartment to emit detection signals and receive the reflected signals corresponding to the detection signals; A backlight panel is located at the bottom of the medicine compartment and below the infrared detection device, and is used to adjust the brightness of the light source. Specifically, the brightness and color of the medicine storage compartment are adjusted by the backlight panel, and at least one detection signal corresponding to the light source parameter is emitted to the medicine storage compartment within the same detection cycle. The presence of a specific type of foreign object is determined by detecting whether there is a specific change in the level signal intensity change value between the reflected signal and the detection signal.

2. The drug storage device according to claim 1, characterized in that, Also includes: A mask plate is disposed at the bottom of the medicine compartment and above the backlight plate to block the holes of the medicine compartment; The medicine compartment is made of transparent material, and the holes of the medicine compartment are blocked from light. The light emitted by the backlight is projected from the medicine compartment to adjust the brightness and color of the light source of the backlight to change the brightness and background color of the medicine compartment.

3. The drug storage device according to claim 2, characterized in that, The masking area on the mask plate corresponds one-to-one with the hole position of the medicine storage compartment.

4. The medicine storage device according to claim 1, characterized in that, The infrared detection device is located at the bottom of the medicine storage compartment. The detection signal is emitted from the bottom of the medicine storage compartment, and the reflected signal is reflected back to the bottom of the medicine storage compartment.

5. The drug storage device according to claim 4, characterized in that, Each of the medicine compartments includes multiple rows and columns of medicine storage compartments, and the infrared detection device sends detection signals to each storage compartment in the medicine compartment in a matrix scanning manner.

6. The drug storage device according to claim 5, characterized in that, Each of the medicine storage compartments is pre-numbered, and the infrared detection device corresponding to each medicine storage compartment is pre-numbered and has coordinates. When a foreign object is present in the medicine storage compartment, the location of the medicine storage compartment containing the foreign object is confirmed by the infrared detection device number and coordinates corresponding to the reflected signal.

7. The drug storage device according to claim 4, characterized in that, Each of the medicine storage compartments is equipped with an infrared detection device, which includes multiple sets of transmitters and receivers, with each set of transmitters and receivers facing each medicine storage compartment.

8. The drug storage device according to claim 7, characterized in that, Each set of transmitters and receivers includes one transmitter and one receiver. A detection signal is emitted from one transmitter toward one side wall of the corresponding drug storage compartment and is emitted and received by the other receiver of the corresponding set from the other side wall of the corresponding drug storage compartment.

9. The drug storage device according to claim 1, characterized in that, Multiple infrared detection devices of the same medicine bottle are attached to a PCB board, which is used to control the multiple infrared detection devices to detect the medicine bottle in a matrix scanning manner.

10. A refrigerator, characterized in that, Includes the drug storage device as described in any one of claims 1-9.