Empty medicine bottle counting method and device, medium and equipment
Through the infrared grating detection system, the signal processing of the infrared transceiver and the transmitter receiving tube is used to realize the automatic counting of empty bottles of medicine, solving the problem of inaccurate calculation of the number of traditional Chinese medicine bottles in the prior art, and improving the accuracy of detection and management efficiency.
Patent Information
- Application Number
- CN202510545591.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-08-22
AI Technical Summary
The prior art cannot accurately calculate the number of empty bottles in all bottles, resulting in inefficient management and large errors.
An infrared grating detection system is adopted, and a reflective infrared transceiver, infrared transmitter and receiver tube are used to convert the infrared light signal into a level signal to realize automatic counting of empty bottles of drugs.
It improves the accuracy and reliability of drug empty bottle detection, reduces errors caused by manual operation, and significantly improves management efficiency and drug recycling accuracy.
Smart Images

Figure CN120524972A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of counting empty medicine bottles, and in particular to a method, device, medium and equipment for counting empty medicine bottles. Background Art
[0002] In the medical field, especially in the management of narcotic drugs and psychotropic drugs (hereinafter referred to as narcotic drugs), it is crucial to ensure the accurate recovery and record of drugs. Due to their special nature and potential risk of abuse, these drugs need to strictly comply with the "five special management" regulations, namely, dedicated personnel, locked counters, dedicated account books, dedicated prescriptions and special registration books. According to management requirements, after patients use injections or patches of narcotic drugs, when they are re-dispensed, they should be required to return the empty ampoules or used patches of the original batch number and record the recovered quantity. However, there are many problems with the existing management methods, such as the manual recording and statistical methods are cumbersome and labor-intensive, and it is easy for the actual quantity to be inconsistent with the record due to untimely recovery of ampoules or ineffective inventory. The empty bottle detection methods of intelligent management equipment on the market mostly adopt mechanical or magnetic induction methods, which have complex mechanisms and low detection reliability, high maintenance costs, and are not suitable for large-scale applications. As a result, the existing technology cannot accurately calculate the number of empty medicine bottles among all medicine bottles. Summary of the Invention
[0003] The present invention provides a method, device, medium and equipment for counting empty medicine bottles, so as to solve the problem in the prior art that the number of empty medicine bottles cannot be accurately counted among all medicine bottles.
[0004] In a first aspect, the present application provides a method for counting empty medicine bottles, comprising:
[0005] Obtain each vial to be tested;
[0006] Inputting each of the drugs to be tested into a preset infrared grating detection system, so that the infrared grating detection system outputs respective level signals after receiving a second infrared light signal reflected by the first infrared light signal according to a preset reflective infrared transceiver and each of the preset infrared transmitting tubes;
[0007] The number of empty medicine bottles in each of the medicine bottles to be detected is calculated based on the respective level signals.
[0008] The present application realizes the automatic counting of empty medicine bottles by introducing the medicine bottles to be detected into a preset infrared grating detection system and utilizing the preset reflective infrared transceiver and infrared transmitting tube and receiving tube in the system. Specifically, the first infrared light signal emitted by the infrared transmitting tube is reflected when the medicine bottle passes through, forming a second infrared light signal. These reflected signals are captured by the infrared receiving tube and converted into level signals. The signal processing unit analyzes these level signals and accurately calculates the number of empty medicine bottles that pass through the detection system by counting the number of level changes. This process not only improves the accuracy and reliability of detection, reduces the errors caused by manual operation, but also significantly improves management efficiency. The present application effectively solves the problem that the existing technology cannot accurately count the number of empty medicine bottles among all medicine bottles.
[0009] As a preferred embodiment of the first aspect, the medicines to be tested are input into a preset infrared grating detection system, so that the infrared grating detection system receives the first infrared light signal emitted by the preset reflective infrared transceiver and the preset infrared emitting tubes, specifically:
[0010] Inputting each of the drugs to be tested into a preset infrared grating detection system, so that the infrared grating detection system emits a first infrared light signal according to a preset emission infrared grating curtain;
[0011] Wherein, the preset transmitting infrared grating screen is constructed according to each infrared transmitting tube and the preset reflective infrared transceiver; and the each infrared transmitting tube is arranged according to a preset interval.
[0012] In this preferred embodiment, the present application realizes efficient detection of empty medicine bottles by inputting the medicines to be detected into a preset infrared grating detection system and utilizing a preset reflective infrared transceiver and an infrared emitting tube arranged at preset intervals to construct an emitting infrared grating curtain. Specifically, the infrared emitting tubes are arranged at preset intervals to form a dense infrared grating curtain. When the medicine passes through, the emitted infrared light signal is reflected and received by the preset reflective infrared transceiver. This process not only improves the accuracy and reliability of detection, reduces detection errors caused by mechanical failures or human errors, but also significantly improves management efficiency, ensures the accuracy and safety of medicine recycling, and provides an efficient, accurate and reliable solution for the recycling management of empty bottles of special medicines in hospitals.
[0013] As a preferred embodiment of the first aspect, the preset reflective infrared transceiver and the preset infrared receiving tubes obtain the second infrared light signal reflected by the first infrared light signal and then output various level signals, specifically:
[0014] So that the infrared grating detection system obtains the second infrared light signal according to the preset reflected light grating screen and outputs various level signals;
[0015] Wherein, the preset reflective light grating screen is constructed according to the various infrared receiving tubes and the preset reflective infrared transceiver; and the various infrared receiving tubes are arranged according to preset intervals.
[0016] In this preferred embodiment, the present application achieves high-precision detection of empty pharmaceutical bottles through a reflective light grating curtain constructed by a preset reflective infrared transceiver and infrared receiving tubes arranged at preset intervals. Specifically, when a pharmaceutical passes through the infrared grating detection system, a first infrared light signal emitted by the infrared transmitting tube is reflected by the pharmaceutical, forming a second infrared light signal. These reflected light signals are received by the infrared receiving tubes in the preset reflective light grating curtain and converted into electrical level signals. Because the infrared receiving tubes are arranged at preset intervals, a dense reflective light grating curtain is formed, capable of highly accurately detecting each passing empty pharmaceutical bottle and outputting a corresponding electrical level signal.
[0017] As a preferred embodiment of the first aspect, the number of empty medicine bottles in each of the medicine bottles to be detected is calculated based on the respective level signals, specifically:
[0018] The respective level signals are input into a preset signal processing unit, so that the signal processing unit outputs the number of empty medicine bottles in the respective medicine bottles to be detected according to changes in the respective level signals.
[0019] In this preferred embodiment, the present application accurately calculates the number of empty medicine bottles by inputting the detected level signals into a preset signal processing unit. Specifically, when medicines pass through the infrared grating detection system, the infrared receiving tube receives the reflected infrared light signals and converts them into level signals. Changes in these level signals reflect the passage of empty medicine bottles. The signal processing unit analyzes these level signals and, by detecting the number of level signal changes, accurately calculates the number of empty medicine bottles that have passed through the detection system.
[0020] In a second aspect, the present application provides a counting device for empty medicine bottles. The counting device for empty medicine bottles comprises an acquisition module, an input / output module, and a counting module;
[0021] The acquisition module is used to obtain each medicine bottle to be tested;
[0022] The input / output module is used to input the medicines to be tested into a preset infrared grating detection system, so that the infrared grating detection system outputs respective level signals after receiving a second infrared light signal reflected by the first infrared light signal from the preset reflective infrared transceiver and the preset infrared transmitting tubes according to the first infrared light signal emitted by the preset reflective infrared transceiver and the preset infrared receiving tubes;
[0023] The counting module is used to calculate the number of empty medicine bottles in each of the medicine bottles to be detected according to the various level signals.
[0024] This device uses three modules to divide the work and coordinate the work to more accurately count the empty medicine bottles. This application introduces the medicine bottles to be detected into a preset infrared grating detection system, and uses the preset reflective infrared transceiver and infrared transmitting tube and receiving tube in the system to realize the automatic counting of empty medicine bottles. Specifically, the first infrared light signal emitted by the infrared transmitting tube is reflected when the medicine bottle passes, forming a second infrared light signal. These reflected signals are captured by the infrared receiving tube and converted into level signals. The signal processing unit analyzes these level signals and accurately calculates the number of empty medicine bottles that pass through the detection system by counting the number of level changes. This process not only improves the accuracy and reliability of detection, reduces the errors caused by manual operation, but also significantly improves management efficiency. This application effectively solves the problem that the existing technology cannot accurately count the number of empty medicine bottles among all medicine bottles.
[0025] As a preferred embodiment of the second aspect, the medicines to be tested are input into a preset infrared grating detection system, so that the infrared grating detection system detects the first infrared light signal emitted by a preset reflective infrared transceiver and each preset infrared emitting tube, specifically:
[0026] Inputting each of the drugs to be tested into a preset infrared grating detection system, so that the infrared grating detection system emits a first infrared light signal according to a preset emission infrared grating curtain;
[0027] Wherein, the preset transmitting infrared grating screen is constructed according to each infrared transmitting tube and the preset reflective infrared transceiver; and the each infrared transmitting tube is arranged according to a preset interval.
[0028] In this preferred embodiment, the present application realizes efficient detection of empty medicine bottles by inputting the medicines to be detected into a preset infrared grating detection system and utilizing a preset reflective infrared transceiver and an infrared emitting tube arranged at preset intervals to construct an emitting infrared grating curtain. Specifically, the infrared emitting tubes are arranged at preset intervals to form a dense infrared grating curtain. When the medicine passes through, the emitted infrared light signal is reflected and received by the preset reflective infrared transceiver. This process not only improves the accuracy and reliability of detection, reduces detection errors caused by mechanical failures or human errors, but also significantly improves management efficiency, ensures the accuracy and safety of medicine recycling, and provides an efficient, accurate and reliable solution for the recycling management of empty bottles of special medicines in hospitals.
[0029] As a preferred embodiment of the second aspect, the preset reflective infrared transceiver and the preset infrared receiving tubes obtain the second infrared light signal reflected by the first infrared light signal and then output various level signals, specifically:
[0030] So that the infrared grating detection system obtains the second infrared light signal according to the preset reflected light grating screen and outputs various level signals;
[0031] Wherein, the preset reflective light grating screen is constructed according to the various infrared receiving tubes and the preset reflective infrared transceiver; and the various infrared receiving tubes are arranged according to preset intervals.
[0032] In this preferred embodiment, the present application achieves high-precision detection of empty pharmaceutical bottles through a reflective light grating curtain constructed by a preset reflective infrared transceiver and infrared receiving tubes arranged at preset intervals. Specifically, when a pharmaceutical passes through the infrared grating detection system, a first infrared light signal emitted by the infrared transmitting tube is reflected by the pharmaceutical, forming a second infrared light signal. These reflected light signals are received by the infrared receiving tubes in the preset reflective light grating curtain and converted into electrical level signals. Because the infrared receiving tubes are arranged at preset intervals, a dense reflective light grating curtain is formed, capable of highly accurately detecting each passing empty pharmaceutical bottle and outputting a corresponding electrical level signal.
[0033] As a preferred embodiment of the second aspect, the number of empty medicine bottles in each of the medicine bottles to be detected is calculated based on the respective level signals, specifically:
[0034] The respective level signals are input into a preset signal processing unit, so that the signal processing unit outputs the number of empty medicine bottles in the respective medicine bottles to be detected according to changes in the respective level signals.
[0035] In this preferred embodiment, the present application accurately calculates the number of empty medicine bottles by inputting the detected level signals into a preset signal processing unit. Specifically, when medicines pass through the infrared grating detection system, the infrared receiving tube receives the reflected infrared light signals and converts them into level signals. Changes in these level signals reflect the passage of empty medicine bottles. The signal processing unit analyzes these level signals and, by detecting the number of level signal changes, accurately calculates the number of empty medicine bottles that have passed through the detection system.
[0036] In a third aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program. When the computer program is executed, the device containing the computer-readable storage medium is controlled to execute the method for counting empty medicine bottles as described above. The beneficial effects thereof are the same as those of the method for counting empty medicine bottles provided in the first aspect of the present application.
[0037] In a fourth aspect, the present application provides a terminal device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements any one of the methods for counting empty medicine bottles as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 : A schematic flow chart of an embodiment of a method for counting empty medicine bottles provided in the present application;
[0039] Figure 2 : A structural diagram of an embodiment of the sensor structure provided by the present application;
[0040] Figure 3 : A structural diagram of an embodiment of the infrared grating emission direction provided by this application;
[0041] Figure 4 : A structural diagram of an embodiment of the infrared grating receiving direction provided by this application;
[0042] Figure 5 : A structural diagram of an embodiment of the working principle provided by this application;
[0043] Figure 6 : A structural schematic diagram of an embodiment of a counting device for empty medicine bottles provided in the present application. DETAILED DESCRIPTION
[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0045] Example 1
[0046] Please refer to Figure 1 , which is a method for counting empty medicine bottles provided by an embodiment of the present invention.
[0047] In this embodiment, the process of the method for counting empty medicine bottles in this application is described in detail through steps S01-S03.
[0048] The sensor structure of this application is as follows Figure 2 As shown, it includes a sensor bracket and two sensor PCBAs, each PCBA has three infrared transmitting and receiving tubes.
[0049] S01: Obtain each medicine bottle to be tested.
[0050] S02: Input the various medicines to be tested into a preset infrared grating detection system, so that the infrared grating detection system outputs various level signals after obtaining the second infrared light signal reflected by the first infrared light signal according to the preset reflective infrared transceiver and the preset infrared transmitting tubes.
[0051] As a preferred embodiment of the first embodiment, the infrared grating detection system outputs various level signals based on the first infrared light signal emitted by the preset reflective infrared transceiver and the preset infrared transmitting tubes, and the second infrared light signal reflected by the first infrared light signal is obtained by the preset reflective infrared transceiver and the preset infrared receiving tubes. Specifically,
[0052] The infrared grating detection system is to arrange three reflective infrared transceivers in the XY direction. Each transceiver consists of an independent infrared transmitting tube and an infrared receiving tube. Three infrared transmitting tubes are placed in the XY direction with a spacing of 7MM. The six infrared transmitting tubes emit infrared light at the same time to construct a dense infrared grating curtain. Figure 3 As shown;
[0053] This application achieves efficient detection of empty drug bottles by inputting the drugs to be tested into a preset infrared grating detection system and using a preset reflective infrared transceiver and an infrared emitting tube arranged at preset intervals to construct an emitting infrared grating curtain. Specifically, the infrared emitting tubes are arranged at preset intervals to form a dense infrared grating curtain. When the drugs pass through, the emitted infrared light signal is reflected and received by the preset reflective infrared transceiver. This process not only improves the accuracy and reliability of detection, reduces detection errors caused by mechanical failures or human errors, but also significantly improves management efficiency, ensures the accuracy and safety of drug recycling, and provides an efficient, accurate and reliable solution for the recycling management of empty bottles of special drugs in hospitals.
[0054] By placing three infrared receiving tubes with a spacing of 7MM in the XY direction, the six infrared receiving tubes can simultaneously receive the infrared light reflected by the object, thus constructing an infrared multi-point receiving beam. These receiving paths also construct a dense reflected light grating curtain, such as Figure 4 As shown;
[0055] This application achieves high-precision detection of empty pharmaceutical bottles through a reflective light grating screen constructed by a preset reflective infrared transceiver and infrared receiving tubes arranged at preset intervals. Specifically, when a pharmaceutical passes through the infrared grating detection system, a first infrared light signal emitted by the infrared transmitting tube is reflected by the pharmaceutical, forming a second infrared light signal. These reflected light signals are received by the infrared receiving tubes in the preset reflective light grating screen and converted into electrical level signals. Because the infrared receiving tubes are arranged at preset intervals, a dense reflective light grating screen is formed, capable of highly accurately detecting each passing empty pharmaceutical bottle and outputting a corresponding electrical level signal.
[0056] The inner wall of the bracket has been specially treated to absorb the infrared light, preventing it from being reflected back. When an empty bottle passes through the grating screen, the body of the empty bottle reflects the infrared light. The reflected infrared light is collected by the receiving tube along the path of the receiving grating, causing the level of the infrared receiving tube to change.
[0057] S03: Calculate the number of empty medicine bottles in each of the medicine bottles to be detected based on the various level signals.
[0058] As a preferred embodiment of the first embodiment, the number of empty medicine bottles in each of the medicine bottles to be detected is calculated based on the respective level signals, specifically:
[0059] like Figure 5As shown, the three receiving tubes in the X direction are connected in parallel with a circuit to adjust the voltage level, and then connected to a GPIO pin on the microcontroller. The three receiving tubes in the Y direction are connected in parallel with a circuit to adjust the voltage level, and then connected to a GPIO pin on the microcontroller. When an empty bottle passes through the infrared grating detection area, the microcontroller detects a GPIO voltage reversal, indicating that an empty bottle has passed. Combined with the MCU and host computer software, automatic counting of empty bottle returns can be achieved.
[0060] This application accurately calculates the number of empty medicine bottles by inputting detected level signals into a pre-set signal processing unit. Specifically, when medicine passes through the infrared grating detection system, the infrared receiving tube receives the reflected infrared light signals and converts them into level signals. Changes in these level signals reflect the passage of empty medicine bottles. The signal processing unit analyzes these level signals and, by detecting the number of level signal changes, accurately calculates the number of empty medicine bottles that have passed through the detection system.
[0061] The present application realizes the automatic counting of empty medicine bottles by introducing the medicine bottles to be detected into a preset infrared grating detection system and utilizing the preset reflective infrared transceiver and infrared transmitting tube and receiving tube in the system. Specifically, the first infrared light signal emitted by the infrared transmitting tube is reflected when the medicine bottle passes through, forming a second infrared light signal. These reflected signals are captured by the infrared receiving tube and converted into level signals. The signal processing unit analyzes these level signals and accurately calculates the number of empty medicine bottles that pass through the detection system by counting the number of level changes. This process not only improves the accuracy and reliability of detection, reduces the errors caused by manual operation, but also significantly improves management efficiency. The present application effectively solves the problem that the existing technology cannot accurately count the number of empty medicine bottles among all medicine bottles.
[0062] Example 2
[0063] Please refer to Figure 6 , is a counting device for empty medicine bottles provided in an embodiment of the present application.
[0064] In this embodiment, the counting device for empty medicine bottles includes an acquisition module 10 , an input and output module 20 , and a counting module 30 .
[0065] The sensor structure of this application is as follows Figure 2 As shown, it includes a sensor bracket and two sensor PCBAs, each PCBA has three infrared transmitting and receiving tubes.
[0066] The acquisition module 10 is used to acquire each medicine bottle to be tested.
[0067] The input-output module 20 is used to input the various drugs to be detected into a preset infrared grating detection system, so that the infrared grating detection system outputs various level signals after obtaining the second infrared light signal reflected by the first infrared light signal according to the preset reflective infrared transceiver and the preset infrared transmitting tubes.
[0068] As a preferred embodiment of the second embodiment, the infrared grating detection system outputs various level signals based on the first infrared light signal emitted by the preset reflective infrared transceiver and the preset infrared transmitting tubes, and the second infrared light signal reflected by the first infrared light signal is obtained by the preset reflective infrared transceiver and the preset infrared receiving tubes. Specifically,
[0069] The infrared grating detection system is to arrange three reflective infrared transceivers in the XY direction. Each transceiver consists of an independent infrared transmitting tube and an infrared receiving tube. Three infrared transmitting tubes are placed in the XY direction with a spacing of 7MM. The six infrared transmitting tubes emit infrared light at the same time to construct a dense infrared grating curtain. Figure 3 As shown;
[0070] This application achieves efficient detection of empty drug bottles by inputting the drugs to be tested into a preset infrared grating detection system and using a preset reflective infrared transceiver and an infrared emitting tube arranged at preset intervals to construct an emitting infrared grating curtain. Specifically, the infrared emitting tubes are arranged at preset intervals to form a dense infrared grating curtain. When the drugs pass through, the emitted infrared light signal is reflected and received by the preset reflective infrared transceiver. This process not only improves the accuracy and reliability of detection, reduces detection errors caused by mechanical failures or human errors, but also significantly improves management efficiency, ensures the accuracy and safety of drug recycling, and provides an efficient, accurate and reliable solution for the recycling management of empty bottles of special drugs in hospitals.
[0071] By placing three infrared receiving tubes with a spacing of 7MM in the XY direction, the six infrared receiving tubes can simultaneously receive the infrared light reflected by the object, thus constructing an infrared multi-point receiving beam. These receiving paths also construct a dense reflected light grating curtain, such as Figure 4 As shown;
[0072] This application achieves high-precision detection of empty pharmaceutical bottles through a reflective light grating screen constructed by a preset reflective infrared transceiver and infrared receiving tubes arranged at preset intervals. Specifically, when a pharmaceutical passes through the infrared grating detection system, a first infrared light signal emitted by the infrared transmitting tube is reflected by the pharmaceutical, forming a second infrared light signal. These reflected light signals are received by the infrared receiving tubes in the preset reflective light grating screen and converted into electrical level signals. Because the infrared receiving tubes are arranged at preset intervals, a dense reflective light grating screen is formed, capable of highly accurately detecting each passing empty pharmaceutical bottle and outputting a corresponding electrical level signal.
[0073] The inner wall of the bracket has been specially treated to absorb the infrared light, preventing it from being reflected back. When an empty bottle passes through the grating screen, the body of the empty bottle reflects the infrared light. The reflected infrared light is collected by the receiving tube along the path of the receiving grating, causing the level of the infrared receiving tube to change.
[0074] The counting module 30 is used to calculate the number of empty medicine bottles in each of the medicine bottles to be detected according to the various level signals.
[0075] As a preferred embodiment of the second embodiment, the number of empty medicine bottles in each of the medicine bottles to be detected is calculated based on the respective level signals, specifically:
[0076] like Figure 5 As shown, the three receiving tubes in the X direction are connected in parallel with a circuit to adjust the voltage level, and then connected to a GPIO pin on the microcontroller. The three receiving tubes in the Y direction are connected in parallel with a circuit to adjust the voltage level, and then connected to a GPIO pin on the microcontroller. When an empty bottle passes through the infrared grating detection area, the microcontroller detects a GPIO voltage reversal, indicating that an empty bottle has passed. Combined with the MCU and host computer software, automatic counting of empty bottle returns can be achieved.
[0077] This application accurately calculates the number of empty medicine bottles by inputting detected level signals into a pre-set signal processing unit. Specifically, when medicine passes through the infrared grating detection system, the infrared receiving tube receives the reflected infrared light signals and converts them into level signals. Changes in these level signals reflect the passage of empty medicine bottles. The signal processing unit analyzes these level signals and, by detecting the number of level signal changes, accurately calculates the number of empty medicine bottles that have passed through the detection system.
[0078] This device uses three modules to divide the work and coordinate the work to more accurately count the empty medicine bottles. This application introduces the medicine bottles to be detected into a preset infrared grating detection system, and uses the preset reflective infrared transceiver and infrared transmitting tube and receiving tube in the system to realize the automatic counting of empty medicine bottles. Specifically, the first infrared light signal emitted by the infrared transmitting tube is reflected when the medicine bottle passes, forming a second infrared light signal. These reflected signals are captured by the infrared receiving tube and converted into level signals. The signal processing unit analyzes these level signals and accurately calculates the number of empty medicine bottles that pass through the detection system by counting the number of level changes. This process not only improves the accuracy and reliability of detection, reduces the errors caused by manual operation, but also significantly improves management efficiency. This application effectively solves the problem that the existing technology cannot accurately count the number of empty medicine bottles among all medicine bottles.
[0079] Example 3:
[0080] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for counting empty medicine bottles;
[0081] Wherein, the method for counting empty medicine bottles, if implemented in the form of a software functional unit and used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0082] Example 4
[0083] The present application provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements any one of the methods for counting empty medicine bottles as described in Example 1.
[0084] The specific embodiments described above further illustrate the objectives, technical solutions, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A method for counting empty medicine bottles, characterized in that: include: Obtain each vial to be tested; Inputting each of the drugs to be tested into a preset infrared grating detection system, so that the infrared grating detection system outputs respective level signals after receiving a second infrared light signal reflected by the first infrared light signal according to a preset reflective infrared transceiver and each of the preset infrared transmitting tubes; The number of empty medicine bottles in each of the medicine bottles to be detected is calculated based on the respective level signals.
2. The method for counting empty medicine bottles according to claim 1, characterized in that: The aforementioned inputting of each of the drugs to be detected into a preset infrared grating detection system so that the infrared grating detection system detects the first infrared light signal emitted by the preset reflective infrared transceiver and each of the preset infrared emitting tubes is specifically as follows: Inputting each of the drugs to be tested into a preset infrared grating detection system, so that the infrared grating detection system emits a first infrared light signal according to a preset emission infrared grating curtain; Wherein, the preset transmitting infrared grating screen is constructed according to each infrared transmitting tube and the preset reflective infrared transceiver; and the each infrared transmitting tube is arranged according to a preset interval.
3. The method for counting empty medicine bottles according to claim 1, characterized in that: The output of each level signal after obtaining the second infrared light signal reflected by the first infrared light signal according to the preset reflective infrared transceiver and the preset infrared receiving tubes is specifically as follows: So that the infrared grating detection system obtains the second infrared light signal according to the preset reflected light grating screen and outputs various level signals; Wherein, the preset reflective light grating screen is constructed according to the various infrared receiving tubes and the preset reflective infrared transceiver; and the various infrared receiving tubes are arranged according to preset intervals.
4. The method for counting empty medicine bottles according to claim 1, characterized in that: The number of empty medicine bottles in each of the medicine bottles to be detected is calculated based on the respective level signals, specifically: The respective level signals are input into a preset signal processing unit, so that the signal processing unit outputs the number of empty medicine bottles in the respective medicine bottles to be detected according to changes in the respective level signals.
5. A counting device for empty medicine bottles, characterized in that: Including acquisition module, input and output module and counting module; The acquisition module is used to obtain each medicine bottle to be tested; The input / output module is used to input the medicines to be tested into a preset infrared grating detection system, so that the infrared grating detection system outputs respective level signals after receiving a second infrared light signal reflected by the first infrared light signal from the preset reflective infrared transceiver and the preset infrared transmitting tubes according to the first infrared light signal emitted by the preset reflective infrared transceiver and the preset infrared receiving tubes; The counting module is used to calculate the number of empty medicine bottles in each of the medicine bottles to be detected according to the various level signals.
6. The counting device for empty medicine bottles according to claim 5, characterized in that: The aforementioned inputting of each of the drugs to be detected into a preset infrared grating detection system so that the infrared grating detection system detects the first infrared light signal emitted by the preset reflective infrared transceiver and each of the preset infrared emitting tubes is specifically as follows: Inputting each of the drugs to be tested into a preset infrared grating detection system, so that the infrared grating detection system emits a first infrared light signal according to a preset emission infrared grating curtain; Wherein, the preset transmitting infrared grating screen is constructed according to each infrared transmitting tube and the preset reflective infrared transceiver; and the each infrared transmitting tube is arranged according to a preset interval.
7. The counting device for empty medicine bottles according to claim 5, characterized in that: The output of each level signal after obtaining the second infrared light signal reflected by the first infrared light signal according to the preset reflective infrared transceiver and the preset infrared receiving tubes is specifically as follows: So that the infrared grating detection system obtains the second infrared light signal according to the preset reflected light grating screen and outputs various level signals; Wherein, the preset reflective light grating screen is constructed according to the respective infrared receiving tubes and the preset reflective infrared transceiver; and the respective first infrared receiving tubes are arranged according to preset intervals.
8. The counting device for empty medicine bottles according to claim 5, characterized in that: The number of empty medicine bottles in each of the medicine bottles to be detected is calculated based on the respective level signals, specifically: The respective level signals are input into a preset signal processing unit, so that the signal processing unit outputs the number of empty medicine bottles in the respective medicine bottles to be detected according to changes in the respective level signals.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for counting empty medicine bottles according to any one of claims 1 to 4.
10. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for counting empty medicine bottles according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Infrared radiation type drug storage device with counting function
CN103824111A
Infrared detection method and device for glass medicine bottle, and computer readable storage medium
CN108345044A
Classified counting method and device for batch medicine bottles
CN114118337A
Medicine bottle infrared detection method, medicine storage device and storage medium
CN118270356A
Intelligent medicine modular management cabinet
CN219165953U