Vial recycling detection methods and related apparatuses, devices, and storage media

CN122928323APending Publication Date: 2026-10-16JIANGSU REHN MEDICAL INSTR TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610830824.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-09
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

[0003]现有技术中,通常采用触发传感器对回收通道是否存在药瓶投入进行检测,然而,实际场景中很容易出现药瓶投放异常的情况,仅靠单次触发检测无法准确识别各种异常情况,容易导致回收状态判断错误,最终使得回收统计结果不准确

Benefits of technology

[0008] The above scheme obtains the triggering result at the entrance based on the first signal of the first infrared array at the current moment. In response to the triggering result indicating the existence of an object to be recycled, the current moment is taken as the start moment of the recycling trigger. Based on the new first signal of the first infrared array at the next moment, the first intensity of the first infrared array being blocked is obtained. Based on the second signal of the second infrared array at the next moment, the second intensity of the second infrared array being blocked is obtained. Based on the interval between the next moment and the start moment, the first intensity, and the second intensity, a judgment result indicating whether the recycling event has ended is obtained. In response to the judgment result indicating that the recycling event has not ended, the process returns to the step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next moment, until the judgment result indicates that the recycling event has ended. Based on the first intensity sequence and the second intensity sequence accumulated from the start moment, the detection result of the object to be recycled regarding the recycling status is obtained. On the one hand, when the first infrared array near the entrance of the recycling channel is triggered by the object to be recycled, the system determines whether the recycling event has ended based on the continuously acquired first intensity of the first infrared array being blocked, the second intensity of the second infrared array being blocked, and the duration of the recycling process. By combining the changes in the blocking intensity of the two infrared arrays located at the entrance and exit, the system continuously tracks the entire recycling process of the object within the recycling channel. This integrates infrared detection data from the recycling process along the dimensions of recycling events, covering the recycling status of the object as comprehensively as possible, thus improving the accuracy of recycling detection. On the other hand, by accumulating the first and second intensity sequences during the recycling process to obtain the final detection result, the system can comprehensively detect the recycling status by combining the blocking situation at different times along the array dimension, further improving the accuracy and robustness of the detection. Therefore, it can improve the accuracy and robustness of medicine bottle recycling detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122928323A_ABST
    Figure CN122928323A_ABST
Patent Text Reader

Abstract

The application discloses a medicine bottle recycling detection method and related devices, equipment and storage medium, comprising: obtaining the triggering result at the entrance based on the first signal of the first infrared array at the current time; obtaining the judgment result representing whether the recycling event is over based on the interval time length between the next time and the starting time, the first intensity and the second intensity; in response to the judgment result representing that the recycling event is not over, returning to the step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next time until the judgment result represents that the recycling event is over, and obtaining the detection result of the recycling object about the recycling state based on the first intensity sequence and the second intensity sequence accumulated and collected from the starting time. The above scheme can improve the accuracy and robustness of medicine bottle recycling detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of recycling equipment technology, and in particular to a method for detecting the recycling of medicine bottles, as well as related devices, equipment and storage media. Background Technology

[0002] Empty medicine bottle recycling is an important part of drug regulation to ensure drug safety and standardize drug management. By setting up medicine bottle recycling equipment, empty medicine bottles can be collected after use, preventing expired and waste drugs from entering the market.

[0003] In existing technologies, trigger sensors are typically used to detect the presence of medicine bottles in the recycling channel. However, in real-world scenarios, abnormal bottle placement is common, and relying solely on a single trigger detection cannot accurately identify various anomalies, easily leading to incorrect recycling status judgments and ultimately inaccurate recycling statistics. Therefore, improving the accuracy and robustness of medicine bottle recycling detection has become an urgent problem to be solved. Summary of the Invention

[0004] The main technical problem addressed by this application is to provide a method, related apparatus, equipment, and storage medium for detecting the recycling of medicine bottles, which can improve the accuracy and robustness of medicine bottle recycling detection.

[0005] To address the aforementioned technical problems, the first aspect of this application provides a method for detecting the recycling of medicine bottles, applied to a medicine bottle recycling device. The recycling channel is equipped with a first infrared array and a second infrared array near the inlet and outlet, respectively. The method includes: obtaining a triggering result at the inlet based on a first signal from the first infrared array at the current moment; responding to the triggering result indicating the presence of a recyclable object, using the current moment as the start time for recycling triggering, and obtaining a first intensity of the first infrared array being blocked based on a new first signal from the first infrared array at the next moment, and obtaining a second intensity of the second infrared array being blocked based on a second signal from the second infrared array at the next moment; obtaining a judgment result indicating whether the recycling event has ended based on the interval between the next moment and the start time, the first intensity, and the second intensity; responding to the judgment result indicating that the recycling event has not ended, returning to the step of obtaining the first intensity of the first infrared array being blocked based on a new first signal from the first infrared array at the next moment, until the judgment result indicates that the recycling event has ended; and obtaining a detection result regarding the recycling status of the recyclable object based on the first intensity sequence and the second intensity sequence accumulated from the start time.

[0006] To address the aforementioned technical problems, a second aspect of this application provides a medicine bottle recycling device, including a recycling channel, a first infrared array, a second infrared array, and a detection device. The first infrared array is positioned near the entrance of the recycling channel, and the second infrared array is positioned near the exit of the recycling channel. The detection device is electrically connected to both the first and second infrared arrays, and is used to execute program instructions to implement the medicine bottle recycling detection method described in the first aspect.

[0007] To address the aforementioned technical problems, a third aspect of this application provides a computer-readable storage medium storing program instructions executable by a processor, the program instructions being used to implement the medicine bottle recycling detection method of the first aspect.

[0008] The above scheme obtains the triggering result at the entrance based on the first signal of the first infrared array at the current moment. In response to the triggering result indicating the existence of an object to be recycled, the current moment is taken as the start moment of the recycling trigger. Based on the new first signal of the first infrared array at the next moment, the first intensity of the first infrared array being blocked is obtained. Based on the second signal of the second infrared array at the next moment, the second intensity of the second infrared array being blocked is obtained. Based on the interval between the next moment and the start moment, the first intensity, and the second intensity, a judgment result indicating whether the recycling event has ended is obtained. In response to the judgment result indicating that the recycling event has not ended, the process returns to the step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next moment, until the judgment result indicates that the recycling event has ended. Based on the first intensity sequence and the second intensity sequence accumulated from the start moment, the detection result of the object to be recycled regarding the recycling status is obtained. On the one hand, when the first infrared array near the entrance of the recycling channel is triggered by the object to be recycled, the system determines whether the recycling event has ended based on the continuously acquired first intensity of the first infrared array being blocked, the second intensity of the second infrared array being blocked, and the duration of the recycling process. By combining the changes in the blocking intensity of the two infrared arrays located at the entrance and exit, the system continuously tracks the entire recycling process of the object within the recycling channel. This integrates infrared detection data from the recycling process along the dimensions of recycling events, covering the recycling status of the object as comprehensively as possible, thus improving the accuracy of recycling detection. On the other hand, by accumulating the first and second intensity sequences during the recycling process to obtain the final detection result, the system can comprehensively detect the recycling status by combining the blocking situation at different times along the array dimension, further improving the accuracy and robustness of the detection. Therefore, it can improve the accuracy and robustness of medicine bottle recycling detection. Attached Figure Description

[0009] Figure 1 This is a flowchart illustrating an embodiment of the medicine bottle recycling and detection method of this application; Figure 2This is a schematic diagram of the framework of an embodiment of the medicine bottle recycling and detection device of this application; Figure 3 This is a schematic diagram of the framework of an embodiment of the electronic device of this application; Figure 4 This is a schematic diagram of the framework of an embodiment of the medicine bottle recycling equipment of this application; Figure 5 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application. Detailed Implementation

[0010] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0011] In the following description, specific details such as particular system architectures, interfaces, and technologies are presented for illustrative purposes rather than for limiting purposes, in order to provide a thorough understanding of this application.

[0012] In this paper, the terms "system" and "network" are often used interchangeably. The term "and / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the slash " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "many" in this paper indicates two or more objects.

[0013] If the technical solution of this application involves personal information, the product using this technical solution has clearly informed the user of the personal information processing rules and obtained the user's voluntary consent before processing the personal information. If the technical solution of this application involves sensitive personal information, the product using this technical solution has obtained the user's separate consent before processing the sensitive personal information, and also meets the requirement of "express consent". For example, at personal information collection devices such as cameras, clear and prominent signs are set up to inform users that they have entered the scope of personal information collection and that personal information will be collected. If an individual voluntarily enters the collection scope, it is deemed that they have agreed to the collection of their personal information; or on the personal information processing device, with clear signs / information informing users of the personal information processing rules, authorization is obtained from the individual through pop-up information or by asking the individual to upload their personal information; wherein, the personal information processing rules may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the types of personal information processed.

[0014] Please see Figure 1 , Figure 1This is a schematic flowchart of an embodiment of the drug bottle recycling and detection method of this application. It should be noted that the process operations in this embodiment can be performed by an electronic device with computing capabilities or related equipment containing electronic devices; no specific structure or type is limited herein. Specifically, this embodiment may include the following steps: Step S11: Based on the first signal of the first infrared array at the current moment, obtain the triggering result at the entrance.

[0015] In this embodiment of the disclosure, the medicine bottle detection method is applied to a medicine bottle recycling device, and the recycling channel is provided with a first infrared array and a second infrared array near the inlet and outlet, respectively. Specifically, the recycling channel is the channel through which medicine bottles slide after entering. After the medicine bottles to be recycled are put into the inlet, they move along the recycling channel to the outlet and finally fall into the recycling bin to complete the recycling.

[0016] In one implementation scenario, the first infrared array consists of multiple first infrared sensors arranged at the entrance to detect whether medicine bottles are entering the recycling channel. For example, the first infrared array may consist of one row and seven columns of first infrared sensors, which can detect medicine bottles of different sizes, improving the adaptability to detecting medicine bottles of different specifications to be recycled. Alternatively, the first infrared array may consist of two rows and seven columns of first infrared sensors. The arrangement of the first infrared sensors is not limited in this application. Specifically, the transmitting and receiving ends of the first infrared sensors are respectively located on opposite sides of the recycling channel. When no medicine bottle passes by, the receiving end can normally receive the infrared signal emitted by the transmitting end. When a medicine bottle passes by, the medicine bottle will block the infrared signal, reducing the intensity of the infrared signal received by the receiving end. By detecting the signal intensity of each first infrared sensor's receiving end, the current blocking status of the first infrared array can be obtained.

[0017] In one implementation scenario, the second infrared array consists of multiple second infrared sensors arranged at the exit. It detects whether a medicine bottle has moved to the exit position. For example, the second infrared array can be arranged in two rows and seven columns of sensors, enabling it to detect medicine bottles of different sizes and improving its adaptability to different specifications of bottles to be recycled. Alternatively, the second infrared array can also be arranged in two rows and seven columns of sensors. The arrangement of the second infrared sensors is not limited in this application. Specifically, the transmitting and receiving ends of each second infrared sensor are also located on opposite sides of the recycling channel. When no object to be recycled passes by, the receiving end can normally receive the infrared signal from the corresponding transmitting end. When an object to be recycled passes by, it will block the infrared signal, reducing the signal strength of the receiving end. By detecting the signal strength of the receiving end of each second infrared sensor, the current blocking status of the second infrared array can be obtained.

[0018] In a specific implementation scenario, the distance between each adjacent infrared sensor in the first infrared array is less than the size of the smallest object to be recycled. Specifically, the smallest object to be recycled is the smallest medicine bottle that the medicine bottle recycling device is allowed to recycle. By limiting the spacing between adjacent infrared sensors, it can be ensured that even when the smallest object to be recycled passes through the first infrared array, at least one infrared sensor's infrared signal can be blocked. This avoids the small medicine bottle not being detected due to excessive spacing between adjacent sensors, reducing the occurrence of missed detections. Correspondingly, when small debris such as water droplets or dust passes by, it will not block multiple infrared sensors at the same time, reducing the interference of small debris on the detection results and further improving detection accuracy.

[0019] In a specific implementation scenario, the distance between adjacent infrared sensors in the second infrared array is less than the size of the smallest object to be recycled. Specifically, the smallest object to be recycled is the smallest medicine bottle that the medicine bottle recycling equipment is allowed to recycle. By limiting the spacing between adjacent infrared sensors in the second infrared array, it can be ensured that when the smallest object to be recycled passes through the second infrared array, it will block the infrared signal of at least one second infrared sensor, reducing the occurrence of missed detections. At the same time, it can also reduce the interference of small-volume debris on the exit detection process, further improving the overall detection accuracy.

[0020] It should be noted that the arrangement of the first infrared array and the second infrared array can be the same or different. The specific arrangement can be adjusted according to the actual available installation space at the inlet and outlet. The specifications of the first infrared sensor and the second infrared sensor can be the same or different. This application does not impose any restrictions.

[0021] In one implementation scenario, the first signal includes the first signal value of each infrared sensor in the first infrared array. Specifically, by sampling the analog-to-digital conversion channel of each infrared sensor receiver, the first signal value of each infrared sensor at the current moment can be obtained. Based on the first signal value, it is determined whether the corresponding infrared sensor is blocked. It can be understood that when there is no blockage between the transmitter and receiver of the infrared sensor, the collected first signal value is higher, and when there is a blockage between the transmitter and receiver of the infrared sensor, the collected first signal value is lower.

[0022] In a specific implementation scenario, the signal difference between each first signal value and a preset signal value is calculated. The preset signal value is the reference signal value of the infrared sensor in an unobstructed state. The number of sensors in the first infrared array whose signal difference is greater than the obstruction threshold is counted. If the number of sensors is not less than the preset minimum effective channel number, the trigger result is determined to be the presence of a recyclable object. For example, the preset minimum effective channel number can be set to 2, meaning that as long as at least two first infrared sensors are obstructed at the same time, the trigger result is determined to be the presence of a recyclable object. This can also be adjusted to other values ​​based on the interference from debris in the actual detection scenario, such as setting it to 3 to further reduce the probability of false triggers from small debris. The specific value is not limited here. Conversely, if the number of sensors is less than the preset minimum effective channel number, the trigger result is determined to be the absence of a recyclable object, and the system continues to wait for the next trigger detection. This scheme, by filtering out false triggers from small debris using the preset minimum effective channel number, can reduce false triggers caused by water droplets, dust, and other debris falling into the recycling channel, improve the accuracy of trigger detection, reduce the probability of subsequent invalid detections, and save equipment computing resources.

[0023] In a specific implementation scenario, the minimum effective number of channels for each infrared sensor, which responds to a number of sensors not less than a preset minimum effective number of channels and a signal difference greater than an occlusion threshold, can be further limited to 2. Only when at least two consecutively arranged first infrared sensors meet the condition that the signal difference is greater than the occlusion threshold is the trigger result determined to be the presence of an object to be recycled. If multiple first infrared sensors that are not consecutively arranged meet the condition that the signal difference is greater than the occlusion threshold, it is determined to be interference caused by small debris falling in from different locations at the same time, and the subsequent recycling detection process is not triggered. This can further reduce the probability of false triggering and improve the accuracy of trigger detection.

[0024] In a specific implementation scenario, the preset signal value can be obtained through pre-calibration. Specifically, when there is no object to be recycled blocking the first infrared array, the signal values ​​of each infrared sensor in the unobstructed state are collected at multiple consecutive times. The signal values ​​of the corresponding infrared sensor at multiple times are averaged, and the averaged signal value is used as the preset signal value for that infrared sensor. This can adapt to the signal differences between different individual infrared sensors and improve the accuracy of trigger judgment.

[0025] Step S12: In response to the trigger result indicating the existence of objects to be recycled, the current moment is taken as the start moment of the recycling trigger, and based on the new first signal of the first infrared array at the next moment, the first intensity of the first infrared array being blocked is obtained, and based on the second signal of the second infrared array at the next moment, the second intensity of the second infrared array being blocked is obtained.

[0026] In this embodiment of the disclosure, the start time of recycling triggering represents the initial time point when the medicine bottle enters the recycling channel and triggers recycling detection, the next time point represents the next time point after the start time when signal acquisition needs to be performed, the first intensity represents the degree to which the first infrared array is completely blocked, and the second intensity represents the degree to which the second infrared array is completely blocked in the next time point.

[0027] In one implementation scenario, the signal values ​​of the infrared sensors in the first infrared array are continuously collected. Alternatively, the first infrared array and the second infrared array continuously collect the first signal and the second signal at a preset time interval. The preset time interval can be set according to the average sliding speed of the medicine bottle in the recycling channel. This ensures that there is sufficient sampling density to completely track the movement process of the object to be recycled, without consuming too much computing resources due to excessive sampling frequency. The specific value can be adjusted according to the actual length of the recycling channel, and is not limited here.

[0028] In a specific implementation scenario, when the trigger result indicates that there is no object to be recycled, the second infrared array continues to collect signals at preset time intervals. Only after the first infrared array is triggered by an object to be recycled is the collected signal of the second infrared array included in the intensity statistical processing. This can reduce unnecessary data operations and reduce the power consumption and computational burden of the device when recycling is not triggered. Alternatively, not starting the signal acquisition of the second infrared array can also reduce the power consumption of the device and reduce the occupation of computational resources. This is not limited here.

[0029] In one implementation scenario, the new first signal includes the new first signal values ​​of each infrared sensor in the first infrared array. The first difference between each new first signal value and a preset signal value is calculated. The preset signal value is the reference signal value of the infrared sensor in an unobstructed state. Based on the cumulative result of each first difference, the first intensity of obstruction of the first infrared array is obtained. This scheme reflects the overall obstruction degree of the first infrared array by accumulating differences. The larger the obstruction area and the more severe the obstruction, the greater the accumulated first intensity. This provides a direct and accurate representation of the current overall obstruction state of the first infrared array, offering an accurate data foundation for subsequent overall state judgment.

[0030] In another implementation scenario, the first intensity can also be the number of first infrared sensors whose signal difference is greater than the occlusion threshold. For each first infrared sensor that meets the occlusion condition, the first intensity increases by the corresponding unit value, which can also intuitively reflect the overall occlusion degree of the first infrared array. The specific calculation method can be selected according to the device's computing power, and this application does not limit it.

[0031] In one implementation scenario, the second signal includes the second signal values ​​of each infrared sensor in the second infrared array. A second difference is calculated between each second signal value and a preset signal value, where the preset signal value is the reference signal value of the infrared sensor in an unobstructed state. Based on the cumulative result of each second difference, the second intensity of obstruction of the second infrared array is obtained. This scheme reflects the overall obstruction degree of the second infrared array by accumulating differences. The larger the obstruction area and the more severe the obstruction, the greater the accumulated second intensity. This provides a direct and accurate representation of the current overall obstruction state of the second infrared array. Combined with the first intensity, it provides reliable data support for determining the location of the object to be recovered.

[0032] In a specific implementation scenario, the preset signal values ​​corresponding to each infrared sensor in the second infrared array can also be obtained through pre-calibration. Specifically, when there is no object to be recovered obstructing the second infrared array, the signal values ​​of each second infrared sensor in an unobstructed state are collected at multiple consecutive times. The signal values ​​of the corresponding second infrared sensor at multiple times are averaged, and the averaged signal value is used as the preset signal value corresponding to the second infrared sensor. This can adapt to the signal differences between different second infrared sensors and improve the accuracy of the second intensity calculation and subsequent position determination.

[0033] In another implementation scenario, the second intensity can also be the number of second infrared sensors whose signal difference is greater than the occlusion threshold. The calculation method is simple and direct and can be adapted to devices with limited computing power. The specific method can be selected according to the actual situation, and this application does not limit it.

[0034] Step S13: Based on the interval between the next time moment and the start time moment, the first intensity, and the second intensity, obtain the judgment result that characterizes whether the recycling event has ended.

[0035] In this embodiment of the disclosure, the next interval duration is specifically the time difference between the latest next moment and the start moment. The interval duration can reflect the time that has elapsed since the object to be recycled entered the recycling channel. Combined with the first intensity and the second intensity, it can be comprehensively judged whether the object to be recycled has completely left the recycling channel and completed the entire recycling process.

[0036] In one implementation scenario, in response to the interval duration not exceeding a duration threshold, and the cumulative number of times the first intensity is not greater than the first threshold not being less than a third quantity, and the cumulative number of times the second intensity is not greater than the second threshold not being less than a fourth quantity, the judgment result is determined to be that the recycling event has ended. Specifically, the duration threshold can be set according to the length of the recycling channel and the average sliding speed of the medicine bottle in the recycling channel. The first threshold is used to determine whether the current occlusion level of the first infrared array has returned to an unoccluded state. When the first intensity is not greater than the first threshold, it can be considered that the first infrared array is not currently effectively occluded. Accumulating multiple times meeting this condition determines that the first infrared array has returned to an unoccluded state, which can avoid misjudgments caused by signal fluctuations and improve the accuracy of the judgment. Similarly, the second threshold is used to determine whether the second infrared array has returned to an unoccluded state. Accumulating multiple times meeting the condition can reduce the impact of signal fluctuations. It should be noted that the third and fourth quantities can be adjusted according to the preset sampling frequency. The higher the sampling frequency, the larger the third and fourth quantities can be set accordingly. The specific values ​​are not limited here.

[0037] In a specific implementation scenario, in response to the interval duration not exceeding the duration threshold, and the existence of a third consecutive number of first intensities not exceeding the first threshold, and a fourth consecutive number of second intensities not exceeding the second threshold, the judgment result is determined to be that the recycling event has ended. By using consecutive counts instead of cumulative counts, the interference of random signal fluctuations on the judgment result can be further reduced, and the accuracy of the judgment of the end of the recycling event can be further improved.

[0038] It should be noted that determining the outcome of the recycling event as completed includes various event types. For example, the object to be recycled may be removed by the user after entering the recycling channel, or the object to be recycled may have been completely recycled through the recycling channel. In both of these cases, the relevant detection for this recycling event has been completed, and it is necessary to return to the initial trigger detection state and wait for the next object to be recycled to enter.

[0039] In one implementation scenario, in response to the interval duration not being greater than the duration threshold, there exists at least one of the following: a first intensity greater than the first threshold, a second intensity greater than the second threshold, or at least one of the following: the cumulative number of times the first intensity is not greater than the first threshold is less than the third quantity, or the cumulative number of times the second intensity is not greater than the second threshold is less than the fourth quantity, the judgment result is determined to be that the recycling event has not ended.

[0040] In a specific implementation scenario, if the interval duration is not greater than the duration threshold and there is at least one of the first intensity being greater than the first threshold and the second intensity being greater than the second threshold, it indicates that the object to be recycled is still in the recycling channel and has not yet completely passed through the first infrared array or the second infrared array. Therefore, the recycling detection still needs to continue. At the next moment, the first signal and the second signal are collected to update the first intensity and the second intensity. The judgment on whether the recycling event has ended can be repeated. This can completely track the movement process of the object to be recycled in the recycling channel and ensure the integrity of the detection.

[0041] In a specific implementation scenario, if the interval duration is not greater than the duration threshold, and there is at least one of the following: the cumulative number of times the first intensity is not greater than the first threshold is less than the third number, and the cumulative number of times the second intensity is not greater than the second threshold is less than the fourth number, it indicates that the first infrared array or the second infrared array has not yet stably returned to an unobstructed state. It is possible that the object to be recovered has left the detection area of ​​the first infrared array or the second infrared array but is still moving in the recovery channel, or that the signal has occasional fluctuations. Therefore, it is still necessary to continue detection until the cumulative number meets the requirements or the interval duration exceeds the duration threshold, so as to avoid premature termination of detection and inaccurate detection results, and to ensure the integrity and reliability of the entire recovery detection process.

[0042] It should be noted that the detection areas of the first and second infrared arrays may not completely cover the entire recovery path of the recovery channel. Therefore, the specific values ​​of the third and fourth quantities can be adjusted based on the length of the detection area on the recovery path and the preset sampling time interval to avoid premature termination of detection due to the object to be recovered not having completely left the detection area, leading to misjudgment of the status. Specifically, if the overall length of the recovery path not covered by the infrared array detection in the recovery channel is long, the duration threshold also needs to be set larger accordingly to ensure that the object to be recovered has sufficient time to slide through the two infrared arrays, avoiding premature termination of detection due to slow sliding speed before recovery is completed. Specific parameters can be adjusted according to the actual equipment structure, and this application does not impose any limitations.

[0043] In one implementation scenario, in response to an interval duration greater than a duration threshold, or in response to any one of the following: the cumulative number of times the first intensity is greater than the first threshold is greater than the fifth quantity, or the cumulative number of times the second intensity is greater than the second threshold is greater than the sixth quantity, the judgment result is determined to be that the object to be recycled is abnormally blocked.

[0044] In a specific implementation scenario, if the interval duration exceeds the duration threshold, it indicates that the object to be recycled has entered the recycling channel for more than the preset maximum duration and has not been recycled. It is highly likely that it is stuck in the recycling channel and cannot continue to slide down. At this time, it is determined to be an abnormal blockage.

[0045] In a specific implementation scenario, if the cumulative number of times the first intensity is greater than the first threshold is greater than the fifth number, or the cumulative number of times the second intensity is greater than the second threshold is greater than the sixth number, it indicates that the first infrared array or the second infrared array has been continuously blocked for a long period of time. Similarly, it can be determined that the object to be recovered is stuck in the detection area of ​​the corresponding infrared array and is identified as abnormal jamming.

[0046] It should be noted that if the judgment result indicates that the object to be recycled is abnormally blocked, the detection result of the object to be recycled directly corresponds to the abnormal blockage. This can promptly remind users or equipment managers to clear and unblock the blockage, preventing the blocked object to be recycled from obstructing the subsequent recycling process of medicine bottles.

[0047] Step S14: In response to the judgment result indicating that the recycling event has not ended, return to the step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next moment, until the judgment result indicates that the recycling event has ended, and obtain the detection result of the object to be recycled regarding the recycling status based on the first intensity sequence and the second intensity sequence accumulated from the start time.

[0048] In one implementation scenario, in response to the judgment result indicating that the recovery event has not ended, the step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next moment is returned until the judgment result indicates that the recovery event has ended. The above scheme, through cyclic sampling and judgment, continuously tracks the movement process of the object to be recovered within the recovery channel, and can completely collect the first and second intensities at all moments from the triggering of recovery to the end of recovery, providing a complete and continuous data foundation for subsequent recovery status detection and ensuring the accuracy of the detection results.

[0049] In one implementation scenario, the first intensity sequence is the sequence formed by arranging the first intensity obtained at each sampling moment in chronological order from the start time to the end of the recovery event. Similarly, the second intensity sequence is the sequence formed by arranging the second intensity obtained at each sampling moment in chronological order. The two sequences together reflect the change in the degree of occlusion of the two infrared arrays during the entire process of the object to be recovered passing through the recovery channel. Based on the change process, features can be extracted to determine the recovery status of the object to be recovered.

[0050] In one implementation scenario, based on the first intensity sequence and the second intensity sequence, the time information corresponding to the first intensity rising edge, the first intensity falling edge, the second intensity rising edge, and the second intensity falling edge can be extracted. Combined with the time difference of different edges, the total duration of the object to be recycled simultaneously blocking the first infrared array and the second infrared array, as well as the duration of blocking a single infrared array, can also be calculated. Based on these features, it can be determined whether the object to be recycled is recycled normally or abnormally retrieved during the recycling process.

[0051] In one implementation scenario, based on a first intensity sequence, it is determined whether the object to be recycled effectively blocks the first infrared array and the first moment when the first infrared array is effectively blocked. Similarly, based on a second intensity sequence, it is determined whether the object to be recycled effectively blocks the second infrared array and the second moment when the second infrared array is effectively blocked. Specifically, in the first intensity sequence, when the first intensity changes from not greater than a first threshold to greater than the first threshold, the corresponding moment is the first moment when the first infrared array is effectively blocked. Likewise, when the second intensity changes from not greater than a second threshold to greater than the second threshold, the corresponding moment is the second moment when the second infrared array is effectively blocked. If the object to be recycled completes the recycling normally after passing through both infrared arrays, the first moment should be earlier than the second moment, and the time difference between the two moments should be within a preset time interval, consistent with the normal sliding speed pattern of the medicine bottle.

[0052] In a specific implementation scenario, the response occurs at the first moment earlier than the second moment, and the detection result, including the recovery status, is determined to be successful recovery.

[0053] In a specific implementation scenario, if the detection result includes a successful recycling status, a corresponding successful recycling prompt message is generated, the recycling data is stored in the statistics list, one medicine bottle recycling count is completed, and the device is reset to the initial detection state, waiting for the next medicine bottle to be recycled to enter the recycling channel to trigger the detection.

[0054] In a specific implementation scenario, in response to the effective blocking of only the first infrared array and the failure to effectively block the second infrared array, or the second moment being earlier than the first moment, the detection result is determined to be that the recovery status is unsuccessful.

[0055] In a specific implementation scenario, the response at the second moment is earlier than the first moment. The detection result is determined to include the recycling status as the object to be recycled being abnormally retrieved. Specifically, the user first puts the object to be recycled into the recycling channel. The object to be recycled passes through the first infrared array first, and then is taken out from the entrance in the reverse direction. This will result in an abnormal situation where the second infrared array is blocked first and the first infrared array is blocked later. By determining the time sequence, this abnormal retrieval behavior can be quickly identified, and the number of medicine bottles actually successfully recycled can be accurately counted.

[0056] In a specific implementation scenario, the first infrared array includes several subarrays, with the first subarray being closer to the entrance than the other subarrays. For example, the first infrared array consists of two rows and seven columns of infrared sensors, and the first row of infrared sensors closest to the entrance is the first subarray. When the object to be retrieved is taken out from the entrance in reverse, the first subarray will be blocked later than the second row of infrared sensors. In response to the effective blocking of only the first infrared array and not the second infrared array, and at least two subarrays of the first infrared array being effectively blocked, and the last subarray to be effectively blocked being the first subarray, the detection result is determined to include the retrieval status as an abnormal retrieval of the object. This scheme, by using the order information of when the first subarray is last blocked, can further confirm that the object to be retrieved is taken out from the entrance in reverse, improving the accuracy of identifying abnormal retrieval behavior and avoiding misjudgments of normal retrieval.

[0057] In a specific implementation scenario, in response to the situation where only the first infrared array is effectively blocked but the second infrared array is not effectively blocked, and the aforementioned reverse extraction feature does not exist, if the time interval is greater than the duration threshold, the detection result is determined to be a recovery failure. This may be because the object to be recovered is stuck in the non-detection area between the first and second infrared arrays. In this case, the recovery also fails, and an abnormal reminder can be triggered for timely handling.

[0058] In one implementation scenario, the system detects whether there exists a first intensity sequence in which a first number of consecutive first intensities are not less than a first threshold. In response to the detection of existence, it is determined that the object to be recovered effectively occludes the first infrared array. Based on the last occurrence of a first intensity subsequence in the first intensity sequence in which a first number of consecutive first intensities are less than the first threshold, the time corresponding to the first intensity after the first intensity subsequence in the first intensity sequence is determined as the first time. Specifically, in the process of transitioning from an unoccluded state to an effectively occluded state, there will inevitably be a change from all intensities not greater than the first threshold to multiple consecutive intensities greater than the first threshold. By confirming that the condition is met for the first number of consecutive intensities, false triggering caused by accidental signal fluctuations can be avoided, improving the accuracy of the determination of the effective occlusion start time and further improving the reliability of the entire detection process.

[0059] In a specific implementation scenario, it is detected whether there are a first number of consecutive first intensities in the first intensity sequence that are not less than a first threshold. In response to the detection that they do not exist, it is determined that the object to be recycled has not effectively blocked the first infrared array.

[0060] In one implementation scenario, the system detects whether there exists a second consecutive number of second intensities that are not less than a second threshold in the second intensity sequence. In response to the detection of existence, it is determined that the object to be recovered effectively blocks the second infrared array. Based on the last second intensity subsequence in the second intensity sequence where there are a second consecutive number of second intensities that are not less than the second threshold, the time corresponding to the second intensity after the second intensity subsequence in the second intensity sequence is determined as the second time. Specifically, in the process of transitioning from an unblocked state to an effectively blocked state, there will inevitably be a change from all intensities not greater than the second threshold to a series of consecutive intensities greater than the second threshold. By confirming that the second consecutive number of intensities meet the condition, false triggering caused by accidental signal fluctuations can be avoided, improving the accuracy of the determination of the effective blocking start time and further improving the reliability of the entire detection process.

[0061] In a specific implementation scenario, it is detected whether there are a second number of consecutive second intensities in the second intensity sequence that are not less than a second threshold. In response to the detection that they do not exist, it is determined that the object to be recycled has not effectively blocked the second infrared array.

[0062] The above scheme obtains the triggering result at the entrance based on the first signal of the first infrared array at the current moment. In response to the triggering result indicating the existence of an object to be recycled, the current moment is taken as the start moment of the recycling trigger. Based on the new first signal of the first infrared array at the next moment, the first intensity of the first infrared array being blocked is obtained. Based on the second signal of the second infrared array at the next moment, the second intensity of the second infrared array being blocked is obtained. Based on the interval between the next moment and the start moment, the first intensity, and the second intensity, a judgment result indicating whether the recycling event has ended is obtained. In response to the judgment result indicating that the recycling event has not ended, the process returns to the step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next moment, until the judgment result indicates that the recycling event has ended. Based on the first intensity sequence and the second intensity sequence accumulated from the start moment, the detection result of the object to be recycled regarding the recycling status is obtained. On the one hand, when the first infrared array near the entrance of the recycling channel is triggered by the object to be recycled, the system determines whether the recycling event has ended based on the continuously acquired first intensity of the first infrared array being blocked, the second intensity of the second infrared array being blocked, and the duration of the recycling process. By combining the changes in the blocking intensity of the two infrared arrays located at the entrance and exit, the system continuously tracks the entire recycling process of the object within the recycling channel. This integrates infrared detection data from the recycling process along the dimensions of recycling events, covering the recycling status of the object as comprehensively as possible, thus improving the accuracy of recycling detection. On the other hand, by accumulating the first and second intensity sequences during the recycling process to obtain the final detection result, the system can comprehensively detect the recycling status by combining the blocking situation at different times along the array dimension, further improving the accuracy and robustness of the detection. Therefore, it can improve the accuracy and robustness of medicine bottle recycling detection.

[0063] Please see Figure 2 , Figure 2This is a schematic diagram of a framework of an embodiment of the medicine bottle recycling detection device of this application. The medicine bottle recycling detection device 20 is applied to a medicine bottle recycling equipment, and the recycling channel is provided with a first infrared array and a second infrared array near the inlet and outlet, respectively. The medicine bottle recycling detection device 20 includes: a trigger module 21, an intensity module 22, a judgment module 23, and a detection module 24. The trigger module 21 is used to obtain a trigger result at the inlet based on a first signal from the first infrared array at the current moment; the intensity module 22 is used to respond to the trigger result indicating the presence of a recyclable object, taking the current moment as the start moment of the recycling trigger, and obtaining a first intensity of the first infrared array being blocked based on a new first signal from the first infrared array at the next moment, and based on the second... The second signal of the infrared array at the next moment is used to obtain the second intensity of the second infrared array being blocked; the judgment module 23 is used to obtain a judgment result indicating whether the recovery event has ended based on the interval between the next moment and the start moment, the first intensity, and the second intensity; the detection module 24 is used to return to the step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next moment in response to the judgment result indicating that the recovery event has not ended, until the judgment result indicates that the recovery event has ended, and obtain the detection result of the object to be recovered regarding the recovery status based on the first intensity sequence and the second intensity sequence accumulated from the start moment.

[0064] In the above scheme, the medicine bottle recycling detection device 20 obtains the triggering result at the entrance based on the first signal of the first infrared array at the current moment. In response to the triggering result indicating the presence of a recyclable object, the current moment is taken as the starting moment of the recycling trigger. Based on the new first signal of the first infrared array at the next moment, the first intensity of the first infrared array being blocked is obtained. Based on the second signal of the second infrared array at the next moment, the second intensity of the second infrared array being blocked is obtained. Based on the interval between the next moment and the starting moment, the first intensity, and the second intensity, a judgment result indicating whether the recycling event has ended is obtained. In response to the judgment result indicating that the recycling event has not ended, the step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next moment is returned until the judgment result indicates that the recycling event has ended. Based on the first intensity sequence and the second intensity sequence accumulated from the starting moment, the detection result of the recyclable object regarding the recycling status is obtained. On the one hand, when the first infrared array near the entrance of the recycling channel is triggered by the object to be recycled, the system determines whether the recycling event has ended based on the continuously acquired first intensity of the first infrared array being blocked, the second intensity of the second infrared array being blocked, and the duration of the recycling process. By combining the changes in the blocking intensity of the two infrared arrays located at the entrance and exit, the system continuously tracks the entire recycling process of the object within the recycling channel. This integrates infrared detection data from the recycling process along the dimensions of recycling events, covering the recycling status of the object as comprehensively as possible, thus improving the accuracy of recycling detection. On the other hand, by accumulating the first and second intensity sequences during the recycling process to obtain the final detection result, the system can comprehensively detect the recycling status by combining the blocking situation at different times along the array dimension, further improving the accuracy and robustness of the detection. Therefore, it can improve the accuracy and robustness of medicine bottle recycling detection.

[0065] In some disclosed embodiments, the detection module 24 further includes a time determination module (not shown), used to determine, based on a first intensity sequence, whether the object to be recovered effectively blocks the first infrared array and the first time at which the first infrared array is effectively blocked, and based on a second intensity sequence, whether the object to be recovered effectively blocks the second infrared array and the second time at which the second infrared array is effectively blocked; in response to the first time being earlier than the second time, determining that the detection result, including the recovery status, is successful recovery; the detection module 24 further includes a status determination module (not shown), used to determine, in response to only effectively blocking the first infrared array and not effectively blocking the second infrared array, or the second time being earlier than the first time, the detection result, including the recovery status, is unsuccessful recovery.

[0066] In some disclosed embodiments, the medicine bottle recycling detection device 20 further includes a first retrieval module (not shown), used to determine the detection result, including the recycling status as the object to be recycled being abnormally retrieved, in response to a second time earlier than the first time; and / or, the first infrared array includes several sub-arrays, and the medicine bottle recycling detection device 20 further includes a second retrieval module (not shown), used to determine the detection result, including the recycling status as the object to be recycled being abnormally retrieved, in response to only effectively blocking the first infrared array and not effectively blocking the second infrared array, and at least two sub-arrays of the first infrared array being effectively blocked and the last sub-array to be effectively blocked being the first sub-array.

[0067] In some disclosed embodiments, the time determination module (not shown) further includes a first sequence detection module (not shown), used to detect whether there exists a first number of consecutive first intensities in the first intensity sequence that are not less than a first threshold; the time determination module (not shown) further includes a first existence detection module (not shown), used to determine, in response to the existence detection, that the object to be recovered effectively blocks the first infrared array, and based on the last existence of a first intensity subsequence in the first intensity sequence where a first number of consecutive first intensities are not less than the first threshold, determine the time corresponding to the first intensity after the first intensity subsequence in the first intensity sequence as the first time; the time determination module (not shown) further includes a first non-existence detection module (not shown), used to determine, in response to the non-existence detection, that the object to be recovered does not effectively block the first infrared array. The array; and / or, the time determination module (not shown) further includes a second sequence detection module (not shown), used to detect whether there exists a second consecutive number of second intensities in the second intensity sequence that are not less than a second threshold; the time determination module (not shown) further includes a second presence detection module (not shown), used to determine, in response to the presence detection, that the object to be recovered effectively blocks the second infrared array, and based on the last existence of a second intensity subsequence in the second intensity sequence where a second consecutive number of second intensities are less than the second threshold, determine the time corresponding to the second intensity after the second intensity subsequence in the second intensity sequence as the second time; the time determination module (not shown) further includes a second presence detection module (not shown), used to determine, in response to the absence detection, that the object to be recovered does not effectively block the second infrared array.

[0068] In some disclosed embodiments, the judgment module 23 further includes a first judgment module (not shown), used to determine that the retrieval event has ended in response to the interval duration not being greater than a duration threshold, and the cumulative number of times the first intensity is not greater than the first threshold being not less than a third quantity, and the cumulative number of times the second intensity is not greater than the second threshold being not less than a fourth quantity; the judgment module 23 further includes a second judgment module (not shown), used to determine that the retrieval event has not ended in response to the interval duration not being greater than the duration threshold, and at least one of the first intensity being greater than the first threshold and the second intensity being greater than the second threshold, or at least one of the cumulative number of times the first intensity is not greater than the first threshold being less than a third quantity and the cumulative number of times the second intensity is not greater than the second threshold being less than a fourth quantity.

[0069] In some disclosed embodiments, the medicine bottle recycling detection device 20 further includes an abnormal jamming module (not shown), which is used to determine that the object to be recycled has an abnormal jamming in response to an interval duration greater than a duration threshold, or in response to any one of the following: the cumulative number of times the first intensity is greater than the first threshold is greater than a fifth quantity, or the cumulative number of times the second intensity is greater than the second threshold is greater than a sixth quantity.

[0070] In some disclosed embodiments, the new first signal includes new first signal values ​​of each infrared sensor in the first infrared array, and the intensity module 22 further includes a first difference calculation module (not shown) for calculating a first difference between each new first signal value and a preset signal value; wherein the preset signal value is a reference signal value of the infrared sensor in an unobstructed state; the intensity module 22 further includes a first accumulation calculation module (not shown) for obtaining a first intensity of the first infrared array being obstructed based on the accumulation result of each first difference; and / or, the second signal includes second signal values ​​of each infrared sensor in the second infrared array, and the intensity module 22 further includes a second difference calculation module (not shown) for calculating a second difference between each second signal value and a preset signal value; wherein the preset signal value is a reference signal value of the infrared sensor in an unobstructed state; the intensity module 22 further includes a second accumulation calculation module (not shown) for obtaining a second intensity of the second infrared array being obstructed based on the accumulation result of each second difference.

[0071] Please see Figure 3 , Figure 3 This is a schematic diagram of a framework of an embodiment of the electronic device of this application. The electronic device 30 includes at least a memory 31 and a processor 32 coupled to each other. The memory 31 stores at least program instructions, and the processor 32 is used to execute the program instructions to implement the steps in any of the above embodiments of the medicine bottle recycling detection method. For details, please refer to the foregoing disclosed embodiments, which will not be repeated here. Exemplarily, the electronic device 30 may include, but is not limited to, smartphones, tablet computers, etc., and the specific type of the electronic device 30 is not limited here.

[0072] Specifically, processor 32 controls itself and memory 31 to implement the steps in any of the above-described embodiments of the medicine bottle recycling detection method. Processor 32 can also be referred to as a CPU (Central Processing Unit). Processor 32 may be an integrated circuit chip with signal processing capabilities. Processor 32 can also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor. Furthermore, processor 32 can be implemented using integrated circuit chips.

[0073] In the above scheme, the electronic device 30 obtains the triggering result at the entrance based on the first signal of the first infrared array at the current moment. In response to the triggering result indicating the existence of an object to be recycled, the current moment is taken as the starting moment of the recycling trigger. Based on the new first signal of the first infrared array at the next moment, the first intensity of the first infrared array being blocked is obtained. Based on the second signal of the second infrared array at the next moment, the second intensity of the second infrared array being blocked is obtained. Based on the interval between the next moment and the starting moment, the first intensity, and the second intensity, a judgment result indicating whether the recycling event has ended is obtained. In response to the judgment result indicating that the recycling event has not ended, the step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next moment is returned until the judgment result indicates that the recycling event has ended. Based on the first intensity sequence and the second intensity sequence accumulated from the starting moment, the detection result of the object to be recycled regarding the recycling status is obtained. On the one hand, when the first infrared array near the entrance of the recycling channel is triggered by the object to be recycled, the system determines whether the recycling event has ended based on the continuously acquired first intensity of the first infrared array being blocked, the second intensity of the second infrared array being blocked, and the duration of the recycling process. By combining the changes in the blocking intensity of the two infrared arrays located at the entrance and exit, the system continuously tracks the entire recycling process of the object within the recycling channel. This integrates infrared detection data from the recycling process along the dimensions of recycling events, covering the recycling status of the object as comprehensively as possible, thus improving the accuracy of recycling detection. On the other hand, by accumulating the first and second intensity sequences during the recycling process to obtain the final detection result, the system can comprehensively detect the recycling status by combining the blocking situation at different times along the array dimension, further improving the accuracy and robustness of the detection. Therefore, it can improve the accuracy and robustness of medicine bottle recycling detection.

[0074] Please see Figure 4 , Figure 4 This is a schematic diagram of a framework of an embodiment of the medicine bottle recycling device of this application. The medicine bottle recycling device 40 includes a recycling channel 41, a first infrared array 42, a second infrared array 43, and a detection device 44. The first infrared array 42 is disposed near the entrance of the recycling channel 41, and the second infrared array 43 is disposed near the exit of the recycling channel 41. The detection device 44 is electrically connected to the first infrared array 42 and the second infrared array 43 respectively, and the detection device 44 is the electronic device 30 in any of the above embodiments.

[0075] Therefore, based on the first signal of the first infrared array 42 at the current moment, the triggering result at the entrance is obtained. In response to the triggering result indicating the existence of an object to be recycled, the current moment is taken as the starting moment of the recycling trigger. Based on the new first signal of the first infrared array 42 at the next moment, the first intensity of the first infrared array 42 being blocked is obtained. Based on the second signal of the second infrared array 43 at the next moment, the second intensity of the second infrared array 43 being blocked is obtained. Based on the interval between the next moment and the starting moment, the first intensity, and the second intensity, a judgment result indicating whether the recycling event has ended is obtained. In response to the judgment result indicating that the recycling event has not ended, the step of obtaining the first intensity of the first infrared array 42 being blocked based on the new first signal of the first infrared array 42 at the next moment is returned until the judgment result indicates that the recycling event has ended. Based on the first intensity sequence and the second intensity sequence accumulated from the starting moment, the detection result of the object to be recycled regarding the recycling status is obtained. On the one hand, when the first infrared array 42 near the entrance of the recycling channel 41 is triggered by the object to be recycled, the recycling event is judged to have ended based on the continuously acquired first intensity of occlusion of the first infrared array 42, the second intensity of occlusion of the second infrared array 43, and the duration of the recycling process. This allows for continuous tracking of the entire recycling process of the object within the recycling channel 41 by combining the occlusion intensity changes of the two infrared arrays located at the entrance and exit. Integrating infrared detection data during the recycling process from the perspective of recycling events helps to cover the recycling status of the object as much as possible, thus improving the accuracy of recycling detection. On the other hand, by accumulating the first intensity sequence and the second intensity sequence during the recycling process to obtain the final detection result, the recycling status can be comprehensively detected by combining the occlusion situation at different times in the array dimension throughout the recycling process, further improving the accuracy and robustness of the detection. Therefore, it can improve the accuracy and robustness of medicine bottle recycling detection.

[0076] In one implementation scenario, the first infrared array 42 includes at least a plurality of first infrared sensors located on the same horizontal plane perpendicular to the recovery path of the recovery channel 41, and the second infrared array 43 includes at least a plurality of second infrared sensors located on the same horizontal plane perpendicular to the recovery path of the recovery channel 41. The receiving end and transmitting end of each first infrared sensor and second infrared sensor are arranged on opposite sides of the recovery channel 41, and the receiving end can receive the infrared signal emitted by the corresponding transmitting end. Specifically, when the object to be recovered passes the location of the corresponding infrared sensor, the infrared signal will be blocked by the object to be recovered, and the intensity of the infrared signal received by the receiving end will change accordingly. This allows the detection of whether there is obstruction and the intensity of obstruction based on the signal change.

[0077] In a specific implementation scenario, both the first infrared array 42 and the second infrared array 43 include at least a sub-array that can cover the horizontal plane of the recycling channel 41 perpendicular to the recycling path with an interval smaller than the size of the smallest object to be recycled. Specifically, when multiple objects to be recycled of different sizes or different placement positions pass by, it can still be ensured that each object to be recycled will at least block the infrared sensor when passing through the corresponding array.

[0078] In a specific implementation scenario, the distance between each adjacent infrared sensor in the first infrared array 42 is less than the size of the smallest object to be recycled. For details, please refer to the detailed description in the foregoing embodiments. For the sake of brevity, it will not be repeated here.

[0079] In a specific implementation scenario, the distance between each adjacent infrared sensor in the second infrared array 43 is less than the size of the smallest object to be recycled. For details, please refer to the detailed description in the foregoing embodiments. For the sake of brevity, it will not be repeated here.

[0080] In one implementation scenario, the recycling channel 41 is formed by the enclosure of the shell. Specifically, the width of the recycling channel 41 is maintained within a preset width range along the direction from the inlet to the outlet so that the medicine bottle to be recycled can pass through the first infrared array 42 and the second infrared array 43 in sequence along the recycling path, ensuring the stability of the infrared detection data.

[0081] In a specific implementation scenario, the overall shape of the recycling channel 41 is vertical along the direction from the inlet to the outlet. The object to be recycled slides down from the inlet to the outlet along the recycling channel 41 under its own gravity. There is no need to set up an additional drive and push mechanism, which can simplify the overall structure of the medicine bottle recycling equipment 40 and reduce the complexity and manufacturing cost of the equipment.

[0082] In a specific implementation scenario, a recycling channel 41 is formed by enclosing a square inner wall. Each infrared sensor in the first infrared array 42 is arranged facing each other on the two sides of the square inner wall, and each infrared sensor in the second infrared array 43 is also arranged facing each other on the two sides of the square inner wall. This facilitates the placement of the infrared sensors and helps to ensure the stability of infrared signal transmission and reception.

[0083] In another specific implementation scenario, other shapes such as a circular inner wall can also be used according to actual needs, and this application does not limit this.

[0084] It should be noted that when the recycling channel 41 is formed by an inner wall of a circular or similar shape, the infrared sensors in the first infrared array 42 and the second infrared array 43 located on the same horizontal plane perpendicular to the recycling path may have overlapping infrared signal paths between the transmitting and receiving ends of each infrared sensor. However, as long as the infrared signal emitted by the transmitting end of each infrared sensor can be stably received by the corresponding receiving end, and the sensor spacing meets the requirement of being less than the minimum size of the object to be recycled, the occlusion detection can be achieved normally, and therefore it does not affect the normal implementation of the solution in this application.

[0085] In one implementation scenario, the medicine bottle recycling equipment 40 also includes a medicine bottle storage box (not shown). The inlet of the medicine bottle storage box is connected to the outlet of the recycling channel 41, and is used to store the recycled items to be recycled, so as to facilitate centralized sorting and transportation after recycling.

[0086] In one implementation scenario, the medicine bottle recycling equipment 40 may also include a counting and statistics module (not shown), which is used to count and count the number of items to be recycled that have been completed based on the detection results, so that managers can keep track of the total amount of recycling in a timely manner.

[0087] In one implementation scenario, the medicine bottle recycling device 40 also includes an electronic display screen (not shown) to display relevant information such as the current total amount recycled, recycling completion prompts, and abnormal jamming prompts, so that operators and users can intuitively obtain the current status of the equipment and handle abnormal situations in a timely manner.

[0088] Please see Figure 5 , Figure 5 This is a schematic diagram of a framework of an embodiment of the computer-readable storage medium of this application. The computer-readable storage medium 50 stores program instructions 51 that can be executed by a processor. The program instructions 51 are used to implement the steps in any of the above embodiments of the medicine bottle recycling detection method.

[0089] In the above scheme, the computer-readable storage medium 50 obtains the triggering result at the entrance based on the first signal of the first infrared array at the current moment. In response to the triggering result indicating the existence of an object to be recycled, the current moment is taken as the start moment of the recycling trigger. Based on the new first signal of the first infrared array at the next moment, the first intensity of the first infrared array being blocked is obtained. Based on the second signal of the second infrared array at the next moment, the second intensity of the second infrared array being blocked is obtained. Based on the interval between the next moment and the start moment, the first intensity, and the second intensity, a judgment result indicating whether the recycling event has ended is obtained. In response to the judgment result indicating that the recycling event has not ended, the step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next moment is returned until the judgment result indicates that the recycling event has ended. Based on the first intensity sequence and the second intensity sequence accumulated from the start moment, the detection result of the object to be recycled regarding the recycling status is obtained. On the one hand, when the first infrared array near the entrance of the recycling channel is triggered by the object to be recycled, the system determines whether the recycling event has ended based on the continuously acquired first intensity of the first infrared array being blocked, the second intensity of the second infrared array being blocked, and the duration of the recycling process. By combining the changes in the blocking intensity of the two infrared arrays located at the entrance and exit, the system continuously tracks the entire recycling process of the object within the recycling channel. This integrates infrared detection data from the recycling process along the dimensions of recycling events, covering the recycling status of the object as comprehensively as possible, thus improving the accuracy of recycling detection. On the other hand, by accumulating the first and second intensity sequences during the recycling process to obtain the final detection result, the system can comprehensively detect the recycling status by combining the blocking situation at different times along the array dimension, further improving the accuracy and robustness of the detection. Therefore, it can improve the accuracy and robustness of medicine bottle recycling detection.

[0090] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0091] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.

[0092] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0093] The units described as separate components may or may not be physically separate. 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, depending on actual needs.

[0094] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0095] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A method for detecting the recycling of medicine bottles, characterized in that, The method, applicable to medicine bottle recycling equipment, wherein a first infrared array and a second infrared array are respectively provided near the inlet and outlet of the recycling channel, includes: Based on the first signal of the first infrared array at the current moment, the triggering result at the entrance is obtained; In response to the triggering result indicating the existence of an object to be recycled, the current moment is taken as the starting moment of the recycling trigger, and based on the new first signal of the first infrared array at the next moment, the first intensity of the first infrared array being blocked is obtained, and based on the second signal of the second infrared array at the next moment, the second intensity of the second infrared array being blocked is obtained. Based on the interval between the next moment and the start moment, the first intensity, and the second intensity, a judgment result characterizing whether the recycling event has ended is obtained; In response to the judgment result indicating that the recycling event has not ended, the step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next moment is returned until the judgment result indicates that the recycling event has ended. Based on the first intensity sequence and the second intensity sequence accumulated from the start time, the detection result of the object to be recycled regarding the recycling status is obtained.

2. The method according to claim 1, characterized in that, The method of obtaining the detection result of the object to be recycled regarding its recycling status based on the first intensity sequence and the second intensity sequence accumulated from the starting time includes: Based on the first intensity sequence, determine whether the object to be recycled effectively blocks the first infrared array and the first moment when it effectively blocks the first infrared array; and based on the second intensity sequence, determine whether the object to be recycled effectively blocks the second infrared array and the second moment when it effectively blocks the second infrared array. In response to the first moment being earlier than the second moment, the detection result is determined to include the recovery status as successful recovery; In response to the effective blocking of only the first infrared array and not the second infrared array, or the second time being earlier than the first time, the detection result is determined to include the recovery status as unsuccessful recovery.

3. The method according to claim 2, characterized in that, The method further includes: In response to the second time being earlier than the first time, the detection result is determined to include the recovery status as the object to be recovered being abnormally retrieved; And / or, the first infrared array includes a plurality of subarrays, the plurality of subarrays including a first subarray that is closer to the entrance than the other subarrays, the method further comprising: In response to the effective blocking of only the first infrared array and not the second infrared array, and at least two subarrays of the first infrared array being effectively blocked and the last subarray to be effectively blocked being the first subarray, the detection result is determined to include the recovery status as the object to be recovered being abnormally retrieved.

4. The method according to claim 2, characterized in that, The step of determining whether the object to be recycled effectively blocks the first infrared array and the first moment when it effectively blocks the first infrared array based on the first intensity sequence includes: Detect whether there exists a first number of consecutive first intensities in the first intensity sequence that are all not less than a first threshold. In response to the detection of existence, it is determined that the object to be recycled effectively blocks the first infrared array, and based on the last existence of a first intensity subsequence in the first intensity sequence where a first number of consecutive first intensities are all less than a first threshold, the time corresponding to the first intensity after the first intensity subsequence in the first intensity sequence is determined as the first time. In response to the detection of non-existence, it is determined that the object to be recycled has not effectively blocked the first infrared array; And / or, determining whether the object to be recovered effectively blocks the second infrared array and the second moment of effective blocking of the second infrared array based on the second intensity sequence includes: Detect whether there exists a second consecutive number of second intensities in the second intensity sequence that are all not less than a second threshold. In response to the detection of existence, it is determined that the object to be recycled effectively blocks the second infrared array, and based on the last existence of a second intensity subsequence in the second intensity sequence where the second intensity is less than the second threshold, the time corresponding to the second intensity after the second intensity subsequence in the second intensity sequence is determined as the second time. In response to the detection of non-existence, it is determined that the object to be recycled does not effectively block the second infrared array.

5. The method according to claim 1, characterized in that, The determination of whether the recycling event has ended, based on the interval between the next time moment and the start time moment, the first intensity, and the second intensity, includes: In response to the interval duration not being greater than the duration threshold, and the cumulative number of times the first intensity is not greater than the first threshold not being less than the third number, and the cumulative number of times the second intensity is not greater than the second threshold not being less than the fourth number, the judgment result is determined to be that the recycling event has ended; In response to the interval duration not being greater than the duration threshold, if at least one of the following exists: the first intensity is greater than the first threshold, the second intensity is greater than the second threshold, or if at least one of the following exists: the cumulative number of times the first intensity is not greater than the first threshold is less than the third quantity, or the cumulative number of times the second intensity is not greater than the second threshold is less than the fourth quantity, the judgment result is determined to be that the recycling event has not ended.

6. The method according to claim 1, characterized in that, The method further includes: In response to the interval duration being greater than a duration threshold, or in response to the cumulative number of times the first intensity is greater than the first threshold being greater than a fifth quantity, or the cumulative number of times the second intensity is greater than the second threshold being greater than a sixth quantity, the judgment result is determined to be that the object to be recycled has an abnormal blockage.

7. The method according to claim 1, characterized in that, The new first signal includes the new first signal values ​​of each infrared sensor in the first infrared array. The step of obtaining the first intensity of the first infrared array being blocked based on the new first signal of the first infrared array at the next moment includes: Calculate the first difference between each of the new first signal values ​​and a preset signal value; wherein the preset signal value is the reference signal value of the infrared sensor in an unobstructed state; Based on the summation of each of the first differences, the first intensity of the first infrared array being blocked is obtained; And / or, the second signal includes the second signal values ​​of each infrared sensor in the second infrared array, and the step of obtaining the second intensity of the second infrared array being blocked based on the second signal of the second infrared array at the next moment includes: Calculate the second difference between each of the second signal values ​​and a preset signal value; wherein the preset signal value is the reference signal value of the infrared sensor in an unobstructed state; Based on the summation of each of the second differences, the second intensity of the second infrared array being blocked is obtained.

8. A medicine bottle recycling device, characterized in that, The method includes a recycling channel, a first infrared array, a second infrared array, and a detection device. The first infrared array is located near the entrance of the recycling channel, and the second infrared array is located near the exit of the recycling channel. The detection device is electrically connected to the first infrared array and the second infrared array, respectively, and the detection device is used to execute program instructions to implement the medicine bottle recycling detection method according to any one of claims 1 to 7.

9. The medicine bottle recycling equipment according to claim 8, characterized in that, The first infrared array includes at least a plurality of first infrared sensors located on the same horizontal plane perpendicular to the recovery path in the recovery channel, and the second infrared array includes at least a plurality of second infrared sensors located on the same horizontal plane perpendicular to the recovery path in the recovery channel. The receiving end and transmitting end of each of the first infrared sensors and the second infrared sensors are disposed on opposite sides of the recovery channel, and the receiving end is capable of receiving infrared signals emitted by the corresponding transmitting end. Wherein, the distance between each adjacent infrared sensor in the first infrared array is less than the size of the minimum object to be recycled, and / or, the distance between each adjacent infrared sensor in the second infrared array is less than the size of the minimum object to be recycled.

10. A computer-readable storage medium, characterized in that, The device stores program instructions that can be executed by a processor, the program instructions being used to implement the medicine bottle recycling detection method according to any one of claims 1 to 7.